-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
123 lines (100 loc) · 3.26 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.base'
artifactId = 'library'
version = '1.0.18'
}
}
repositories {
maven {
// allowInsecureProtocol true
// name = "nexus"
// url = MAVEN_RELEASE_URL
// credentials {
// username = MAVEN_USERNAME
// password = MAVEN_PASSWORD
// }
}
}
}
}
//afterEvaluate {
// publishing {
// publications {
// // Creates a Maven publication called "release".
// maven(MavenPublication) {
// from components.release
// groupId ='com.base'
// artifactId = 'library'
// version ='1.0.18'
// }
// }
// }
//}
android {
compileSdk 31
defaultConfig {
minSdk 21
targetSdk 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
buildFeatures {
dataBinding true
}
compileSdkVersion 30
buildToolsVersion '30.0.2'
}
dependencies {
// val lifecycle_version = '2.2.0'
def nav_version = "2.3.5"
def roomom_version = "2.3.5"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
// implementation 'com.jetbrains.kotlin:kotlin-stdlib-jdk8:'
// viewModel
api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0"
api "androidx.fragment:fragment-ktx:1.3.1"
// implementation "androidx.room:room-runtime:$room_version"
// // For Kotlin use kapt instead of annotationProcessor (注意这个注释)
// kapt "androidx.room:room-compiler:$room_version"
//navigation
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation "com.squareup.okhttp3:logging-interceptor:4.9.0"
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.3.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1")
implementation 'com.kunminx.archi:unpeek-livedata:4.4.1-beta1'
implementation 'me.jessyan:retrofit-url-manager:1.4.0'
}