File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1414 "favicon" : " ./assets/images/favicon.png"
1515 },
1616 "plugins" : [
17- " ./plugins/with-fcm-manifest-fixes" ,
17+ " ./plugins/with-fcm-manifest-fixes.js " ,
1818 " expo-router" ,
1919 [
2020 " expo-splash-screen" ,
Original file line number Diff line number Diff line change 1- import { AndroidConfig , ConfigPlugin , withAndroidManifest } from "@expo/config-plugins" ;
1+ import { AndroidConfig , withAndroidManifest } from "@expo/config-plugins" ;
22
3- const withFcmManifestFixes : ConfigPlugin = ( config ) => {
3+ const withFcmManifestFixes = ( config ) => {
44 return withAndroidManifest ( config , ( cfg ) => {
55 const { manifest } = cfg . modResults ;
66
@@ -14,10 +14,10 @@ const withFcmManifestFixes: ConfigPlugin = (config) => {
1414 const app = AndroidConfig . Manifest . getMainApplicationOrThrow ( manifest ) ;
1515
1616 // Helper to upsert <meta-data> by android:name
17- const upsertMetaData = ( name : string , attrs : Record < string , string > ) => {
17+ const upsertMetaData = ( name , attrs ) => {
1818 app [ "meta-data" ] = app [ "meta-data" ] || [ ] ;
1919 const idx = app [ "meta-data" ] . findIndex (
20- ( x : any ) => x . $ ?. [ "android:name" ] === name
20+ ( x ) => x . $ ?. [ "android:name" ] === name
2121 ) ;
2222 const node = { $ : { "android:name" : name , ...attrs } } ;
2323 if ( idx === - 1 ) app [ "meta-data" ] . push ( node ) ;
You can’t perform that action at this time.
0 commit comments