From 1ab705bb0bb90e7cd95b517f6ebf734c620d6a87 Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Tue, 27 Jun 2023 22:34:20 -0400 Subject: [PATCH] update build Signed-off-by: androidacy-user --- app/build.gradle.kts | 19 ++++++++++++++----- .../com/fox2code/mmm/MainApplication.kt | 5 +++-- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ef706b8..bdbc901 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -36,7 +36,17 @@ android { namespace = "com.fox2code.mmm" compileSdk = 33 ndkVersion = "25.2.9519653" - + signingConfigs { + create("release") { + val properties = Properties().apply { + load(File("signing.properties").reader()) + } + storeFile = File(properties.getProperty("storeFilePath")) + storePassword = properties.getProperty("storePassword") + keyPassword = properties.getProperty("keyPassword") + keyAlias = properties.getProperty("keyAlias") + } + } defaultConfig { applicationId = "com.fox2code.mmm" minSdk = 24 @@ -54,6 +64,8 @@ android { "cs", "de", "es-rMX", + "es", + "el", "fr", "hu", "id", @@ -63,7 +75,6 @@ android { "pl", "pt", "pt-rBR", - "ro", "ru", "tr", "uk", @@ -86,15 +97,12 @@ android { // Enables building multiple APKs per ABI. isEnable = true - // By default all ABIs are included, so use reset() - // Resets the list of ABIs for Gradle to create APKs for to none. reset() // Specifies a list of ABIs for Gradle to create APKs for. include("x86", "x86_64", "arm64-v8a", "armeabi-v7a") - // Specifies that you don't want to also generate a universal APK that includes all ABIs. isUniversalApk = true } } @@ -107,6 +115,7 @@ android { getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) renderscriptOptimLevel = 3 + signingConfig = signingConfigs.getByName("release") } getByName("debug") { applicationIdSuffix = ".debug" diff --git a/app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt b/app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt index fcb85e8..d6d35e6 100644 --- a/app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt +++ b/app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt @@ -220,6 +220,8 @@ class MainApplication : FoxApplication(), Configuration.Provider { "cs", "de", "es-rMX", + "es", + "el", "fr", "hu", "id", @@ -229,7 +231,6 @@ class MainApplication : FoxApplication(), Configuration.Provider { "pl", "pt", "pt-rBR", - "ro", "ru", "tr", "uk", @@ -693,4 +694,4 @@ class MainApplication : FoxApplication(), Configuration.Provider { ) } } -} \ No newline at end of file +}