Skip to content

Commit 253308b

Browse files
committed
rename the plugin file
1 parent 91294d8 commit 253308b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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);

0 commit comments

Comments
 (0)