|
15 | 15 | import com.android.utils.text.dropPrefix |
16 | 16 | import java.time.LocalDate |
17 | 17 | import java.time.ZoneId |
18 | | -import java.util.* |
19 | 18 | import org.jetbrains.kotlin.gradle.dsl.JvmTarget |
20 | 19 | import org.jetbrains.kotlin.gradle.dsl.KotlinVersion |
21 | 20 |
|
@@ -52,19 +51,9 @@ android { |
52 | 51 | includeInApk = false |
53 | 52 | } |
54 | 53 |
|
55 | | - val localProperties = rootProject.propertiesFrom("local.properties") |
56 | | - |
57 | | - val releaseSigningConfig = signingConfigs.create("release") { |
58 | | - storeFile = file(localProperties.getProperty("store.path")) |
59 | | - storePassword = localProperties.getProperty("store.pass") |
60 | | - keyAlias = localProperties.getProperty("key.alias") |
61 | | - keyPassword = localProperties.getProperty("key.pass") |
62 | | - } |
63 | | - |
64 | 54 | buildTypes { |
65 | 55 | debug { applicationIdSuffix = ".debug" } |
66 | 56 | release { |
67 | | - signingConfig = releaseSigningConfig |
68 | 57 | isMinifyEnabled = true |
69 | 58 | isShrinkResources = true |
70 | 59 | proguardFiles( |
@@ -166,15 +155,6 @@ dependencies { |
166 | 155 |
|
167 | 156 | fun DependencyHandlerScope.kotlin(name: String): Any = kotlin(name, libs.versions.kotlin.get()) |
168 | 157 |
|
169 | | -fun Project.propertiesFrom(fileName: String): Properties { |
170 | | - val file = file(fileName) |
171 | | - require(file.exists()) { "File not found: `${file.name}` at `${file.path}`" } |
172 | | - |
173 | | - val properties = Properties() |
174 | | - properties.load(file.reader()) |
175 | | - return properties |
176 | | -} |
177 | | - |
178 | 158 | fun versionCodeFor(version: String?): Int? { |
179 | 159 | if (version == null) return null |
180 | 160 | val (major, minor, patch) = version |
|
0 commit comments