Permit Firebase analytics to be disabled

Set up configuration parameters so that analytics can be completely disabled based on the flavor being built
This commit is contained in:
Chris Garrity 2021-09-20 21:31:09 +01:00
parent d0dc91626f
commit ad58d579d7
2 changed files with 5 additions and 0 deletions

View file

@ -6,6 +6,7 @@ android {
defaultConfig {
applicationId "org.scratchjr.android"
manifestPlaceholders = [disableAnalytics: "false"]
}
buildTypes {
@ -24,6 +25,7 @@ android {
targetSdkVersion 29
versionCode 22
versionName "1.2.11"
manifestPlaceholders = [disableAnalytics: "true"]
}
}

View file

@ -18,6 +18,9 @@
android:theme="@style/AppTheme"
android:hardwareAccelerated="true"
android:resizeableActivity="false">
<meta-data android:name="firebase_analytics_collection_deactivated" android:value="${disableAnalytics}" />
<provider android:name="ShareContentProvider"
android:grantUriPermissions="true"
android:authorities="${applicationId}.ShareContentProvider">