-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
44 lines (37 loc) · 1.33 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
apply plugin: 'com.android.library'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName rootProject.ext.VERSION_NAME
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
implementation 'com.android.support:appcompat-v7:28.0.0'
androidTestImplementation 'com.android.support:support-annotations:28.0.0'
api 'com.android.support:support-annotations:27.0.2'
}
version = rootProject.ext.VERSION_NAME
group = rootProject.ext.GROUP
if("External" == rootProject.ext.PUBLISH_CHANNEL){
apply from: rootProject.file('gradle/android-publish.gradle')
}else {
//uploading to WeChat maven repo
apply from: rootProject.file('gradle/WeChatPublish.gradle')
apply from: rootProject.file('gradle/WeChatNativeDepend.gradle')
wechatPublish {
artifactId=POM_ARTIFACT_ID
}
}