Skip to content

Commit

Permalink
Bundle debug keystore in each sample (android#189)
Browse files Browse the repository at this point in the history
This will allow APK builds attached to the release to be 'upgradeable'.
  • Loading branch information
chrisbanes authored Sep 23, 2020
1 parent aca46a3 commit 06f3d49
Show file tree
Hide file tree
Showing 16 changed files with 116 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Crane/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,28 @@ android {

manifestPlaceholders = [ googleMapsKey : properties.getProperty("google.maps.key", "") ]
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand Down
Binary file added Crane/debug.keystore
Binary file not shown.
14 changes: 14 additions & 0 deletions JetNews/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,21 @@ android {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Expand Down
Binary file added JetNews/debug.keystore
Binary file not shown.
14 changes: 14 additions & 0 deletions Jetcaster/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,21 @@ android {
exclude "/*.jar"
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Expand Down
Binary file added Jetcaster/debug.keystore
Binary file not shown.
14 changes: 14 additions & 0 deletions Jetchat/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,21 @@ android {
vectorDrawables.useSupportLibrary = true
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Expand Down
Binary file added Jetchat/debug.keystore
Binary file not shown.
14 changes: 14 additions & 0 deletions Jetsnack/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,21 @@ android {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Expand Down
Binary file added Jetsnack/debug.keystore
Binary file not shown.
16 changes: 16 additions & 0 deletions Jetsurvey/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,32 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}
Expand Down
Binary file added Jetsurvey/debug.keystore
Binary file not shown.
14 changes: 14 additions & 0 deletions Owl/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,21 @@ android {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Expand Down
Binary file added Owl/debug.keystore
Binary file not shown.
14 changes: 14 additions & 0 deletions Rally/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,21 @@ android {
vectorDrawables.useSupportLibrary = true
}

signingConfigs {
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Expand Down
Binary file added Rally/debug.keystore
Binary file not shown.

0 comments on commit 06f3d49

Please sign in to comment.