Skip to content

Commit d819073

Browse files
committed
Add shared debug keystore
1 parent 354f90c commit d819073

4 files changed

Lines changed: 23 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ local.properties
2323

2424
# Keystore
2525
*keystore
26+
!debug.keystore
2627

2728
# OS X files
2829
.DS_Store

android-kit-base/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ android {
2929
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3030
}
3131
}
32+
3233
sourceSets {
3334
androidTest.java.srcDirs += 'src/androidTest/kotlin'
3435
main.java.srcDirs += 'src/main/kotlin'

build.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,25 @@ allprojects {
5151
}
5252

5353
apply plugin: 'org.jlleitschuh.gradle.ktlint'
54+
55+
// Apply shared signing configuration to all Android projects
56+
afterEvaluate { project ->
57+
if (project.hasProperty('android')) {
58+
android {
59+
signingConfigs {
60+
debug {
61+
storeFile file("${rootProject.projectDir}/debug.keystore")
62+
storePassword "android"
63+
keyAlias "androiddebugkey"
64+
keyPassword "android"
65+
}
66+
}
67+
buildTypes {
68+
debug {
69+
signingConfig signingConfigs.debug
70+
}
71+
}
72+
}
73+
}
74+
}
5475
}

debug.keystore

2.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)