From ae043472b8e7e1da88e43bb19a2e6fccccf1a31a Mon Sep 17 00:00:00 2001 From: Markus Blomqvist Date: Tue, 27 Apr 2021 21:28:33 +0300 Subject: [PATCH 1/3] Update npm scripts Remove unused Android and iOS scripts, add a script for creating new Android beta release. --- package.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index 2e8ee3a..2cc6de6 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,8 @@ "private": true, "scripts": { "android": "react-native run-android", - "android:prod": "yarn android --variant=release", - "android:bundle-release": "cd android && ./gradlew bundleRelease", + "android:beta": "cd android/ && rm -rf app/build/ && fastlane beta", "ios": "react-native run-ios", - "ios:prod": "yarn ios --configuration Release", - "xcode:open-workspace": "open ios/skole.xcworkspace", - "xcode:open-project": "open ios/skole.xcodeproj", "start": "react-native start", "type-check": "tsc", "format": "yarn prettier --write '**/*.{ts,tsx,js,json}'", From c3f1f620d0f3a95bf55145a021ef4686f7d28c28 Mon Sep 17 00:00:00 2001 From: Markus Blomqvist Date: Tue, 27 Apr 2021 21:29:45 +0300 Subject: [PATCH 2/3] Update Fastfile for Android Include the lane only for beta deployment since we only want to use that and promote the releases to prod later. --- android/fastlane/Fastfile | 10 ++-------- android/fastlane/README.md | 5 ----- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 91772d0..d1ce947 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -18,13 +18,7 @@ default_platform(:android) platform :android do lane :beta do gradle(task: "assemble", build_type: "Release") - upload_to_play_store(track: "beta") - slack(message: "New Play Store beta version deployed!") - end - - lane :deploy do - gradle(task: "assemble", build_type: "Release") - upload_to_play_store - slack(message: "New Play Store version deployed!") + upload_to_play_store(track: "internal") + slack(message: "New Play Store internal testing version deployed!") end end diff --git a/android/fastlane/README.md b/android/fastlane/README.md index 4e5988b..5f33624 100644 --- a/android/fastlane/README.md +++ b/android/fastlane/README.md @@ -21,11 +21,6 @@ or alternatively using `brew install fastlane` fastlane android beta ``` -### android deploy -``` -fastlane android deploy -``` - ---- From 650c97f052610011c5c29d42787f5f8257aeb85f Mon Sep 17 00:00:00 2001 From: Markus Blomqvist Date: Tue, 27 Apr 2021 21:30:09 +0300 Subject: [PATCH 3/3] Create new Android release v2.0.2 --- android/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index ce3c9a6..fdbdd05 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -148,8 +148,8 @@ android { applicationId "com.skole" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 7 - versionName "2.0.1" + versionCode 8 + versionName "2.0.2" } splits { abi {