This commit is contained in:
parent
d3deca77a8
commit
7993a11db4
2 changed files with 13 additions and 6 deletions
|
|
@ -23,6 +23,14 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Setup Android Keystore
|
||||||
|
env:
|
||||||
|
KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||||
|
KEYSTORE_PROPERTIES: ${{ secrets.ANDROID_KEYSTORE_PROPERTIES }}
|
||||||
|
run: |
|
||||||
|
echo "$KEYSTORE_BASE64" | base64 -d > keystore.jks
|
||||||
|
echo "$KEYSTORE_PROPERTIES" > keystore.properties
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build:apps
|
run: bun run build:apps
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,18 +27,17 @@ android {
|
||||||
}
|
}
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
create("release") {
|
create("release") {
|
||||||
val keystorePropertiesFile = rootProject.file("keystore.properties")
|
val keystorePropertiesFile = rootProject.file("../../../../../keystore.properties")
|
||||||
val keystoreProperties = Properties()
|
val keystoreProperties = Properties()
|
||||||
if (keystorePropertiesFile.exists()) {
|
if (keystorePropertiesFile.exists()) {
|
||||||
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
||||||
}
|
|
||||||
|
|
||||||
keyAlias = keystoreProperties["keyAlias"] as String
|
keyAlias = keystoreProperties["keyAlias"] as String
|
||||||
keyPassword = keystoreProperties["password"] as String
|
keyPassword = keystoreProperties["password"] as String
|
||||||
storeFile = file(keystoreProperties["storeFile"] as String)
|
storeFile = rootProject.file("../../../../../" + (keystoreProperties["storeFile"] as String))
|
||||||
storePassword = keystoreProperties["password"] as String
|
storePassword = keystoreProperties["password"] as String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
getByName("debug") {
|
getByName("debug") {
|
||||||
manifestPlaceholders["usesCleartextTraffic"] = "true"
|
manifestPlaceholders["usesCleartextTraffic"] = "true"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue