@moku-labs/native 0.3.0 → 0.3.2
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 +1 -1
- package/dist/index.cjs +592 -128
- package/dist/index.d.cts +14 -9
- package/dist/index.d.mts +14 -9
- package/dist/index.mjs +592 -128
- package/package.json +23 -19
package/dist/index.d.cts
CHANGED
|
@@ -141,7 +141,8 @@ type Config = {
|
|
|
141
141
|
/**
|
|
142
142
|
* Hex window colour (`"#10161d"`, or `"#10161dff"` with alpha) →
|
|
143
143
|
* `app.windows[0].backgroundColor`. Shows during launch and behind any gap the page
|
|
144
|
-
* does not cover.
|
|
144
|
+
* does not cover. Android status bar icons follow it: light icons on a dark colour,
|
|
145
|
+
* dark icons on a light one. Unset leaves the platform default (white in light mode).
|
|
145
146
|
*/
|
|
146
147
|
backgroundColor?: string;
|
|
147
148
|
}; /** Web build/dev wiring codegenned into tauri.conf.json. cwd for monorepo layouts. */
|
|
@@ -331,11 +332,13 @@ type Api$4 = {
|
|
|
331
332
|
target: Target;
|
|
332
333
|
}): CompletenessResult;
|
|
333
334
|
/**
|
|
334
|
-
* Runs the idempotent mobile post-init patch pass. Android gets its release signing
|
|
335
|
-
* the main activity's manifest attributes (the orientation lock among them)
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
* the
|
|
335
|
+
* Runs the idempotent mobile post-init patch pass. Android gets its release signing,
|
|
336
|
+
* the main activity's manifest attributes (the orientation lock among them) and the
|
|
337
|
+
* status bar style in MainActivity.kt (light icons on a dark `app.backgroundColor`,
|
|
338
|
+
* dark icons on a light one); iOS gets the Xcode entitlements-modification setting;
|
|
339
|
+
* both get the Xcode/Android-Studio runner-command rewrite when a `runner` is supplied.
|
|
340
|
+
* The build plugin calls it after the mobile init pass, with the runner from
|
|
341
|
+
* `tauri.getRunner()`.
|
|
339
342
|
*
|
|
340
343
|
* @param opts - The patch options.
|
|
341
344
|
* @param opts.target - The mobile platform to patch.
|
|
@@ -343,9 +346,11 @@ type Api$4 = {
|
|
|
343
346
|
* @returns The paths patched vs. left unchanged.
|
|
344
347
|
* @example
|
|
345
348
|
* ```ts
|
|
346
|
-
* // app.orientation is "portrait",
|
|
349
|
+
* // app.orientation is "portrait", app.backgroundColor is "#10161d", app.identifier is
|
|
350
|
+
* // "com.acme.demo", projectDir is the default, and neither is written yet
|
|
347
351
|
* await app.project.patchMobile({ target: "android" });
|
|
348
|
-
* // { patched: [".moku/tauri/src-tauri/gen/android/app/src/main/AndroidManifest.xml"
|
|
352
|
+
* // { patched: [".moku/tauri/src-tauri/gen/android/app/src/main/AndroidManifest.xml",
|
|
353
|
+
* // ".moku/tauri/src-tauri/gen/android/app/src/main/java/com/acme/demo/MainActivity.kt"],
|
|
349
354
|
* // unchanged: [".moku/tauri/src-tauri/gen/android/app/build.gradle.kts"] }
|
|
350
355
|
* ```
|
|
351
356
|
*/
|
|
@@ -801,7 +806,7 @@ declare const tauriPlugin: import("@moku-labs/core").PluginInstance<"tauri", Con
|
|
|
801
806
|
*/
|
|
802
807
|
declare const createApp: <const ExtraPlugins extends readonly import("@moku-labs/core").AnyPluginInstance[] = readonly []>(options?: import("@moku-labs/core").CreateAppOptions<Config, Events, (import("@moku-labs/core").PluginInstance<"project", Record<string, never>, Record<string, never>, Api$4, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"tauri", Config$3, State$1, Api$3, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"build", Record<string, never>, Record<string, never>, Api$2, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"doctor", Config$2, Record<string, never>, Api$1, {
|
|
803
808
|
"doctor:check": CheckResult;
|
|
804
|
-
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"cli", Config$1, State, Api, {}> & Record<never, never>) | ExtraPlugins[number], [...ExtraPlugins], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", import("@moku-labs/common").LogConfig, import("@moku-labs/common").LogState, import("@moku-labs/common").LogApi>, import("@moku-labs/core").CorePluginInstance<"env", import("@moku-labs/common").EnvConfig, import("@moku-labs/common").EnvState, import("@moku-labs/common").EnvApi>]>> | undefined) => import("@moku-labs/core").App<Config, Events, (import("@moku-labs/core").PluginInstance<"project", Record<string, never>, Record<string, never>, Api$4, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"tauri", Config$3, State$1, Api$3, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"build", Record<string, never>, Record<string, never>, Api$2, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"doctor", Config$2, Record<string, never>, Api$1, {
|
|
809
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"cli", Config$1, State, Api, {}> & Record<never, never>) | ExtraPlugins[number], [...ExtraPlugins], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", import("@moku-labs/common").LogConfig, import("@moku-labs/common").LogState, import("@moku-labs/common").LogApi>, import("@moku-labs/core").CorePluginInstance<"env", import("@moku-labs/common").EnvConfig, import("@moku-labs/common").EnvState, import("@moku-labs/common").EnvApi>]>, import("@moku-labs/core").CorePluginInstance<"log", import("@moku-labs/common").LogConfig, import("@moku-labs/common").LogState, import("@moku-labs/common").LogApi> | import("@moku-labs/core").CorePluginInstance<"env", import("@moku-labs/common").EnvConfig, import("@moku-labs/common").EnvState, import("@moku-labs/common").EnvApi>> | undefined) => import("@moku-labs/core").App<Config, Events, (import("@moku-labs/core").PluginInstance<"project", Record<string, never>, Record<string, never>, Api$4, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"tauri", Config$3, State$1, Api$3, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"build", Record<string, never>, Record<string, never>, Api$2, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"doctor", Config$2, Record<string, never>, Api$1, {
|
|
805
810
|
"doctor:check": CheckResult;
|
|
806
811
|
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"cli", Config$1, State, Api, {}> & Record<never, never>) | ExtraPlugins[number], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", import("@moku-labs/common").LogConfig, import("@moku-labs/common").LogState, import("@moku-labs/common").LogApi>, import("@moku-labs/core").CorePluginInstance<"env", import("@moku-labs/common").EnvConfig, import("@moku-labs/common").EnvState, import("@moku-labs/common").EnvApi>]>>;
|
|
807
812
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -142,7 +142,8 @@ type Config = {
|
|
|
142
142
|
/**
|
|
143
143
|
* Hex window colour (`"#10161d"`, or `"#10161dff"` with alpha) →
|
|
144
144
|
* `app.windows[0].backgroundColor`. Shows during launch and behind any gap the page
|
|
145
|
-
* does not cover.
|
|
145
|
+
* does not cover. Android status bar icons follow it: light icons on a dark colour,
|
|
146
|
+
* dark icons on a light one. Unset leaves the platform default (white in light mode).
|
|
146
147
|
*/
|
|
147
148
|
backgroundColor?: string;
|
|
148
149
|
}; /** Web build/dev wiring codegenned into tauri.conf.json. cwd for monorepo layouts. */
|
|
@@ -332,11 +333,13 @@ type Api$4 = {
|
|
|
332
333
|
target: Target;
|
|
333
334
|
}): CompletenessResult;
|
|
334
335
|
/**
|
|
335
|
-
* Runs the idempotent mobile post-init patch pass. Android gets its release signing
|
|
336
|
-
* the main activity's manifest attributes (the orientation lock among them)
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
* the
|
|
336
|
+
* Runs the idempotent mobile post-init patch pass. Android gets its release signing,
|
|
337
|
+
* the main activity's manifest attributes (the orientation lock among them) and the
|
|
338
|
+
* status bar style in MainActivity.kt (light icons on a dark `app.backgroundColor`,
|
|
339
|
+
* dark icons on a light one); iOS gets the Xcode entitlements-modification setting;
|
|
340
|
+
* both get the Xcode/Android-Studio runner-command rewrite when a `runner` is supplied.
|
|
341
|
+
* The build plugin calls it after the mobile init pass, with the runner from
|
|
342
|
+
* `tauri.getRunner()`.
|
|
340
343
|
*
|
|
341
344
|
* @param opts - The patch options.
|
|
342
345
|
* @param opts.target - The mobile platform to patch.
|
|
@@ -344,9 +347,11 @@ type Api$4 = {
|
|
|
344
347
|
* @returns The paths patched vs. left unchanged.
|
|
345
348
|
* @example
|
|
346
349
|
* ```ts
|
|
347
|
-
* // app.orientation is "portrait",
|
|
350
|
+
* // app.orientation is "portrait", app.backgroundColor is "#10161d", app.identifier is
|
|
351
|
+
* // "com.acme.demo", projectDir is the default, and neither is written yet
|
|
348
352
|
* await app.project.patchMobile({ target: "android" });
|
|
349
|
-
* // { patched: [".moku/tauri/src-tauri/gen/android/app/src/main/AndroidManifest.xml"
|
|
353
|
+
* // { patched: [".moku/tauri/src-tauri/gen/android/app/src/main/AndroidManifest.xml",
|
|
354
|
+
* // ".moku/tauri/src-tauri/gen/android/app/src/main/java/com/acme/demo/MainActivity.kt"],
|
|
350
355
|
* // unchanged: [".moku/tauri/src-tauri/gen/android/app/build.gradle.kts"] }
|
|
351
356
|
* ```
|
|
352
357
|
*/
|
|
@@ -802,7 +807,7 @@ declare const tauriPlugin: import("@moku-labs/core").PluginInstance<"tauri", Con
|
|
|
802
807
|
*/
|
|
803
808
|
declare const createApp: <const ExtraPlugins extends readonly import("@moku-labs/core").AnyPluginInstance[] = readonly []>(options?: import("@moku-labs/core").CreateAppOptions<Config, Events, (import("@moku-labs/core").PluginInstance<"project", Record<string, never>, Record<string, never>, Api$4, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"tauri", Config$3, State$1, Api$3, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"build", Record<string, never>, Record<string, never>, Api$2, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"doctor", Config$2, Record<string, never>, Api$1, {
|
|
804
809
|
"doctor:check": CheckResult;
|
|
805
|
-
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"cli", Config$1, State, Api, {}> & Record<never, never>) | ExtraPlugins[number], [...ExtraPlugins], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", import("@moku-labs/common").LogConfig, import("@moku-labs/common").LogState, import("@moku-labs/common").LogApi>, import("@moku-labs/core").CorePluginInstance<"env", import("@moku-labs/common").EnvConfig, import("@moku-labs/common").EnvState, import("@moku-labs/common").EnvApi>]>> | undefined) => import("@moku-labs/core").App<Config, Events, (import("@moku-labs/core").PluginInstance<"project", Record<string, never>, Record<string, never>, Api$4, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"tauri", Config$3, State$1, Api$3, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"build", Record<string, never>, Record<string, never>, Api$2, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"doctor", Config$2, Record<string, never>, Api$1, {
|
|
810
|
+
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"cli", Config$1, State, Api, {}> & Record<never, never>) | ExtraPlugins[number], [...ExtraPlugins], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", import("@moku-labs/common").LogConfig, import("@moku-labs/common").LogState, import("@moku-labs/common").LogApi>, import("@moku-labs/core").CorePluginInstance<"env", import("@moku-labs/common").EnvConfig, import("@moku-labs/common").EnvState, import("@moku-labs/common").EnvApi>]>, import("@moku-labs/core").CorePluginInstance<"log", import("@moku-labs/common").LogConfig, import("@moku-labs/common").LogState, import("@moku-labs/common").LogApi> | import("@moku-labs/core").CorePluginInstance<"env", import("@moku-labs/common").EnvConfig, import("@moku-labs/common").EnvState, import("@moku-labs/common").EnvApi>> | undefined) => import("@moku-labs/core").App<Config, Events, (import("@moku-labs/core").PluginInstance<"project", Record<string, never>, Record<string, never>, Api$4, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"tauri", Config$3, State$1, Api$3, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"build", Record<string, never>, Record<string, never>, Api$2, {}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"doctor", Config$2, Record<string, never>, Api$1, {
|
|
806
811
|
"doctor:check": CheckResult;
|
|
807
812
|
}> & Record<never, never>) | (import("@moku-labs/core").PluginInstance<"cli", Config$1, State, Api, {}> & Record<never, never>) | ExtraPlugins[number], import("@moku-labs/core").CoreApisFromTuple<[import("@moku-labs/core").CorePluginInstance<"log", import("@moku-labs/common").LogConfig, import("@moku-labs/common").LogState, import("@moku-labs/common").LogApi>, import("@moku-labs/core").CorePluginInstance<"env", import("@moku-labs/common").EnvConfig, import("@moku-labs/common").EnvState, import("@moku-labs/common").EnvApi>]>>;
|
|
808
813
|
/**
|