@akanjs/devkit 3.3.0-rc.83 → 3.3.0-rc.84
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.
|
@@ -137,9 +137,10 @@ describe("NativeConfig.build", () => {
|
|
|
137
137
|
],
|
|
138
138
|
security: { csp: policy() },
|
|
139
139
|
deepLinks: { schemes: ["minimal"], domains: ["example.com"] },
|
|
140
|
-
ios: { debugAppIdSuffix: ".debug" },
|
|
140
|
+
ios: { debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev" },
|
|
141
141
|
android: {
|
|
142
142
|
debugAppIdSuffix: ".debug",
|
|
143
|
+
debugAppNameSuffix: " Dev",
|
|
143
144
|
googleServices: path.resolve("/repo/apps/minimal", "secrets/google-services.json"),
|
|
144
145
|
},
|
|
145
146
|
keyboard: { resize: "none" },
|
|
@@ -186,8 +187,8 @@ describe("NativeConfig.build", () => {
|
|
|
186
187
|
android: { manifest: ['<queries><package android:name="com.kakao.talk" /></queries>'] },
|
|
187
188
|
resources: [{ from: path.resolve("/repo/apps/portal", "assets/chime.mp3"), to: "android/res/raw/chime.mp3" }],
|
|
188
189
|
},
|
|
189
|
-
ios: { debugAppIdSuffix: ".debug" },
|
|
190
|
-
android: { debugAppIdSuffix: ".debug" },
|
|
190
|
+
ios: { debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev" },
|
|
191
|
+
android: { debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev" },
|
|
191
192
|
keyboard: { resize: "none" },
|
|
192
193
|
icon: path.resolve("/repo/apps/portal", "assets/icon.png"),
|
|
193
194
|
splash: { image: path.resolve("/repo/apps/portal", "assets/splash.png"), autoHide: false },
|
|
@@ -475,7 +476,7 @@ describe("NativeConfig.build", () => {
|
|
|
475
476
|
webview2: "standalone",
|
|
476
477
|
bin: root,
|
|
477
478
|
});
|
|
478
|
-
expect(config.android).toEqual({ debugAppIdSuffix: ".debug", autoplay: true });
|
|
479
|
+
expect(config.android).toEqual({ debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev", autoplay: true });
|
|
479
480
|
await mkdir(path.join(root, "web"), { recursive: true });
|
|
480
481
|
await writeFile(path.join(root, "web/index.html"), "<html><head></head><body></body></html>");
|
|
481
482
|
expect((await NativeApi.load(repoApp)).validateConfig(config, { appDir: root })).toEqual([]);
|
|
@@ -518,9 +519,10 @@ describe("NativeConfig.build", () => {
|
|
|
518
519
|
}).config;
|
|
519
520
|
const config = build({ hideFormAccessoryBar: true });
|
|
520
521
|
|
|
521
|
-
|
|
522
|
-
expect(
|
|
523
|
-
expect(build(
|
|
522
|
+
const debugSuffixes = { debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev" };
|
|
523
|
+
expect(config.ios).toEqual({ ...debugSuffixes, hideFormAccessoryBar: true });
|
|
524
|
+
expect(build().ios).toEqual(debugSuffixes);
|
|
525
|
+
expect(build({ hideFormAccessoryBar: false }).ios).toEqual(debugSuffixes);
|
|
524
526
|
await mkdir(path.join(root, "web"), { recursive: true });
|
|
525
527
|
await writeFile(path.join(root, "web/index.html"), "<html><head></head><body></body></html>");
|
|
526
528
|
expect((await NativeApi.load(repoApp)).validateConfig(config, { appDir: root })).toEqual([]);
|
package/mobile/nativeConfig.ts
CHANGED
|
@@ -15,6 +15,8 @@ import { type NativePlatform, resolveAppId } from "./mobileTarget";
|
|
|
15
15
|
import type { NativePluginFolder } from "./nativePluginFolders";
|
|
16
16
|
import { toIosInfoPlistUsageDescriptions } from "./usageDescriptions";
|
|
17
17
|
|
|
18
|
+
const DEBUG_SUFFIXES = { debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev" };
|
|
19
|
+
|
|
18
20
|
export interface NativeConfigInput {
|
|
19
21
|
/** The app folder; every relative path in the target resolves against it. */
|
|
20
22
|
appPath: string;
|
|
@@ -259,10 +261,13 @@ export class NativeConfig {
|
|
|
259
261
|
}
|
|
260
262
|
: {}),
|
|
261
263
|
...(target.ios?.privacy ? { privacy: target.ios.privacy } : {}),
|
|
262
|
-
//? A dev build installs as `<appId>.debug` next to the store app; AASA and assetlinks.json vouch for it outside main.
|
|
263
|
-
ios: {
|
|
264
|
+
//? A dev build installs as `<appId>.debug` named "<appName> Dev" next to the store app; AASA and assetlinks.json vouch for it outside main.
|
|
265
|
+
ios: {
|
|
266
|
+
...DEBUG_SUFFIXES,
|
|
267
|
+
...(target.ios?.hideFormAccessoryBar ? { hideFormAccessoryBar: true } : {}),
|
|
268
|
+
},
|
|
264
269
|
android: {
|
|
265
|
-
|
|
270
|
+
...DEBUG_SUFFIXES,
|
|
266
271
|
...(googleServices ? { googleServices: abs(googleServices) } : {}),
|
|
267
272
|
...(target.android?.autoplay ? { autoplay: true } : {}),
|
|
268
273
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "3.3.0-rc.
|
|
3
|
+
"version": "3.3.0-rc.84",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"./workspace/getRelatedCnsts": "./workspace/getRelatedCnsts.ts"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@akanjs/language": "3.3.0-rc.
|
|
55
|
+
"@akanjs/language": "3.3.0-rc.84",
|
|
56
56
|
"@inquirer/prompts": "^8.7.3",
|
|
57
57
|
"@tailwindcss/node": "^4.3.3",
|
|
58
|
-
"akanjs": "3.3.0-rc.
|
|
58
|
+
"akanjs": "3.3.0-rc.84",
|
|
59
59
|
"chalk": "^6.0.1",
|
|
60
60
|
"commander": "^15.0.0",
|
|
61
61
|
"dayjs": "^1.11.23",
|