Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into develop

# Conflicts:
#	feature/bookmark/build.gradle.kts
#	feature/home/build.gradle.kts
#	feature/home/src/main/java/store/newsbriefing/app/feature/home/HomeScreen.kt
#	feature/newsdetail/build.gradle.kts
#	feature/setting/build.gradle.kts
#	gradle/libs.versions.toml
  • Loading branch information
DongChyeon committed Mar 31, 2024
2 parents 6fc9fc7 + 4b112f1 commit df37850
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 151 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class AndroidFeatureConventionPlugin : Plugin<Project> {
add("implementation", project(":core:ui"))
add("implementation", project(":core:designsystem"))

// add("implementation", libs.findLibrary("androidx.hilt.navigation.compose").get())
// add("implementation", libs.findLibrary("androidx.lifecycle.runtimeCompose").get())
// add("implementation", libs.findLibrary("androidx.lifecycle.viewModelCompose").get())
add("implementation", libs.findLibrary("androidx.hilt.navigation.compose").get())
add("implementation", libs.findLibrary("androidx.lifecycle.runtimeCompose").get())
add("implementation", libs.findLibrary("androidx.lifecycle.viewModelCompose").get())
}
}
}
Expand Down
38 changes: 2 additions & 36 deletions feature/bookmark/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,48 +1,14 @@
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.briefing.android.library)
alias(libs.plugins.briefing.android.feature)
}

android {
namespace = "store.newsbriefing.app.feature.bookmark"
compileSdk = 34

defaultConfig {
minSdk = 24

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

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
api(projects.core.model)
api(projects.core.common)
api(projects.core.designsystem)

implementation(libs.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.hilt.navigation.compose)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)
}
39 changes: 2 additions & 37 deletions feature/home/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,49 +1,14 @@
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.briefing.android.library)
alias(libs.plugins.briefing.android.feature)
}

android {
namespace = "store.newsbriefing.app.feature.home"
compileSdk = 34

defaultConfig {
minSdk = 24

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

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
api(projects.core.model)
api(projects.core.common)
api(projects.core.designsystem)

implementation(libs.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.hilt.navigation.compose)
implementation(libs.androidx.compose.runtime)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package store.newsbriefing.app.feature.home
import androidx.compose.runtime.Composable

const val home = "home"

@Composable
fun HomeScreen() {

}
}
39 changes: 2 additions & 37 deletions feature/newsdetail/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,49 +1,14 @@
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.briefing.android.library)
alias(libs.plugins.briefing.android.feature)
}

android {
namespace = "store.newsbriefing.app.feature.newsdetail"
compileSdk = 34

defaultConfig {
minSdk = 24

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

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
api(projects.core.model)
api(projects.core.common)
api(projects.core.designsystem)

implementation(libs.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.androidx.compose.navigation)
implementation(libs.hilt.navigation.compose)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)
}
38 changes: 2 additions & 36 deletions feature/setting/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,48 +1,14 @@
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.briefing.android.library)
alias(libs.plugins.briefing.android.feature)
}

android {
namespace = "store.newsbriefing.app.feature.setting"
compileSdk = 34

defaultConfig {
minSdk = 24

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

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
api(projects.core.model)
api(projects.core.common)
api(projects.core.designsystem)

implementation(libs.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.hilt.navigation.compose)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)
}
6 changes: 6 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ activity-compose = "1.8.2"
hilt = "2.50"
compose-bom = "2024.02.00"
androidxComposeCompiler = "1.5.7"
androidxHiltNavigationCompose = "1.0.0"
androidxLifecycle = "2.6.2"
ksp = "1.9.21-1.0.16"
androidxAppCompat = "1.6.1"
androidxActivity = "1.8.2"
Expand Down Expand Up @@ -40,6 +42,10 @@ androidx-compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "u
androidx-compose-ui-util = { group = "androidx.compose.ui", name = "ui-util" }
androidx-compose-navigation = { group = "androidx.navigation", name = "navigation-compose" }

androidx-hilt-navigation-compose = { group = "androidx.hilt", name = "hilt-navigation-compose", version.ref = "androidxHiltNavigationCompose" }
androidx-lifecycle-runtimeCompose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidxLifecycle" }
androidx-lifecycle-viewModelCompose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "androidxLifecycle" }

secrets-gradle-plugin = { module = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin", version.ref = "secretsGradlePlugin" }
ui = { group = "androidx.compose.ui", name = "ui" }
ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
Expand Down

0 comments on commit df37850

Please sign in to comment.