onesignal-expo-plugin 2.4.0 → 2.5.0

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 (35) hide show
  1. package/README.md +66 -16
  2. package/dist/index.d.ts +101 -0
  3. package/dist/index.js +711 -0
  4. package/package.json +43 -45
  5. package/serviceExtensionFiles/NotificationService.swift +32 -0
  6. package/{build/support/serviceExtensionFiles → serviceExtensionFiles}/OneSignalNotificationServiceExtension-Info.plist +1 -1
  7. package/widgetExtensionFiles/OneSignalWidget-Info.plist +29 -0
  8. package/widgetExtensionFiles/OneSignalWidgetBundle.swift +9 -0
  9. package/widgetExtensionFiles/OneSignalWidgetLiveActivity.swift +58 -0
  10. package/app.plugin.js +0 -1
  11. package/build/onesignal/withOneSignal.d.ts +0 -8
  12. package/build/onesignal/withOneSignal.js +0 -20
  13. package/build/onesignal/withOneSignalAndroid.d.ts +0 -7
  14. package/build/onesignal/withOneSignalAndroid.js +0 -136
  15. package/build/onesignal/withOneSignalIos.d.ts +0 -13
  16. package/build/onesignal/withOneSignalIos.js +0 -288
  17. package/build/support/FileManager.d.ts +0 -9
  18. package/build/support/FileManager.js +0 -75
  19. package/build/support/NseUpdaterManager.d.ts +0 -8
  20. package/build/support/NseUpdaterManager.js +0 -38
  21. package/build/support/OneSignalLog.d.ts +0 -4
  22. package/build/support/OneSignalLog.js +0 -12
  23. package/build/support/eas/getEasManagedCredentialsConfigExtra.d.ts +0 -4
  24. package/build/support/eas/getEasManagedCredentialsConfigExtra.js +0 -36
  25. package/build/support/helpers.d.ts +0 -7
  26. package/build/support/helpers.js +0 -91
  27. package/build/support/iosConstants.d.ts +0 -12
  28. package/build/support/iosConstants.js +0 -23
  29. package/build/support/serviceExtensionFiles/NotificationService.m +0 -34
  30. package/build/support/updatePodfile.d.ts +0 -1
  31. package/build/support/updatePodfile.js +0 -20
  32. package/build/types/types.d.ts +0 -62
  33. package/build/types/types.js +0 -16
  34. /package/{build/support/serviceExtensionFiles → serviceExtensionFiles}/NotificationService.h +0 -0
  35. /package/{build/support/serviceExtensionFiles → serviceExtensionFiles}/OneSignalNotificationServiceExtension.entitlements +0 -0
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.updatePodfile = updatePodfile;
7
- const promises_1 = __importDefault(require("fs/promises"));
8
- const iosConstants_1 = require("./iosConstants");
9
- const OneSignalLog_1 = require("./OneSignalLog");
10
- const FileManager_1 = require("./FileManager");
11
- async function updatePodfile(iosPath) {
12
- const podfile = await FileManager_1.FileManager.readFile(`${iosPath}/Podfile`);
13
- const matches = podfile.match(iosConstants_1.NSE_PODFILE_REGEX);
14
- if (matches) {
15
- OneSignalLog_1.OneSignalLog.log(`${iosConstants_1.NSE_TARGET_NAME} target already added to Podfile. Skipping...`);
16
- return;
17
- }
18
- await promises_1.default.appendFile(`${iosPath}/Podfile`, iosConstants_1.NSE_PODFILE_SNIPPET);
19
- OneSignalLog_1.OneSignalLog.log(`${iosConstants_1.NSE_TARGET_NAME} target added to Podfile.`);
20
- }
@@ -1,62 +0,0 @@
1
- /**
2
- * OneSignalPluginProps refer to the properties set by the user in their app config file (e.g: app.json)
3
- */
4
- export type OneSignalPluginProps = {
5
- /**
6
- * (required) Used to configure APNs environment entitlement. "development" or "production"
7
- */
8
- mode: 'development' | 'production';
9
- /**
10
- * (optional) Used to configure Apple Team ID. You can find your Apple Team ID by running expo credentials:manager e.g: "91SW8A37CR"
11
- * @deprecated Use `ios.appleTeamId` in your Expo config instead. This prop will be removed in a future major release.
12
- */
13
- devTeam?: string;
14
- /**
15
- * (optional) Target IPHONEOS_DEPLOYMENT_TARGET value to be used when adding the iOS NSE. A deployment target is nothing more than
16
- * the minimum version of the operating system the application can run on. This value should match the value in your Podfile e.g: "12.0".
17
- */
18
- iPhoneDeploymentTarget?: string;
19
- /**
20
- * (optional) The small notification icons for Android. Images will be automatically scaled up/down, the recommended size
21
- * is 96x96 to always scale down.
22
- */
23
- smallIcons?: string[];
24
- /**
25
- * (optional) The accent color to use for notification icons on Android. Must be a valid Android color resource, for example: "#FF0000"
26
- */
27
- smallIconAccentColor?: string;
28
- /**
29
- * (optional) The large notification icons for Android. Images will be automatically scaled up/down to 256x256.
30
- */
31
- largeIcons?: string[];
32
- /**
33
- * (optional) The local path to a custom Notification Service Extension (NSE), written in Objective-C. The NSE will typically start as a copy
34
- * of the default NSE found at (support/serviceExtensionFiles/NotificationService.m, then altered to support any custom
35
- * logic required.
36
- */
37
- iosNSEFilePath?: string;
38
- /**
39
- * (optional) Used to configure a custom iOS app group name. If not provided, defaults to "group.{ios.bundleIdentifier}.onesignal".
40
- * @see https://documentation.onesignal.com/docs/ios-sdk-setup#step-3-create-an-app-group
41
- */
42
- appGroupName?: string;
43
- /**
44
- * (optional) Used to configure a custom bundle identifier suffix for the iOS Notification Service Extension.
45
- * The full bundle identifier will be "{ios.bundleIdentifier}.{nseBundleIdentifier}".
46
- * If not provided, defaults to "OneSignalNotificationServiceExtension".
47
- */
48
- nseBundleIdentifier?: string;
49
- /**
50
- * (optional) If true, the iOS Notification Service Extension (NSE) will not be added to the project.
51
- * The NSE is required for badges, confirmed delivery, media attachments, and action buttons.
52
- * Only disable if you only need basic push notifications.
53
- */
54
- disableNSE?: boolean;
55
- /**
56
- * (optional) An array of local paths to custom notification sound files (.wav only).
57
- * Files are added to the iOS app bundle and Android res/raw/.
58
- * @see https://documentation.onesignal.com/docs/customize-notification-sounds
59
- */
60
- sounds?: string[];
61
- };
62
- export declare const ONESIGNAL_PLUGIN_PROPS: string[];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ONESIGNAL_PLUGIN_PROPS = void 0;
4
- exports.ONESIGNAL_PLUGIN_PROPS = [
5
- 'mode',
6
- 'devTeam',
7
- 'iPhoneDeploymentTarget',
8
- 'smallIcons',
9
- 'largeIcons',
10
- 'iosNSEFilePath',
11
- 'smallIconAccentColor',
12
- 'appGroupName',
13
- 'nseBundleIdentifier',
14
- 'disableNSE',
15
- 'sounds',
16
- ];