Skip to content

Commit

Permalink
fix: update build to use more specific keystores (that aren't in git)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensandee committed Mar 9, 2024
1 parent a3c919a commit 3e15319
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build/*
keystores/*
18 changes: 8 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ android {
buildTypes {
release {
minifyEnabled true

proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
proguardFile 'proguard-project.pro'
proguardFile 'proguard-guava.pro'
Expand Down Expand Up @@ -74,30 +75,27 @@ android {
jvmTarget = JavaVersion.VERSION_17
}


signingConfigs {
release {
storeFile file('release_keystore.jks')
storeFile file('keystores/opensqueeze_release.jks')
keyAlias 'signing'
}
debug {
storeFile file('keystores/opensqueeze_debug.jks')
}
}
lint {
abortOnError true
}

// enable release signing if we have password
if (project.hasProperty('releaseKeystorePassword')) {
signingConfigs.release.storePassword = releaseKeystorePassword
signingConfigs.release.keyPassword = releaseKeystorePassword
if (project.hasProperty('openSqueezeReleaseStorePassword')) {
signingConfigs.release.storePassword = openSqueezeReleaseStorePassword
signingConfigs.release.keyPassword = openSqueezeReleaseStorePassword

// actually set the config here
buildTypes.release.signingConfig = signingConfigs.release
}

// use debug keystore if it's supplied
if (project.hasProperty('debugKeystore')) {
signingConfigs.debug.storeFile = file(debugKeystore)
}
}

sqldelight {
Expand Down

0 comments on commit 3e15319

Please sign in to comment.