~repos /only-bible-app
git clone https://pyrossh.dev/repos/only-bible-app.git
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
5b6de984
—
pyrossh 2 years ago
improve splash image
- .github/workflows/build.yml +87 -0
- .github/workflows/firebase-hosting.yml +0 -26
- android/app/src/main/res/drawable-v21/background.png +0 -0
- android/app/src/main/res/drawable/background.png +0 -0
- android/app/src/main/res/values-night-v31/styles.xml +1 -1
- android/app/src/main/res/values-v31/styles.xml +1 -1
- design/icon.curve +0 -0
- ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png +0 -0
- pubspec.yaml +2 -2
- web/index.html +7 -1
.github/workflows/build.yml
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: Deploy to Firebase Hosting on merge
|
|
2
|
+
'on':
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- master
|
|
6
|
+
jobs:
|
|
7
|
+
web:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v3
|
|
11
|
+
- uses: subosito/flutter-action@v2
|
|
12
|
+
with:
|
|
13
|
+
flutter-version: '3.10.6'
|
|
14
|
+
channel: 'stable'
|
|
15
|
+
cache: true
|
|
16
|
+
- run: flutter --version
|
|
17
|
+
- run: flutter pub get
|
|
18
|
+
- run: flutter build web
|
|
19
|
+
- uses: FirebaseExtended/action-hosting-deploy@v0
|
|
20
|
+
env:
|
|
21
|
+
FIREBASE_CLI_EXPERIMENTS: webframeworks
|
|
22
|
+
with:
|
|
23
|
+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
|
24
|
+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ONLY_BIBLE_APP }}'
|
|
25
|
+
channelId: live
|
|
26
|
+
projectId: only-bible-app
|
|
27
|
+
android:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v3
|
|
31
|
+
- uses: actions/setup-java@v2
|
|
32
|
+
with:
|
|
33
|
+
distribution: 'zulu'
|
|
34
|
+
java-version: '11'
|
|
35
|
+
- uses: subosito/flutter-action@v2
|
|
36
|
+
with:
|
|
37
|
+
flutter-version: '3.10.6'
|
|
38
|
+
channel: 'stable'
|
|
39
|
+
cache: true
|
|
40
|
+
- run: flutter build appbundle
|
|
41
|
+
ios:
|
|
42
|
+
runs-on: macos-latest
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v3
|
|
45
|
+
- uses: subosito/flutter-action@v2
|
|
46
|
+
with:
|
|
47
|
+
flutter-version: '3.10.6'
|
|
48
|
+
channel: 'stable'
|
|
49
|
+
architecture: x64
|
|
50
|
+
- run: flutter build ios --release --no-codesign
|
|
51
|
+
macos:
|
|
52
|
+
runs-on: macos-latest
|
|
53
|
+
steps:
|
|
54
|
+
- uses: actions/checkout@v3
|
|
55
|
+
- uses: subosito/flutter-action@v2
|
|
56
|
+
with:
|
|
57
|
+
flutter-version: '3.10.6'
|
|
58
|
+
channel: 'stable'
|
|
59
|
+
architecture: x64
|
|
60
|
+
cache: true
|
|
61
|
+
- run: flutter config --enable-macos-desktop
|
|
62
|
+
- run: flutter build macos
|
|
63
|
+
windows:
|
|
64
|
+
runs-on: windows-latest
|
|
65
|
+
steps:
|
|
66
|
+
- uses: actions/checkout@v3
|
|
67
|
+
- uses: subosito/flutter-action@v2
|
|
68
|
+
with:
|
|
69
|
+
flutter-version: '3.10.6'
|
|
70
|
+
channel: 'beta'
|
|
71
|
+
cache: true
|
|
72
|
+
- run: flutter config --enable-windows-desktop
|
|
73
|
+
- run: flutter build windows
|
|
74
|
+
linux:
|
|
75
|
+
runs-on: ubuntu-latest
|
|
76
|
+
steps:
|
|
77
|
+
- uses: actions/checkout@v3
|
|
78
|
+
- uses: subosito/flutter-action@v2
|
|
79
|
+
with:
|
|
80
|
+
flutter-version: '3.10.6'
|
|
81
|
+
channel: 'stable'
|
|
82
|
+
cache: true
|
|
83
|
+
- run: |
|
|
84
|
+
sudo apt-get update -y
|
|
85
|
+
sudo apt-get install -y ninja-build libgtk-3-dev
|
|
86
|
+
- run: flutter config --enable-linux-desktop
|
|
87
|
+
- run: flutter build linux
|
.github/workflows/firebase-hosting.yml
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: Deploy to Firebase Hosting on merge
|
|
2
|
-
'on':
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- master
|
|
6
|
-
jobs:
|
|
7
|
-
build_and_deploy:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v3
|
|
11
|
-
- uses: subosito/flutter-action@v2
|
|
12
|
-
with:
|
|
13
|
-
flutter-version: '3.10.6'
|
|
14
|
-
channel: 'stable'
|
|
15
|
-
cache: true
|
|
16
|
-
- run: flutter --version
|
|
17
|
-
- run: flutter pub get
|
|
18
|
-
- run: flutter build web
|
|
19
|
-
- uses: FirebaseExtended/action-hosting-deploy@v0
|
|
20
|
-
env:
|
|
21
|
-
FIREBASE_CLI_EXPERIMENTS: webframeworks
|
|
22
|
-
with:
|
|
23
|
-
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
|
24
|
-
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ONLY_BIBLE_APP }}'
|
|
25
|
-
channelId: live
|
|
26
|
-
projectId: only-bible-app
|
android/app/src/main/res/drawable-v21/background.png
CHANGED
|
Binary file
|
android/app/src/main/res/drawable/background.png
CHANGED
|
Binary file
|
android/app/src/main/res/values-night-v31/styles.xml
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<item name="android:windowFullscreen">false</item>
|
|
7
7
|
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
|
|
8
8
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
9
|
-
<item name="android:windowSplashScreenBackground">#
|
|
9
|
+
<item name="android:windowSplashScreenBackground">#FFFFFF</item>
|
|
10
10
|
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
|
|
11
11
|
</style>
|
|
12
12
|
<!-- Theme applied to the Android Window as soon as the process has started.
|
android/app/src/main/res/values-v31/styles.xml
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<item name="android:windowFullscreen">false</item>
|
|
7
7
|
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
|
|
8
8
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
|
9
|
-
<item name="android:windowSplashScreenBackground">#
|
|
9
|
+
<item name="android:windowSplashScreenBackground">#FFFFFF</item>
|
|
10
10
|
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
|
|
11
11
|
</style>
|
|
12
12
|
<!-- Theme applied to the Android Window as soon as the process has started.
|
design/icon.curve
CHANGED
|
Binary file
|
ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png
CHANGED
|
Binary file
|
pubspec.yaml
CHANGED
|
@@ -66,8 +66,8 @@ flutter_launcher_icons:
|
|
|
66
66
|
generate: true
|
|
67
67
|
|
|
68
68
|
flutter_native_splash:
|
|
69
|
-
color: "#
|
|
69
|
+
color: "#FFFFFF"
|
|
70
70
|
image: "assets/icon.png"
|
|
71
71
|
android_12:
|
|
72
72
|
image: "assets/icon.png"
|
|
73
|
-
color: "#
|
|
73
|
+
color: "#FFFFFF"
|
web/index.html
CHANGED
|
@@ -55,6 +55,10 @@
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
58
62
|
<style id="splash-screen-style">
|
|
59
63
|
html {
|
|
60
64
|
height: 100%
|
|
@@ -63,7 +67,7 @@
|
|
|
63
67
|
body {
|
|
64
68
|
margin: 0;
|
|
65
69
|
min-height: 100%;
|
|
66
|
-
background-color: #
|
|
70
|
+
background-color: #FFFFFF;
|
|
67
71
|
background-size: 100% 100%;
|
|
68
72
|
}
|
|
69
73
|
|
|
@@ -133,6 +137,8 @@
|
|
|
133
137
|
|
|
134
138
|
|
|
135
139
|
|
|
140
|
+
|
|
141
|
+
|
|
136
142
|
<script>
|
|
137
143
|
window.addEventListener('load', function(ev) {
|
|
138
144
|
// Download main.dart.js
|