Skip to content

Commit 245a17f

Browse files
committed
dump
1 parent cec0108 commit 245a17f

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

app/build.gradle.kts

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1+
import java.util.Locale
2+
13
plugins {
24
alias(libs.plugins.androidApplication)
35
}
46

7+
fun getGitHashCommit(): String {
8+
return try {
9+
val processBuilder = ProcessBuilder("git", "rev-parse", "--short", "HEAD")
10+
val process = processBuilder.start()
11+
process.inputStream.bufferedReader().readText().trim()
12+
} catch (e: Exception) {
13+
"unknown"
14+
}
15+
}
16+
17+
val gitHash: String = getGitHashCommit().uppercase(Locale.getDefault())
18+
519
android {
620
namespace = "com.wmods.wppenhacer"
721
compileSdk = 34
@@ -11,7 +25,7 @@ android {
1125
minSdk = 28
1226
targetSdk = 34
1327
versionCode = 1
14-
versionName = "1.0.0"
28+
versionName = "1.1.0-DEV ($gitHash)"
1529
multiDexEnabled = true
1630

1731
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
@@ -47,11 +61,11 @@ android {
4761
buildTypes {
4862
all {
4963
signingConfig = if (signingConfigs["config"].storeFile != null) signingConfigs["config"] else signingConfigs["debug"]
50-
// isMinifyEnabled = true
51-
// proguardFiles(
52-
// getDefaultProguardFile("proguard-android-optimize.txt"),
53-
// "proguard-rules.pro"
54-
// )
64+
isMinifyEnabled = true
65+
proguardFiles(
66+
getDefaultProguardFile("proguard-android-optimize.txt"),
67+
"proguard-rules.pro"
68+
)
5569
}
5670
release {
5771
isMinifyEnabled = false
@@ -87,8 +101,8 @@ dependencies {
87101
implementation(libs.rikkax.material.preference)
88102
implementation(libs.rikkax.preference)
89103
implementation(libs.rikkax.widget.borderview)
90-
implementation("net.sf.cssbox:jstyleparser:4.0.0")
91-
implementation("com.google.guava:guava:33.2.0-android")
104+
implementation(libs.jstyleparser)
105+
implementation(libs.guava)
92106
// testImplementation(libs.junit)
93107
// androidTestImplementation(libs.ext.junit)
94108
// androidTestImplementation(libs.espresso.core)

0 commit comments

Comments
 (0)