@mpgd/cli 0.33.2 → 0.34.0
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/capacitor-shell-starter.d.ts +40 -0
- package/dist/capacitor-shell-starter.js +2130 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +97 -5
- package/dist/native-shell-identity.d.ts +19 -0
- package/dist/native-shell-identity.js +490 -0
- package/dist/production-target-readiness.d.ts +1 -0
- package/dist/production-target-readiness.js +1 -1
- package/package.json +14 -13
- package/templates/phaser-game/package.json +1 -0
- package/templates/phaser-game/src/styles.css +6 -4
- package/templates/phaser-game/vite.runtime-target-config.ts +5 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface PlannedFile {
|
|
2
|
+
readonly path: string;
|
|
3
|
+
readonly content: string;
|
|
4
|
+
}
|
|
5
|
+
export interface CapacitorShellStarterInput {
|
|
6
|
+
readonly gameRoot: string;
|
|
7
|
+
readonly appId: string;
|
|
8
|
+
readonly displayName: string;
|
|
9
|
+
readonly iconSource?: string;
|
|
10
|
+
readonly backendUrl?: string;
|
|
11
|
+
/** Selection metadata only; a provider SDK is not installed or enabled here. */
|
|
12
|
+
readonly providerIds?: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
export interface CapacitorShellStarterPlan {
|
|
15
|
+
readonly gameRoot: string;
|
|
16
|
+
readonly input: CapacitorShellStarterInput;
|
|
17
|
+
readonly changedFiles: readonly string[];
|
|
18
|
+
readonly nativePlatformsToAdd: readonly ('android' | 'ios')[];
|
|
19
|
+
readonly files: readonly PlannedFile[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Produce the complete game-owned shell change list before writing anything.
|
|
23
|
+
* Existing Android/iOS projects, signing files, and custom controllers are
|
|
24
|
+
* never rewritten by this initializer.
|
|
25
|
+
*/
|
|
26
|
+
export declare function planCapacitorShellStarter(input: CapacitorShellStarterInput): CapacitorShellStarterPlan;
|
|
27
|
+
export declare function applyCapacitorShellStarter(plan: CapacitorShellStarterPlan, installStagedFile?: (temporary: string, destination: string) => void): void;
|
|
28
|
+
export interface CapacitorShellCommandRunner {
|
|
29
|
+
run(command: string, args: readonly string[], cwd: string): void;
|
|
30
|
+
}
|
|
31
|
+
/** Materialize only missing native projects after the non-destructive plan is applied. */
|
|
32
|
+
export declare function materializeCapacitorShellStarter(plan: CapacitorShellStarterPlan, runner?: CapacitorShellCommandRunner): void;
|
|
33
|
+
/** Fail closed when a Release plist hardcodes values independently of Xcode build settings. */
|
|
34
|
+
export declare function assertIosReleasePlistIdentity(source: string): void;
|
|
35
|
+
export declare function assertAndroidReleaseDisplayName(shellApp: string, expectedDisplayName: string): void;
|
|
36
|
+
export declare function assertAndroidReleaseLauncherIntegrity(shellApp: string): void;
|
|
37
|
+
export declare function assertIosReleaseDisplayName(shellApp: string, expectedDisplayName: string): void;
|
|
38
|
+
export declare function assertIosArchiveScheme(shellApp: string): void;
|
|
39
|
+
export declare function decodeAndroidStringResource(value: string): string;
|
|
40
|
+
export {};
|