Skip to content

Commit 14c6b80

Browse files
committed
Unify naming to libchewing_android_app_module
Signed-off-by: Hui-Hong You <hiroshi@ghostsinthelab.org>
1 parent d4a4727 commit 14c6b80

4 files changed

Lines changed: 71 additions & 68 deletions

File tree

app/build.gradle.kts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ plugins {
2121
alias(libs.plugins.jetbrains.kotlin.android)
2222
}
2323

24+
val projectName: String = "libchewing_android_app_module"
2425
val versionName: String = "0.8.1"
2526

2627
android {
27-
namespace = "com.miyabi_hiroshi.app.libchewing_android_app_module"
28+
namespace = "com.miyabi_hiroshi.app.${projectName}"
2829
compileSdk = 34
2930

3031
defaultConfig {
@@ -36,16 +37,18 @@ android {
3637
cmake {
3738
cFlags("-Wno-unused-function", "-Wno-unused-but-set-variable")
3839
cppFlags += ""
39-
targets("libchewing", "libchewing_android_module")
40+
targets("libchewing", "${projectName}")
4041
}
4142
}
4243

43-
setProperty("archivesBaseName", "${project.name}_${versionName}")
44+
setProperty("archivesBaseName", "${projectName}_${versionName}")
4445
}
4546

4647
buildTypes {
4748
release {
48-
isMinifyEnabled = true
49+
isDefault = true
50+
// NOTICE: SHOULD ALWAYS be false here, because it's a library!
51+
isMinifyEnabled = false
4952
proguardFiles(
5053
getDefaultProguardFile("proguard-android-optimize.txt"),
5154
"proguard-rules.pro"

app/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cmake_minimum_required(VERSION 3.24.0)
1010
# Since this is the top level CMakeLists.txt, the project name is also accessible
1111
# with ${CMAKE_PROJECT_NAME} (both CMake variables are in-sync within the top level
1212
# build script scope).
13-
project("libchewing_android_module" LANGUAGES C CXX)
13+
project("libchewing_android_app_module" LANGUAGES C CXX)
1414

1515
# Import libchewing here:
1616
SET(BUILD_INFO true)

0 commit comments

Comments
 (0)