Skip to content

Commit

Permalink
Upload new keystore with secret password, default to user.home debug.…
Browse files Browse the repository at this point in the history
…keystore
  • Loading branch information
riggaroo committed Apr 26, 2024
1 parent b31aaff commit 7fc6f96
Show file tree
Hide file tree
Showing 17 changed files with 70 additions and 37 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
- name: Build release
working-directory: ${{ inputs.path }}
run: ./gradlew assembleRelease --stacktrace
env:
compose_store_password: ${{secrets.compose_store_password}}
compose_key_alias: $${{secrets.compose_key_alias}}
compose_key_password: $${{secrets.compose_key_password}}

- name: Run local tests
working-directory: ${{ inputs.path }}
Expand Down
12 changes: 7 additions & 5 deletions Crane/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ android {
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore")
val localKeystore = rootProject.file("debug_2.keystore")
val hasKeyInfo = userKeystore.exists()
named("debug") {
storeFile = File(System.getProperty("user.home"), ".android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
storeFile = if (hasKeyInfo) userKeystore else localKeystore
storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password")
keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias")
keyPassword = if (hasKeyInfo) "android" else System.getenv("compose_key_password")
}
}

Expand Down
Binary file added Crane/debug_2.keystore
Binary file not shown.
11 changes: 7 additions & 4 deletions JetLagged/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ android {

signingConfigs {
// Important: change the keystore for a production deployment
val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore")
val localKeystore = rootProject.file("debug_2.keystore")
val hasKeyInfo = userKeystore.exists()
named("debug") {
storeFile = File(System.getProperty("user.home"), ".android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
storeFile = if (hasKeyInfo) userKeystore else localKeystore
storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password")
keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias")
keyPassword = if (hasKeyInfo) "android" else System.getenv("compose_key_password")
}
}

Expand Down
Binary file added JetLagged/debug_2.keystore
Binary file not shown.
11 changes: 7 additions & 4 deletions JetNews/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ android {

signingConfigs {
// Important: change the keystore for a production deployment
val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore")
val localKeystore = rootProject.file("debug_2.keystore")
val hasKeyInfo = userKeystore.exists()
named("debug") {
storeFile = File(System.getProperty("user.home"), ".android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
storeFile = if (hasKeyInfo) userKeystore else localKeystore
storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password")
keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias")
keyPassword = if (hasKeyInfo) "android" else System.getenv("compose_key_password")
}
}

Expand Down
Binary file added JetNews/debug_2.keystore
Binary file not shown.
21 changes: 14 additions & 7 deletions Jetcaster/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ plugins {
alias(libs.plugins.hilt)
}


android {
compileSdk = libs.versions.compileSdk.get().toInt()
namespace = "com.example.jetcaster"
Expand All @@ -36,24 +37,30 @@ android {

signingConfigs {
// Important: change the keystore for a production deployment
val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore")
val localKeystore = rootProject.file("debug_2.keystore")
val hasKeyInfo = userKeystore.exists()
named("debug") {
storeFile = File(System.getProperty("user.home"), ".android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
// get from env variables
storeFile = if (hasKeyInfo) userKeystore else localKeystore
storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password")
keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias")
keyPassword = if (hasKeyInfo) "android" else System.getenv("compose_key_password")
}
}

buildTypes {
getByName("debug") {
signingConfig = signingConfigs.getByName("debug")

}

getByName("release") {
isMinifyEnabled = true
signingConfig = signingConfigs.getByName("debug")
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}

Expand Down
Binary file added Jetcaster/debug_2.keystore
Binary file not shown.
11 changes: 7 additions & 4 deletions Jetchat/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ android {

signingConfigs {
// Important: change the keystore for a production deployment
val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore")
val localKeystore = rootProject.file("debug_2.keystore")
val hasKeyInfo = userKeystore.exists()
named("debug") {
storeFile = File(System.getProperty("user.home"), ".android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
storeFile = if (hasKeyInfo) userKeystore else localKeystore
storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password")
keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias")
keyPassword = if (hasKeyInfo) "android" else System.getenv("compose_key_password")
}
}

Expand Down
Binary file added Jetchat/debug_2.keystore
Binary file not shown.
14 changes: 9 additions & 5 deletions Jetsnack/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,20 @@ android {

signingConfigs {
// Important: change the keystore for a production deployment
val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore")
val localKeystore = rootProject.file("debug_2.keystore")
val hasKeyInfo = userKeystore.exists()
named("debug") {
storeFile = File(System.getProperty("user.home"), ".android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
storeFile = if (hasKeyInfo) userKeystore else localKeystore
storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password")
keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias")
keyPassword = if (hasKeyInfo) "android" else System.getenv("compose_key_password")
}
}

buildTypes {
getByName("debug") {
signingConfig = null
signingConfig = signingConfigs.getByName("debug")
}

Expand All @@ -57,7 +61,7 @@ android {

create("benchmark") {
initWith(getByName("release"))
signingConfig = signingConfigs.getByName("debug")
// signingConfig = signingConfigs.getByName("debug")
matchingFallbacks.add("release")
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-benchmark-rules.pro")
Expand Down
Binary file added Jetsnack/debug_2.keystore
Binary file not shown.
11 changes: 7 additions & 4 deletions Owl/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ android {

signingConfigs {
// Important: change the keystore for a production deployment
val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore")
val localKeystore = rootProject.file("debug_2.keystore")
val hasKeyInfo = userKeystore.exists()
named("debug") {
storeFile = File(System.getProperty("user.home"), ".android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
storeFile = if (hasKeyInfo) userKeystore else localKeystore
storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password")
keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias")
keyPassword = if (hasKeyInfo) "android" else System.getenv("compose_key_password")
}
}

Expand Down
Binary file added Owl/debug_2.keystore
Binary file not shown.
12 changes: 8 additions & 4 deletions Reply/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ android {

signingConfigs {
// Important: change the keystore for a production deployment
val userKeystore = File(System.getProperty("user.home"), ".android/debug.keystore")
val localKeystore = rootProject.file("debug_2.keystore")
val hasKeyInfo = userKeystore.exists()
named("debug") {
storeFile = File(System.getProperty("user.home"), ".android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
// get from env variables
storeFile = if (hasKeyInfo) userKeystore else localKeystore
storePassword = if (hasKeyInfo) "android" else System.getenv("compose_store_password")
keyAlias = if (hasKeyInfo) "androiddebugkey" else System.getenv("compose_key_alias")
keyPassword = if (hasKeyInfo) "android" else System.getenv("compose_key_password")
}
}

Expand Down
Binary file added Reply/debug_2.keystore
Binary file not shown.

0 comments on commit 7fc6f96

Please sign in to comment.