@bacons/apple-targets 0.1.18 → 0.1.19

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
@@ -178,8 +178,6 @@ The name of the target must match the name of the target directory.
178
178
 
179
179
  Some files are required to be linked to both your target and the main target. To support this, you can add a top-level `_shared` directory. Any file in this directory will be linked to both the main target and the sub-target. You'll need to re-run prebuild every time you add, rename, or remove a file in this directory.
180
180
 
181
- This is especially useful for Live Activities and Intents.
182
-
183
181
  ## `exportJs`
184
182
 
185
183
  The `exportJs` option should be used when the target uses React Native (App Clip, Share extension). It works by linking the main target's `Bundle React Native code and images` build phase to the target. This will ensure that production builds (`Release`) bundle the main JS entry file with Metro, and embed the bundle/assets for offline use.
@@ -319,6 +317,7 @@ If you experience issues building widgets, it might be because React Native is s
319
317
 
320
318
  Some workarounds:
321
319
 
320
+ - Clear the SwiftUI previews cache: `xcrun simctl --set previews delete all`
322
321
  - Prebuild without React Native: `npx expo prebuild --template node_modules/@bacons/apple-targets/prebuild-blank.tgz --clean`
323
322
  - If the widget doesn't show on the home screen when building the app, use iOS 18. You can long press the app icon and select the widget display options to transform the app icon into the widget.
324
323
 
@@ -401,6 +400,12 @@ let defaults = UserDefaults(suiteName:
401
400
  let index = defaults?.string(forKey: "myKey")
402
401
  ```
403
402
 
403
+ ### More data updates
404
+
405
+ For more advanced uses, I recommend the following resources:
406
+
407
+ - Updating widgets when the app is in the background: [Keeping A Widget Up-to-Date](https://developer.apple.com/documentation/widgetkit/keeping-a-widget-up-to-date).
408
+
404
409
  ## Xcode parsing
405
410
 
406
411
  This plugin makes use of my proprietary Xcode parsing library, [`@bacons/xcode`](https://github.com/evanbacon/xcode). It's mostly typed, very untested, and possibly full of bugs––however, it's still 10x nicer than the alternative.
@@ -589,7 +589,7 @@ function createConfigurationList(project, { name, cwd, bundleId, deploymentTarge
589
589
  SWIFT_ACTIVE_COMPILATION_CONDITIONS: "DEBUG",
590
590
  SWIFT_EMIT_LOC_STRINGS: "YES",
591
591
  SWIFT_OPTIMIZATION_LEVEL: "-Onone",
592
- SWIFT_VERSION: "5",
592
+ SWIFT_VERSION: "5.0",
593
593
  TARGETED_DEVICE_FAMILY: "1,2",
594
594
  },
595
595
  });
@@ -628,7 +628,7 @@ function createConfigurationList(project, { name, cwd, bundleId, deploymentTarge
628
628
  SWIFT_EMIT_LOC_STRINGS: "YES",
629
629
  SWIFT_COMPILATION_MODE: "wholemodule",
630
630
  SWIFT_OPTIMIZATION_LEVEL: "-O",
631
- SWIFT_VERSION: "5",
631
+ SWIFT_VERSION: "5.0",
632
632
  TARGETED_DEVICE_FAMILY: "1,2",
633
633
  },
634
634
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bacons/apple-targets",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Generate Apple Targets with Expo Prebuild",
5
5
  "main": "build/ExtensionStorage.js",
6
6
  "types": "build/ExtensionStorage.d.ts",