forked from nt4f04uNd/sweyer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ended splash screen Some other fixes
- Loading branch information
Showing
31 changed files
with
1,263 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"catcher","dependencies":["fluttertoast","device_info","package_info","flutter_local_notifications","flutter_mailer"]},{"name":"device_info","dependencies":[]},{"name":"flutter_local_notifications","dependencies":[]},{"name":"flutter_mailer","dependencies":[]},{"name":"fluttertoast","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"path_provider","dependencies":[]},{"name":"permission_handler","dependencies":[]},{"name":"shared_preferences","dependencies":[]}]} | ||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"catcher","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\catcher-0.2.4\\\\","dependencies":["fluttertoast","device_info","package_info","flutter_local_notifications","flutter_mailer"]},{"name":"device_info","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\device_info-0.4.0+2\\\\","dependencies":[]},{"name":"flutter_local_notifications","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_local_notifications-0.8.3\\\\","dependencies":[]},{"name":"flutter_mailer","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_mailer-0.4.1+2\\\\","dependencies":[]},{"name":"fluttertoast","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-3.1.3\\\\","dependencies":[]},{"name":"package_info","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\package_info-0.4.0+6\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.3.0\\\\","dependencies":[]},{"name":"permission_handler","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\permission_handler-3.2.2\\\\","dependencies":[]},{"name":"shared_preferences","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences-0.5.3+4\\\\","dependencies":[]}],"android":[{"name":"catcher","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\catcher-0.2.4\\\\","dependencies":["fluttertoast","device_info","package_info","flutter_local_notifications","flutter_mailer"]},{"name":"device_info","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\device_info-0.4.0+2\\\\","dependencies":[]},{"name":"flutter_local_notifications","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_local_notifications-0.8.3\\\\","dependencies":[]},{"name":"flutter_mailer","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_mailer-0.4.1+2\\\\","dependencies":[]},{"name":"fluttertoast","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-3.1.3\\\\","dependencies":[]},{"name":"package_info","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\package_info-0.4.0+6\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.3.0\\\\","dependencies":[]},{"name":"permission_handler","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\permission_handler-3.2.2\\\\","dependencies":[]},{"name":"shared_preferences","path":"C:\\\\Users\\\\danya\\\\AppData\\\\Roaming\\\\Pub\\\\Cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences-0.5.3+4\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"catcher","dependencies":["fluttertoast","device_info","package_info","flutter_local_notifications","flutter_mailer"]},{"name":"device_info","dependencies":[]},{"name":"flutter_local_notifications","dependencies":[]},{"name":"flutter_mailer","dependencies":[]},{"name":"fluttertoast","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"path_provider","dependencies":[]},{"name":"permission_handler","dependencies":[]},{"name":"shared_preferences","dependencies":[]}],"date_created":"2020-02-21 02:55:47.419943","version":"1.15.4-pre.83"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
android/app/src/main/java/com/nt4f04uNd/sweyer/handlers/WakelockHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.nt4f04uNd.sweyer.handlers; | ||
|
||
import android.content.Context; | ||
import android.os.PowerManager; | ||
|
||
import com.nt4f04uNd.sweyer.Constants; | ||
|
||
public abstract class WakelockHandler { | ||
private static PowerManager.WakeLock wl; | ||
|
||
public static void acquire() { | ||
if (wl == null) { | ||
PowerManager powerManager = (PowerManager) GeneralHandler.getAppContext().getSystemService(Context.POWER_SERVICE); | ||
if (powerManager == null) return; | ||
wl = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, Constants.PACKAGE_NAME + ":wakeLockTag"); | ||
wl.acquire(); | ||
|
||
} | ||
} | ||
|
||
public static void release() { | ||
if (wl != null && wl.isHeld()) { | ||
wl.release(); | ||
wl = null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
android/app/src/main/res/drawable/launch_background_dark.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Modify this file to customize your launch splash screen --> | ||
<?xml version="1.0" encoding="utf-8"?><!-- Modify this file to customize your launch splash screen --> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<!-- You can insert your own image assets here --> | ||
<item android:drawable="@color/main_dark" />--> | ||
<!-- You can insert your own image assets here --> | ||
<item android:drawable="@color/main_dark" /> | ||
<item> | ||
<bitmap android:gravity="center" android:src="@drawable/screen_dark" /> | ||
<bitmap | ||
android:gravity="center" | ||
android:src="@drawable/screen_dark" /> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<style name="LaunchThemeSystemUI" parent="@android:style/Theme.Black.NoTitleBar"> | ||
<!-- <item name="android:navigationBarColor">@color/main_dark</item>--> | ||
<!-- Show a splash screen on the activity. Automatically removed when | ||
Flutter draws its first frame --> | ||
<item name="android:windowBackground">@drawable/launch_background_dark</item> | ||
</style> | ||
|
||
|
||
<color name="main_light">#fff</color> | ||
|
||
<color name="main_dark">#262626</color> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<style name="LaunchThemeSystemUILight" parent="@android:style/Theme.Black.NoTitleBar"> | ||
<style name="LaunchThemeSystemUI" parent="@android:style/Theme.Black.NoTitleBar"> | ||
<!-- <item name="android:navigationBarColor">@color/main_light</item>--> | ||
<item name="android:windowBackground">@drawable/launch_background_light</item> | ||
</style> | ||
|
||
<style name="LaunchThemeSystemUIDark" parent="@android:style/Theme.Black.NoTitleBar"> | ||
<!-- <item name="android:navigationBarColor">@color/main_dark</item>--> | ||
<!-- Show a splash screen on the activity. Automatically removed when | ||
Flutter draws its first frame --> | ||
<!-- TODO:make theme respectful splash screen --> | ||
Flutter draws its first frame --> | ||
<item name="android:windowBackground">@drawable/launch_background_light</item> | ||
</style> | ||
|
||
|
||
<color name="main_light">#fff</color> | ||
|
||
<color name="main_dark">#262626</color> | ||
<color name="main_dark_">#000</color> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.