improving splash
This commit is contained in:
@@ -41,7 +41,7 @@ flutter run --dart-define=APP_ENV=live
|
|||||||
```bash
|
```bash
|
||||||
flutter build web --dart-define=APP_ENV=live
|
flutter build web --dart-define=APP_ENV=live
|
||||||
flutter build apk --dart-define=APP_ENV=live --dart-define=BASE_URL=https://payapi.velocityafrica.net/api
|
flutter build apk --dart-define=APP_ENV=live --dart-define=BASE_URL=https://payapi.velocityafrica.net/api
|
||||||
flutter build appdundle --dart-define=APP_ENV=live --dart-define=BASE_URL=https://payapi.velocityafrica.net/api
|
flutter build appbundle --dart-define-from-file=config.json
|
||||||
```
|
```
|
||||||
|
|
||||||
### Quick pre-release checks
|
### Quick pre-release checks
|
||||||
|
|||||||
4
config.json
Normal file
4
config.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"APP_ENV": "live",
|
||||||
|
"BASE_URL": "https://payapi.velocityafrica.net/api"
|
||||||
|
}
|
||||||
@@ -247,7 +247,6 @@ class _SplashScreenState extends State<SplashScreen>
|
|||||||
/// user can install the latest version. No cache clearing needed.
|
/// user can install the latest version. No cache clearing needed.
|
||||||
void _showMobileUpdateSheet(SplashProvider provider, String version) {
|
void _showMobileUpdateSheet(SplashProvider provider, String version) {
|
||||||
final message =
|
final message =
|
||||||
provider.updatePayload?['message']?.toString() ??
|
|
||||||
'A new version of the app is available. Please download the latest version from the store.';
|
'A new version of the app is available. Please download the latest version from the store.';
|
||||||
final downloadUrl = provider.downloadUrl;
|
final downloadUrl = provider.downloadUrl;
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.1+3
|
version: 1.0.2+4
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.9.2
|
sdk: ^3.9.2
|
||||||
|
|||||||
Reference in New Issue
Block a user