-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
87 lines (74 loc) · 2.09 KB
/
build.gradle
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
apply plugin: 'com.android.library'
apply from: rootProject.file('gradle/WeChatNativeDepend.gradle')
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
// publishNonDefault true
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName rootProject.ext.VERSION_NAME
externalNativeBuild {
cmake {
cppFlags "-std=gnu++11 -frtti -fexceptions"
}
ndk {
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
}
}
// buildTypes {
// release {
// minifyEnabled false
// consumerProguardFiles 'proguard-rules.pro'
// }
// }
//
// externalNativeBuild {
// cmake {
// path "CMakeLists.txt"
// }
// }
//
sourceSets {
main {
jniLibs.srcDirs = ['libs']
java {
srcDir "src/main/java"
}
}
}
buildTypes {
release {
minifyEnabled false
consumerProguardFiles 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation 'androidx.annotation:annotation:1.0.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
testImplementation 'junit:junit:4.12'
implementation project(':matrix-android-lib')
implementation project(':matrix-android-commons')
}
version = rootProject.ext.VERSION_NAME
group = rootProject.ext.GROUP
if (rootProject.file('gradle/WeChatPublish.gradle').exists()) {
if("External" == rootProject.ext.PUBLISH_CHANNEL) {
apply from: rootProject.file('gradle/android-publish.gradle')
}
else {
apply from: rootProject.file('gradle/WeChatPublish.gradle')
wechatPublish {
artifactId = POM_ARTIFACT_ID
}
}
}