Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (59 loc) · 1.91 KB
/
Copy pathbuild.gradle
File metadata and controls
68 lines (59 loc) · 1.91 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
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.CodingCodersCode'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "1.1.0-alpha-3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
repositories {
jcenter()
maven {
//url "https://jitpack.io",
url 'https://maven.google.com'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//添加RxLifecycle依赖
//api 'com.trello.rxlifecycle2:rxlifecycle:2.2.2'
//api 'com.trello.rxlifecycle2:rxlifecycle-android:2.2.2'
api 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.2'
//api 'com.trello.rxlifecycle2:rxlifecycle-components-preference:2.2.2'
//api 'com.trello.rxlifecycle2:rxlifecycle-navi:2.2.2'
api 'cn.bingoogolapple:bga-swipebacklayout:1.2.0@aar'
//implementation 'com.android.support:support-v4:28.0.0'
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'
}
}
}
}
/*
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '26.+'
}
}
}
}*/