-
Notifications
You must be signed in to change notification settings - Fork 1
Feat#60 데모데이 전 QA #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7a352a3
chore: 버전네임 0.0.1
DongChyeon 5374b72
feat: 본인 글 투표 방지 기능 추가
DongChyeon 2302443
feat: 업로드 화면에서 뒤로가기 시 입력 내용이 없으면 바로 종료되도록 수정
DongChyeon 0e1ab0e
feat: Proguard 설정 및 릴리스 빌드 최적화
DongChyeon 0b480b4
feat: Firebase Crashlytics 의존성 및 관련 설정 추가
DongChyeon bc0e855
chore: 버전 코드 1 -> 2
DongChyeon 6995ad7
feat/#60: 피드 천 단위 콤마 포맷팅
DongChyeon 48f0e97
feat/#60: 피드 상세 화면 신고/삭제 기능 구현
DongChyeon b5ac89e
refactor/#60: 피드 가격 천 단위 콤마 포맷팅을 도메인 변환 과정에서 수행
DongChyeon 2307e88
feat/#60: 로그인 시 사용자 프로필 정보 로컬 저장 및 투표자 프로필 이미지 표시
DongChyeon f902913
fix/#60: 앱 최초 실행 시에만 알림 권한을 요청
DongChyeon 15018c2
fix/#60: 유저 정보 저장 suspend 함수로 수정
DongChyeon 89a9f6b
fix/#60: 마이페이지 프로필 로드 실패 시 예외 로깅
DongChyeon 29d3b29
fix/#60: 프로필 조회 실패 시 피드 상세 조회로 에러 전파 방지
DongChyeon 4e7cab9
refactor/#60: NotificationDetailViewModel의 로그 태그를 상수로 변경
DongChyeon 2ac8fb4
chore/#60: Proguard 규칙 수정
DongChyeon dc2ecde
refactor/#60: updateFcmToken를 정지 함수로 만들어 실행 보장
DongChyeon 5ff9472
refactor/#60: 첫 실행 여부를 AppPreferences에서 관리
DongChyeon c229473
fix/#60: isFirstRun 기본값 false로 변경
DongChyeon ed85932
fix/#60: 로그아웃, 회원탈퇴 시 프로필 이미지 정보 삭제
DongChyeon 9820d39
fix/#60: 로그아웃, 회원탈퇴 시 프로필 이름 삭제
DongChyeon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,21 +1,171 @@ | ||
| # 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 | ||
| # ============================================================ | ||
| # [Common] Android | ||
| # ============================================================ | ||
| -keepattributes SourceFile,LineNumberTable | ||
| -keepattributes *Annotation* | ||
| -keepattributes Signature | ||
| -keepattributes InnerClasses | ||
| -keepattributes Exceptions | ||
| -dontwarn sun.misc.** | ||
| -dontwarn javax.annotation.** | ||
|
|
||
| # Enum 보존 | ||
| -keepclassmembers enum * { | ||
| public static **[] values(); | ||
| public static ** valueOf(java.lang.String); | ||
| } | ||
|
|
||
| # Parcelable 보존 | ||
| -keep class * implements android.os.Parcelable { | ||
| public static final ** CREATOR; | ||
| } | ||
|
|
||
| # Serializable 보존 | ||
| -keepclassmembers class * implements java.io.Serializable { | ||
| static final long serialVersionUID; | ||
| private void writeObject(java.io.ObjectOutputStream); | ||
| private void readObject(java.io.ObjectInputStream); | ||
| } | ||
|
|
||
| # ============================================================ | ||
| # [Kotlin] | ||
| # ============================================================ | ||
| -keep class kotlin.Metadata { *; } | ||
| -dontwarn kotlin.** | ||
| -keepclassmembers class **$WhenMappings { | ||
| <fields>; | ||
| } | ||
|
|
||
| # ============================================================ | ||
| # [Kotlinx Coroutines] | ||
| # ============================================================ | ||
| -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} | ||
| -keepnames class kotlinx.coroutines.CoroutineExceptionHandler {} | ||
| -keepclassmembernames class kotlinx.** { | ||
| volatile <fields>; | ||
| } | ||
| -dontwarn kotlinx.coroutines.** | ||
|
|
||
| # ============================================================ | ||
| # [Kotlinx Serialization] | ||
| # ============================================================ | ||
| -keep class kotlinx.serialization.** { *; } | ||
| -keepclassmembers @kotlinx.serialization.Serializable class * { | ||
| *** Companion; | ||
| *** INSTANCE; | ||
| kotlinx.serialization.KSerializer serializer(...); | ||
| } | ||
| -keepclassmembers class * { | ||
| @kotlinx.serialization.Serializable *; | ||
| } | ||
| -keepclassmembers class * { | ||
| kotlinx.serialization.KSerializer serializer(...); | ||
| } | ||
| -keepclassmembers class kotlinx.serialization.json.** { | ||
| *** Companion; | ||
| } | ||
| -dontwarn kotlinx.serialization.** | ||
|
|
||
| # ============================================================ | ||
| # [Hilt / Dagger] | ||
| # ============================================================ | ||
| -keep class dagger.hilt.** { *; } | ||
| -keep class com.google.dagger.** { *; } | ||
| -keep @dagger.hilt.android.lifecycle.HiltViewModel class * { *; } | ||
| -keep @dagger.hilt.InstallIn class * { *; } | ||
| -keep interface * extends javax.inject.Provider | ||
| -dontwarn dagger.hilt.** | ||
|
|
||
| # ============================================================ | ||
| # [Retrofit / OkHttp] | ||
| # ============================================================ | ||
| -keep class retrofit2.** { *; } | ||
| -dontwarn retrofit2.** | ||
| -keepclassmembers class * { | ||
| @retrofit2.http.* <methods>; | ||
| } | ||
| -keepclassmembernames interface * { | ||
| @retrofit2.http.* <methods>; | ||
| } | ||
| -keep class okhttp3.** { *; } | ||
| -dontwarn okhttp3.** | ||
| -dontwarn okio.** | ||
|
|
||
| # ============================================================ | ||
| # [Jetpack Compose] | ||
| # ============================================================ | ||
| -keep class androidx.compose.runtime.RecomposeScopeImpl { *; } | ||
| -keep class * implements androidx.compose.runtime.Stable { *; } | ||
| -keepclassmembers class * { | ||
| @androidx.compose.runtime.Composable <methods>; | ||
| } | ||
|
|
||
| # ============================================================ | ||
| # [AndroidX Lifecycle / ViewModel] | ||
| # ============================================================ | ||
| -keep class * extends androidx.lifecycle.ViewModel { *; } | ||
| -keep class * extends androidx.lifecycle.AndroidViewModel { *; } | ||
| -keepclassmembers class * extends androidx.lifecycle.ViewModel { | ||
| <init>(...); | ||
| } | ||
|
|
||
| # ============================================================ | ||
| # [Navigation Compose] | ||
| # ============================================================ | ||
| -keep class androidx.navigation.** { *; } | ||
|
|
||
| # ============================================================ | ||
| # [AndroidX DataStore] | ||
| # ============================================================ | ||
| -keep class androidx.datastore.** { *; } | ||
|
|
||
| # ============================================================ | ||
| # [AndroidX Credentials / Google Sign-In] | ||
| # ============================================================ | ||
| -keep class androidx.credentials.** { *; } | ||
| -keep class com.google.android.libraries.identity.googleid.** { *; } | ||
| -dontwarn com.google.android.libraries.identity.googleid.** | ||
|
|
||
| # ============================================================ | ||
| # [Coil] | ||
| # ============================================================ | ||
| -keep class coil.** { *; } | ||
| -dontwarn coil.** | ||
|
|
||
| # ============================================================ | ||
| # [Firebase] | ||
| # ============================================================ | ||
| -keep class com.google.firebase.** { *; } | ||
| -dontwarn com.google.firebase.** | ||
|
|
||
| # Crashlytics: 스택 트레이스 보존을 위해 Exception 하위 클래스 유지 | ||
| -keep public class * extends java.lang.Exception | ||
|
|
||
| # ============================================================ | ||
| # [Lottie] | ||
| # ============================================================ | ||
| -keep class com.airbnb.lottie.** { *; } | ||
| -dontwarn com.airbnb.lottie.** | ||
|
|
||
| # ============================================================ | ||
| # [Kakao SDK] | ||
| # ============================================================ | ||
| -keep class com.kakao.sdk.** { *; } | ||
| -dontwarn com.kakao.sdk.** | ||
|
|
||
| # ============================================================ | ||
| # [Domain / Data Models] - API 통신 데이터 클래스 보존 | ||
| # ============================================================ | ||
| # Domain models | ||
| -keep class com.sseotdabwa.buyornot.domain.model.** { *; } | ||
|
|
||
| # Network DTOs (request / response) | ||
| -keep class com.sseotdabwa.buyornot.core.network.dto.** { *; } | ||
|
|
||
| # DataStore preferences holder | ||
| -keep class com.sseotdabwa.buyornot.core.datastore.** { *; } | ||
|
|
||
| # ============================================================ | ||
| # [App] Firebase Cloud Messaging Service | ||
| # ============================================================ | ||
| -keep class com.sseotdabwa.buyornot.notification.** { *; } |
This file contains hidden or 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 hidden or 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 hidden or 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
29 changes: 29 additions & 0 deletions
29
app/src/main/java/com/sseotdabwa/buyornot/ui/BuyOrNotViewModel.kt
This file contains hidden or 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,29 @@ | ||
| package com.sseotdabwa.buyornot.ui | ||
|
|
||
| import androidx.lifecycle.ViewModel | ||
| import androidx.lifecycle.viewModelScope | ||
| import com.sseotdabwa.buyornot.domain.repository.AppPreferencesRepository | ||
| import dagger.hilt.android.lifecycle.HiltViewModel | ||
| import kotlinx.coroutines.flow.SharingStarted | ||
| import kotlinx.coroutines.flow.stateIn | ||
| import kotlinx.coroutines.launch | ||
| import javax.inject.Inject | ||
|
|
||
| @HiltViewModel | ||
| class BuyOrNotViewModel @Inject constructor( | ||
| private val appPreferencesRepository: AppPreferencesRepository, | ||
| ) : ViewModel() { | ||
| val isFirstRun = | ||
| appPreferencesRepository.isFirstRun | ||
| .stateIn( | ||
| scope = viewModelScope, | ||
| started = SharingStarted.WhileSubscribed(5000), | ||
| initialValue = false, | ||
| ) | ||
DongChyeon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| fun updateIsFirstRun(isFirstRun: Boolean) { | ||
| viewModelScope.launch { | ||
| appPreferencesRepository.updateIsFirstRun(isFirstRun) | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.