diff --git a/README.md b/README.md index a982f6e..2243045 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ flutter run --dart-define=APP_ENV=live ```bash 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 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 diff --git a/config.json b/config.json new file mode 100644 index 0000000..5a6b4b9 --- /dev/null +++ b/config.json @@ -0,0 +1,4 @@ +{ + "APP_ENV": "live", + "BASE_URL": "https://payapi.velocityafrica.net/api" +} \ No newline at end of file diff --git a/lib/screens/splash/splash_screen.dart b/lib/screens/splash/splash_screen.dart index a4547f2..f13e435 100644 --- a/lib/screens/splash/splash_screen.dart +++ b/lib/screens/splash/splash_screen.dart @@ -247,7 +247,6 @@ class _SplashScreenState extends State /// user can install the latest version. No cache clearing needed. void _showMobileUpdateSheet(SplashProvider provider, String version) { final message = - provider.updatePayload?['message']?.toString() ?? 'A new version of the app is available. Please download the latest version from the store.'; final downloadUrl = provider.downloadUrl; diff --git a/pubspec.yaml b/pubspec.yaml index 47b3d76..ce83d39 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 # 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. -version: 1.0.1+3 +version: 1.0.2+4 environment: sdk: ^3.9.2