Skip to content

Commit 4a0988d

Browse files
committed
reproducible build
1 parent fa35ce0 commit 4a0988d

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

app/build.gradle.kts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ android {
2121
signingConfigs {
2222
create("release") {
2323
storeFile = file("keystore-botox.jks")
24-
storePassword = System.getenv("KEYSTORE_PASSWORD")
24+
storePassword = System.getenv("KEYSTORE_PASSWORD") // Use consistent secrets
2525
keyAlias = System.getenv("KEY_ALIAS")
2626
keyPassword = System.getenv("KEY_PASSWORD")
2727
}
@@ -37,6 +37,12 @@ android {
3737
signingConfig = signingConfigs.getByName("release")
3838
}
3939
}
40+
41+
packagingOptions {
42+
jniLibs.useLegacyPackaging = false // Normalize JNI lib packaging
43+
resources.excludes.add("META-INF/**") // Exclude unnecessary metadata files
44+
}
45+
4046
compileOptions {
4147
sourceCompatibility = JavaVersion.VERSION_1_8
4248
targetCompatibility = JavaVersion.VERSION_1_8
@@ -47,7 +53,6 @@ android {
4753
}
4854

4955
dependencies {
50-
5156
implementation("androidx.core:core-ktx:1.13.1")
5257
implementation("androidx.appcompat:appcompat:1.7.0")
5358
implementation("com.google.android.material:material:1.12.0")
@@ -56,15 +61,13 @@ dependencies {
5661
androidTestImplementation("androidx.test.ext:junit:1.2.1")
5762
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
5863

59-
60-
// Retrofit ve GSON dönüştürücüsü için bağımlılıklar
64+
// Retrofit and GSON
6165
implementation("com.squareup.retrofit2:retrofit:2.9.0")
6266
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
6367

64-
// OkHttp ve Logging Interceptor için bağımlılıklar
68+
// OkHttp and Logging Interceptor
6569
implementation("com.squareup.okhttp3:okhttp:4.9.0")
6670
implementation("com.squareup.okhttp3:logging-interceptor:4.9.0")
6771

6872
implementation("com.google.code.gson:gson:2.8.8")
69-
70-
}
73+
}

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
23+
android.nonTransitiveRClass=true
24+
android.injected.build.timestamp=1234567890000

0 commit comments

Comments
 (0)