@mcesystems/apple-kit 1.0.48 → 1.0.50

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
@@ -193,12 +193,21 @@ console.log(`Activated: ${state.isActivated}`);
193
193
  console.log(`State: ${state.activationState}`);
194
194
 
195
195
  // Activate device (requires valid activation record)
196
- await device.activate({ iosBinaryPath: process.env.IOS_BIN ?? "ios" });
196
+ await device.activate({
197
+ resourcesDir: process.env.APPLE_KIT_RESOURCES_DIR,
198
+ });
197
199
 
198
200
  // Deactivate device
199
201
  await device.deactivate();
200
202
  ```
201
203
 
204
+ When `resourcesDir` is set, the activation flow reads MDM credentials from
205
+ `@clientLocal.json` inside that folder, plist templates from `resourcesDir/plist`,
206
+ and the iOS CLI binary from `resourcesDir/ios/bin/{platform}`.
207
+ If `resourcesDir/mdm/enrollment_{udid}.mobileconfig` or
208
+ `resourcesDir/mdm/enrollment.mobileconfig` exists, it is installed instead of
209
+ calling the MDM API (offline enrollment).
210
+
202
211
  ### Running Without iTunes (usbmuxd)
203
212
 
204
213
  On Windows, iTunes provides the Apple Mobile Device Service for USB communication. If you don't have iTunes installed, you can run the bundled `usbmuxd`:
@@ -271,6 +280,9 @@ daemon.stop();
271
280
  - `isUsbmuxdRunning()`: Check if daemon is running
272
281
  - `ensureUsbmuxd()`: Start if not already running
273
282
 
283
+ To use a custom resources folder, pass it as the second parameter:
284
+ `startUsbmuxd(false, { resourcesDir: "..." })`.
285
+
274
286
  ### Types
275
287
 
276
288
  ```typescript