Skip to content

Commit

Permalink
[Fix]: 충돌 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jinuemong committed Feb 6, 2024
1 parent 065ee13 commit 79b26df
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
12 changes: 6 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@ android {
isMinifyEnabled = true
isShrinkResources = true
isDebuggable = false
android.buildFeatures.buildConfig = true
android.buildFeatures.buildConfig = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
buildConfigField("String","KAKAO_APP_KEY" , getLocalProperty("KAKAO_APP_KEY"))
resValue ("string", "kakao_oauth_key", getLocalProperty("KAKAO_OAUTH_KEY"))
buildConfigField("String", "KAKAO_APP_KEY", getLocalProperty("KAKAO_APP_KEY"))
resValue("string", "kakao_oauth_key", getLocalProperty("KAKAO_OAUTH_KEY"))
}
debug {
isMinifyEnabled = false
isShrinkResources = false
isDebuggable = true
android.buildFeatures.buildConfig = true
android.buildFeatures.buildConfig = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
applicationIdSuffix = ".debug"
buildConfigField("String","KAKAO_APP_KEY" , getLocalProperty("KAKAO_APP_KEY"))
resValue ("string", "kakao_oauth_key", getLocalProperty("KAKAO_OAUTH_KEY"))
buildConfigField("String", "KAKAO_APP_KEY", getLocalProperty("KAKAO_APP_KEY"))
resValue("string", "kakao_oauth_key", getLocalProperty("KAKAO_OAUTH_KEY"))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ac.dnd.bookkeeping.android.data.repository.authentication.MockAuthenticat
import ac.dnd.bookkeeping.android.data.repository.authentication.sociallogin.KakaoLoginRepositoryImpl
import ac.dnd.bookkeeping.android.data.repository.feature.group.MockGroupRepository
import ac.dnd.bookkeeping.android.data.repository.feature.heart.MockHeartRepository
import ac.dnd.bookkeeping.android.data.repository.feature.relation.KakaoFriendRepositoryImpl
import ac.dnd.bookkeeping.android.data.repository.feature.relation.MockRelationRepository
import ac.dnd.bookkeeping.android.data.repository.feature.schedule.MockScheduleRepository
import ac.dnd.bookkeeping.android.data.repository.feature.statistics.MockStatisticsRepository
Expand All @@ -17,6 +18,7 @@ import ac.dnd.bookkeeping.android.domain.repository.GalleryImageRepository
import ac.dnd.bookkeeping.android.domain.repository.GalleryRepository
import ac.dnd.bookkeeping.android.domain.repository.GroupRepository
import ac.dnd.bookkeeping.android.domain.repository.HeartRepository
import ac.dnd.bookkeeping.android.domain.repository.KakaoFriendRepository
import ac.dnd.bookkeeping.android.domain.repository.KakaoLoginRepository
import ac.dnd.bookkeeping.android.domain.repository.MemberRepository
import ac.dnd.bookkeeping.android.domain.repository.RelationRepository
Expand Down Expand Up @@ -80,6 +82,12 @@ internal abstract class RepositoryModule {
kakaoLoginRepositoryImpl: KakaoLoginRepositoryImpl
): KakaoLoginRepository

@Binds
@Singleton
abstract fun bindsKakaoFriendRepository(
kakaoFriendRepositoryImpl: KakaoFriendRepositoryImpl
): KakaoFriendRepository

@Binds
@Singleton
abstract fun bindsFileRepository(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class KakaoFriendRepositoryImpl @Inject constructor(
Result.success(it)
}
.onFailure { error ->
throw ServerException("Error",error.message.toString())
throw ServerException("Error", error.message.toString())
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ac.dnd.bookkeeping.android.domain.repository.KakaoFriendRepository
class GetKakaoFriendInfoUseCase(
private val kakaoFriendRepository: KakaoFriendRepository
) {
suspend operator fun invoke(): Result<KakaoFriendInfo>{
suspend operator fun invoke(): Result<KakaoFriendInfo> {
return kakaoFriendRepository.loadFriendInfo()
}
}
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ androidx-paging-common = { module = "androidx.paging:paging-common-ktx", version
# Google
google-system-contoller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "google-system-contoller" }
# Kakao
kakao-user = { module = "com.kakao.sdk:v2-user", version.ref = "kakao"}
kakao-friend = {module = "com.kakao.sdk:v2-friend", version.ref = "kakao"}
kakao-user = { module = "com.kakao.sdk:v2-user", version.ref = "kakao" }
kakao-friend = { module = "com.kakao.sdk:v2-friend", version.ref = "kakao" }
# Network
ktor-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
Expand Down Expand Up @@ -118,4 +118,4 @@ androidx-presentation = ["androidx-core", "androidx-appcompat", "androidx-compos
network = ["ktor-core", "ktor-okhttp", "ktor-resources", "ktor-content-negotiation", "ktor-kotlinx-serialization",
"ktor-auth", "kotlinx-serialization"]
logging = ["timber", "sentry"]
kakao = ["kakao-user","kakao-friend"]
kakao = ["kakao-user", "kakao-friend"]

0 comments on commit 79b26df

Please sign in to comment.