File tree Expand file tree Collapse file tree
java/com/miyabi_hiroshi/app/libchewing_android_app_module Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,10 +21,11 @@ plugins {
2121 alias(libs.plugins.jetbrains.kotlin.android)
2222}
2323
24+ val projectName: String = " libchewing_android_app_module"
2425val versionName: String = " 0.8.1"
2526
2627android {
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"
Original file line number Diff line number Diff 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:
1616SET (BUILD_INFO true )
You can’t perform that action at this time.
0 commit comments