forked from goweii/WanAndroid
-
Notifications
You must be signed in to change notification settings - Fork 2
/
basic.gradle
62 lines (59 loc) · 2.14 KB
/
basic.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
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
buildToolsVersion rootProject.ext.android.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
versionCode rootProject.ext.android.versionCode
versionName rootProject.ext.android.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
debuggable false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
"${rootProject.rootDir}/proguard-rules.pro",
'proguard-rules.pro'
}
debug {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
"${rootProject.rootDir}/proguard-rules.pro",
'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility rootProject.ext.compileOptions.sourceCompatibility
targetCompatibility rootProject.ext.compileOptions.targetCompatibility
}
kotlinOptions {
jvmTarget = rootProject.ext.kotlinOptions.jvmTarget
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
resourcePrefix project.name + "_"
}
dependencies {
// implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
implementation rootProject.ext.dependencies.androidx
implementation rootProject.ext.dependencies.androidxKtx
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version"
}
repositories {
flatDir {
dirs 'libs'
}
mavenCentral()
}