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.
- package/README.md +44 -36
- package/build/onesignal/withOneSignalAndroid.js +6 -12
- package/build/onesignal/withOneSignalIos.js +35 -25
- package/build/support/FileManager.js +22 -8
- package/build/support/NseUpdaterManager.js +1 -1
- package/build/support/eas/getEasManagedCredentialsConfigExtra.js +8 -9
- package/build/support/helpers.js +1 -2
- package/build/support/updatePodfile.js +1 -2
- package/build/types/types.js +1 -1
- package/package.json +12 -11
- package/.eslintignore +0 -6
- package/.eslintrc.js +0 -18
- package/.github/ISSUE_TEMPLATE/ask-question.yml +0 -50
- package/.github/ISSUE_TEMPLATE/bug-report.yml +0 -71
- package/.github/ISSUE_TEMPLATE/general-feedback.yml +0 -27
- package/.github/os_probot_metadata.js +0 -58
- package/.github/pull_request_template.md +0 -46
- package/.github/release-drafter.yml +0 -27
- package/.github/set_response_times.js +0 -47
- package/.github/workflows/Zapier.yml +0 -34
- package/.github/workflows/release-drafter.yml +0 -42
- package/.github/workflows/set_response_time.yml +0 -32
- package/CHANGELOG.md +0 -83
- package/EAS.md +0 -21
- package/IOS_CREDENTIALS_EAS.md +0 -170
- package/onesignal/withOneSignal.ts +0 -28
- package/onesignal/withOneSignalAndroid.ts +0 -147
- package/onesignal/withOneSignalIos.ts +0 -235
- package/support/FileManager.ts +0 -42
- package/support/NseUpdaterManager.ts +0 -40
- package/support/OneSignalLog.ts +0 -9
- package/support/eas/getEasManagedCredentialsConfigExtra.ts +0 -33
- package/support/helpers.ts +0 -41
- package/support/iosConstants.ts +0 -25
- package/support/serviceExtensionFiles/NotificationService.h +0 -8
- package/support/serviceExtensionFiles/NotificationService.m +0 -29
- package/support/serviceExtensionFiles/OneSignalNotificationServiceExtension-Info.plist +0 -31
- package/support/serviceExtensionFiles/OneSignalNotificationServiceExtension.entitlements +0 -10
- package/support/updatePodfile.ts +0 -19
- package/tsconfig.json +0 -16
- 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>
|
package/support/updatePodfile.ts
DELETED
|
@@ -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
|
-
}
|