Skip to content

Commit

Permalink
Disable analytics by default on debug builds
Browse files Browse the repository at this point in the history
Use the supported manifest metadata tags to disable Analytics and
Crashlytics by default for debug builds. This uses a manifest
placeholder to toggle the setting between debug and release builds.

This depends on endlessm/python-for-android#18.
  • Loading branch information
dbnicholson committed May 24, 2023
1 parent 81565e6 commit c9e21ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .p4a
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@
--depend com.google.firebase:firebase-crashlytics-ndk:18.3.2
--depend com.google.firebase:firebase-analytics:21.2.0
--with-debug-symbols
--debug-manifest-placeholders '[analytics_enabled: "false"]'
--release-manifest-placeholders '[analytics_enabled: "true"]'
--meta-data firebase_analytics_collection_enabled=${analytics_enabled}
--meta-data firebase_crashlytics_collection_enabled=${analytics_enabled}

0 comments on commit c9e21ac

Please sign in to comment.