@bacons/apple-targets 4.0.3 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,10 +12,16 @@ const with_widget_1 = __importDefault(require("./with-widget"));
12
12
  const with_bacons_xcode_1 = require("./with-bacons-xcode");
13
13
  const util_1 = require("./util");
14
14
  const withTargetsDir = (config, _props) => {
15
- var _a;
15
+ var _a, _b;
16
16
  let { appleTeamId = (_a = config === null || config === void 0 ? void 0 : config.ios) === null || _a === void 0 ? void 0 : _a.appleTeamId } = _props || {};
17
17
  const { root = "./targets", match = "*" } = _props || {};
18
18
  const projectRoot = config._internal.projectRoot;
19
+ if (!((_b = config.ios) === null || _b === void 0 ? void 0 : _b.bundleIdentifier)) {
20
+ const fallbackBundleId = `com.example.${config.slug}`;
21
+ (0, util_1.warnOnce)((0, chalk_1.default) `{yellow [bacons/apple-targets]} Expo config is missing {cyan ios.bundleIdentifier} property. Using fallback: {cyan ${fallbackBundleId}}. Add it to your app.json or app.config.js for production builds.`);
22
+ config.ios = config.ios || {};
23
+ config.ios.bundleIdentifier = fallbackBundleId;
24
+ }
19
25
  if (!appleTeamId) {
20
26
  (0, util_1.warnOnce)((0, chalk_1.default) `{yellow [bacons/apple-targets]} Expo config is missing required {cyan ios.appleTeamId} property. Find this in Xcode and add to the Expo Config to correct. iOS builds may fail until this is corrected.`);
21
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bacons/apple-targets",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Generate Apple Targets with Expo Prebuild",
5
5
  "main": "build/ExtensionStorage.js",
6
6
  "types": "build/ExtensionStorage.d.ts",