build.gradle
3.36 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven'
}
android {
compileSdkVersion var.compileSdkVersion
defaultConfig {
minSdkVersion var.minSdkVersion
targetSdkVersion var.targetSdkVersion
versionCode var.versionCode
versionName var.versionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
buildConfigField "String", "API_VERSION", "\"${requestVersion}\""
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// 自定义AAR包名
android.libraryVariants.all { variant ->
variant.outputs.all {
if (outputFileName != null && outputFileName.endsWith(".aar")) {
def fileName = "${project.name}-${buildType.name}-v${var.aar_version}.aar"
outputFileName = fileName
}
}
}
}
dependencies {
api fileTree(include: ['commons-lang3-3.0.jar'], dir: 'src/main/commonlibs')
// implementation 'com.wd:wdkit:1.0.2'
// implementation 'com.wd:wdbean:1.0.0'
// implementation 'com.wd:router:1.0.0'
// implementation 'com.wd:wdnetwork:1.0.0'
api project(path: ':wdrouter')
api project(path: ':wdkit')
api project(path: ':wdinterface')
api project(path: ':wdplayer')
implementation rootProject.ext.support["appcompat-v7"]
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'com.github.hackware1993:MagicIndicator:1.7.0'
// 基础依赖库
api 'com.alibaba:arouter-api:1.5.2'
api 'com.squareup.okhttp3:okhttp:4.8.0'
api 'com.squareup.retrofit2:retrofit:2.9.0'
api 'com.squareup.retrofit2:converter-gson:2.9.0'
api 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
//rxjava
api 'io.reactivex.rxjava2:rxjava:2.2.8'
api 'io.reactivex.rxjava2:rxandroid:2.1.0'
//解析bean
api 'com.alibaba:fastjson:1.2.62'
api 'com.airbnb.android:lottie:5.2.0'
implementation rootProject.ext.dependencies['TagTextView']
implementation rootProject.ext.dependencies["banner"]
api rootProject.ext.dependencies["fresco"]
api rootProject.ext.dependencies["refresh-layout"]// 核心必须依赖
api rootProject.ext.dependencies["refresh-header"]// 经典刷新头
api rootProject.ext.dependencies["refresh-footer"]// 经典加载
// RecyclerView多功能适配器
api rootProject.ext.dependencies["BaseRecyclerViewAdapterHelper"]
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://packages.aliyun.com/6708d221eef79c23d7b02189/maven/repo-higom/") {
authentication(userName: '6708d1cf6f4c940bd257c88d', password: 'Wm51gc4rARyr')
}
pom.project {
artifactId 'display'
version '1.0.0'
groupId 'com.wd'
packaging 'aar'
}
}
}
}