Skip to content

Commit 1f9c7fc

Browse files
update consent preferences and firebase settings
1 parent a9c484e commit 1f9c7fc

File tree

3 files changed

+39
-7
lines changed

3 files changed

+39
-7
lines changed

app/src/main/res/values/keys.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
<string name="default_value_language" translatable="false">en</string>
1111
<string name="key_monospace_font" translatable="false">monospace_font</string>
1212
<string name="key_notifications_settings" translatable="false">notifications_settings</string>
13-
<string name="key_firebase" translatable="false">firebase</string>
13+
<string name="key_firebase_crashlytics" translatable="false">firebase_crashlytics</string>
14+
<string name="key_firebase_analytics" translatable="false">firebase_analytics</string>
15+
<string name="key_firebase_performance" translatable="false">firebase_performance</string>
1416
<string name="key_device_info" translatable="false">device_info</string>
1517
<string name="key_open_source_licenses" translatable="false">open_source_licenses</string>
1618
<string name="key_feedback" translatable="false">feedback</string>

app/src/main/res/values/strings.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@
248248
<string name="notification_settings">Notification settings</string>
249249
<string name="advanced">Advanced</string>
250250
<string name="firebase">Firebase</string>
251+
<string name="firebase_crashlytics">Firebase Crashlytics</string>
252+
<string name="firebase_analytics">Firebase Analytics</string>
253+
<string name="firebase_performance">Firebase Performance</string>
251254
<string name="privacy_and_security">Privacy and security</string>
252255
<string name="privacy_policy">Privacy policy</string>
253256
<string name="terms_of_service">Terms of service</string>
@@ -316,6 +319,9 @@
316319
<string name="summary_preference_permissions_foreground_service">Allows the app to create and use services that run in the foreground, giving them priority over other background processes and improving performance and reliability.</string>
317320
<string name="summary_preference_settings_language">Set application language.</string>
318321
<string name="summary_preference_settings_firebase">This let us collect information about app performance and crash logs.</string>
322+
<string name="summary_preference_settings_firebase_crashlytics">Collect crash reports to help fix issues.</string>
323+
<string name="summary_preference_settings_firebase_analytics">Gathers usage data for app improvement.</string>
324+
<string name="summary_preference_settings_firebase_performance">Measures app performance for optimization.</string>
319325
<string name="summary_preference_android_studio_start">Learn the base of how to start a new Android Studio project, how to configure, how to set package, API levels and many more…</string>
320326
<string name="summary_preference_android_studio_shortcuts">Android Studio includes keyboard shortcuts for many common actions. Keep in mind, because Android Studio is based on IntelliJ IDEA, you can find additional shortcuts in the IntelliJ IDEA keymap reference documentation.</string>
321327
<string name="summary_preference_android_studio_history_of_android">Learn about the history of Android, from its beta release in 2007 to becoming the world\'s most popular mobile operating system. Discover the features that make Android unique and the benefits of using Android Studio to develop your apps with Java.</string>
@@ -398,6 +404,10 @@
398404
<string name="ad_user_data">Ad user data</string>
399405
<string name="ad_personalization">Ad personalization</string>
400406
<string name="consent_settings">Consent settings</string>
407+
<string name="summary_consent_analytics_storage">Allows collection of anonymous usage statistics.</string>
408+
<string name="summary_consent_ad_storage">Permits storing ad data on your device.</string>
409+
<string name="summary_consent_ad_user_data">Allows sharing user data for ads.</string>
410+
<string name="summary_consent_ad_personalization">Enables personalized ad recommendations.</string>
401411
<string name="tip_of_the_day">Tip of the Day</string>
402412
<string-array name="daily_tips">
403413
<item>Use ConstraintLayout to create responsive UIs.</item>

app/src/main/res/xml/preferences_settings.xml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,26 @@
5454
app:title="@string/notification_settings" />
5555
</androidx.preference.PreferenceCategory>
5656
<androidx.preference.PreferenceCategory
57-
app:icon="@drawable/ic_build_tinted"
58-
app:title="@string/advanced">
57+
app:icon="@drawable/ic_firebase"
58+
app:title="@string/firebase">
5959
<androidx.preference.SwitchPreferenceCompat
6060
app:defaultValue="true"
61-
app:icon="@drawable/ic_firebase"
62-
app:key="@string/key_firebase"
63-
app:summary="@string/summary_preference_settings_firebase"
64-
app:title="@string/firebase" />
61+
app:icon="@drawable/ic_crashlytics"
62+
app:key="@string/key_firebase_crashlytics"
63+
app:summary="@string/summary_preference_settings_firebase_crashlytics"
64+
app:title="@string/firebase_crashlytics" />
65+
<androidx.preference.SwitchPreferenceCompat
66+
app:defaultValue="true"
67+
app:icon="@drawable/ic_analytics"
68+
app:key="@string/key_firebase_analytics"
69+
app:summary="@string/summary_preference_settings_firebase_analytics"
70+
app:title="@string/firebase_analytics" />
71+
<androidx.preference.SwitchPreferenceCompat
72+
app:defaultValue="true"
73+
app:icon="@drawable/ic_performance"
74+
app:key="@string/key_firebase_performance"
75+
app:summary="@string/summary_preference_settings_firebase_performance"
76+
app:title="@string/firebase_performance" />
6577
</androidx.preference.PreferenceCategory>
6678
<androidx.preference.PreferenceCategory
6779
app:icon="@drawable/ic_safety_check_tinted"
@@ -110,19 +122,27 @@
110122
app:title="@string/consent_settings">
111123
<androidx.preference.SwitchPreferenceCompat
112124
app:defaultValue="true"
125+
app:icon="@drawable/ic_analytics"
113126
app:key="@string/key_consent_analytics"
127+
app:summary="@string/summary_consent_analytics_storage"
114128
app:title="@string/analytics_storage" />
115129
<androidx.preference.SwitchPreferenceCompat
116130
app:defaultValue="true"
131+
app:icon="@drawable/ic_ad_storage"
117132
app:key="@string/key_consent_ad_storage"
133+
app:summary="@string/summary_consent_ad_storage"
118134
app:title="@string/ad_storage" />
119135
<androidx.preference.SwitchPreferenceCompat
120136
app:defaultValue="true"
137+
app:icon="@drawable/ic_user_data"
121138
app:key="@string/key_consent_ad_user_data"
139+
app:summary="@string/summary_consent_ad_user_data"
122140
app:title="@string/ad_user_data" />
123141
<androidx.preference.SwitchPreferenceCompat
124142
app:defaultValue="true"
143+
app:icon="@drawable/ic_personalization"
125144
app:key="@string/key_consent_ad_personalization"
145+
app:summary="@string/summary_consent_ad_personalization"
126146
app:title="@string/ad_personalization" />
127147
</androidx.preference.PreferenceCategory>
128148
</androidx.preference.PreferenceCategory>

0 commit comments

Comments
 (0)