Skip to content

Commit 9227e2a

Browse files
committed
chore: gradle -> kts 마이그레이션
1 parent 50e344d commit 9227e2a

File tree

13 files changed

+163
-148
lines changed

13 files changed

+163
-148
lines changed

app/build.gradle

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

app/build.gradle.kts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id("com.android.application")
3+
id("org.jetbrains.kotlin.android")
4+
}
5+
6+
android {
7+
namespace = "com.lighthouse.beep"
8+
compileSdk = AppConfig.compileSdk
9+
buildToolsVersion = AppConfig.buildToolsVersion
10+
11+
defaultConfig {
12+
applicationId = "com.lighthouse.beep"
13+
minSdk = AppConfig.minSdk
14+
targetSdk = AppConfig.targetSdk
15+
versionCode = AppConfig.versionCode
16+
versionName = AppConfig.versionName
17+
18+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
19+
}
20+
21+
buildTypes {
22+
getByName("release") {
23+
isMinifyEnabled = false
24+
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
25+
}
26+
}
27+
28+
compileOptions {
29+
sourceCompatibility = JavaVersion.VERSION_1_8
30+
targetCompatibility = JavaVersion.VERSION_1_8
31+
}
32+
33+
kotlinOptions {
34+
jvmTarget = "1.8"
35+
}
36+
}
37+
38+
dependencies {
39+
implementation(project(":domain"))
40+
implementation(project(":presentation"))
41+
implementation(project(":data"))
42+
43+
implementation(Libraries.CORE)
44+
}

app/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Add project specific ProGuard rules here.
22
# You can control the set of applied configuration files using the
3-
# proguardFiles setting in build.gradle.
3+
# proguardFiles setting in build.gradle.kts.
44
#
55
# For more details, see
66
# http://developer.android.com/guide/developing/tools/proguard.html

build.gradle

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

build.gradle.kts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
}
6+
}
7+
8+
plugins {
9+
id("com.android.application") version "7.3.1" apply false
10+
id("com.android.library") version "7.3.1" apply false
11+
id("org.jetbrains.kotlin.android") version "1.7.20" apply false
12+
id("org.jetbrains.kotlin.jvm") version "1.7.20" apply false
13+
}
14+
15+
tasks.register("clean", Delete::class) {
16+
delete(rootProject.buildDir)
17+
}

data/build.gradle

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

data/build.gradle.kts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id("com.android.library")
3+
id("org.jetbrains.kotlin.android")
4+
}
5+
6+
android {
7+
namespace = "com.lighthouse.data"
8+
compileSdk = AppConfig.compileSdk
9+
10+
defaultConfig {
11+
minSdk = AppConfig.minSdk
12+
targetSdk = AppConfig.targetSdk
13+
14+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
15+
}
16+
17+
buildTypes {
18+
getByName("release") {
19+
isMinifyEnabled = false
20+
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
21+
}
22+
}
23+
24+
compileOptions {
25+
sourceCompatibility = JavaVersion.VERSION_1_8
26+
targetCompatibility = JavaVersion.VERSION_1_8
27+
}
28+
29+
kotlinOptions {
30+
jvmTarget = "1.8"
31+
}
32+
}
33+
34+
dependencies {
35+
implementation(project(":domain"))
36+
37+
implementation(Libraries.CORE)
38+
implementation(Libraries.APP_COMPAT)
39+
implementation(Libraries.MATERIAL)
40+
41+
testImplementation(TestImpl.JUNIT4)
42+
androidTestImplementation(AndroidTestImpl.ANDROID_JUNIT)
43+
androidTestImplementation(AndroidTestImpl.ESPRESSO)
44+
}

data/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Add project specific ProGuard rules here.
22
# You can control the set of applied configuration files using the
3-
# proguardFiles setting in build.gradle.
3+
# proguardFiles setting in build.gradle.kts.
44
#
55
# For more details, see
66
# http://developer.android.com/guide/developing/tools/proguard.html
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins {
2-
id 'java-library'
3-
id 'org.jetbrains.kotlin.jvm'
2+
id("java-library")
3+
id("org.jetbrains.kotlin.jvm")
44
}
55

66
java {
77
sourceCompatibility = JavaVersion.VERSION_1_8
88
targetCompatibility = JavaVersion.VERSION_1_8
9-
}
9+
}

presentation/build.gradle

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

0 commit comments

Comments
 (0)