Skip to content

Commit

Permalink
Merge pull request #228 from OneSignal/fix-pbxgroup-bug
Browse files Browse the repository at this point in the history
PBXGroups: make sure we're only adding to the top-level group
  • Loading branch information
rgomezp authored Jun 4, 2024
2 parents d7d3091 + b6c63c2 commit 368d76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onesignal/withOneSignalIos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const withOneSignalXcodeProject: ConfigPlugin<OneSignalPluginProps> = (config, p
// files / folder appear in the file explorer in Xcode.
const groups = xcodeProject.hash.project.objects["PBXGroup"];
Object.keys(groups).forEach(function(key) {
if (groups[key].name === undefined) {
if (typeof groups[key] === "object" && groups[key].name === undefined && groups[key].path === undefined) {
xcodeProject.addToPbxGroup(extGroup.uuid, key);
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onesignal-expo-plugin",
"version": "2.0.2",
"version": "2.0.3",
"description": "The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.",
"main": "./app.plugin.js",
"scripts": {
Expand Down

0 comments on commit 368d76a

Please sign in to comment.