onesignal-expo-plugin 2.0.3 → 2.0.4

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 (41) hide show
  1. package/README.md +44 -36
  2. package/build/onesignal/withOneSignalAndroid.js +6 -12
  3. package/build/onesignal/withOneSignalIos.js +35 -25
  4. package/build/support/FileManager.js +22 -8
  5. package/build/support/NseUpdaterManager.js +1 -1
  6. package/build/support/eas/getEasManagedCredentialsConfigExtra.js +8 -9
  7. package/build/support/helpers.js +1 -2
  8. package/build/support/updatePodfile.js +1 -2
  9. package/build/types/types.js +1 -1
  10. package/package.json +12 -11
  11. package/.eslintignore +0 -6
  12. package/.eslintrc.js +0 -18
  13. package/.github/ISSUE_TEMPLATE/ask-question.yml +0 -50
  14. package/.github/ISSUE_TEMPLATE/bug-report.yml +0 -71
  15. package/.github/ISSUE_TEMPLATE/general-feedback.yml +0 -27
  16. package/.github/os_probot_metadata.js +0 -58
  17. package/.github/pull_request_template.md +0 -46
  18. package/.github/release-drafter.yml +0 -27
  19. package/.github/set_response_times.js +0 -47
  20. package/.github/workflows/Zapier.yml +0 -34
  21. package/.github/workflows/release-drafter.yml +0 -42
  22. package/.github/workflows/set_response_time.yml +0 -32
  23. package/CHANGELOG.md +0 -83
  24. package/EAS.md +0 -21
  25. package/IOS_CREDENTIALS_EAS.md +0 -170
  26. package/onesignal/withOneSignal.ts +0 -28
  27. package/onesignal/withOneSignalAndroid.ts +0 -147
  28. package/onesignal/withOneSignalIos.ts +0 -235
  29. package/support/FileManager.ts +0 -42
  30. package/support/NseUpdaterManager.ts +0 -40
  31. package/support/OneSignalLog.ts +0 -9
  32. package/support/eas/getEasManagedCredentialsConfigExtra.ts +0 -33
  33. package/support/helpers.ts +0 -41
  34. package/support/iosConstants.ts +0 -25
  35. package/support/serviceExtensionFiles/NotificationService.h +0 -8
  36. package/support/serviceExtensionFiles/NotificationService.m +0 -29
  37. package/support/serviceExtensionFiles/OneSignalNotificationServiceExtension-Info.plist +0 -31
  38. package/support/serviceExtensionFiles/OneSignalNotificationServiceExtension.entitlements +0 -10
  39. package/support/updatePodfile.ts +0 -19
  40. package/tsconfig.json +0 -16
  41. package/types/types.ts +0 -58
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>com.apple.security.application-groups</key>
6
- <array>
7
- <string>{{GROUP_IDENTIFIER}}</string>
8
- </array>
9
- </dict>
10
- </plist>
@@ -1,19 +0,0 @@
1
- import fs from 'fs';
2
- import { NSE_PODFILE_REGEX, NSE_PODFILE_SNIPPET } from './iosConstants';
3
- import { OneSignalLog } from './OneSignalLog';
4
- import { FileManager } from './FileManager';
5
-
6
- export async function updatePodfile(iosPath: string) {
7
- const podfile = await FileManager.readFile(`${iosPath}/Podfile`);
8
- const matches = podfile.match(NSE_PODFILE_REGEX);
9
-
10
- if (matches) {
11
- OneSignalLog.log("OneSignalNotificationServiceExtension target already added to Podfile. Skipping...");
12
- } else {
13
- fs.appendFile(`${iosPath}/Podfile`, NSE_PODFILE_SNIPPET, (err) => {
14
- if (err) {
15
- OneSignalLog.error("Error writing to Podfile");
16
- }
17
- })
18
- }
19
- }
package/tsconfig.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "extends": "expo-module-scripts/tsconfig.plugin",
3
- "compilerOptions": {
4
- "rootDir": "./",
5
- "outDir": "./build",
6
- "declaration": false
7
- },
8
- "include": [
9
- "./"
10
- ],
11
- "exclude": [
12
- "**/__mocks__/*",
13
- "**/__tests__/*",
14
- "examples"
15
- ]
16
- }
package/types/types.ts DELETED
@@ -1,58 +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: Mode;
9
-
10
- /**
11
- * (optional) Used to configure Apple Team ID. You can find your Apple Team ID by running expo credentials:manager e.g: "91SW8A37CR"
12
- */
13
- devTeam?: string;
14
-
15
- /**
16
- * (optional) Target IPHONEOS_DEPLOYMENT_TARGET value to be used when adding the iOS NSE. A deployment target is nothing more than
17
- * 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".
18
- */
19
- iPhoneDeploymentTarget?: string;
20
-
21
- /**
22
- * (optional) The small notification icons for Android. Images will be automatically scaled up/down, the recommended size
23
- * is 96x96 to always scale down.
24
- */
25
- smallIcons?: string[];
26
-
27
- /**
28
- * (optional) The accent color to use for notification icons on Android. Must be a valid Android color resource, for example: "#FF0000"
29
- */
30
- smallIconAccentColor?: string;
31
-
32
- /**
33
- * (optional) The large notification icons for Android. Images will be automatically scaled up/down to 256x256.
34
- */
35
- largeIcons?: string[];
36
-
37
- /**
38
- * (optional) The local path to a custom Notification Service Extension (NSE), written in Objective-C. The NSE will typically start as a copy
39
- * of the default NSE found at (support/serviceExtensionFiles/NotificationService.m, then altered to support any custom
40
- * logic required.
41
- */
42
- iosNSEFilePath?: string;
43
- };
44
-
45
- export const ONESIGNAL_PLUGIN_PROPS: string[] = [
46
- "mode",
47
- "devTeam",
48
- "iPhoneDeploymentTarget",
49
- "smallIcons",
50
- "largeIcons",
51
- "iosNSEFilePath",
52
- "smallIconAccentColor"
53
- ];
54
-
55
- export enum Mode {
56
- Dev = "development",
57
- Prod = "production"
58
- }