|
|
@ -160,11 +160,11 @@ adb -e uninstall im.vector.app.debug.test
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "Running the integration test UiAllScreensSanityTest.allScreensTest()...\n"
|
|
|
|
printf "Running the integration test UiAllScreensSanityTest.allScreensTest()...\n"
|
|
|
|
./gradlew connectedGplayRustCryptoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest
|
|
|
|
./gradlew connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "Building the app...\n"
|
|
|
|
printf "Building the app...\n"
|
|
|
|
./gradlew assembleGplayRustCryptoDebug
|
|
|
|
./gradlew assembleGplayDebug
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "Uninstalling previous debug app if any...\n"
|
|
|
|
printf "Uninstalling previous debug app if any...\n"
|
|
|
@ -172,7 +172,7 @@ adb -e uninstall im.vector.app.debug
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "Installing the app...\n"
|
|
|
|
printf "Installing the app...\n"
|
|
|
|
adb -e install ./vector-app/build/outputs/apk/gplayRustCrypto/debug/vector-gplay-rustCrypto-arm64-v8a-debug.apk
|
|
|
|
adb -e install ./vector-app/build/outputs/apk/gplay/debug/vector-gplay-arm64-v8a-debug.apk
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "Running the app...\n"
|
|
|
|
printf "Running the app...\n"
|
|
|
@ -293,67 +293,67 @@ printf "Unzipping the artifact...\n"
|
|
|
|
unzip ${targetPath}/vector-gplay-release-unsigned.zip -d ${targetPath}
|
|
|
|
unzip ${targetPath}/vector-gplay-release-unsigned.zip -d ${targetPath}
|
|
|
|
|
|
|
|
|
|
|
|
# Flatten folder hierarchy
|
|
|
|
# Flatten folder hierarchy
|
|
|
|
mv ${targetPath}/gplayRustCrypto/release/* ${targetPath}
|
|
|
|
mv ${targetPath}/gplay/release/* ${targetPath}
|
|
|
|
rm -rf ${targetPath}/gplay
|
|
|
|
rm -rf ${targetPath}/gplay
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "Signing the APKs...\n"
|
|
|
|
printf "Signing the APKs...\n"
|
|
|
|
|
|
|
|
|
|
|
|
cp ${targetPath}/vector-gplay-rustCrypto-arm64-v8a-release-unsigned.apk \
|
|
|
|
cp ${targetPath}/vector-gplay-arm64-v8a-release-unsigned.apk \
|
|
|
|
${targetPath}/vector-gplay-rustCrypto-arm64-v8a-release-signed.apk
|
|
|
|
${targetPath}/vector-gplay-arm64-v8a-release-signed.apk
|
|
|
|
./tools/release/sign_apk_unsafe.sh \
|
|
|
|
./tools/release/sign_apk_unsafe.sh \
|
|
|
|
${keyStorePath} \
|
|
|
|
${keyStorePath} \
|
|
|
|
${targetPath}/vector-gplay-rustCrypto-arm64-v8a-release-signed.apk \
|
|
|
|
${targetPath}/vector-gplay-arm64-v8a-release-signed.apk \
|
|
|
|
${keyStorePassword} \
|
|
|
|
${keyStorePassword} \
|
|
|
|
${keyPassword}
|
|
|
|
${keyPassword}
|
|
|
|
|
|
|
|
|
|
|
|
cp ${targetPath}/vector-gplay-rustCrypto-armeabi-v7a-release-unsigned.apk \
|
|
|
|
cp ${targetPath}/vector-gplay-armeabi-v7a-release-unsigned.apk \
|
|
|
|
${targetPath}/vector-gplay-rustCrypto-armeabi-v7a-release-signed.apk
|
|
|
|
${targetPath}/vector-gplay-armeabi-v7a-release-signed.apk
|
|
|
|
./tools/release/sign_apk_unsafe.sh \
|
|
|
|
./tools/release/sign_apk_unsafe.sh \
|
|
|
|
${keyStorePath} \
|
|
|
|
${keyStorePath} \
|
|
|
|
${targetPath}/vector-gplay-rustCrypto-armeabi-v7a-release-signed.apk \
|
|
|
|
${targetPath}/vector-gplay-armeabi-v7a-release-signed.apk \
|
|
|
|
${keyStorePassword} \
|
|
|
|
${keyStorePassword} \
|
|
|
|
${keyPassword}
|
|
|
|
${keyPassword}
|
|
|
|
|
|
|
|
|
|
|
|
cp ${targetPath}/vector-gplay-rustCrypto-x86-release-unsigned.apk \
|
|
|
|
cp ${targetPath}/vector-gplay-x86-release-unsigned.apk \
|
|
|
|
${targetPath}/vector-gplay-rustCrypto-x86-release-signed.apk
|
|
|
|
${targetPath}/vector-gplay-x86-release-signed.apk
|
|
|
|
./tools/release/sign_apk_unsafe.sh \
|
|
|
|
./tools/release/sign_apk_unsafe.sh \
|
|
|
|
${keyStorePath} \
|
|
|
|
${keyStorePath} \
|
|
|
|
${targetPath}/vector-gplay-rustCrypto-x86-release-signed.apk \
|
|
|
|
${targetPath}/vector-gplay-x86-release-signed.apk \
|
|
|
|
${keyStorePassword} \
|
|
|
|
${keyStorePassword} \
|
|
|
|
${keyPassword}
|
|
|
|
${keyPassword}
|
|
|
|
|
|
|
|
|
|
|
|
cp ${targetPath}/vector-gplay-rustCrypto-x86_64-release-unsigned.apk \
|
|
|
|
cp ${targetPath}/vector-gplay-x86_64-release-unsigned.apk \
|
|
|
|
${targetPath}/vector-gplay-rustCrypto-x86_64-release-signed.apk
|
|
|
|
${targetPath}/vector-gplay-x86_64-release-signed.apk
|
|
|
|
./tools/release/sign_apk_unsafe.sh \
|
|
|
|
./tools/release/sign_apk_unsafe.sh \
|
|
|
|
${keyStorePath} \
|
|
|
|
${keyStorePath} \
|
|
|
|
${targetPath}/vector-gplay-rustCrypto-x86_64-release-signed.apk \
|
|
|
|
${targetPath}/vector-gplay-x86_64-release-signed.apk \
|
|
|
|
${keyStorePassword} \
|
|
|
|
${keyStorePassword} \
|
|
|
|
${keyPassword}
|
|
|
|
${keyPassword}
|
|
|
|
|
|
|
|
|
|
|
|
# Ref: https://docs.fastlane.tools/getting-started/android/beta-deployment/#uploading-your-app
|
|
|
|
# Ref: https://docs.fastlane.tools/getting-started/android/beta-deployment/#uploading-your-app
|
|
|
|
# set SUPPLY_APK_PATHS="${targetPath}/vector-gplay-rustCrypto-arm64-v8a-release-unsigned.apk,${targetPath}/vector-gplay-rustCrypto-armeabi-v7a-release-unsigned.apk,${targetPath}/vector-gplay-rustCrypto-x86-release-unsigned.apk,${targetPath}/vector-gplay-rustCrypto-x86_64-release-unsigned.apk"
|
|
|
|
# set SUPPLY_APK_PATHS="${targetPath}/vector-gplay-arm64-v8a-release-unsigned.apk,${targetPath}/vector-gplay-armeabi-v7a-release-unsigned.apk,${targetPath}/vector-gplay-x86-release-unsigned.apk,${targetPath}/vector-gplay-x86_64-release-unsigned.apk"
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# ./fastlane beta
|
|
|
|
# ./fastlane beta
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "Please check the information below:\n"
|
|
|
|
printf "Please check the information below:\n"
|
|
|
|
|
|
|
|
|
|
|
|
printf "File vector-gplay-rustCrypto-arm64-v8a-release-signed.apk:\n"
|
|
|
|
printf "File vector-gplay-arm64-v8a-release-signed.apk:\n"
|
|
|
|
${buildToolsPath}/aapt dump badging ${targetPath}/vector-gplay-rustCrypto-arm64-v8a-release-signed.apk | grep package
|
|
|
|
${buildToolsPath}/aapt dump badging ${targetPath}/vector-gplay-arm64-v8a-release-signed.apk | grep package
|
|
|
|
printf "File vector-gplay-rustCrypto-armeabi-v7a-release-signed.apk:\n"
|
|
|
|
printf "File vector-gplay-armeabi-v7a-release-signed.apk:\n"
|
|
|
|
${buildToolsPath}/aapt dump badging ${targetPath}/vector-gplay-rustCrypto-armeabi-v7a-release-signed.apk | grep package
|
|
|
|
${buildToolsPath}/aapt dump badging ${targetPath}/vector-gplay-armeabi-v7a-release-signed.apk | grep package
|
|
|
|
printf "File vector-gplay-rustCrypto-x86-release-signed.apk:\n"
|
|
|
|
printf "File vector-gplay-x86-release-signed.apk:\n"
|
|
|
|
${buildToolsPath}/aapt dump badging ${targetPath}/vector-gplay-rustCrypto-x86-release-signed.apk | grep package
|
|
|
|
${buildToolsPath}/aapt dump badging ${targetPath}/vector-gplay-x86-release-signed.apk | grep package
|
|
|
|
printf "File vector-gplay-rustCrypto-x86_64-release-signed.apk:\n"
|
|
|
|
printf "File vector-gplay-x86_64-release-signed.apk:\n"
|
|
|
|
${buildToolsPath}/aapt dump badging ${targetPath}/vector-gplay-rustCrypto-x86_64-release-signed.apk | grep package
|
|
|
|
${buildToolsPath}/aapt dump badging ${targetPath}/vector-gplay-x86_64-release-signed.apk | grep package
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n"
|
|
|
|
printf "\n"
|
|
|
|
read -p "Does it look correct? Press enter when it's done."
|
|
|
|
read -p "Does it look correct? Press enter when it's done."
|
|
|
|
|
|
|
|
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
printf "\n================================================================================\n"
|
|
|
|
read -p "Installing apk on a real device, press enter when a real device is connected. "
|
|
|
|
read -p "Installing apk on a real device, press enter when a real device is connected. "
|
|
|
|
apkPath="${targetPath}/vector-gplay-rustCrypto-arm64-v8a-release-signed.apk"
|
|
|
|
apkPath="${targetPath}/vector-gplay-arm64-v8a-release-signed.apk"
|
|
|
|
adb -d install ${apkPath}
|
|
|
|
adb -d install ${apkPath}
|
|
|
|
|
|
|
|
|
|
|
|
read -p "Please run the APK on your phone to check that the upgrade went well (no init sync, etc.). Press enter when it's done."
|
|
|
|
read -p "Please run the APK on your phone to check that the upgrade went well (no init sync, etc.). Press enter when it's done."
|
|
|
|