From d8a0b9255e50bd3908a1106d7a46e487051fef92 Mon Sep 17 00:00:00 2001 From: Sangwook123 Date: Tue, 2 Apr 2024 23:44:04 +0900 Subject: [PATCH] [feat] #1 gradle setting --- app/build.gradle | 44 -------------------------- app/build.gradle.kts | 35 ++++++++++++++++++++ app/proguard-rules.pro | 2 +- build.gradle | 6 ---- build.gradle.kts | 18 +++++++++++ settings.gradle => settings.gradle.kts | 6 +++- 6 files changed, 59 insertions(+), 52 deletions(-) delete mode 100644 app/build.gradle create mode 100644 app/build.gradle.kts delete mode 100644 build.gradle create mode 100644 build.gradle.kts rename settings.gradle => settings.gradle.kts (81%) diff --git a/app/build.gradle b/app/build.gradle deleted file mode 100644 index ef8934d..0000000 --- a/app/build.gradle +++ /dev/null @@ -1,44 +0,0 @@ -plugins { - id 'com.android.application' - id 'org.jetbrains.kotlin.android' -} - -android { - namespace 'com.sopt.now' - compileSdk 34 - - defaultConfig { - applicationId "com.sopt.now" - minSdk 28 - targetSdk 34 - versionCode 1 - versionName "1.0" - - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - } - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_17 - targetCompatibility JavaVersion.VERSION_17 - } - kotlinOptions { - jvmTarget = '17' - } -} - -dependencies { - - implementation 'androidx.core:core-ktx:1.12.0' - implementation 'androidx.appcompat:appcompat:1.6.1' - implementation 'com.google.android.material:material:1.11.0' - implementation 'androidx.constraintlayout:constraintlayout:2.1.4' - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.5' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' -} \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts new file mode 100644 index 0000000..9df9fd0 --- /dev/null +++ b/app/build.gradle.kts @@ -0,0 +1,35 @@ +plugins { + alias(libs.plugins.sopt.android.application) + alias(libs.plugins.sopt.android.hilt) +} + +android { + namespace = "com.sopt.now" + + defaultConfig { + applicationId = "com.sopt.now" + versionCode = 1 + versionName = "1.0" + } + viewBinding.enable = true + buildTypes { + getByName("release") { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro", + ) + } + } +} + +dependencies { + + implementation("androidx.core:core-ktx:1.12.0") + implementation("androidx.appcompat:appcompat:1.6.1") + implementation("com.google.android.material:material:1.11.0") + implementation("androidx.constraintlayout:constraintlayout:2.1.4") + testImplementation("junit:junit:4.13.2") + androidTestImplementation("androidx.test.ext:junit:1.1.5") + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb43..ff59496 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,6 +1,6 @@ # Add project specific ProGuard rules here. # You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. +# proguardFiles setting in build.gradle.kts. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html diff --git a/build.gradle b/build.gradle deleted file mode 100644 index be6601c..0000000 --- a/build.gradle +++ /dev/null @@ -1,6 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. -plugins { - id 'com.android.application' version '8.3.1' apply false - id 'com.android.library' version '8.3.1' apply false - id 'org.jetbrains.kotlin.android' version '1.9.0' apply false -} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..71dc0a7 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,18 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +plugins { + alias(libs.plugins.android.application) apply false + alias(libs.plugins.android.library) apply false + alias(libs.plugins.kotlin.android) apply false + alias(libs.plugins.kotlin.jvm) apply false + alias(libs.plugins.kotlin.serialization) apply false + alias(libs.plugins.ksp) apply false + alias(libs.plugins.hilt) apply false +} + +buildscript { + repositories { + google() + mavenCentral() + maven(url = "https://jitpack.io") + } +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle.kts similarity index 81% rename from settings.gradle rename to settings.gradle.kts index b09754c..f998599 100644 --- a/settings.gradle +++ b/settings.gradle.kts @@ -1,4 +1,5 @@ pluginManagement { + includeBuild("build-logic") repositories { google { content { @@ -20,4 +21,7 @@ dependencyResolutionManagement { } rootProject.name = "NOW SOPT Android" -include ':app' +include(":app") +include(":feature:main") +include(":core:ui") +include(":core:model")