-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Weekly/10: Weekly 브랜치의 10주차 개발 내용을 Master 브랜치에 병합
Merge pull request #120 from kakao-tech-campus-2nd-step3/Develop
- Loading branch information
Showing
223 changed files
with
3,829 additions
and
1,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
app/src/main/java/com/kappzzang/jeongsan/di/DatastoreModule.kt
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
app/src/main/java/com/kappzzang/jeongsan/di/EncryptedSharedPreferencesModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.kappzzang.jeongsan.di | ||
|
||
import android.content.Context | ||
import android.content.SharedPreferences | ||
import androidx.security.crypto.EncryptedSharedPreferences | ||
import androidx.security.crypto.MasterKey | ||
import com.kappzzang.jeongsan.JeongsanApplication.Companion.ENCRYPTED_SHARED_PREFERENCES_NAME | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.android.qualifiers.ApplicationContext | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object EncryptedSharedPreferencesModule { | ||
|
||
@Provides | ||
@Singleton | ||
fun provideEncryptedSharedPreferences(@ApplicationContext context: Context): SharedPreferences { | ||
val masterKey = MasterKey.Builder(context) | ||
.setKeyScheme(MasterKey.KeyScheme.AES256_GCM) | ||
.build() | ||
|
||
return EncryptedSharedPreferences.create( | ||
context, | ||
ENCRYPTED_SHARED_PREFERENCES_NAME, | ||
masterKey, | ||
EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV, | ||
EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM | ||
) | ||
} | ||
} |
18 changes: 0 additions & 18 deletions
18
app/src/main/java/com/kappzzang/jeongsan/di/NavigatorModule.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
app/src/main/java/com/kappzzang/jeongsan/di/RepositoryModule.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
app/src/main/java/com/kappzzang/jeongsan/di/UseCaseModule.kt
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
app/src/main/java/com/kappzzang/jeongsan/navigation/NavigatorImpl.kt
This file was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
...a/com/kappzzang/jeongsan/data/AuthData.kt → .../kappzzang/jeongsan/data/KakaoAuthData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
package com.kappzzang.jeongsan.data | ||
|
||
data class AuthData( | ||
data class KakaoAuthData( | ||
val kakaoAccessToken: String, | ||
val accessTokenExpirationTime: Long, | ||
val kakaoRefreshToken: String, | ||
val jwt: String? | ||
val kakaoRefreshToken: String | ||
) |
3 changes: 3 additions & 0 deletions
3
common/androidutil/src/main/java/com/kappzzang/jeongsan/data/ServerAuthData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.kappzzang.jeongsan.data | ||
|
||
data class ServerAuthData(val accessToken: String, val refreshToken: String) |
18 changes: 13 additions & 5 deletions
18
common/androidutil/src/main/java/com/kappzzang/jeongsan/util/AuthenticationRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
package com.kappzzang.jeongsan.util | ||
|
||
import com.kappzzang.jeongsan.data.AuthData | ||
import kotlinx.coroutines.flow.Flow | ||
import com.kappzzang.jeongsan.data.KakaoAuthData | ||
import com.kappzzang.jeongsan.data.ServerAuthData | ||
|
||
interface AuthenticationRepository { | ||
fun getAuthData(): Flow<AuthData> | ||
fun getKakaoAuthData(): KakaoAuthData | ||
|
||
suspend fun updateAuthData(newData: AuthData) | ||
fun getServerAuthData(): ServerAuthData | ||
|
||
suspend fun removeAuthData() | ||
fun updateKakaoAuthData(newData: KakaoAuthData) | ||
|
||
fun updateServerAuthData(newData: ServerAuthData) | ||
|
||
fun removeKakaoAuthData() | ||
|
||
fun removeServerAuthData() | ||
|
||
suspend fun refreshJwtFromServer(authData: ServerAuthData): Result<ServerAuthData> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plugins { | ||
id("com.android.library") | ||
id("org.jetbrains.kotlin.android") | ||
id("org.jlleitschuh.gradle.ktlint") | ||
id("kotlin-kapt") | ||
id("com.google.dagger.hilt.android") | ||
} | ||
|
||
android { | ||
namespace = "com.kappzzang.jeongsan" | ||
} | ||
|
||
dependencies { | ||
implementation("com.google.dagger:hilt-android:2.48.1") | ||
kapt("com.google.dagger:hilt-compiler:2.48.1") | ||
implementation("androidx.core:core-ktx:1.13.1") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
</manifest> |
2 changes: 1 addition & 1 deletion
2
...kappzzang/jeongsan/di/DispatcherModule.kt → ...g/jeongsan/dispatcher/DispatcherModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
common/navigation/src/main/java/com/kappzzang/jeongsan/navigation/AddExpenseNavigator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.kappzzang.jeongsan.navigation | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
import android.net.Uri | ||
import com.kappzzang.jeongsan.model.OcrResultResponse | ||
|
||
interface AddExpenseNavigator { | ||
fun navigateToAddExpenseWithImage( | ||
packageContext: Context, | ||
ocrResponse: OcrResultResponse.OcrSuccess, | ||
image: Uri, | ||
groupId: String | ||
): Intent | ||
|
||
fun navigateToAddExpenseManually(packageContext: Context, groupId: String): Intent | ||
} |
22 changes: 0 additions & 22 deletions
22
common/navigation/src/main/java/com/kappzzang/jeongsan/navigation/AppNavigator.kt
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
common/navigation/src/main/java/com/kappzzang/jeongsan/navigation/CameraNavigator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.kappzzang.jeongsan.navigation | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
|
||
interface CameraNavigator { | ||
fun navigateToCamera(packageContext: Context): Intent | ||
} |
8 changes: 8 additions & 0 deletions
8
common/navigation/src/main/java/com/kappzzang/jeongsan/navigation/CreateGroupNavigator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.kappzzang.jeongsan.navigation | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
|
||
interface CreateGroupNavigator { | ||
fun navigateToCreateGroup(packageContext: Context): Intent | ||
} |
13 changes: 13 additions & 0 deletions
13
common/navigation/src/main/java/com/kappzzang/jeongsan/navigation/ExpenseDetailNavigator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.kappzzang.jeongsan.navigation | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
|
||
interface ExpenseDetailNavigator { | ||
fun navigateToExpenseDetail( | ||
packageContext: Context, | ||
expenseId: String, | ||
groupId: String, | ||
editable: Boolean | ||
): Intent | ||
} |
Oops, something went wrong.