Открыть боковую панель
Aurora OS
Flutter
Flutter Community Plugins
wakelock_plus
Коммиты
1117c3f1
Коммит
1117c3f1
создал
Окт 15, 2024
по автору
Vladimir Vershinin
Зафиксировано автором
Красавин Никита Сергеевич
Окт 15, 2024
Просмотр файлов
[change] Preparing the plugin for publication.
владелец
93372baf
Изменения
9
Скрыть пробелы
Построчно
Рядом
CHANGELOG.md
Просмотр файла @
1117c3f1
## Updated: 10/0
4
/2024
13:09:09 P
M
## Updated: 10/0
9
/2024
09:49:05 A
M
## Info
## Info
-
Last tag: None
-
Last tag: aurora-0.5.1
-
Released: 0
-
Released: 2
## Versions
-
Version: aurora-0.5.1 (04/10/2024)
-
Version: 0.5.0 (28/08/2024)
LICENSE
0 → 100644
Просмотр файла @
1117c3f1
Copyright (c) 2024 Open Mobile Platform LLC <community@omp.ru>
# The 3-Clause BSD License
_Copyright (C) 2023. Open Mobile Platform LLC._
Redistribution and use in source and binary forms,
with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain
the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce
the above copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
README.md
Просмотр файла @
1117c3f1
...
@@ -13,9 +13,8 @@ dependencies:
...
@@ -13,9 +13,8 @@ dependencies:
wakelock_plus
:
^1.1.1
wakelock_plus
:
^1.1.1
wakelock_plus_aurora
:
wakelock_plus_aurora
:
git
:
git
:
url
:
https://gitlab.com/omprussia/flutter/flutter-plugins.git
url
:
https://gitlab.com/omprussia/flutter/flutter-community-plugins/wakelock_plus.git
ref
:
wakelock_plus_aurora-0.5.0
ref
:
aurora-0.5.2
path
:
packages/wakelock_plus/wakelock_plus_aurora
```
```
***.dart**
***.dart**
...
...
example/aurora/.gitignore
Просмотр файла @
1117c3f1
flutter
/ephemeral
/
flutter
example/lib/main.dart
Просмотр файла @
1117c3f1
...
@@ -8,8 +8,7 @@ import 'package:internal_aurora/list_item_info.dart';
...
@@ -8,8 +8,7 @@ import 'package:internal_aurora/list_item_info.dart';
import
'package:internal_aurora/list_separated.dart'
;
import
'package:internal_aurora/list_separated.dart'
;
import
'package:internal_aurora/theme/colors.dart'
;
import
'package:internal_aurora/theme/colors.dart'
;
import
'package:internal_aurora/theme/theme.dart'
;
import
'package:internal_aurora/theme/theme.dart'
;
import
'package:wakelock_plus/wakelock_plus.dart'
;
import
'plugin_impl.dart'
;
void
main
()
{
void
main
()
{
runApp
(
const
MyApp
());
runApp
(
const
MyApp
());
...
@@ -29,16 +28,15 @@ class _MyAppState extends State<MyApp> {
...
@@ -29,16 +28,15 @@ class _MyAppState extends State<MyApp> {
@override
@override
void
initState
()
{
void
initState
()
{
_init
();
super
.
initState
();
super
.
initState
();
_init
();
}
}
/// The method should not change its name for standardization
/// The method should not change its name for standardization
Future
<
void
>
_init
()
async
{
Future
<
void
>
_init
()
async
{
if
(
!
mounted
)
return
;
if
(
!
mounted
)
return
;
setState
(()
async
{
_isEnable
=
await
_impl
.
isEnable
();
_isEnable
=
await
_impl
.
isEnable
();
setState
(()
{});
});
}
}
@override
@override
...
@@ -78,3 +76,16 @@ class _MyAppState extends State<MyApp> {
...
@@ -78,3 +76,16 @@ class _MyAppState extends State<MyApp> {
);
);
}
}
}
}
/// Main features of the plugin wakelock_plus
class
PluginImpl
{
/// Check is enable Wakelock
Future
<
bool
>
isEnable
()
{
return
WakelockPlus
.
enabled
;
}
/// Set state Wakelock
Future
<
void
>
setStateWakelockPlus
(
bool
enable
)
{
return
WakelockPlus
.
toggle
(
enable:
enable
);
}
}
example/lib/plugin_impl.dart
удалено
100644 → 0
Просмотр файла @
93372baf
// SPDX-FileCopyrightText: Copyright 2024 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
import
'package:wakelock_plus/wakelock_plus.dart'
;
/// Main features of the plugin wakelock_plus
class
PluginImpl
{
/// Check is enable Wakelock
Future
<
bool
>
isEnable
()
{
return
WakelockPlus
.
enabled
;
}
/// Set state Wakelock
Future
<
void
>
setStateWakelockPlus
(
bool
enable
)
{
return
WakelockPlus
.
toggle
(
enable:
enable
);
}
}
example/pubspec.lock
Просмотр файла @
1117c3f1
...
@@ -77,10 +77,10 @@ packages:
...
@@ -77,10 +77,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: ffi
name: ffi
sha256: "
7b
f0ad
c28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878
"
sha256: "
16ed7b077e
f0
1
ad
6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6
"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "2.1.
0
"
version: "2.1.
3
"
flutter:
flutter:
dependency: "direct main"
dependency: "direct main"
description: flutter
description: flutter
...
@@ -113,10 +113,10 @@ packages:
...
@@ -113,10 +113,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: http
name: http
sha256:
a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba
sha256:
b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "1.2.
0
"
version: "1.2.
2
"
http_parser:
http_parser:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -129,27 +129,43 @@ packages:
...
@@ -129,27 +129,43 @@ packages:
dependency: "direct main"
dependency: "direct main"
description:
description:
path: "."
path: "."
ref:
HEAD
ref:
"aurora-0.5.3"
resolved-ref: "
41e35bd06165ea00202f8f3b4b53e63bff06c7f1
"
resolved-ref: "
3f431b4d45049e5a60254fa566ce3181847c2dfe
"
url: "https://gitlab.com/omprussia/flutter/flutter-community-plugins/internal_aurora.git"
url: "https://gitlab.com/omprussia/flutter/flutter-community-plugins/internal_aurora.git"
source: git
source: git
version: "0.5.
1
"
version: "0.5.
3
"
intl:
intl:
dependency: transitive
dependency: transitive
description:
description:
name: intl
name: intl
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
url: "https://pub.dev"
source: hosted
version: "0.19.0"
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
url: "https://pub.dev"
source: hosted
version: "10.0.5"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "
0.18.1
"
version: "
3.0.5
"
js
:
leak_tracker_testing
:
dependency: transitive
dependency: transitive
description:
description:
name:
js
name:
leak_tracker_testing
sha256:
c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f6
1ef07
1838cf
sha256:
"6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca
1e
8
f07
9a47290fb06d3"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "
0.7
.1"
version: "
3.0
.1"
lints:
lints:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -162,50 +178,50 @@ packages:
...
@@ -162,50 +178,50 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: matcher
name: matcher
sha256:
"1803e76e6653768d64ed8ff2e1e67bea3ad4b92
3eb
5
c56
a295c3e634bad5960e"
sha256:
d2323aa2060500f906aa31a895b4030b6da
3eb
dc
c56
19d14ce1aada65cd161cb
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "0.12.16"
version: "0.12.16
+1
"
material_color_utilities:
material_color_utilities:
dependency: transitive
dependency: transitive
description:
description:
name: material_color_utilities
name: material_color_utilities
sha256:
"9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
sha256:
f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "0.
5.0
"
version: "0.
11.1
"
meta:
meta:
dependency: transitive
dependency: transitive
description:
description:
name: meta
name: meta
sha256:
a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
sha256:
bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "1.1
0
.0"
version: "1.1
5
.0"
package_info_plus:
package_info_plus:
dependency: transitive
dependency: transitive
description:
description:
name: package_info_plus
name: package_info_plus
sha256: "8
8bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79
"
sha256: "8
94f37107424311bdae3e476552229476777b8752c5a2a2369c0cb9a2d5442ef
"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "
5
.0.
1
"
version: "
8
.0.
3
"
package_info_plus_platform_interface:
package_info_plus_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
name: package_info_plus_platform_interface
name: package_info_plus_platform_interface
sha256:
"9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6"
sha256:
ac1f4a4847f1ade8e6a87d1f39f5d7c67490738642e2542f559ec38c37489a66
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "
2
.0.1"
version: "
3
.0.1"
path:
path:
dependency: transitive
dependency: transitive
description:
description:
name: path
name: path
sha256: "
8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917
"
sha256: "
087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af
"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "1.
8.3
"
version: "1.
9.0
"
petitparser:
petitparser:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -271,10 +287,10 @@ packages:
...
@@ -271,10 +287,10 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: test_api
name: test_api
sha256: "5
c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954
b"
sha256: "5
b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4dd
b"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "0.
6.1
"
version: "0.
7.2
"
typed_data:
typed_data:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -291,45 +307,53 @@ packages:
...
@@ -291,45 +307,53 @@ packages:
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "2.1.4"
version: "2.1.4"
vm_service:
dependency: transitive
description:
name: vm_service
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
url: "https://pub.dev"
source: hosted
version: "14.2.4"
wakelock_plus:
wakelock_plus:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: wakelock_plus
name: wakelock_plus
sha256:
"26ebc8b5e0037c15e2a1b661dcec8a475cb7205befcce8a33f545ae8c86b367c"
sha256:
bf4ee6f17a2fa373ed3753ad0e602b7603f8c75af006d5b9bdade263928c0484
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "1.
1.6
"
version: "1.
2.8
"
wakelock_plus_aurora:
wakelock_plus_aurora:
dependency: "direct main"
dependency: "direct main"
description:
description:
path: ".."
path: ".."
relative: true
relative: true
source: path
source: path
version: "0.5.
0
"
version: "0.5.
2
"
wakelock_plus_platform_interface:
wakelock_plus_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
name: wakelock_plus_platform_interface
name: wakelock_plus_platform_interface
sha256: "4
0fabed5da06caff0796dc638e1f07ee395fb18801fbff3255a2372db2d80385
"
sha256: "4
22d1cdbb448079a8a62a5a770b69baa489f8f7ca21aef47800c726d404f9d16
"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "1.
1.0
"
version: "1.
2.1
"
web:
web:
dependency: transitive
dependency: transitive
description:
description:
name: web
name: web
sha256:
afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
sha256:
cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "
0.3
.0"
version: "
1.1
.0"
win32:
win32:
dependency: transitive
dependency: transitive
description:
description:
name: win32
name: win32
sha256:
"464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8"
sha256:
e5c39a90447e7c81cfec14b041cdbd0d0916bd9ebbc7fe02ab69568be703b9bd
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "5.
2
.0"
version: "5.
6
.0"
xml:
xml:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -339,5 +363,5 @@ packages:
...
@@ -339,5 +363,5 @@ packages:
source: hosted
source: hosted
version: "6.5.0"
version: "6.5.0"
sdks:
sdks:
dart: ">=3.
2.2
<4.0.0"
dart: ">=3.
5.0
<4.0.0"
flutter: ">=3.
6
.0"
flutter: ">=3.
19
.0"
example/pubspec.yaml
Просмотр файла @
1117c3f1
...
@@ -15,7 +15,9 @@ dependencies:
...
@@ -15,7 +15,9 @@ dependencies:
flutter_localizations
:
flutter_localizations
:
sdk
:
flutter
sdk
:
flutter
internal_aurora
:
internal_aurora
:
git
:
https://gitlab.com/omprussia/flutter/flutter-community-plugins/internal_aurora.git
git
:
url
:
https://gitlab.com/omprussia/flutter/flutter-community-plugins/internal_aurora.git
ref
:
aurora-0.5.3
wakelock_plus
:
^1.1.1
wakelock_plus
:
^1.1.1
wakelock_plus_aurora
:
wakelock_plus_aurora
:
path
:
../
path
:
../
...
...
pubspec.yaml
Просмотр файла @
1117c3f1
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-License-Identifier: BSD-3-Clause
name
:
wakelock_plus_aurora
name
:
wakelock_plus_aurora
description
:
Wakelock is Flutter plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping.
description
:
Wakelock is Flutter plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping.
version
:
0.5.1
version
:
0.5.2
repository
:
https://gitlab.com/omprussia/flutter/flutter-community-plugins/wakelock_plus
publish_to
:
'
none'
environment
:
environment
:
sdk
:
'
>=2.18.6
<4.0.0'
sdk
:
'
>=2.18.6
<4.0.0'
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать