@hot-updater/apple-helper 0.25.8 → 0.25.10
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/dist/index.cjs +371 -191
- package/dist/index.d.cts +21 -5
- package/dist/index.d.ts +21 -5
- package/dist/index.js +370 -192
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { ApplePlatform, NativeBuildIosScheme, NativeBuildOptions } from "@hot-updater/plugin-core";
|
|
2
2
|
|
|
3
|
+
//#region src/utils/enrichNativeBuildIosScheme.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Validated scheme filled nullish values with default values.
|
|
7
|
+
*/
|
|
8
|
+
type EnrichedNativeBuildIosScheme = NativeBuildIosScheme & Required<Pick<NativeBuildIosScheme, "platform" | "installPods" | "configuration" | "destination" | "simulator">> & {
|
|
9
|
+
hotUpdaterSchemeName: string;
|
|
10
|
+
};
|
|
11
|
+
declare const enrichNativeBuildIosScheme: ({
|
|
12
|
+
scheme,
|
|
13
|
+
hotUpdaterSchemeName
|
|
14
|
+
}: {
|
|
15
|
+
scheme: NativeBuildIosScheme;
|
|
16
|
+
hotUpdaterSchemeName: string;
|
|
17
|
+
}) => Promise<EnrichedNativeBuildIosScheme>;
|
|
18
|
+
//#endregion
|
|
3
19
|
//#region src/buildIos.d.ts
|
|
4
20
|
declare const buildIos: ({
|
|
5
|
-
schemeConfig
|
|
21
|
+
schemeConfig
|
|
6
22
|
}: {
|
|
7
|
-
schemeConfig:
|
|
23
|
+
schemeConfig: EnrichedNativeBuildIosScheme;
|
|
8
24
|
}) => Promise<{
|
|
9
25
|
buildDirectory: string;
|
|
10
26
|
buildArtifactPath: string;
|
|
@@ -27,14 +43,14 @@ interface IosNativeRunOptions extends NativeBuildOptions {
|
|
|
27
43
|
//#endregion
|
|
28
44
|
//#region src/runIos.d.ts
|
|
29
45
|
declare const runIos: ({
|
|
30
|
-
schemeConfig
|
|
46
|
+
schemeConfig,
|
|
31
47
|
runOption
|
|
32
48
|
}: {
|
|
33
|
-
schemeConfig:
|
|
49
|
+
schemeConfig: EnrichedNativeBuildIosScheme;
|
|
34
50
|
runOption: IosNativeRunOptions;
|
|
35
51
|
}) => Promise<{
|
|
36
52
|
appPath: string;
|
|
37
53
|
infoPlistPath: string;
|
|
38
54
|
}>;
|
|
39
55
|
//#endregion
|
|
40
|
-
export { type AppleDevice, type AppleDeviceType, type DeviceState, type IosNativeRunOptions, buildIos, runIos };
|
|
56
|
+
export { type AppleDevice, type AppleDeviceType, type DeviceState, type EnrichedNativeBuildIosScheme, type IosNativeRunOptions, buildIos, enrichNativeBuildIosScheme, runIos };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { ApplePlatform, NativeBuildIosScheme, NativeBuildOptions } from "@hot-updater/plugin-core";
|
|
2
2
|
|
|
3
|
+
//#region src/utils/enrichNativeBuildIosScheme.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Validated scheme filled nullish values with default values.
|
|
7
|
+
*/
|
|
8
|
+
type EnrichedNativeBuildIosScheme = NativeBuildIosScheme & Required<Pick<NativeBuildIosScheme, "platform" | "installPods" | "configuration" | "destination" | "simulator">> & {
|
|
9
|
+
hotUpdaterSchemeName: string;
|
|
10
|
+
};
|
|
11
|
+
declare const enrichNativeBuildIosScheme: ({
|
|
12
|
+
scheme,
|
|
13
|
+
hotUpdaterSchemeName
|
|
14
|
+
}: {
|
|
15
|
+
scheme: NativeBuildIosScheme;
|
|
16
|
+
hotUpdaterSchemeName: string;
|
|
17
|
+
}) => Promise<EnrichedNativeBuildIosScheme>;
|
|
18
|
+
//#endregion
|
|
3
19
|
//#region src/buildIos.d.ts
|
|
4
20
|
declare const buildIos: ({
|
|
5
|
-
schemeConfig
|
|
21
|
+
schemeConfig
|
|
6
22
|
}: {
|
|
7
|
-
schemeConfig:
|
|
23
|
+
schemeConfig: EnrichedNativeBuildIosScheme;
|
|
8
24
|
}) => Promise<{
|
|
9
25
|
buildDirectory: string;
|
|
10
26
|
buildArtifactPath: string;
|
|
@@ -27,14 +43,14 @@ interface IosNativeRunOptions extends NativeBuildOptions {
|
|
|
27
43
|
//#endregion
|
|
28
44
|
//#region src/runIos.d.ts
|
|
29
45
|
declare const runIos: ({
|
|
30
|
-
schemeConfig
|
|
46
|
+
schemeConfig,
|
|
31
47
|
runOption
|
|
32
48
|
}: {
|
|
33
|
-
schemeConfig:
|
|
49
|
+
schemeConfig: EnrichedNativeBuildIosScheme;
|
|
34
50
|
runOption: IosNativeRunOptions;
|
|
35
51
|
}) => Promise<{
|
|
36
52
|
appPath: string;
|
|
37
53
|
infoPlistPath: string;
|
|
38
54
|
}>;
|
|
39
55
|
//#endregion
|
|
40
|
-
export { type AppleDevice, type AppleDeviceType, type DeviceState, type IosNativeRunOptions, buildIos, runIos };
|
|
56
|
+
export { type AppleDevice, type AppleDeviceType, type DeviceState, type EnrichedNativeBuildIosScheme, type IosNativeRunOptions, buildIos, enrichNativeBuildIosScheme, runIos };
|