Skip to content

Commit 9bc5d44

Browse files
authored
[android] revert to shared lib (#182)
1 parent 5b27a59 commit 9bc5d44

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

runtime/android/app/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ android {
2222
}
2323
}
2424
packagingOptions {
25-
pickFirst 'lib/arm64-v8a/libc++_shared.so'
25+
jniLibs {
26+
pickFirsts += ['lib/arm64-v8a/libc++_shared.so']
27+
}
2628
}
2729
configurations {
2830
extractForNativeBuild

runtime/android/app/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ add_subdirectory(utils)
1919
add_subdirectory(processor)
2020

2121
link_libraries(wetext_processor android)
22-
add_library(${TARGET} STATIC wetextprocessing.cc)
22+
add_library(${TARGET} SHARED wetextprocessing.cc)

runtime/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
jcenter()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:4.1.3'
7+
classpath 'com.android.tools.build:gradle:4.2.2'
88
}
99
}
1010

0 commit comments

Comments
 (0)