Skip to content

Commit

Permalink
Add signing creds
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahMitt committed Nov 14, 2015
1 parent 2c51b74 commit c3a95e1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ proguard/

#Private Keys
app/src/main/res/values/keys.xml
app/fabric.properties
app/fabric.properties
mirror-keystore.jks
signing.properties
17 changes: 16 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
signingConfigs {
mirror {
}
}
compileSdkVersion 22
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.morristaedt.mirror"
minSdkVersion 14
Expand All @@ -24,10 +27,12 @@ android {
buildTypes {
debug {
ext.enableCrashlytics = false
applicationIdSuffix '.debug'
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.mirror
}
}
}
Expand All @@ -48,3 +53,13 @@ dependencies {
transitive = true;
}
}

def signingFile = rootProject.file('signing.properties')
if (signingFile.exists()) {
def props = new Properties()
props.load(new FileInputStream(signingFile))
android.signingConfigs.mirror.storeFile rootProject.file(props.keyStore)
android.signingConfigs.mirror.storePassword props.keyStorePassword
android.signingConfigs.mirror.keyAlias props.keyAlias
android.signingConfigs.mirror.keyPassword props.keyAliasPassword
}

0 comments on commit c3a95e1

Please sign in to comment.