Skip to content

Commit 7d07606

Browse files
committed
chore: use kts
1 parent a722221 commit 7d07606

File tree

7 files changed

+71
-688
lines changed

7 files changed

+71
-688
lines changed

app/build.gradle

Lines changed: 0 additions & 44 deletions
This file was deleted.

app/build.gradle.kts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
plugins {
2+
androidApplication
3+
kotlinAndroid
4+
kotlinParcelize
5+
kotlinKapt
6+
daggerHilt
7+
}
8+
9+
android {
10+
compileSdkVersion(Config.compileSdk)
11+
12+
defaultConfig {
13+
applicationId("com.kryptkode.android.module.template")
14+
minSdkVersion(Config.minSdk)
15+
targetSdkVersion(Config.targetSdk)
16+
versionCode = 1
17+
versionName = "1.0"
18+
19+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
20+
}
21+
22+
23+
buildTypes {
24+
buildTypes {
25+
getByName(BuildTypes.RELEASE) {
26+
isMinifyEnabled = true
27+
}
28+
}
29+
}
30+
31+
kotlinOptions {
32+
jvmTarget = "1.8"
33+
}
34+
}
35+
36+
dependencies {
37+
38+
implementation(Libs.kotlin_stdlib)
39+
implementation(Libs.core_ktx)
40+
implementation(Libs.appcompat)
41+
implementation(Libs.timber)
42+
43+
implementation(Libs.moshi_kotlin)
44+
45+
implementation(Libs.room_ktx)
46+
implementation(Libs.room_runtime)
47+
48+
implementation(Libs.constraintlayout)
49+
implementation(Libs.material)
50+
51+
implementation(Libs.navigation_fragment_ktx)
52+
implementation(Libs.navigation_ui_ktx)
53+
54+
debugImplementation ("com.squareup.leakcanary:leakcanary-android:2.6")
55+
56+
57+
implementation(Libs.hilt_android)
58+
kapt(Libs.hilt_android_compiler)
59+
implementation(Libs.hilt_lifecycle_viewmodel)
60+
kapt(Libs.hilt_compiler)
61+
62+
testImplementation(Libs.junit_junit)
63+
androidTestImplementation(Libs.androidx_test_ext_junit)
64+
androidTestImplementation(Libs.espresso_core)
65+
}

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ buildscript {
1616

1717
plugins {
1818
buildSrcVersions
19-
id(ScriptsPlugins.quality)
19+
quality
20+
jacoco
2021
}
2122

2223
allprojects {

buildSrc/src/main/kotlin/extensions/PluginExtensions.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ val PluginDependenciesSpec.androidApplication: PluginDependencySpec
2626
val PluginDependenciesSpec.androidLibrary: PluginDependencySpec
2727
get() = id(ScriptsPlugins.androidLibrary)
2828

29+
val PluginDependenciesSpec.quality: PluginDependencySpec
30+
get() = id(ScriptsPlugins.quality)
31+
2932
val PluginDependenciesSpec.kotlinAndroid: PluginDependencySpec
3033
get() = id(GradlePluginId.kotlinAndroid)
3134

0 commit comments

Comments
 (0)