@bacons/apple-targets 0.0.7 → 0.0.9

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.
package/README.md CHANGED
@@ -15,7 +15,7 @@ An experimental Expo Config Plugin that generates native Apple Targets like Widg
15
15
  - A single top-level `*.entitlements` file will be linked as the entitlements of the target. This is not currently used in EAS Capability signing, but may be in the future.
16
16
  - All top-level swift files will be linked as build sources of the target. There is currently no support for storyboard or `.xib` files because I can't be bothered.
17
17
  - All top-level `*.xcassets` will be linked as resources, and accessible in the targets. If you add files outside of Xcode, you'll need to re-run `npx expo prebuild` to link them.
18
- - Code-signing requires the teamId be provided to the plugin in `app.config.js`.
18
+ - In Expo SDK +52, set the `ios.appleTeamId`, for SDK 51 and below, set the `appleTeamId` prop in the Config Plugin in `app.config.js`:
19
19
 
20
20
  ```json
21
21
  {
package/build/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ConfigPlugin } from "@expo/config-plugins";
2
2
  import type { Config } from "./config";
3
3
  export declare const withTargetsDir: ConfigPlugin<{
4
- appleTeamId: string;
4
+ appleTeamId?: string;
5
5
  match?: string;
6
6
  root?: string;
7
7
  }>;
package/build/index.js CHANGED
@@ -9,7 +9,11 @@ const path_1 = __importDefault(require("path"));
9
9
  const withPodTargetExtension_1 = require("./withPodTargetExtension");
10
10
  const withWidget_1 = __importDefault(require("./withWidget"));
11
11
  const withXcparse_1 = require("./withXcparse");
12
- const withTargetsDir = (config, { appleTeamId, root = "./targets", match = "*" }) => {
12
+ const withTargetsDir = (config, _a) => {
13
+ var _b;
14
+ var {
15
+ // @ts-expect-error: not on type yet
16
+ appleTeamId = (_b = config.ios) === null || _b === void 0 ? void 0 : _b.appleTeamId, root = "./targets", match = "*", } = _a;
13
17
  const projectRoot = config._internal.projectRoot;
14
18
  const targets = (0, glob_1.sync)(`${root}/${match}/expo-target.config.@(json|js)`, {
15
19
  // const targets = globSync(`./targets/action/expo-target.config.@(json|js)`, {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withPodTargetExtension = void 0;
4
4
  const config_plugins_1 = require("expo/config-plugins");
5
5
  // TODO: This won't always match the correct target name. Need to pull the same algo in.
6
- const extension = `# Dynamic loading of target configurations
6
+ const extension = `# apple-targets-extension-loader -- Dynamic loading of target configurations
7
7
  Dir.glob(File.join(__dir__, '..', 'targets', '**', 'pods.rb')).each do |target_file|
8
8
  target_name = File.basename(File.dirname(target_file))
9
9
  target target_name do
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bacons/apple-targets",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Generate Apple Targets with Expo Prebuild",
5
5
  "main": "build/index.js",
6
6
  "files": [