-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (60 loc) · 1.92 KB
/
Copy pathbuild.gradle
File metadata and controls
68 lines (60 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
plugins {
alias(libs.plugins.android.application)
}
def nativeAbis() {
return (project.findProperty('abiFilters') ?: 'armeabi-v7a,arm64-v8a,x86,x86_64')
.split(',').collect { it.trim() }.findAll { it }
}
android {
namespace = "com.wenet.WeTextProcessing"
lint {
abortOnError = false
}
signingConfigs {
release {
storeFile file('wenet.keystore')
storePassword '123456'
keyAlias 'wenet'
keyPassword '123456'
}
}
compileSdk = 34
defaultConfig {
applicationId = "com.wenet.WeTextProcessing"
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
ndk {
abiFilters.addAll(nativeAbis())
}
}
buildTypes {
release {
minifyEnabled = false
signingConfig = signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
dependencies {
implementation libs.androidx.appcompat
implementation libs.material
implementation libs.androidx.constraintlayout
testImplementation libs.junit
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.androidx.espresso.core
}
// Native libs are NOT built by Gradle. Build them beforehand with CMake presets
// (from repo root) so the .so files exist in app/src/main/jniLibs/<abi>/:
// export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/<version>
// cd runtime
// cmake --preset android-arm64-v8a
// cmake --build --preset android-arm64-v8a
// cmake --install build/aarch64-linux-android --component jni
// Gradle only packages whatever is already present under jniLibs.