Skip to content

Commit

Permalink
Fixed build.gradle for github for app
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Beck committed Mar 19, 2021
1 parent a69d61b commit 6c167fd
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,34 @@ plugins {
id 'com.android.application'
}

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

android {
signingConfigs {
release {
storeFile file(keystoreProperties['keystore'])
storePassword keystoreProperties['keystore.storePassword']
keyAlias keystoreProperties['keystore.keyAlias']
keyPassword keystoreProperties['keystore.keyPassword']
File keystorePropertiesFile = project.rootProject.file('local.properties')
if (keystorePropertiesFile.exists()) {
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
signingConfigs {
release {
storeFile file(keystoreProperties['keystore'])
storePassword keystoreProperties['keystore.storePassword']
keyAlias keystoreProperties['keystore.keyAlias']
keyPassword keystoreProperties['keystore.password']
}
}
}
} else {
android {
signingConfigs {
release {
}
}
}
}

android {
compileSdkVersion 29

defaultConfig {
applicationId "com.github.zardozz.fixedheadertablelayout"
applicationId "com.github.zardozz.fixedheadertablelayoutsample"
minSdkVersion 16
targetSdkVersion 29
versionCode 1
Expand Down

0 comments on commit 6c167fd

Please sign in to comment.