🐛 fix: Fix GitHub workflow build failures

- Fixed compileSdk syntax error in build.gradle.kts (was using incorrect 'compileSdk { version = release(36) }' instead of 'compileSdk = 36')
- Moved splits configuration out of defaultConfig to correct location
- Added comprehensive ProGuard rules to handle OkHttp's optional dependencies (BouncyCastle, Conscrypt, OpenJSSE)
- Added ProGuard rules for Sardine WebDAV, Coroutines, and Gson
- Build now completes successfully both locally and in CI/CD
This commit is contained in:
inventory69
2025-12-21 11:30:34 +01:00
parent 8bc4828246
commit 86c5e62fd6
2 changed files with 53 additions and 13 deletions

View File

@@ -8,9 +8,7 @@ import java.io.FileInputStream
android {
namespace = "dev.dettmer.simplenotes"
compileSdk {
version = release(36)
}
compileSdk = 36
defaultConfig {
applicationId = "dev.dettmer.simplenotes"
@@ -20,15 +18,15 @@ android {
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
// Enable multiple APKs per ABI for smaller downloads
splits {
abi {
isEnable = true
reset()
include("armeabi-v7a", "arm64-v8a")
isUniversalApk = true // Also generate universal APK
}
}
// Enable multiple APKs per ABI for smaller downloads
splits {
abi {
isEnable = true
reset()
include("armeabi-v7a", "arm64-v8a")
isUniversalApk = true // Also generate universal APK
}
}