Skip to content

Commit

Permalink
added signing information to build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
PioBeat committed Oct 2, 2017
1 parent 4bb0ef4 commit 1b8434b
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
apply plugin: 'com.android.library'
apply from: "./bintray.data.gradle"

def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))


android {
signingConfigs {
config {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
compileSdkVersion 26
buildToolsVersion "26.0.1"

buildToolsVersion "26.0.2"
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
Expand All @@ -15,11 +27,14 @@ android {
// targetCompatibility JavaVersion.VERSION_1_8
// }
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.config
}
debug {
signingConfig signingConfigs.config
}
}
lintOptions {
Expand All @@ -28,7 +43,7 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(include: ['*.jar'], dir: 'libs')
}

task copyToLib(type: Copy) {
Expand Down

0 comments on commit 1b8434b

Please sign in to comment.