Skip to content

Commit 950fe31

Browse files
authoredNov 6, 2024
chore: update Android build configuration and add release signing setup (#71)
* chore: update Android build configuration and add release signing setup * chore: remove unnecessary signingConfigs block from build.gradle
1 parent 92ba517 commit 950fe31

22 files changed

+20
-3
lines changed
 

‎android/app/build.gradle

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apply plugin: "com.android.application"
22
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
33
apply plugin: "org.jetbrains.kotlin.android"
44
apply plugin: "com.facebook.react"
5-
apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle")
65

76
/**
87
* This is the configuration block to customize your React Native Android app.
@@ -85,7 +84,7 @@ android {
8584
minSdkVersion rootProject.ext.minSdkVersion
8685
targetSdkVersion rootProject.ext.targetSdkVersion
8786
versionCode 1
88-
versionName "1.0"
87+
versionName "0.0.1"
8988
resValue "string", "build_config_package", "com.clientapp"
9089
}
9190
signingConfigs {
@@ -95,6 +94,14 @@ android {
9594
keyAlias 'androiddebugkey'
9695
keyPassword 'android'
9796
}
97+
release {
98+
if (project.hasProperty('RELEASE_STORE_FILE')) {
99+
storeFile file(RELEASE_STORE_FILE)
100+
storePassword project.env.RELEASE_STORE_PASSWORD
101+
keyAlias RELEASE_KEY_ALIAS
102+
keyPassword project.env.RELEASE_KEY_PASSWORD
103+
}
104+
}
98105
}
99106
buildTypes {
100107
debug {
@@ -106,6 +113,7 @@ android {
106113
signingConfig signingConfigs.debug
107114
minifyEnabled enableProguardInReleaseBuilds
108115
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
116+
signingConfig signingConfigs.release
109117
}
110118
}
111119
}
@@ -114,6 +122,7 @@ dependencies {
114122
// The version of react-native is set by the React Native Gradle Plugin
115123
implementation("com.facebook.react:react-android")
116124
implementation project(':react-native-config')
125+
implementation("com.kakao.sdk:v2-user:2.20.6")
117126
if (hermesEnabled.toBoolean()) {
118127
implementation("com.facebook.react:hermes-android")
119128
} else {
68.7 KB
Binary file not shown.
64.6 KB
Binary file not shown.
13.1 KB
Binary file not shown.
54.9 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
306 KB
Binary file not shown.
55.6 KB
Binary file not shown.
432 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
48.2 KB
Binary file not shown.
Binary file not shown.
25.2 KB
Binary file not shown.

‎android/gradle.properties

+4
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ newArchEnabled=false
3737
# Use this property to enable or disable the Hermes JS engine.
3838
# If set to false, you will be using JSC instead.
3939
hermesEnabled=true
40+
41+
# Release configuration
42+
RELEASE_STORE_FILE=app-release-key.keystore
43+
RELEASE_KEY_ALIAS=app-release

‎package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"start": "react-native start",
1111
"test": "jest",
1212
"format:check": "prettier --check --ignore-path .prettierignore .",
13-
"format:fix": "prettier --write --ignore-path .prettierignore ."
13+
"format:fix": "prettier --write --ignore-path .prettierignore .",
14+
"build:android-clean": "cd android && ./gradlew clean",
15+
"build:android-apk": "cd android && ./gradlew build",
16+
"build:android-aab": "cd android && ./gradlew bundleRelease",
17+
"build:android-release": "yarn build:android-clean && yarn build:android-apk"
1418
},
1519
"dependencies": {
1620
"@emotion/native": "^11.11.0",

0 commit comments

Comments
 (0)
Please sign in to comment.