From 5fb870ec3a11aed545f76bc9d776f284782e28f1 Mon Sep 17 00:00:00 2001 From: ansehoon1999 Date: Sat, 2 Dec 2023 16:48:32 +0900 Subject: [PATCH] chore: fix hilt version and delete unnecessary file --- app/build.gradle.kts | 1 + .../build/classes/kotlin/main/Versions.class | Bin 4901 -> 4891 bytes buildSrc/src/main/java/Dependencies.kt | 2 +- .../java/com/uliga/chart/ExampleUnitTest.kt | 17 ------------- .../com/uliga/data_local/ExampleUnitTest.kt | 17 ------------- .../com/uliga/data_remote/ExampleUnitTest.kt | 17 ------------- .../java/com/uliga/data/ExampleUnitTest.kt | 17 ------------- .../FakeAccountBookRepository.kt | 23 +++++++++++++----- .../fakeRepository/FakeUserAuthRepository.kt | 8 ++++++ 9 files changed, 27 insertions(+), 75 deletions(-) delete mode 100644 chart/src/test/java/com/uliga/chart/ExampleUnitTest.kt delete mode 100644 data-local/src/test/java/com/uliga/data_local/ExampleUnitTest.kt delete mode 100644 data-remote/src/test/java/com/uliga/data_remote/ExampleUnitTest.kt delete mode 100644 data/src/test/java/com/uliga/data/ExampleUnitTest.kt diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 598a849..53b14d5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -145,6 +145,7 @@ dependencies { androidTestImplementation(Testing.composeTestRunner) androidTestImplementation(Testing.composeTestUiManifest) implementation(Testing.composeJunit4) + androidTestImplementation(Testing.hiltTest) kaptAndroidTest(Testing.hiltTestCompiler) diff --git a/buildSrc/build/classes/kotlin/main/Versions.class b/buildSrc/build/classes/kotlin/main/Versions.class index 6130d8ec51dccde826ce3b0d9312e791d2b69144..8bd5899fb00c39b149a4ea9fe154aa89372d175b 100644 GIT binary patch literal 4891 zcmaKw`*R#e5yyL1(rJCx%a6#C?bwbTCw?S*y3@l>Y#b!n#aJ8%ep&lf^jT5oUrY5;Bl#l+2=#i_I`3hrybVA&%lGu zhGQmUQQ@*XTwl(AMn&37>#4*+way}WO>QJS>rboo?4y~A+7&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pVPHrR;9b{lMu#vU=)sK&+&Hm7v@VS~+T%$(<(#x5Fum;MjCtg$PG--5=j87!}{MT6bY*vAaEq_Jg# zt!V7y2D_;-v(9d5%&hC@HTDT3<_jA8l)+xqSkYi5jWL5&G`40iuCbcILXAZR6B;wm zLqlWcT<&TNjhIqnErYFV%#69Av6l?Lmo;Xdl~*+O8N=^YjhQvSrLoT$ey?fl3kJKV zu`e0yb&Y++U~g#bYX*B$W8W|sy?3a0>pk41u1??0r2d{ddWNp_!h*h2@58tLOgAq4 zfqqrP2lzMqk$wlZ4dB}p3h0IK-LCU-vQ~D3e+T#0`|zu4r~V4RRzaMHg1GP}(p>lr zDE1$s-=lZT_isbb0{mbBez*WXf**hI^b_^;Qv&erZEz5N20ym0aez`i-u9_rj`AZ^|HgD%|1uoLMRnd`TYr)Q41@Cc(B zFfnCSWlq(9;Ab)6z%-9`7|7r;7fwDl5jU4Ix3DZsTLrG1)_5{oC38e_nX=`=Rw&CA zmd722QXN*QWWGoiC|e_Jtun8$BJNUJ$Qt8q#4E$vZBzeqMH+be9Jvi-suc@E!G z9S*2ulSm#?c37BRAg4O(Sc$vGTRcWD*Lqsop6Yf}~w7UT{SsSYPpG9;2Gm4$`1 zD~kw=t=6TUuz{JPI2LgT|cEuGB;33}%yz!2uioKkU6}!K}Y@UzeZA0-K-ok2xNHu|9?kPg;=X$5TJX{dk6nreJ- G + get() = TODO("Not yet implemented") override suspend fun getAccountBooks(): Result { TODO("Not yet implemented") @@ -48,6 +51,7 @@ class FakeAccountBookRepository : AccountBookRepository { } override suspend fun getAccountBookMonthAsset( + isCurrent: Boolean, accountBookId: Long, year: Int, month: Int @@ -55,6 +59,8 @@ class FakeAccountBookRepository : AccountBookRepository { TODO("Not yet implemented") } + + override suspend fun postAccountBookInvitationReply(accountBookInvitationReply: AccountBookInvitationReply): Result { TODO("Not yet implemented") } @@ -124,20 +130,25 @@ class FakeAccountBookRepository : AccountBookRepository { TODO("Not yet implemented") } + override val accountBookId: Flow + get() = TODO("Not yet implemented") + override val accountBookName: Flow + get() = TODO("Not yet implemented") + override suspend fun updateCurrentAccountBookName(accountBookName: String): Result { - return runCatching { this.accountBookName = accountBookName } + return runCatching { this.fakeAccountBookName = accountBookName } } override suspend fun getCurrentAccountBookName(): Result { - return runCatching { accountBookName } + return runCatching { fakeAccountBookName } } override suspend fun updateCurrentAccountBookId(accountBookId: Long): Result { - return runCatching { this.accountBookId = accountBookId } + return runCatching { this.fakeAccountBookId = accountBookId } } override suspend fun getCurrentAccountBookId(): Result { - return runCatching { accountBookId } + return runCatching { fakeAccountBookId } } } \ No newline at end of file diff --git a/domain/src/test/java/com/uliga/domain/fakeRepository/FakeUserAuthRepository.kt b/domain/src/test/java/com/uliga/domain/fakeRepository/FakeUserAuthRepository.kt index e07a102..e257150 100644 --- a/domain/src/test/java/com/uliga/domain/fakeRepository/FakeUserAuthRepository.kt +++ b/domain/src/test/java/com/uliga/domain/fakeRepository/FakeUserAuthRepository.kt @@ -66,4 +66,12 @@ class FakeUserAuthRepository: UserAuthRepository { override suspend fun getId(): Result { return runCatching { id } } + + override suspend fun updateIsLogin(isLogin: Boolean): Result { + TODO("Not yet implemented") + } + + override suspend fun getIsLogin(): Result { + TODO("Not yet implemented") + } } \ No newline at end of file