forked from Ptt-official-app/Ptt-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (51 loc) · 1.74 KB
/
build.gradle.kts
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
plugins {
id("com.android.library")
kotlin("android")
}
android {
namespace = "cc.ptt.android.common"
compileSdk = GlobalConfig.ANDROID_BUILD_SDK_VERSION
buildFeatures.buildConfig = true
defaultConfig {
minSdk = GlobalConfig.ANDROID_BUILD_MIN_SDK_VERSION
testInstrumentationRunner = GlobalConfig.testInstrumentationRunner
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
getByName("release") {
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = GlobalConfig.JDKVersion
targetCompatibility = GlobalConfig.JDKVersion
}
buildFeatures {
buildConfig = true
}
}
dependencies {
implementation(Dependencies.AndroidX.appcompat)
implementation(Dependencies.Google.material)
// Koin Core features
implementation(Dependencies.Koin.Core.core)
// Koin main features for Android
implementation(Dependencies.Koin.Android.android)
// Kotlin
implementation(Dependencies.Kotlin.Coroutines.core)
implementation(Dependencies.Kotlin.Coroutines.android)
// Square
implementation(Dependencies.Square.okhttp)
implementation(Dependencies.Square.log)
implementation(Dependencies.Square.okio)
implementation(Dependencies.Square.Retrofit.core)
implementation(Dependencies.Square.Retrofit.gsonConverter)
implementation(Dependencies.AndroidX.coreKtx)
testImplementation(Dependencies.junit)
androidTestImplementation(Dependencies.AndroidX.Test.Ext.junit)
androidTestImplementation(Dependencies.AndroidX.Test.Ext.espresso)
}