@dubsdotapp/expo 0.2.63 → 0.2.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app.plugin.js +12 -0
  2. package/package.json +4 -2
package/app.plugin.js CHANGED
@@ -61,6 +61,18 @@ function withDubsNotifications(config) {
61
61
  'google-services.json',
62
62
  );
63
63
 
64
+ // If the developer already has their own google-services.json, leave it alone.
65
+ // Their existing Firebase project will handle FCM just fine.
66
+ if (fs.existsSync(filePath)) {
67
+ return cfg;
68
+ }
69
+
70
+ // Also check the project root (some devs place it there for app.json googleServicesFile)
71
+ const rootGoogleServices = path.join(projectRoot, 'google-services.json');
72
+ if (fs.existsSync(rootGoogleServices)) {
73
+ return cfg;
74
+ }
75
+
64
76
  fs.mkdirSync(path.dirname(filePath), { recursive: true });
65
77
  fs.writeFileSync(filePath, JSON.stringify(googleServices, null, 2));
66
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dubsdotapp/expo",
3
- "version": "0.2.63",
3
+ "version": "0.2.64",
4
4
  "description": "React Native SDK for the Dubs betting platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -11,7 +11,9 @@
11
11
  "react-native": "./dist/index.js",
12
12
  "import": "./dist/index.mjs",
13
13
  "require": "./dist/index.js"
14
- }
14
+ },
15
+ "./app.plugin": "./app.plugin.js",
16
+ "./app.plugin.js": "./app.plugin.js"
15
17
  },
16
18
  "files": [
17
19
  "dist",