Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_wakelock
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
creativecreatorormaybenot
2019-07-09 11:52:07 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6340369809315f9f0afd42f6a0da5dc9c1838005
63403698
1 parent
703abd0d
0.1.2+5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
23 deletions
.travis.yml
CHANGELOG.md
example/test_driver/app_test.dart
lib/wakelock.dart
pubspec.yaml
.travis.yml
View file @
6340369
os
:
linux
dist
:
trusty
sudo
:
true
language
:
generic
matrix
:
include
:
-
stage
:
Check Format
-
stage
:
Format Checking
os
:
linux
dist
:
trusty
language
:
generic
name
:
Dart code
...
...
@@ -18,30 +17,17 @@ matrix:
script
:
-
flutter format lib example --set-exit-if-changed --fix
-
stage
:
Code
a
nalysis
-
stage
:
Code
A
nalysis
name
:
Dart code (plugin)
install
:
-
git clone -b master https://github.com/flutter/flutter.git
-
./flutter/bin/flutter --version
before_script
:
-
export PATH="$PATH":"$HOME/.pub-cache/bin"
-
export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
script
:
-
flutter analyze
-
name
:
Dart code (example)
install
:
-
git clone -b master https://github.com/flutter/flutter.git
-
./flutter/bin/flutter --version
before_script
:
-
export PATH="$PATH":"$HOME/.pub-cache/bin"
-
export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
-
cd example
script
:
-
cd example
-
flutter analyze
-
stage
:
Integration Testing
...
...
@@ -77,6 +63,7 @@ matrix:
os
:
linux
dist
:
trusty
sudo
:
true
language
:
android
android
:
...
...
CHANGELOG.md
View file @
6340369
## 0.1.2+5
*
Expanded continuous integration to include format checking and code analysis.
## 0.1.2+4
*
Updated the example's README.
...
...
example/test_driver/app_test.dart
View file @
6340369
lib/wakelock.dart
View file @
6340369
...
...
@@ -12,7 +12,7 @@ import 'package:flutter/services.dart';
/// The [Wakelock.isEnabled] function allows you to retrieve the current wakelock
/// status from Android or iOS.
class
Wakelock
{
static
const
MethodChannel
_channel
=
const
MethodChannel
(
'wakelock'
);
static
const
MethodChannel
_channel
=
MethodChannel
(
'wakelock'
);
/// This can simply be called using `Wakelock.enable()` and does not return anything.
/// You can await the [Future] to wait for the operation to complete.
...
...
pubspec.yaml
View file @
6340369
name
:
wakelock
description
:
This plugin allows you to keep Android and iOS devices awake, i.e. prevent the screen from sleeping by toggling the wakelock of the phone or tablet on or off.
version
:
0.1.2+
4
version
:
0.1.2+
5
author
:
creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com>
homepage
:
https://github.com/creativecreatorormaybenot/wakelock
...
...
Please
register
or
login
to post a comment