@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 +13 -1
- package/dist/index.js +305 -152
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +299 -150
- package/dist/index.mjs.map +4 -4
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logic/actions/usbmuxd.d.ts +10 -0
- package/dist/types/logic/actions/usbmuxd.d.ts.map +1 -0
- package/dist/types/logic/activationFlow.d.ts +1 -0
- package/dist/types/logic/activationFlow.d.ts.map +1 -1
- package/dist/types/logic/utils/resolvePath.d.ts +3 -1
- package/dist/types/logic/utils/resolvePath.d.ts.map +1 -1
- package/dist/types/types.d.ts +7 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/mdmClient.d.ts +4 -1
- package/dist/types/utils/mdmClient.d.ts.map +1 -1
- package/dist/types/utils/templateLoader.d.ts +1 -1
- package/dist/types/utils/templateLoader.d.ts.map +1 -1
- package/dist/types/utils/trustProfile.d.ts +6 -2
- package/dist/types/utils/trustProfile.d.ts.map +1 -1
- package/dist/types/utils/wifiProfile.d.ts +6 -2
- package/dist/types/utils/wifiProfile.d.ts.map +1 -1
- package/package.json +1 -1
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({
|
|
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
|