Skip to content

Commit

Permalink
Weekly/9: Develop 브랜치의 9주차 개발 내용을 Master 브랜치에 병합
Browse files Browse the repository at this point in the history
  • Loading branch information
jsh00325 authored Nov 1, 2024
2 parents 0f851fb + 6ab8fe2 commit 54b0e22
Show file tree
Hide file tree
Showing 83 changed files with 1,781 additions and 501 deletions.
7 changes: 2 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ android {
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

buildConfigField("String", "KAKAO_REST_API_KEY", getApiKey("KAKAO_REST_API_KEY"))
buildConfigField("String", "KAKAO_API_KEY", getApiKey("KAKAO_API_KEY"))
resValue("string", "KAKAO_API_KEY_MANIFEST", getApiKey("KAKAO_API_KEY_MANIFEST"))
}

buildTypes {
Expand All @@ -48,7 +44,6 @@ android {
buildFeatures {
dataBinding = true
viewBinding = true
buildConfig = true
}
}

Expand Down Expand Up @@ -88,4 +83,6 @@ dependencies {
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("com.google.dagger:hilt-android:2.48.1")
kapt("com.google.dagger:hilt-compiler:2.48.1")

implementation(project(":build-config"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.kappzzang.jeongsan
import android.app.Application
import android.util.Log
import com.kakao.sdk.common.KakaoSdk
import com.kappzzang.jeongsan.build_config.BuildConfig
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/java/com/kappzzang/jeongsan/di/DispatcherModule.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.kappzzang.jeongsan.di

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers

@Module
@InstallIn(SingletonComponent::class)
object DispatcherModule {

@Provides
fun provideIoDispatcher(): CoroutineDispatcher = Dispatchers.IO
}
1 change: 1 addition & 0 deletions build-config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
43 changes: 43 additions & 0 deletions build-config/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("org.jlleitschuh.gradle.ktlint")
}

fun getApiKey(key: String): String = gradleLocalProperties(rootDir, providers).getProperty(key)

android {
compileSdk = 34
namespace = "com.kappzzang.jeongsan.build_config"

buildTypes {
debug {
buildConfigField("String", "KAKAO_REST_API_KEY", getApiKey("KAKAO_REST_API_KEY"))
buildConfigField("String", "KAKAO_API_KEY", getApiKey("KAKAO_API_KEY"))
buildConfigField("String", "KEYSTORE_NAME", getApiKey("KEYSTORE_NAME"))
resValue("string", "KAKAO_API_KEY", getApiKey("KAKAO_API_KEY"))
resValue("string", "KAKAO_API_KEY_MANIFEST", getApiKey("KAKAO_API_KEY_MANIFEST"))

buildConfigField("String", "KAKAO_API_URL", getApiKey("KAKAO_API_URL"))
buildConfigField("String", "SERVICE_URL", getApiKey("SERVICE_URL"))
buildConfigField("String", "KAKAO_AUTH_URL", getApiKey("KAKAO_AUTH_URL"))
}

release {
buildConfigField("String", "KAKAO_REST_API_KEY", getApiKey("KAKAO_REST_API_KEY"))
buildConfigField("String", "KAKAO_API_KEY", getApiKey("KAKAO_API_KEY"))
buildConfigField("String", "KEYSTORE_NAME", getApiKey("KEYSTORE_NAME"))
resValue("string", "KAKAO_API_KEY", getApiKey("KAKAO_API_KEY"))
resValue("string", "KAKAO_API_KEY_MANIFEST", getApiKey("KAKAO_API_KEY_MANIFEST"))

buildConfigField("String", "KAKAO_API_URL", getApiKey("KAKAO_API_URL"))
buildConfigField("String", "SERVICE_URL", getApiKey("SERVICE_URL"))
buildConfigField("String", "KAKAO_AUTH_URL", getApiKey("KAKAO_AUTH_URL"))
}
}
buildFeatures {
buildConfig = true
}
}
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ allprojects {
}

group = "com.kappzzang.jeongsan"

afterEvaluate {
project.apply("$rootDir/gradle/common.gradle")
}
}
27 changes: 0 additions & 27 deletions common/datastore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,13 @@ plugins {

android {
namespace = "com.kappzzang.datastore"
compileSdk = 34

defaultConfig {
minSdk = 26

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_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}

dependencies {

implementation("androidx.datastore:datastore-preferences:1.1.1")
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("com.google.android.material:material:1.12.0")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.2.1")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
}
22 changes: 0 additions & 22 deletions common/navigation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,11 @@ plugins {

android {
namespace = "com.kappzzang.jeongsan.navigation"
compileSdk = 34

defaultConfig {
minSdk = 26

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_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}

Expand All @@ -37,7 +18,4 @@ dependencies {
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("com.google.android.material:material:1.12.0")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.2.1")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
}
15 changes: 0 additions & 15 deletions common/resource/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ plugins {

android {
namespace = "com.kappzzang.jeongsan"
compileSdk = 34

defaultConfig {
minSdk = 26

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion common/resource/src/main/res/values/dimen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
<!-- 송금 요청 금액 확인 페이지 -->
<dimen name="send_message_line_height"> 3dp </dimen>
<dimen name="send_message_menu_text_size"> 20sp </dimen>
</resources>
</resources>
28 changes: 1 addition & 27 deletions common/retrofit/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
Expand All @@ -8,33 +6,8 @@ plugins {
id("com.google.dagger.hilt.android")
}

fun getApiKey(key: String): String = gradleLocalProperties(rootDir, providers).getProperty(key)

android {
namespace = "com.kappzzang.jeongsan"
compileSdk = 34

defaultConfig {
minSdk = 26

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

buildConfigField("String", "KAKAO_API_URL", getApiKey("KAKAO_API_URL"))
buildConfigField("String", "SERVICE_URL", getApiKey("SERVICE_URL"))
buildConfigField("String", "KAKAO_AUTH_URL", getApiKey("KAKAO_AUTH_URL"))
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}

buildFeatures {
buildConfig = true
}
}

dependencies {
Expand All @@ -44,4 +17,5 @@ dependencies {

implementation("com.squareup.retrofit2:retrofit:2.11.0")
implementation("com.squareup.retrofit2:converter-gson:2.11.0")
implementation(project(":build-config"))
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.kappzzang.jeongsan.retrofit

import com.kappzzang.jeongsan.BuildConfig
import com.kappzzang.jeongsan.build_config.BuildConfig
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
45 changes: 2 additions & 43 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
Expand All @@ -10,25 +8,9 @@ plugins {

android {
namespace = "com.kappzzang.jeongsan"
compileSdk = 34

defaultConfig {
minSdk = 26

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}

subprojects {
fun getApiKey(key: String): String = gradleLocalProperties(rootDir, providers).getProperty(key)
apply {
plugin("com.android.library")
plugin("org.jetbrains.kotlin.android")
Expand All @@ -47,6 +29,7 @@ subprojects {
implementation(project(":common:util"))
implementation(project(":domain"))
implementation(project(":domain:group"))
implementation(project(":build-config"))

// Test Dependencies
testImplementation("org.assertj:assertj-core:3.25.3")
Expand All @@ -58,30 +41,6 @@ subprojects {
testImplementation("androidx.arch.core:core-testing:2.2.0")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
kaptAndroidTest("com.google.dagger:hilt-android-compiler:2.48.1")
}

android {
compileSdk = 34

defaultConfig {
minSdk = 26

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

buildConfigField("String", "KAKAO_REST_API_KEY", getApiKey("KAKAO_REST_API_KEY"))
buildConfigField("String", "KAKAO_API_KEY", getApiKey("KAKAO_API_KEY"))
buildConfigField("String", "KEYSTORE_NAME", getApiKey("KEYSTORE_NAME"))
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
buildFeatures {
buildConfig = true
}
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
}
}
5 changes: 5 additions & 0 deletions data/expense/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
plugins {
kotlin("plugin.serialization") version "1.9.0"
}

android {
namespace = "com.kappzzang.jeongsan.expense"
}
dependencies {
implementation(project(":domain:expense"))
implementation("androidx.room:room-ktx:2.6.1")
implementation("com.kakao.sdk:v2-talk:2.20.6")
implementation(project(":domain:common-user"))
testImplementation("androidx.room:room-testing:2.6.1")
}
Loading

0 comments on commit 54b0e22

Please sign in to comment.