aboutsummaryrefslogtreecommitdiff
path: root/android/app/build.gradle
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-09-29 14:11:47 +0530
committerAkshay Nair <phenax5@gmail.com>2024-09-29 16:16:56 +0530
commitbdc7bbffc1377226fb72dd03aff5dda92b0cac00 (patch)
tree5093d945056489a38a9812d4455613817f418e12 /android/app/build.gradle
parentbac973fb3d933c383cc69612c7ffc45ece837dde (diff)
downloaddaft-launcher-bdc7bbffc1377226fb72dd03aff5dda92b0cac00.tar.gz
daft-launcher-bdc7bbffc1377226fb72dd03aff5dda92b0cac00.zip
Add release config + build apk setup
Diffstat (limited to 'android/app/build.gradle')
-rw-r--r--android/app/build.gradle26
1 files changed, 23 insertions, 3 deletions
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 57743c6..7ade26d 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -71,14 +71,18 @@ def enableProguardInReleaseBuilds = true
*/
def jscFlavor = 'org.webkit:android-jsc:+'
+// Local properties
+def Properties localProperties = new Properties()
+localProperties.load(project.rootProject.file("local.properties").newDataInputStream())
+
android {
ndkVersion rootProject.ext.ndkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdk rootProject.ext.compileSdkVersion
- namespace "com.owynlauncherrewrite"
+ namespace "dev.ediblemonad.owynlauncher"
defaultConfig {
- applicationId "com.owynlauncherrewrite"
+ applicationId "dev.ediblemonad.owynlauncher"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
@@ -91,7 +95,14 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
+ release {
+ storeFile file("release.keystore")
+ storePassword localProperties.getProperty('OWYN_STORE_PASS')
+ keyAlias 'releasekey'
+ keyPassword localProperties.getProperty('OWYN_KEY_PASS')
+ }
}
+
buildTypes {
debug {
signingConfig signingConfigs.debug
@@ -99,11 +110,20 @@ android {
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
- signingConfig signingConfigs.debug
+ signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
+
+ splits {
+ abi {
+ reset()
+ enable true
+ universalApk true
+ include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
+ }
+ }
}
dependencies {