Skip to content

Commit

Permalink
rename Info.plist file in fonction of target name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrico972 committed Dec 13, 2024
1 parent e12dda4 commit 5f43c3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/src/withAirshipIOS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ async function writeNotificationServiceFilesAsync(props: AirshipIOSPluginProps,
console.error(err);
return;
}
writeFileSync(join(extensionPath, NOTIFICATION_SERVICE_INFO_PLIST_FILE_NAME), data);
const infoPlistFilename = props.notificationServiceTargetName ? props.notificationServiceTargetName + "-Info.plist" : NOTIFICATION_SERVICE_INFO_PLIST_FILE_NAME;
writeFileSync(join(extensionPath, infoPlistFilename), data);
});
};

Expand Down

0 comments on commit 5f43c3f

Please sign in to comment.