~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.
2bc055ca
—
pyrossh 2 years ago
fix(build): use dart define env
- .github/workflows/build.yml +5 -4
- pubspec.yaml +1 -1
- readme.md +20 -0
.github/workflows/build.yml
CHANGED
|
@@ -21,11 +21,12 @@ jobs:
|
|
|
21
21
|
flutter-version: '3.13.0'
|
|
22
22
|
channel: 'stable'
|
|
23
23
|
cache: true
|
|
24
|
-
- run:
|
|
24
|
+
- run: echo -e "TTS_SUBSCRIPTION_KEY=${{ secrets.TTS_SUBSCRIPTION_KEY }}\nRESEND_API_KEY=${{ secrets.RESEND_API_KEY }}" > .env
|
|
25
|
+
- run: flutter build appbundle --debug --dart-define-from-file=.env
|
|
25
|
-
- run: flutter build ios --release --no-codesign --dart-define
|
|
26
|
+
- run: flutter build ios --release --no-codesign --dart-define-from-file=.env
|
|
26
27
|
- run: flutter config --enable-macos-desktop
|
|
27
|
-
- run: flutter build macos --release --dart-define
|
|
28
|
+
- run: flutter build macos --release --dart-define-from-file=.env
|
|
28
|
-
- run: flutter build web --dart-define
|
|
29
|
+
- run: flutter build web --dart-define-from-file=.env
|
|
29
30
|
- run: cp build/web/index.html build/web/privacy-policy.html
|
|
30
31
|
- run: cp build/web/index.html build/web/about-us.html
|
|
31
32
|
- uses: actions/upload-pages-artifact@v1
|
pubspec.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: only_bible_app
|
|
2
2
|
description: The only bible app you will ever need
|
|
3
3
|
publish_to: 'none'
|
|
4
|
-
version: 1.0.3+
|
|
4
|
+
version: 1.0.3+6
|
|
5
5
|
|
|
6
6
|
environment:
|
|
7
7
|
sdk: '>=3.0.6 <4.0.0'
|
readme.md
CHANGED
|
@@ -63,6 +63,26 @@ flutter test
|
|
|
63
63
|
https://onlybible.app
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
|
|
67
|
+
## Release Process
|
|
68
|
+
Update version and build number in pubspec.yaml ex: 1.0.7+1
|
|
69
|
+
|
|
70
|
+
### macOS
|
|
71
|
+
```
|
|
72
|
+
flutter build macos --release --dart-define-from-file=.env
|
|
73
|
+
open macos/Runner.xcworkspace
|
|
74
|
+
```
|
|
75
|
+
* Open Product under menu -> Click Archive (It will run the build process let it complete).
|
|
76
|
+
* Run Validate -> custom
|
|
77
|
+
* Run Distribute -> custom
|
|
78
|
+
|
|
79
|
+
### iOS
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
flutter build ipa --release --dart-define-from-file=.env
|
|
83
|
+
open build/ios/archive/MyApp.xcarchive
|
|
84
|
+
```
|
|
85
|
+
|
|
66
86
|
## Bugs
|
|
67
87
|
|
|
68
88
|
1. Swipe left should pop context if chapter/book index is previous to the current one to maintain scroll history.
|