diff --git a/android/.gitignore b/android/.gitignore index 30b8e41a..dcb41468 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -66,7 +66,10 @@ keystore.properties .cxx/ # Google Services (e.g. APIs or Firebase) -google-services.json +# google-services.json은 비밀정보가 아니다(API 키는 패키지명+SHA-1로 제한됨). +# 무시하면 다른 머신·CI에서 google-services 플러그인이 조용히 미적용되어 +# Firebase 리소스 없는 APK가 나오고 푸시가 에러 없이 죽는다(#361). +# google-services.json # Freeline freeline.py diff --git a/android/app/google-services.json b/android/app/google-services.json new file mode 100644 index 00000000..24578066 --- /dev/null +++ b/android/app/google-services.json @@ -0,0 +1,29 @@ +{ + "project_info": { + "project_number": "266626418049", + "project_id": "finders-firebase", + "storage_bucket": "finders-firebase.firebasestorage.app" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:266626418049:android:97d15cca1a967db201d480", + "android_client_info": { + "package_name": "com.finders" + } + }, + "oauth_client": [], + "api_key": [ + { + "current_key": "AIzaSyBLFOVwkDrk0p_PjsTzt1WsTygQnoPDyUI" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [] + } + } + } + ], + "configuration_version": "1" +} diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index f1b42451..4d949284 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -19,3 +19,10 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile + +# Kakao SDK는 모델을 kotlinx.serialization으로 다루는데 KakaoJson이 serializer를 +# 리플렉션으로 찾는다. R8은 그 참조를 못 봐서 컴파일 시 생성된 $$serializer/Companion을 +# 통째로 지우고, 저장된 토큰을 읽는 순간 SerializationException이 난다(#361). +# SDK의 consumer 룰은 액티비티만 keep한다. 2.23.0 기준 @Serializable 클래스는 +# 전부 *.model 패키지 안에 있다(auth/common/share/template/user). +-keep class com.kakao.sdk.**.model.* { ; } diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_background.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_background.xml deleted file mode 100644 index 26888508..00000000 --- a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_background.xml +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_foreground.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_foreground.xml deleted file mode 100644 index 20538935..00000000 --- a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_foreground.xml +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file