Skip to content

Commit

Permalink
fix(app, android): put app init provider / registrar in correct manifest
Browse files Browse the repository at this point in the history
local inspection of merged manifest indicated they were not being included as thought,
moving them to this manifest shows they are being included
  • Loading branch information
mikehardy committed Aug 15, 2021
1 parent b9670c1 commit 8408160
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 16 additions & 1 deletion packages/app/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="io.invertase.firebase" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.invertase.firebase">

<application>
<service android:name="com.google.firebase.components.ComponentDiscoveryService">
<meta-data
android:name="com.google.firebase.components:io.invertase.firebase.app.ReactNativeFirebaseAppRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar" />
</service>
<provider
android:name="io.invertase.firebase.app.ReactNativeFirebaseAppInitProvider"
android:authorities="${applicationId}.reactnativefirebaseappinitprovider"
android:exported="false"
android:initOrder="99" /> <!-- Firebase = 100, using 99 to run after Firebase initialises (highest first) -->
</application>
</manifest>
17 changes: 1 addition & 16 deletions packages/app/android/src/reactnative/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.invertase.firebase">

<application>
<service android:name="com.google.firebase.components.ComponentDiscoveryService">
<meta-data
android:name="com.google.firebase.components:io.invertase.firebase.app.ReactNativeFirebaseAppRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar" />
</service>
<provider
android:name="io.invertase.firebase.app.ReactNativeFirebaseAppInitProvider"
android:authorities="${applicationId}.reactnativefirebaseappinitprovider"
android:exported="false"
android:initOrder="99" /> <!-- Firebase = 100, using 99 to run after Firebase initialises (highest first) -->
</application>
</manifest>
<manifest package="io.invertase.firebase" />

1 comment on commit 8408160

@vercel
Copy link

@vercel vercel bot commented on 8408160 Aug 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.