Skip to content

Commit

Permalink
[feat] firebase crashlytics 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Haeeul committed Nov 14, 2023
1 parent 4083814 commit 7d78202
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
9 changes: 9 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
id 'kotlin-parcelize'
id 'com.google.gms.google-services'
id 'androidx.navigation.safeargs.kotlin'
id 'com.google.firebase.crashlytics'
}

android {
Expand All @@ -22,7 +23,14 @@ android {
}

buildTypes {
debug{
manifestPlaceholders = [crashlyticsCollectionEnabled:"false"]
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
manifestPlaceholders = [crashlyticsCollectionEnabled:"true"]
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
Expand Down Expand Up @@ -118,6 +126,7 @@ dependencies {
// Firebase SDK
implementation platform(Dependencies.firebaseBom)
implementation Dependencies.firebaseKtx
implementation Dependencies.firebaseCrashlytics

// EncryptedSharedPreferences
implementation Dependencies.encryptedSharedPreferences
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
android:supportsRtl="true"
android:theme="@style/Theme.ScentsNoteAndroid"
tools:replace="android:allowBackup,android:theme">

<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="${crashlyticsCollectionEnabled}" />

<activity android:name="com.scentsnote.android.utils.base.BaseWebViewActivity" />
<activity
android:name="com.scentsnote.android.ui.splash.SplashActivity"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<string name="dialog_app_update">더욱 좋아진 서비스를 사용하시기 위해서\n새로운 버전으로 업데이트가 필요합니다.</string>
<string name="do_login">로그인 하기</string>
<string name="dialog_network_error">[센츠노트 서비스 점검]\n보다 안정적인 서비스 이용을 위해\n현재 서버 점검 작업 중에 있습니다.\n빠르게 점검 중이니 조금만 기다려주시면\n정상적인 서비스를 이용하실 수 있습니다.\n불편을 드려 죄송합니다. </string>

<!--survey-->
<string name="survey_question">회원가입을 축하합니다!\n어떤 향을 좋아하세요?</string>
<string name="survey_desc">취향을 선택하고 나에게 맞는 향수를\n추천 받아보세요!</string>
<string name="txt_list_empty"> %1$s 리스트를 불러오지 못했어요.\n 잠시 후 다시 시도해주세요.</string>
<string name="percentage">%s</string>

<!--new perfume-->
<string name="txt_want_perfume_null">원하는 향수가 없으신가요?</string>
<string name="txt_perfume_update_day">매주 수요일 업데이트</string>
Expand Down Expand Up @@ -70,7 +70,7 @@
<string name="txt_home_subtitle_age_null">설정에서 연령을 선택하면 더 잘 맞는 향수를 보여드려요</string>
<string name="txt_home_subtitle_gender_null">설정에서 성별을 선택하면 더 잘 맞는 향수를 보여드려요</string>
<string name="txt_home_subtitle_age_gender_null">설정에서 연령과 성별을 선택하면 더 잘 맞는 향수를 보여드려요</string>

<!--etc-->
<string name="txt_app_end_message">뒤로가기 버튼을 한 번 더 누르면 앱이 종료됩니다.</string>

Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ buildscript {
classpath "com.android.tools.build:gradle:${ConfigData.gradleVersion}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${ConfigData.gradlePluginVersion}"
classpath "com.google.gms:google-services:${Versions.gms}"
classpath "com.google.firebase:firebase-crashlytics-gradle:${Versions.firebaseCrashlytics}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ object Dependencies {
const val gms = "com.google.gms:google-services:${Versions.gms}"
const val firebaseBom = "com.google.firebase:firebase-bom:${Versions.firebase}"
const val firebaseKtx = "com.google.firebase:firebase-analytics-ktx"
const val firebaseCrashlytics = "com.google.firebase:firebase-crashlytics-ktx"

/* EncryptedSharedPreferences */
const val encryptedSharedPreferences = "androidx.security:security-crypto-ktx:${Versions.encryptedSharedPreferences}"
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ object Versions {
// firebase
const val gms = "4.3.13"
const val firebase = "30.4.1"
const val firebaseCrashlytics = "2.9.8"

// encryptedSharedPreferences
const val encryptedSharedPreferences = "1.1.0-alpha03"
Expand Down

0 comments on commit 7d78202

Please sign in to comment.