Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Jan 20, 2024
1 parent d1e9927 commit 9a35778
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions onesignal/withOneSignalIos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ const withOneSignalNSE: ConfigPlugin<OneSignalPluginProps> = (config, props) =>
const extFile = NSE_EXT_FILES[i];
const targetFile = `${iosPath}/${NSE_TARGET_NAME}/${extFile}`;
await FileManager.copyFile(`${sourceDir}${extFile}`, targetFile);

if (extFile === 'OneSignalNotificationServiceExtension-Info.plist') {
// Copy the plist file to the project root as well
await FileManager.copyFile(`${sourceDir}${extFile}`, `${iosPath}/${extFile}`);
}
}

// Copy NSE source file either from configuration-provided location, falling back to the default one.
Expand Down

0 comments on commit 9a35778

Please sign in to comment.