From 18b0ebe85ad91c40fe24a93836cc36c47e7c4a6f Mon Sep 17 00:00:00 2001 From: Mohammed Date: Sun, 26 May 2024 23:51:55 +0100 Subject: [PATCH 01/13] test flutter_distributor on android --- .github/workflows/deploy.yaml | 60 ++++++++++++++++------------------- distribute_options.yaml | 15 +++++++++ pubspec.yaml | 2 +- 3 files changed, 43 insertions(+), 34 deletions(-) create mode 100644 distribute_options.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index ade679e..d9cf2d1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,6 +1,9 @@ name: Deploy Android & Web on: - # Enable manual run + push: + branches: + - 125-use-flutter-distributor-instead-of-fastlane-for-deployment + workflow_dispatch: inputs: bump_version: @@ -28,24 +31,24 @@ on: permissions: read-all jobs: - build_web: - name: Build Flutter (Web) - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: subosito/flutter-action@v2 - with: - channel: 'stable' - - run: flutter pub get - - run: flutter config --enable-web - - run: flutter build web - - name: Deploy to Firebase - uses: w9jds/firebase-action@master - with: - args: deploy --only hosting --public web-build - env: - GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} - PROJECT_ID: default + # build_web: + # name: Build Flutter (Web) + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - uses: subosito/flutter-action@v2 + # with: + # channel: 'stable' + # - run: flutter pub get + # - run: flutter config --enable-web + # - run: flutter build web + # - name: Deploy to Firebase + # uses: w9jds/firebase-action@master + # with: + # args: deploy --only hosting --public web-build + # env: + # GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} + # PROJECT_ID: default deploy-android: name: Build & Deploy Android Release to ${{ github.event.inputs.track }} track @@ -56,16 +59,10 @@ jobs: with: channel: stable - run: flutter doctor -v - # Checkout Repo code - name: Checkout Repo uses: actions/checkout@v3 - # Setup Ruby, Bundler, Gemfile & flutter dependencies & Build Android - - name: Setup Fastlane - uses: ruby/setup-ruby@72d59482210349c1114eca714b6c5df19fbbec34 - with: - ruby-version: "2.6" - bundler-cache: true - working-directory: android + - name: install flutter distributor + run: dart pub global activate flutter_distributor - name: Configure Keystore run: | @@ -74,6 +71,8 @@ jobs: echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> key.properties echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> key.properties echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> key.properties + echo "$PLAY_STORE_CONFIG_JSON" | base64 --decode > app/playstore_cer.jks + export PLAYSTORE_CREDENTIALS="app/playstore_cer.jks" env: PLAY_STORE_UPLOAD_KEY: ${{ secrets.PLAY_STORE_UPLOAD_KEY }} KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }} @@ -81,9 +80,4 @@ jobs: KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }} working-directory: android - - run: bundle exec fastlane bump_version bump:${{ github.event.inputs.bump_version }} push:${{ github.event.inputs.create_tag_and_push }} branch:${{ github.ref_name }} - working-directory: android - - run: bundle exec fastlane android deploy track:${{ github.event.inputs.track }} - working-directory: android - env: - PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }} \ No newline at end of file + - run: flutter_distributor release --name dev \ No newline at end of file diff --git a/distribute_options.yaml b/distribute_options.yaml new file mode 100644 index 0000000..a78e300 --- /dev/null +++ b/distribute_options.yaml @@ -0,0 +1,15 @@ +output: dist/ +releases: + - name: dev + jobs: + - name: build-aab + package: + platform: android + target: aab + build_args: + target-platform: android-arm + # Publish to playstore + publish: + target: playstore + args: + package-name: com.flutter.cicd \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 022c6c2..fe261c2 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 # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 2.8.0+25 +version: 2.8.0+26 environment: sdk: ">=2.17.6 <3.0.0" From 86be31fa284fb91bdd2aba8f2568f634757b7db6 Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 00:02:50 +0100 Subject: [PATCH 02/13] updated flutter rocket package --- lib/models/photo_model.dart | 3 ++- lib/models/post_model.dart | 3 ++- lib/models/todo.dart | 3 ++- lib/models/todos.dart | 3 ++- lib/models/user_model.dart | 3 ++- lib/models/user_submodel/address_submodel.dart | 3 ++- lib/models/user_submodel/company_submodel.dart | 3 ++- lib/models/user_submodel/geo_submodel.dart | 3 ++- lib/views/photo_view.dart | 2 +- lib/views/post_view.dart | 2 +- lib/views/todos_view.dart | 2 +- lib/views/user_view.dart | 2 +- pubspec.yaml | 2 +- test/fake_rocket_client.dart | 11 +++++++---- 14 files changed, 28 insertions(+), 17 deletions(-) diff --git a/lib/models/photo_model.dart b/lib/models/photo_model.dart index cabef27..1df9d0b 100755 --- a/lib/models/photo_model.dart +++ b/lib/models/photo_model.dart @@ -22,7 +22,8 @@ class Photo extends RocketModel { }); @override - void fromJson(Map json, {bool isSub = false}) { + void fromJson(Map? json, {bool isSub = false}) { + if (json == null) return; albumId = json[photoAlbumIdField]; id = json[photoIdField]; title = json[photoTitleField]; diff --git a/lib/models/post_model.dart b/lib/models/post_model.dart index c70c1be..483c94e 100755 --- a/lib/models/post_model.dart +++ b/lib/models/post_model.dart @@ -21,7 +21,8 @@ class Post extends RocketModel { }); @override - void fromJson(Map json, {bool isSub = false}) { + void fromJson(Map? json, {bool isSub = false}) { + if (json == null) return; userId = json[postUserIdField]; id = json[postIdField]; title = json[postTitleField]; diff --git a/lib/models/todo.dart b/lib/models/todo.dart index 8b20b8f..ff1a86c 100644 --- a/lib/models/todo.dart +++ b/lib/models/todo.dart @@ -19,7 +19,8 @@ class Todos extends RocketModel { }); @override - void fromJson(Map json, {bool isSub = false}) { + void fromJson(Map? json, {bool isSub = false}) { + if (json == null) return; userId = json[todoUserIdField]; id = json[todoIdField]; title = json[todoTitleField]; diff --git a/lib/models/todos.dart b/lib/models/todos.dart index b0b12f5..f2ba69d 100644 --- a/lib/models/todos.dart +++ b/lib/models/todos.dart @@ -19,7 +19,8 @@ class Todos extends RocketModel { }); @override - void fromJson(Map json, {bool isSub = false}) { + void fromJson(Map? json, {bool isSub = false}) { + if (json == null) return; userId = json[todosUserIdField]; id = json[todosIdField]; title = json[todosTitleField]; diff --git a/lib/models/user_model.dart b/lib/models/user_model.dart index 6e9c614..d15650e 100755 --- a/lib/models/user_model.dart +++ b/lib/models/user_model.dart @@ -39,7 +39,8 @@ class User extends RocketModel { } @override - void fromJson(Map json, {bool isSub = false}) { + void fromJson(Map? json, {bool isSub = false}) { + if (json == null) return; id = json[userIdField]; name = json[userNameField]; username = json[userUsernameField]; diff --git a/lib/models/user_submodel/address_submodel.dart b/lib/models/user_submodel/address_submodel.dart index d8c241e..79f9101 100644 --- a/lib/models/user_submodel/address_submodel.dart +++ b/lib/models/user_submodel/address_submodel.dart @@ -25,7 +25,8 @@ class Address extends RocketModel
{ } @override - void fromJson(Map json, {bool isSub = false}) { + void fromJson(Map? json, {bool isSub = false}) { + if (json == null) return; street = json[addressStreetField]; suite = json[addressSuiteField]; city = json[addressCityField]; diff --git a/lib/models/user_submodel/company_submodel.dart b/lib/models/user_submodel/company_submodel.dart index f16ca07..3d9d88c 100644 --- a/lib/models/user_submodel/company_submodel.dart +++ b/lib/models/user_submodel/company_submodel.dart @@ -16,7 +16,8 @@ class Company extends RocketModel { }); @override - void fromJson(Map json, {bool isSub = false}) { + void fromJson(Map? json, {bool isSub = false}) { + if (json == null) return; name = json[companyNameField]; catchPhrase = json[companyCatchPhraseField]; bs = json[companyBsField]; diff --git a/lib/models/user_submodel/geo_submodel.dart b/lib/models/user_submodel/geo_submodel.dart index d447c54..a4bd84f 100644 --- a/lib/models/user_submodel/geo_submodel.dart +++ b/lib/models/user_submodel/geo_submodel.dart @@ -12,7 +12,8 @@ class Geo extends RocketModel { this.lng, }); @override - void fromJson(Map json, {bool isSub = false}) { + void fromJson(Map? json, {bool isSub = false}) { + if (json == null) return; lat = json[geoLatField]; lng = json[geoLngField]; super.fromJson(json, isSub: isSub); diff --git a/lib/views/photo_view.dart b/lib/views/photo_view.dart index 5e78f2a..2956bde 100755 --- a/lib/views/photo_view.dart +++ b/lib/views/photo_view.dart @@ -18,7 +18,7 @@ class PhotoExample extends StatelessWidget { width: MediaQuery.of(context).size.width, child: RocketView( model: photo, - loader: const CircularProgressIndicator(), + onLoading: () => const CircularProgressIndicator(), // get 5000 items call: () => GetPhotos.getPhotos(photo), builder: (context, modelState) { diff --git a/lib/views/post_view.dart b/lib/views/post_view.dart index 0fa6764..1d56455 100755 --- a/lib/views/post_view.dart +++ b/lib/views/post_view.dart @@ -47,7 +47,7 @@ class PostExample extends StatelessWidget { // callType: CallType.callAsStream, // secondsOfStream: 1, // customized your loading (default widget is CircularProgressIndicator) - loader: const CircularProgressIndicator(), + onLoading: () => const CircularProgressIndicator(), // handle errors onError: (RocketException exception, Function() reload) { diff --git a/lib/views/todos_view.dart b/lib/views/todos_view.dart index 700aec6..a214813 100644 --- a/lib/views/todos_view.dart +++ b/lib/views/todos_view.dart @@ -23,7 +23,7 @@ class TodosExample extends StatelessWidget { body: RocketView( model: todoModel, call: () => GetTodos.getTodos(todoModel), - loader: const CircularProgressIndicator(), + onLoading: () => const CircularProgressIndicator(), callType: CallType.callIfModelEmpty, builder: (context, state) { return ListView.builder( diff --git a/lib/views/user_view.dart b/lib/views/user_view.dart index 3288c05..f99281c 100755 --- a/lib/views/user_view.dart +++ b/lib/views/user_view.dart @@ -38,7 +38,7 @@ class UserExample extends StatelessWidget { // your model model: users, // your widget for show data from model - loader: const CircularProgressIndicator(), + onLoading: () => const CircularProgressIndicator(), builder: (context, modelState) { return ListView.builder( itemCount: users.all!.length, diff --git a/pubspec.yaml b/pubspec.yaml index fe261c2..0f7289f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -30,7 +30,7 @@ environment: dependencies: flutter: sdk: flutter - flutter_rocket: ^0.0.1 + flutter_rocket: ^0.0.7 # The following adds the Cupertino Icons font to your application. diff --git a/test/fake_rocket_client.dart b/test/fake_rocket_client.dart index 3ee76a5..23a3d40 100644 --- a/test/fake_rocket_client.dart +++ b/test/fake_rocket_client.dart @@ -6,13 +6,16 @@ class RocketClientTest extends RocketClient { this.dummyData, ) : super(url: ''); @override - Future request(String endpoint, + @override + Future request(String endpoint, {RocketModel? model, HttpMethods method = HttpMethods.get, - Function(dynamic data)? inspect, - List? targetData, + RocketDataCallback? inspect, + List? target, + RocketOnError? onError, Map? data, - Map? params}) async { + Map? params, + RetryOptions retryOptions = const RetryOptions()}) async { model!.state = RocketState.loading; await Future.delayed(const Duration(seconds: 1)); try { From 8c68a03324f85a59dfbd187250296398b49c2b2a Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 00:11:28 +0100 Subject: [PATCH 03/13] Fixed PLAYSTORE_CREDENTIALS issue --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d9cf2d1..b34e2bf 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -71,8 +71,8 @@ jobs: echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> key.properties echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> key.properties echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> key.properties - echo "$PLAY_STORE_CONFIG_JSON" | base64 --decode > app/playstore_cer.jks - export PLAYSTORE_CREDENTIALS="app/playstore_cer.jks" + echo "$PLAY_STORE_CONFIG_JSON" | base64 --decode > app/playstore_cer.json + export PLAYSTORE_CREDENTIALS="app/playstore_cer.json" env: PLAY_STORE_UPLOAD_KEY: ${{ secrets.PLAY_STORE_UPLOAD_KEY }} KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }} From 2dce3a13268c040cd3258b230c00c6d99692f0a1 Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 00:16:25 +0100 Subject: [PATCH 04/13] Added PLAY_STORE_CONFIG_JSON env --- .github/workflows/deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index b34e2bf..5238d5e 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -78,6 +78,7 @@ jobs: KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }} KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }} KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }} + PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }} working-directory: android - run: flutter_distributor release --name dev \ No newline at end of file From 39c4dd498ad1eac3f13f8e31a50a53361c4c7c1b Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 00:18:59 +0100 Subject: [PATCH 05/13] removed base64 for fix issue --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 5238d5e..34299aa 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -71,7 +71,7 @@ jobs: echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> key.properties echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> key.properties echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> key.properties - echo "$PLAY_STORE_CONFIG_JSON" | base64 --decode > app/playstore_cer.json + echo "$PLAY_STORE_CONFIG_JSON" > app/playstore_cer.json export PLAYSTORE_CREDENTIALS="app/playstore_cer.json" env: PLAY_STORE_UPLOAD_KEY: ${{ secrets.PLAY_STORE_UPLOAD_KEY }} From 3238a6d4e40b7efa368552d9f7353c3f6695afc3 Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 00:25:53 +0100 Subject: [PATCH 06/13] fixed path issue --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 34299aa..628afa3 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -13,7 +13,7 @@ on: type: string create_tag_and_push: - description: 'Create new tag & Push bump version' + description: "Create new tag & Push bump version" required: true default: true type: boolean @@ -72,7 +72,7 @@ jobs: echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> key.properties echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> key.properties echo "$PLAY_STORE_CONFIG_JSON" > app/playstore_cer.json - export PLAYSTORE_CREDENTIALS="app/playstore_cer.json" + export PLAYSTORE_CREDENTIALS="android/app/playstore_cer.json" env: PLAY_STORE_UPLOAD_KEY: ${{ secrets.PLAY_STORE_UPLOAD_KEY }} KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }} From 654dbe458f8426d1141317532a3d4c8b975956bc Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 00:32:05 +0100 Subject: [PATCH 07/13] other fix on set playstore cer env --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 628afa3..6773ec0 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -71,7 +71,7 @@ jobs: echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> key.properties echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> key.properties echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> key.properties - echo "$PLAY_STORE_CONFIG_JSON" > app/playstore_cer.json + echo "$PLAY_STORE_CONFIG_JSON" >> app/playstore_cer.json export PLAYSTORE_CREDENTIALS="android/app/playstore_cer.json" env: PLAY_STORE_UPLOAD_KEY: ${{ secrets.PLAY_STORE_UPLOAD_KEY }} From 2e384185e61c455d4b09574bfc7f14444cd091ad Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 00:53:38 +0100 Subject: [PATCH 08/13] improved env usage --- .github/workflows/deploy.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6773ec0..a95161d 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -81,4 +81,12 @@ jobs: PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }} working-directory: android - - run: flutter_distributor release --name dev \ No newline at end of file + + - name: Use PLAYSTORE_CREDENTIALS + run: echo "PLAYSTORE_CREDENTIALS=$PLAYSTORE_CREDENTIALS" >> $GITHUB_ENV + env: + PLAYSTORE_CREDENTIALS: ${{ env.PLAYSTORE_CREDENTIALS }} + + - run: flutter_distributor release --name dev + env: + PLAYSTORE_CREDENTIALS: ${{ env.PLAYSTORE_CREDENTIALS }} \ No newline at end of file From eb8fd7a83c4a0d92ef7c9e3e7a2689c818e774dd Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 14:13:10 +0100 Subject: [PATCH 09/13] log PLAYSTORE_CREDENTIALS --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index a95161d..9f2b8d2 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -83,7 +83,7 @@ jobs: - name: Use PLAYSTORE_CREDENTIALS - run: echo "PLAYSTORE_CREDENTIALS=$PLAYSTORE_CREDENTIALS" >> $GITHUB_ENV + run: echo $PLAYSTORE_CREDENTIALS env: PLAYSTORE_CREDENTIALS: ${{ env.PLAYSTORE_CREDENTIALS }} From fd44023129baf147b3001fac7b7a9a373ed2cb51 Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 16:29:19 +0100 Subject: [PATCH 10/13] minoir fix (try to deploy android) --- .github/workflows/deploy.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9f2b8d2..2187b6f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -81,12 +81,6 @@ jobs: PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }} working-directory: android - - - name: Use PLAYSTORE_CREDENTIALS - run: echo $PLAYSTORE_CREDENTIALS - env: - PLAYSTORE_CREDENTIALS: ${{ env.PLAYSTORE_CREDENTIALS }} - - run: flutter_distributor release --name dev env: - PLAYSTORE_CREDENTIALS: ${{ env.PLAYSTORE_CREDENTIALS }} \ No newline at end of file + PLAYSTORE_CREDENTIALS: "android/app/playstore_cer.json" \ No newline at end of file From f3d76ddd5846e2ee802a84c51c765aea56825a47 Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 18:42:53 +0100 Subject: [PATCH 11/13] Test track for deployment --- .github/workflows/deploy.yaml | 3 +-- distribute_options.yaml | 3 ++- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2187b6f..f91c3ba 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -62,7 +62,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@v3 - name: install flutter distributor - run: dart pub global activate flutter_distributor + run: dart pub global activate --source git https://github.com/bixat/flutter_distributor.git - name: Configure Keystore run: | @@ -72,7 +72,6 @@ jobs: echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> key.properties echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> key.properties echo "$PLAY_STORE_CONFIG_JSON" >> app/playstore_cer.json - export PLAYSTORE_CREDENTIALS="android/app/playstore_cer.json" env: PLAY_STORE_UPLOAD_KEY: ${{ secrets.PLAY_STORE_UPLOAD_KEY }} KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }} diff --git a/distribute_options.yaml b/distribute_options.yaml index a78e300..d143f15 100644 --- a/distribute_options.yaml +++ b/distribute_options.yaml @@ -12,4 +12,5 @@ releases: publish: target: playstore args: - package-name: com.flutter.cicd \ No newline at end of file + package-name: com.flutter.cicd + track: alpha \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 0f7289f..fde34f8 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 # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 2.8.0+26 +version: 2.8.0+27 environment: sdk: ">=2.17.6 <3.0.0" From a5428f6e102393a4de3efc2aaa7d892dca84ce5a Mon Sep 17 00:00:00 2001 From: Mohammed CHAHBOUN Date: Mon, 27 May 2024 19:18:34 +0100 Subject: [PATCH 12/13] Fixed flutter_distributor installer --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index f91c3ba..47d8712 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -62,7 +62,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@v3 - name: install flutter distributor - run: dart pub global activate --source git https://github.com/bixat/flutter_distributor.git + run: dart pub global activate -sgit https://github.com/bixat/flutter_distributor.git --git-path packages/flutter_distributor - name: Configure Keystore run: | From 5a0064b0ac9187410c3289f5dd488c20cdde90b8 Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 27 May 2024 20:32:04 +0100 Subject: [PATCH 13/13] bump app version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index fde34f8..c8bebb8 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 # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 2.8.0+27 +version: 2.8.0+28 environment: sdk: ">=2.17.6 <3.0.0"