Skip to content

Commit

Permalink
geSdkKey()
Browse files Browse the repository at this point in the history
  • Loading branch information
eby8zevin committed Aug 22, 2022
1 parent 154f722 commit f7c8aed
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,14 @@ static def getBuildDate() {
return formattedDate
}

/*def localPropertiesFile = rootProject.file("local.properties")
def localProperties = new Properties()
localProperties.load(new FileInputStream(localPropertiesFile))
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))*/
String getSdkKey() {
def propFile = rootProject.file("./local.properties")
def properties = new Properties()
properties.load(new FileInputStream(propFile))
return properties['SDK_KEY']
}

android {
/*signingConfigs {
config {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}*/

compileSdkVersion 32
buildToolsVersion "32.0.0"
Expand All @@ -39,15 +30,14 @@ android {
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
//buildConfigField("String", "SDK", localProperties["Config_Cat"])
buildConfigField("String", "SDK", getSdkKey())
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
versionNameSuffix " build:" + BUILD_DATE
//signingConfig signingConfigs.config
}
debug {
debuggable true
Expand Down

0 comments on commit f7c8aed

Please sign in to comment.