Skip to content
Permalink
Browse files

add signing configs to gradle

  • Loading branch information
iNPUTmice committed Feb 26, 2020
1 parent c92fe97 commit b271b72114a5f659b818e53753adaa18c10f7c47
Showing with 20 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +17 −2 app/build.gradle
  3. +2 −2 build.gradle
@@ -1,6 +1,7 @@
*.iml
.gradle
/local.properties
/signing.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
@@ -18,8 +18,6 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}


}
buildTypes {
all {
@@ -29,6 +27,23 @@ android {
}
}

File signingProperties = new File("signing.properties");

if (signingProperties.exists()) {
Properties props = new Properties()
props.load(new FileInputStream(signingProperties))

signingConfigs {
release {
storeFile file(props['keystore'])
storePassword props['keystore.password']
keyAlias props['keystore.alias']
keyPassword props['keystore.password']
}
}
buildTypes.release.signingConfig = signingConfigs.release
}

dataBinding {
enabled = true
}
@@ -6,8 +6,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.2.0-rc04"
classpath 'com.android.tools.build:gradle:3.6.0'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.0-alpha02"
}
}

0 comments on commit b271b72

Please sign in to comment.
You can’t perform that action at this time.