@@ -13,56 +13,40 @@ android {
13
13
applicationId = " com.limurse.iapsample"
14
14
minSdk = 21
15
15
targetSdk = 33
16
- versionCode = 5
17
- versionName = " 1.0.4 "
16
+ versionCode = 7
17
+ versionName = " 1.0.6 "
18
18
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
19
19
}
20
20
21
- val localProperties = Properties ().apply {
22
- val localPropertiesFile = rootProject.file(" local.properties" )
23
- if (localPropertiesFile.exists()) {
24
- load(localPropertiesFile.inputStream())
25
- }
26
- }
27
-
28
- val keystoreProperties = Properties ().apply {
29
- val keystorePropertiesFile = rootProject.file(" keystore.properties" )
30
- if (keystorePropertiesFile.exists()) {
31
- load(keystorePropertiesFile.inputStream())
32
- }
33
- }
34
-
35
21
buildTypes {
36
22
release {
37
23
isMinifyEnabled = true
38
24
isShrinkResources = true
39
25
proguardFiles(
40
26
" proguard-rules.pro"
41
27
)
42
- when {
43
- ! keystoreProperties.isEmpty && localProperties.contains(" licenseKey" ) -> {
44
- val licenseKey = keystoreProperties.getProperty(" licenseKey" )
45
- resValue(" string" , " licenseKey" , licenseKey)
46
- }
47
- else -> {
48
- resValue(" string" , " licenseKey" , " test" )
28
+ val keystoreProperties = Properties ().apply {
29
+ val keystorePropertiesFile = rootProject.file(" keystore.properties" )
30
+ if (keystorePropertiesFile.exists()) {
31
+ load(keystorePropertiesFile.inputStream())
49
32
}
50
33
}
34
+ val licenseKey = keystoreProperties.getProperty(" licenseKey" )
35
+ resValue(" string" , " licenseKey" , licenseKey)
51
36
}
52
37
debug {
53
38
isMinifyEnabled = false
54
39
proguardFiles(
55
40
" proguard-rules.pro"
56
41
)
57
- when {
58
- ! localProperties.isEmpty && localProperties.contains(" licenseKey" ) -> {
59
- val licenseKey = localProperties.getProperty(" licenseKey" )
60
- resValue(" string" , " licenseKey" , licenseKey)
61
- }
62
- else -> {
63
- resValue(" string" , " licenseKey" , " test" )
42
+ val localProperties = Properties ().apply {
43
+ val localPropertiesFile = rootProject.file(" local.properties" )
44
+ if (localPropertiesFile.exists()) {
45
+ load(localPropertiesFile.inputStream())
64
46
}
65
47
}
48
+ val licenseKey = localProperties.getProperty(" licenseKey" )
49
+ resValue(" string" , " licenseKey" , licenseKey)
66
50
}
67
51
}
68
52
0 commit comments