summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 076b501)
raw | patch | inline | side by side (parent: 076b501)
author | fredboy <fredboy@protonmail.com> | |
Sat, 20 Apr 2024 08:22:26 +0000 (15:22 +0700) | ||
committer | fredboy <fredboy@protonmail.com> | |
Sat, 20 Apr 2024 08:22:26 +0000 (15:22 +0700) |
.gitignore | patch | blob | history | |
android/build.gradle | patch | blob | history |
diff --git a/.gitignore b/.gitignore
index c83f78b4ffd5af2bd48e8f05d719903386ff5a79..e03f5587f9ef9b42b0be788ce28a0aa394291c60 100644 (file)
--- a/.gitignore
+++ b/.gitignore
!/ios-moe/xcode/*.xcodeproj/project.pbxproj
/ios-moe/xcode/native/
-release-*/
\ No newline at end of file
+release-*/
+keystore.properties
diff --git a/android/build.gradle b/android/build.gradle
index fdd8e08ce776b5c89d94cfed6ef574eeeb66925e..c59ba712420e717f099462642938c176a6add054 100644 (file)
--- a/android/build.gradle
+++ b/android/build.gradle
id "kotlin-android"
}
+def keystorePropertiesFile = rootProject.file("keystore.properties")
+def keystoreProperties = new Properties()
+keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
+
android {
namespace "ru.deadsoftware.cavedroid"
compileSdkVersion 34
outputFileName = "android-${versionName}.apk"
}
}
+
+ signingConfigs {
+ debug_config {
+ storeFile file(keystoreProperties['debugKeystorePath'])
+ storePassword keystoreProperties['debugKeystorePassword']
+ keyAlias keystoreProperties['debugKeyAlias']
+ keyPassword keystoreProperties['debugKeyPassword']
+ }
+ release_config {
+ storeFile file(keystoreProperties['releaseKeystorePath'])
+ storePassword keystoreProperties['releaseKeystorePassword']
+ keyAlias keystoreProperties['releaseKeyAlias']
+ keyPassword keystoreProperties['releaseKeyPassword']
+ }
+ }
+
buildTypes {
release {
minifyEnabled false
+ signingConfig signingConfigs.release_config
}
debug {
applicationIdSuffix ".debug"
+ signingConfig signingConfigs.debug_config
}
}
buildFeatures {