Skip to content

Commit

Permalink
chore: fix hilt version and delete unnecessary file
Browse files Browse the repository at this point in the history
  • Loading branch information
ansehoon1999 committed Dec 2, 2023
1 parent fc37c8f commit 6fd36b1
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 75 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ dependencies {
androidTestImplementation(Testing.composeTestRunner)
androidTestImplementation(Testing.composeTestUiManifest)
implementation(Testing.composeJunit4)

androidTestImplementation(Testing.hiltTest)
kaptAndroidTest(Testing.hiltTestCompiler)

Expand Down
Binary file modified buildSrc/build/classes/kotlin/main/Versions.class
Binary file not shown.
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ object Versions {
const val composeTestRunner = "1.4.0"
const val composeTestUi = "1.5.4"

const val hiltTest = "2.37"
const val hiltTest = "2.45"

const val orbit = "6.1.0"

Expand Down
17 changes: 0 additions & 17 deletions chart/src/test/java/com/uliga/chart/ExampleUnitTest.kt

This file was deleted.

17 changes: 0 additions & 17 deletions data-local/src/test/java/com/uliga/data_local/ExampleUnitTest.kt

This file was deleted.

17 changes: 0 additions & 17 deletions data-remote/src/test/java/com/uliga/data_remote/ExampleUnitTest.kt

This file was deleted.

17 changes: 0 additions & 17 deletions data/src/test/java/com/uliga/data/ExampleUnitTest.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ import com.uliga.domain.model.accountBook.transaction.AccountBookTransactionIds
import com.uliga.domain.model.accountBook.transaction.AccountBookTransactionRequest
import com.uliga.domain.model.accountBook.transaction.AccountBookTransactionResponse
import com.uliga.domain.repository.AccountBookRepository
import kotlinx.coroutines.flow.Flow

class FakeAccountBookRepository : AccountBookRepository {

private lateinit var accountBookName: String
lateinit var fakeAccountBookName: String

private var accountBookId: Long = 0L
private var fakeAccountBookId: Long = 0L
override val accountBookAsset: Flow<AccountBookAsset?>
get() = TODO("Not yet implemented")

override suspend fun getAccountBooks(): Result<AccountBooks> {
TODO("Not yet implemented")
Expand All @@ -48,13 +51,16 @@ class FakeAccountBookRepository : AccountBookRepository {
}

override suspend fun getAccountBookMonthAsset(
isCurrent: Boolean,
accountBookId: Long,
year: Int,
month: Int
): Result<AccountBookAsset> {
TODO("Not yet implemented")
}



override suspend fun postAccountBookInvitationReply(accountBookInvitationReply: AccountBookInvitationReply): Result<AccountBookInvitationReply> {
TODO("Not yet implemented")
}
Expand Down Expand Up @@ -124,20 +130,25 @@ class FakeAccountBookRepository : AccountBookRepository {
TODO("Not yet implemented")
}

override val accountBookId: Flow<Long?>
get() = TODO("Not yet implemented")
override val accountBookName: Flow<String?>
get() = TODO("Not yet implemented")

override suspend fun updateCurrentAccountBookName(accountBookName: String): Result<Unit> {
return runCatching { this.accountBookName = accountBookName }
return runCatching { this.fakeAccountBookName = accountBookName }
}


override suspend fun getCurrentAccountBookName(): Result<String> {
return runCatching { accountBookName }
return runCatching { fakeAccountBookName }
}

override suspend fun updateCurrentAccountBookId(accountBookId: Long): Result<Unit> {
return runCatching { this.accountBookId = accountBookId }
return runCatching { this.fakeAccountBookId = accountBookId }
}

override suspend fun getCurrentAccountBookId(): Result<Long> {
return runCatching { accountBookId }
return runCatching { fakeAccountBookId }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,12 @@ class FakeUserAuthRepository: UserAuthRepository {
override suspend fun getId(): Result<Long> {
return runCatching { id }
}

override suspend fun updateIsLogin(isLogin: Boolean): Result<Unit> {
TODO("Not yet implemented")
}

override suspend fun getIsLogin(): Result<Boolean> {
TODO("Not yet implemented")
}
}

0 comments on commit 6fd36b1

Please sign in to comment.