-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathbuild.gradle
82 lines (62 loc) · 1.89 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
apply plugin: 'com.android.library'
apply plugin: 'com.kezong.fat-aar'
// JitPack Maven
apply plugin: 'com.github.dcendents.android-maven'
// Your Group
group = 'com.github.bayescom'
//maven依赖的项目名称
def pomName = "easyads-core"
def extVersionName = ""
def VersionName = "${rootProject.ext.EasyAds_version}${extVersionName}"
def VersionCode = 1
def outputName = pomName + "_" + VersionName + ".aar"
android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 14
targetSdkVersion 29
versionCode VersionCode
versionName VersionName
// 混淆配置自动同步到接入方
consumerProguardFiles 'proguard-rules.pro'
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
println pomName + " VersionName = " + VersionName
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
compileOnly 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// the needed aars are here
compileOnly(name: 'Baidu_MobAds_SDK_9352', ext: 'aar')
compileOnly(name: 'kssdk-ad-3363', ext: 'aar')
compileOnly "com.pangle.cn:mediation-sdk:6.1.2.5"
compileOnly "com.qq.e.union:union:4.575.1445"
}
//android.libraryVariants.all { variant ->
// variant.outputs.all {
// outputFileName = outputName
// }
//}