Skip to content

Commit

Permalink
fix: resolve AndroidManifest conflict for AD_SERVICES_CONFIG (#660)
Browse files Browse the repository at this point in the history
* fix: resolve AndroidManifest conflict for AD_SERVICES_CONFIG
* Update android/src/main/AndroidManifest.xml

---------

Co-authored-by: Mike Hardy <[email protected]>
  • Loading branch information
lottemarines and mikehardy authored Nov 24, 2024
1 parent 64d8497 commit 831bb8f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="io.invertase.googlemobileads">

<uses-permission android:name="android.permission.INTERNET" />
Expand All @@ -19,5 +20,26 @@
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING"
android:value="${appJSONGoogleMobileAdsOptimizeAdLoading}"/>

<!-- This may generate a warning during your build:
> property#android.adservices.AD_SERVICES_CONFIG@android:resource
> was tagged at AndroidManifest.xml:23 to replace other declarations
> but no other declaration present
You may safely ignore this warning.
We must include this in case you also use Firebase Analytics in some
of its configurations, as it may also include this file, and the two
will collide and cause a build error if we don't set this one to take
priority via replacement.
https://github.com/invertase/react-native-google-mobile-ads/issues/657
-->
<property
android:name="android.adservices.AD_SERVICES_CONFIG"
android:resource="@xml/gma_ad_services_config"
tools:replace="android:resource" />
</application>
</manifest>

0 comments on commit 831bb8f

Please sign in to comment.