Skip to content

Commit

Permalink
Merge pull request #331 from boostcampwm2023/androie/feature/330
Browse files Browse the repository at this point in the history
gradle 더 간소화
  • Loading branch information
HamBP authored Dec 12, 2023
2 parents d126752 + 951335f commit 7a90c14
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,23 @@ internal class AndroidLibraryPlugin : Plugin<Project> {

extensions.configure<LibraryExtension> {
compileSdk = 34
defaultConfig.minSdk = 26

defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
minSdk = 26
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
Expand Down
15 changes: 1 addition & 14 deletions android/core/data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import java.util.Properties
import java.io.FileInputStream
import java.util.Properties

@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
Expand All @@ -16,20 +16,7 @@ android {
namespace = "com.ohdodok.catchytape.core.data"

defaultConfig {

buildConfigField("String", "BASE_URL", localProperties["server.url"] as String)
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}

kotlinOptions {
Expand Down
16 changes: 0 additions & 16 deletions android/core/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,6 @@ plugins {
android {
namespace = "com.ohdodok.catchytape.core.ui"

defaultConfig {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}

kotlinOptions {
jvmTarget = "17"
}
Expand Down
15 changes: 0 additions & 15 deletions android/feature/home/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ plugins {
android {
namespace = "com.ohdodok.catchytape.feature.home"

defaultConfig {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
kotlinOptions {
jvmTarget = "17"
}
Expand Down
14 changes: 1 addition & 13 deletions android/feature/login/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import java.util.Properties
import java.io.FileInputStream
import java.util.Properties

@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
Expand All @@ -14,21 +14,9 @@ android {
namespace = "com.ohdodok.catchytape.feature.login"

defaultConfig {

buildConfigField("String", "GOOGLE_CLIENT_ID", localProperties["google.client.id"] as String)
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
kotlinOptions {
jvmTarget = "17"
}
Expand Down
20 changes: 2 additions & 18 deletions android/feature/mypage/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,8 @@ plugins {
android {
namespace = "com.ohdodok.catchytape.feature.mypage"

defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
kotlinOptions {
jvmTarget = "17"
}
kotlinOptions {
jvmTarget = "17"
}
}

Expand Down
14 changes: 0 additions & 14 deletions android/feature/player/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@ plugins {
android {
namespace = "com.ohdodok.catchytape.feature.player"

defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
kotlinOptions {
jvmTarget = "17"
}
Expand Down
15 changes: 0 additions & 15 deletions android/feature/playlist/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ plugins {
android {
namespace = "com.ohdodok.catchytape.feature.playlist"

defaultConfig {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
kotlinOptions {
jvmTarget = "17"
}
Expand Down
14 changes: 0 additions & 14 deletions android/feature/search/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@ plugins {
android {
namespace = "com.ohdodok.catchytape.feature.search"

defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
kotlinOptions {
jvmTarget = "17"
}
Expand Down
15 changes: 0 additions & 15 deletions android/feature/upload/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ plugins {
android {
namespace = "com.ohdodok.catchytape.catchytape.upload"

defaultConfig {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
kotlinOptions {
jvmTarget = "17"
}
Expand Down

0 comments on commit 7a90c14

Please sign in to comment.