diff --git a/package.json b/package.json index 416fcb7..9a3ef16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-app-clip", - "version": "0.9.0", + "version": "0.9.1", "description": "Config plugin to add an App Clip to a React Native iOS app", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/plugin/src/withPlist.ts b/plugin/src/withPlist.ts index 99ddee7..8cde400 100644 --- a/plugin/src/withPlist.ts +++ b/plugin/src/withPlist.ts @@ -52,7 +52,7 @@ export const withPlist: ConfigPlugin<{ }, NSAllowsLocalNetworking: config.developmentClient, }, - CFBundleName: "$(PRODUCT_NAME)", + CFBundleName: "$(PRODUCT_MODULE_NAME)", CFBundleDisplayName: "$(PRODUCT_NAME)", CFBundleIdentifier: "$(PRODUCT_BUNDLE_IDENTIFIER)", CFBundleVersion: "$(CURRENT_PROJECT_VERSION)", @@ -73,6 +73,8 @@ export const withPlist: ConfigPlugin<{ } } + infoPlist.CFBundleName = "$(PRODUCT_MODULE_NAME)"; + fs.mkdirSync(path.dirname(filePath), { recursive: true, });