mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-05 22:10:10 +00:00
feat(mobile): signing and prep for android production APK (#1265)
* Android Production APK * Update build.gradle * Update gitignore
This commit is contained in:
parent
3143144315
commit
77bc7c8358
27
.github/workflows/android-build.yml
vendored
27
.github/workflows/android-build.yml
vendored
@ -54,10 +54,37 @@ jobs:
|
|||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/gradle-build-action@v3
|
uses: gradle/gradle-build-action@v3
|
||||||
|
|
||||||
|
- name: Decode Keystore
|
||||||
|
id: decode_keystore
|
||||||
|
uses: timheuer/base64-to-file@v1.2
|
||||||
|
with:
|
||||||
|
fileName: 'keystore.jks'
|
||||||
|
fileDir: './'
|
||||||
|
encodedString: ${{ secrets.KEYSTORE }}
|
||||||
|
|
||||||
- name: 'Build Android Release'
|
- name: 'Build Android Release'
|
||||||
run: |
|
run: |
|
||||||
cd mobile/android
|
cd mobile/android
|
||||||
./gradlew assembleRelease
|
./gradlew assembleRelease
|
||||||
|
env:
|
||||||
|
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
||||||
|
KEY_PASS: ${{ secrets.KEY_PASS }}
|
||||||
|
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }}
|
||||||
|
|
||||||
|
|
||||||
|
- name: 'Check for non-FOSS libraries'
|
||||||
|
run: |
|
||||||
|
wget https://github.com/iBotPeaches/Apktool/releases/download/v2.7.0/apktool_2.7.0.jar
|
||||||
|
wget https://github.com/iBotPeaches/Apktool/raw/master/scripts/linux/apktool
|
||||||
|
# clone the repo
|
||||||
|
git clone https://gitlab.com/IzzyOnDroid/repo.git
|
||||||
|
# create a directory for Apktool and move the apktool* files there
|
||||||
|
mkdir -p repo/lib/radar/tool
|
||||||
|
mv apktool* repo/lib/radar/tool
|
||||||
|
# create an alias for ease of use
|
||||||
|
chmod u+x repo/lib/radar/tool/apktool
|
||||||
|
mv repo/lib/radar/tool/apktool_2.7.0.jar repo/lib/radar/tool/apktool.jar
|
||||||
|
repo/bin/scanapk.php mobile/android/app/build/outputs/apk/release/app-universal-release.apk
|
||||||
|
|
||||||
- name: 'Get Commit Hash'
|
- name: 'Get Commit Hash'
|
||||||
id: commit
|
id: commit
|
||||||
|
@ -238,6 +238,12 @@ android {
|
|||||||
keyAlias 'androiddebugkey'
|
keyAlias 'androiddebugkey'
|
||||||
keyPassword 'android'
|
keyPassword 'android'
|
||||||
}
|
}
|
||||||
|
release {
|
||||||
|
storeFile file("../../../keystore.jks")
|
||||||
|
keyAlias System.getenv("KEY_ALIAS")
|
||||||
|
storePassword System.getenv("KEY_STORE_PASS")
|
||||||
|
keyPassword System.getenv("KEY_PASS")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
@ -246,7 +252,7 @@ android {
|
|||||||
release {
|
release {
|
||||||
// Caution! In production, you need to generate your own keystore file.
|
// Caution! In production, you need to generate your own keystore file.
|
||||||
// see https://reactnative.dev/docs/signed-apk-android.
|
// see https://reactnative.dev/docs/signed-apk-android.
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.release
|
||||||
minifyEnabled enableProguardInReleaseBuilds
|
minifyEnabled enableProguardInReleaseBuilds
|
||||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||||
}
|
}
|
||||||
@ -273,6 +279,13 @@ android {
|
|||||||
exclude "**/libjsc.so"
|
exclude "**/libjsc.so"
|
||||||
jniLibs.useLegacyPackaging = true
|
jniLibs.useLegacyPackaging = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependenciesInfo {
|
||||||
|
// Disables dependency metadata when building APKs.
|
||||||
|
includeInApk = false
|
||||||
|
// Disables dependency metadata when building Android App Bundles.
|
||||||
|
includeInBundle = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
Loading…
Reference in New Issue
Block a user