@craft-native/ios 0.0.369 → 0.0.374
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 +48 -3
- package/dist/cli.js +314 -158
- package/dist/index.d.ts +6 -2
- package/dist/index.js +338 -179
- package/dist/runtime-profile.d.ts +13 -0
- package/package.json +1 -1
- package/templates/CraftApp.swift +279 -3
- package/templates/CraftBluetooth.swift +12 -0
- package/templates/CraftHealth.swift +124 -8
- package/templates/CraftHeartRate.swift +13 -0
- package/templates/CraftHybrid.swift +52 -11
- package/templates/CraftLiveActivities.swift +2 -0
- package/templates/CraftMusic.swift +23 -0
- package/templates/CraftNativeActions.swift +54 -8
- package/templates/CraftNativeFiles.swift +7 -0
- package/templates/CraftNativeScreen.swift +155 -0
- package/templates/CraftNativeServices.swift +19 -13
- package/templates/CraftVoiceRecording.swift +13 -1
package/dist/index.d.ts
CHANGED
|
@@ -408,6 +408,8 @@ export interface InitOptions {
|
|
|
408
408
|
* monorepo dev loop uses.
|
|
409
409
|
*/
|
|
410
410
|
runtimeDir?: string | null;
|
|
411
|
+
/** Explicit Craft Zig source package for a per-app runtime build (or CRAFT_IOS_RUNTIME_SOURCE). */
|
|
412
|
+
runtimeSource?: string | null;
|
|
411
413
|
}
|
|
412
414
|
export interface BuildOptions {
|
|
413
415
|
htmlPath?: string;
|
|
@@ -422,6 +424,8 @@ export interface BuildOptions {
|
|
|
422
424
|
* leaves whatever `init` installed exactly as it is.
|
|
423
425
|
*/
|
|
424
426
|
runtimeDir?: string | null;
|
|
427
|
+
/** Rebuild the installed runtime from this source using the app's current feature flags. */
|
|
428
|
+
runtimeSource?: string | null;
|
|
425
429
|
}
|
|
426
430
|
/**
|
|
427
431
|
* Run the app's declared generator hook without invoking a shell.
|
|
@@ -498,7 +502,7 @@ export declare function renderRuntimeSettings(): string;
|
|
|
498
502
|
* behind the `CRAFT_SCHEDULED_WORKOUTS` condition, so an app that does not
|
|
499
503
|
* schedule workouts does not link it. `$(inherited)` keeps Debug's `DEBUG`.
|
|
500
504
|
*/
|
|
501
|
-
export declare function renderFeatureSettings(config:
|
|
505
|
+
export declare function renderFeatureSettings(config: Partial<CraftConfig>): string;
|
|
502
506
|
export declare function renderPrivacyManifest(config: CraftConfig): string;
|
|
503
507
|
/**
|
|
504
508
|
* Whether a PNG carries an alpha channel, from its header: colour type 4
|
|
@@ -563,7 +567,7 @@ export declare function resolveRuntimeDir(override?: string | null): string | nu
|
|
|
563
567
|
*
|
|
564
568
|
* Returns true when a runtime was installed.
|
|
565
569
|
*/
|
|
566
|
-
export declare function installRuntime(output: string, runtimeDir: string): Promise<boolean>;
|
|
570
|
+
export declare function installRuntime(output: string, runtimeDir: string, config?: CraftConfig): Promise<boolean>;
|
|
567
571
|
/**
|
|
568
572
|
* The identifier an app's display name becomes wherever Xcode or Swift needs
|
|
569
573
|
* one: the project, the target, the product and the `@main` type.
|