Skip to content

Commit

Permalink
fix(android): specify that android services are not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Jun 17, 2022
1 parent 3cb1d0a commit 39e0444
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/app/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<?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.firebase">

<application>
<meta-data android:name="app_data_collection_default_enabled" android:value="${firebaseJsonDataCollectionDefaultEnabled}"/>
<service android:name="com.google.firebase.components.ComponentDiscoveryService">
<service
android:name="com.google.firebase.components.ComponentDiscoveryService"
android:directBootAware="true"
android:exported="false"
tools:targetApi="n"
>
<meta-data
android:name="com.google.firebase.components:io.invertase.firebase.app.ReactNativeFirebaseAppRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar" />
Expand Down
3 changes: 2 additions & 1 deletion packages/messaging/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<application>
<service android:name=".ReactNativeFirebaseMessagingHeadlessService" />
<service android:name=".ReactNativeFirebaseMessagingHeadlessService"
android:exported="false" />
<service android:name=".ReactNativeFirebaseMessagingService"
android:exported="false">
<intent-filter>
Expand Down

1 comment on commit 39e0444

@vercel
Copy link

@vercel vercel bot commented on 39e0444 Jun 17, 2022

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.