Skip to content

Commit

Permalink
Add RN fix for build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentritter committed Nov 5, 2022
1 parent 4b9a911 commit e2bc1a6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
8 changes: 5 additions & 3 deletions android/app/src/main/AndroidManifest.xml
Expand Up @@ -13,15 +13,16 @@
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:allowBackup="false"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:exported="true">

<meta-data android:name="com.dieam.reactnativepushnotification.notification_foreground" android:value="true"/>
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/ic_notification" />
<meta-data android:name="com.google.firebase.messaging." android:resource="@drawable/ic_notification" />
<meta-data android:name="com.dieam.reactnativepushnotification.notification_color" android:resource="@color/notification"/>
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions" />
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher" />
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver">
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
Expand All @@ -40,6 +41,7 @@
<activity
android:name=".SplashActivity"
android:theme="@style/SplashTheme"
android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -51,7 +53,7 @@
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize" android:theme="@style/AppTheme">
android:windowSoftInputMode="adjustResize" android:theme="@style/AppTheme" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down
15 changes: 15 additions & 0 deletions android/build.gradle
Expand Up @@ -24,6 +24,21 @@ buildscript {

allprojects {
repositories {
exclusiveContent {
// We get React Native's Android binaries exclusively through npm,
// from a local Maven repo inside node_modules/react-native/.
// (The use of exclusiveContent prevents looking elsewhere like Maven Central
// and potentially getting a wrong version.)
filter {
includeGroup "com.facebook.react"
}
forRepository {
maven {
url "$rootDir/../node_modules/react-native/android"
}
}
}

mavenCentral()
mavenLocal()
maven {
Expand Down

0 comments on commit e2bc1a6

Please sign in to comment.