-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
83 lines (70 loc) · 2.17 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id("com.android.application")
id("kotlin-android")
}
repositories {
exclusiveContent {
forRepository {
flatDir { dir(project.file("libs")) }
}
filter {
includeGroup("com.github.kittinunf.hackernews")
}
}
}
android {
compileSdk = Android.compileSdkVersion
namespace = "com.github.kittinunf.app"
defaultConfig {
applicationId = "com.github.kittinunf.app.knews"
minSdk = Android.minSdkVersion
targetSdk = Android.targetSdkVersion
versionCode = 1
versionName = "1.0.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
kotlinOptions {
jvmTarget = "17"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = AndroidX.Versions.compose
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-P", "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true")
}
}
dependencies {
// link hackernews lib and dependencies
// add this instead if you want to consume in the binary format (aar) (debug or release)
// implementation(group = "com.github.kittinunf.hackernews", name = "hackernews-debug", version = "+")
implementation(project(":libs:hackernews"))
implementation(Coroutines.core)
implementation(Ktor.core)
implementation(Ktor.logging)
implementation(Ktor.okttp)
implementation(Serialization.json)
implementation(Time.core)
// core
implementation(Android.material)
implementation(AndroidX.coreKtx)
coreLibraryDesugaring(Android.desugarJdkLibs)
// compose
implementation(Android.accompanist)
implementation(AndroidX.composeActivity)
implementation(AndroidX.composeMaterial)
implementation(AndroidX.composeTooling)
implementation(AndroidX.composeUi)
}