onesignal-expo-plugin
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -144,2 +144,6 @@ "use strict"; | ||
const xcodeProject = newConfig.modResults; | ||
if (!!xcodeProject.pbxTargetByName(iosConstants_1.NSE_TARGET_NAME)) { | ||
OneSignalLog_1.OneSignalLog.log(`${iosConstants_1.NSE_TARGET_NAME} already exists in project. Skipping...`); | ||
return newConfig; | ||
} | ||
// Create new PBXGroup for the extension | ||
@@ -162,6 +166,2 @@ const extGroup = xcodeProject.addPbxGroup([...iosConstants_1.NSE_EXT_FILES, iosConstants_1.NSE_SOURCE_FILE], iosConstants_1.NSE_TARGET_NAME, iosConstants_1.NSE_TARGET_NAME); | ||
projObjects['PBXContainerItemProxy'] = projObjects['PBXTargetDependency'] || {}; | ||
if (!!xcodeProject.pbxTargetByName(iosConstants_1.NSE_TARGET_NAME)) { | ||
OneSignalLog_1.OneSignalLog.log(`${iosConstants_1.NSE_TARGET_NAME} already exists in project. Skipping...`); | ||
return newConfig; | ||
} | ||
// Add the NSE target | ||
@@ -168,0 +168,0 @@ // This adds PBXTargetDependency and PBXContainerItemProxy for you |
@@ -157,5 +157,10 @@ /** | ||
if (!!xcodeProject.pbxTargetByName(NSE_TARGET_NAME)) { | ||
OneSignalLog.log(`${NSE_TARGET_NAME} already exists in project. Skipping...`); | ||
return newConfig; | ||
} | ||
// Create new PBXGroup for the extension | ||
const extGroup = xcodeProject.addPbxGroup([...NSE_EXT_FILES, NSE_SOURCE_FILE], NSE_TARGET_NAME, NSE_TARGET_NAME); | ||
// Add the new PBXGroup to the top level group. This makes the | ||
@@ -178,7 +183,2 @@ // files / folder appear in the file explorer in Xcode. | ||
if (!!xcodeProject.pbxTargetByName(NSE_TARGET_NAME)) { | ||
OneSignalLog.log(`${NSE_TARGET_NAME} already exists in project. Skipping...`); | ||
return newConfig; | ||
} | ||
// Add the NSE target | ||
@@ -185,0 +185,0 @@ // This adds PBXTargetDependency and PBXContainerItemProxy for you |
{ | ||
"name": "onesignal-expo-plugin", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.", | ||
@@ -5,0 +5,0 @@ "main": "./app.plugin.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96672