build.gradle
2.79 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
apply plugin: 'com.android.library'
apply plugin: 'maven'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled true
}
// lintOptions {
// abortOnError false
// }
}
//tasks.withType(JavaCompile) {
// options.compilerArgs << "-Xlint:unchecked"
//}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
//分包
compile 'com.android.support:multidex:1.0.1'
//RecyclerView 需要支持库 ,打包时已取消对其发布
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:recyclerview-v7:26.+'
//MVP
compile 'com.hannesdorfmann.mosby3:mvp:3.0.4'
compile 'com.hannesdorfmann.mosby3:viewstate:3.0.4'
compile 'com.hannesdorfmann.mosby3:mvp-lce:3.0.4'
compile 'com.hannesdorfmann.mosby3:mvp-nullobject-presenter:3.0.4'
//GSON
compile 'com.google.code.gson:gson:2.7'
//RxJava
compile 'io.reactivex.rxjava2:rxjava:2.1.0'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
//Retrofit
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
//OKhttp
compile 'com.squareup.okhttp3:okhttp:3.8.1'
compile 'com.squareup.okhttp3:logging-interceptor:3.8.1'
//Java8
compile 'net.sourceforge.streamsupport:streamsupport:1.5.5'
compile 'net.sourceforge.streamsupport:streamsupport-cfuture:1.5.5'
compile 'net.sourceforge.streamsupport:streamsupport-atomic:1.5.5'
compile 'net.sourceforge.streamsupport:streamsupport-flow:1.5.5'
compile 'net.sourceforge.streamsupport:streamsupport-literal:1.5.5'
}
ext {
bintrayRepo = 'cnlive' //Maven 库名称
bintrayName = 'base' //Maven 库内Lib包名
publishedGroupId = 'com.cnlive'
libraryName = 'base'
artifact = 'cnlive' //与包名保持一致!
libraryDescription = 'Libs'
siteUrl = 'http://bj.gitlab.cnlive.com/cnlive-team/CNVideoDemo'
gitUrl = 'http://bj.gitlab.cnlive.com/cnlive-team/CNVideoDemo.git'
libraryVersion = '0.3.4'
developerId = 'CNlive'
developerName = 'Granzon'
developerEmail = 'zhuxiansong@cnlive.com'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
apply from: './from_installv1.gradle'
apply from: './from_bintrayv1.gradle'