Skip to content

Commit

Permalink
Add pendingImplementation to app/build.gradle
Browse files Browse the repository at this point in the history
- set android:exported false for intent-filter notification
  • Loading branch information
rottabonus committed Sep 7, 2023
1 parent b56d91f commit 8b0b11f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 7 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
// for push notifications
apply plugin: 'com.google.gms.google-services'

import com.android.build.OutputFile

Expand Down Expand Up @@ -175,6 +177,11 @@ dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")

// For push notifications for Android 12 >
implementation 'androidx.work:work-runtime:2.7.0'
implementation 'androidx.work:work-runtime-ktx:2.7.1'


implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
Expand All @@ -194,6 +201,3 @@ dependencies {
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

// for push notifications
apply plugin: 'com.google.gms.google-services'
7 changes: 4 additions & 3 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">


<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:exported="true"
android:windowSoftInputMode="adjustResize">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

</activity>
</application>
</manifest>

0 comments on commit 8b0b11f

Please sign in to comment.