onesignal-expo-plugin 1.3.2 → 2.0.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.
- package/build/onesignal/withOneSignalAndroid.js +1 -1
- package/build/onesignal/withOneSignalIos.js +1 -5
- package/build/support/FileManager.js +1 -5
- package/build/support/iosConstants.js +1 -1
- package/build/support/serviceExtensionFiles/NotificationService.m +1 -1
- package/onesignal/withOneSignalAndroid.ts +4 -4
- package/package.json +3 -2
- package/support/iosConstants.ts +1 -1
- package/support/serviceExtensionFiles/NotificationService.m +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Expo config plugin for
|
|
3
|
+
* Expo config plugin for OneSignal (Android)
|
|
4
4
|
* @see https://documentation.onesignal.com/docs/react-native-sdk-setup#step-4-install-for-ios-using-cocoapods-for-ios-apps
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5,11 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
8
|
-
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
13
9
|
}) : (function(o, m, k, k2) {
|
|
14
10
|
if (k2 === undefined) k2 = k;
|
|
15
11
|
o[k2] = m[k];
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -5,7 +5,7 @@ exports.IPHONEOS_DEPLOYMENT_TARGET = "11.0";
|
|
|
5
5
|
exports.TARGETED_DEVICE_FAMILY = `"1,2"`;
|
|
6
6
|
exports.NSE_PODFILE_SNIPPET = `
|
|
7
7
|
target 'OneSignalNotificationServiceExtension' do
|
|
8
|
-
pod 'OneSignalXCFramework', '>=
|
|
8
|
+
pod 'OneSignalXCFramework', '>= 5.0', '< 6.0'
|
|
9
9
|
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
|
|
10
10
|
end`;
|
|
11
11
|
exports.NSE_PODFILE_REGEX = /target 'OneSignalNotificationServiceExtension'/;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Expo config plugin for
|
|
2
|
+
* Expo config plugin for OneSignal (Android)
|
|
3
3
|
* @see https://documentation.onesignal.com/docs/react-native-sdk-setup#step-4-install-for-ios-using-cocoapods-for-ios-apps
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -13,8 +13,8 @@ import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
|
13
13
|
const RESOURCE_ROOT_PATH = 'android/app/src/main/res/';
|
|
14
14
|
|
|
15
15
|
// The name of each small icon folder resource, and the icon size for that folder.
|
|
16
|
-
const SMALL_ICON_DIRS_TO_SIZE: { [name: string]: number } = {
|
|
17
|
-
'drawable-mdpi': 24,
|
|
16
|
+
const SMALL_ICON_DIRS_TO_SIZE: { [name: string]: number } = {
|
|
17
|
+
'drawable-mdpi': 24,
|
|
18
18
|
'drawable-hdpi': 36,
|
|
19
19
|
'drawable-xhdpi': 48,
|
|
20
20
|
'drawable-xxhdpi': 72,
|
|
@@ -22,7 +22,7 @@ const SMALL_ICON_DIRS_TO_SIZE: { [name: string]: number } = {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// The name of each large icon folder resource, and the icon size for that folder.
|
|
25
|
-
const LARGE_ICON_DIRS_TO_SIZE: { [name: string]: number } = {
|
|
25
|
+
const LARGE_ICON_DIRS_TO_SIZE: { [name: string]: number } = {
|
|
26
26
|
'drawable-xxxhdpi': 256
|
|
27
27
|
};
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onesignal-expo-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.",
|
|
5
5
|
"main": "./app.plugin.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"Karen Grigoryan",
|
|
26
26
|
"Rodrigo Gomez-Palacio",
|
|
27
27
|
"Charlie Cruzan",
|
|
28
|
-
"Wojciech Kozyra"
|
|
28
|
+
"Wojciech Kozyra",
|
|
29
|
+
"Brian Smith"
|
|
29
30
|
],
|
|
30
31
|
"license": "MIT",
|
|
31
32
|
"bugs": {
|
package/support/iosConstants.ts
CHANGED
|
@@ -3,7 +3,7 @@ export const TARGETED_DEVICE_FAMILY = `"1,2"`;
|
|
|
3
3
|
|
|
4
4
|
export const NSE_PODFILE_SNIPPET = `
|
|
5
5
|
target 'OneSignalNotificationServiceExtension' do
|
|
6
|
-
pod 'OneSignalXCFramework', '>=
|
|
6
|
+
pod 'OneSignalXCFramework', '>= 5.0', '< 6.0'
|
|
7
7
|
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
|
|
8
8
|
end`;
|
|
9
9
|
|