Skip to content

Commit

Permalink
Move firebase permission removal to standard flavor
Browse files Browse the repository at this point in the history
And disable some more stuff
  • Loading branch information
AntsyLich committed Sep 18, 2024
1 parent 0042cb6 commit be671b4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
22 changes: 0 additions & 22 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,6 @@

<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />

<!-- Remove unnecessary permissions from Firebase dependency -->
<uses-permission
android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"
tools:node="remove" />

<uses-permission
android:name="com.google.android.gms.permission.AD_ID"
tools:node="remove" />

<uses-permission
android:name="android.permission.ACCESS_ADSERVICES_ATTRIBUTION"
tools:node="remove" />

<uses-permission
android:name="android.permission.ACCESS_ADSERVICES_AD_ID"
tools:node="remove" />

<application
android:name=".App"
android:allowBackup="false"
Expand Down Expand Up @@ -248,11 +231,6 @@
android:name="android.webkit.WebView.MetricsOptOut"
android:value="true" />

<!-- Disable advertising ID collection for Firebase -->
<meta-data
android:name="google_analytics_adid_collection_enabled"
android:value="false" />

</application>

</manifest>
36 changes: 36 additions & 0 deletions app/src/standard/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<!-- Remove unnecessary permissions from Firebase dependency -->
<uses-permission
android:name="android.permission.ACCESS_ADSERVICES_AD_ID"
tools:node="remove" />

<uses-permission
android:name="android.permission.ACCESS_ADSERVICES_ATTRIBUTION"
tools:node="remove" />

<uses-permission
android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"
tools:node="remove" />

<uses-permission
android:name="com.google.android.gms.permission.AD_ID"
tools:node="remove" />

<application>
<!-- Disable unnecessary stuff from Firebase -->
<meta-data
android:name="google_analytics_adid_collection_enabled"
android:value="false" />

<meta-data
android:name="google_analytics_automatic_screen_reporting_enabled"
android:value="false" />

<meta-data
android:name="google_analytics_default_allow_ad_personalization_signals"
android:value="false" />
</application>
</manifest>

0 comments on commit be671b4

Please sign in to comment.