@akanjs/devkit 3.3.0-rc.82 → 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,8 +137,10 @@ describe("NativeConfig.build", () => {
137
137
  ],
138
138
  security: { csp: policy() },
139
139
  deepLinks: { schemes: ["minimal"], domains: ["example.com"] },
140
+ ios: { debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev" },
140
141
  android: {
141
142
  debugAppIdSuffix: ".debug",
143
+ debugAppNameSuffix: " Dev",
142
144
  googleServices: path.resolve("/repo/apps/minimal", "secrets/google-services.json"),
143
145
  },
144
146
  keyboard: { resize: "none" },
@@ -185,7 +187,8 @@ describe("NativeConfig.build", () => {
185
187
  android: { manifest: ['<queries><package android:name="com.kakao.talk" /></queries>'] },
186
188
  resources: [{ from: path.resolve("/repo/apps/portal", "assets/chime.mp3"), to: "android/res/raw/chime.mp3" }],
187
189
  },
188
- android: { debugAppIdSuffix: ".debug" },
190
+ ios: { debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev" },
191
+ android: { debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev" },
189
192
  keyboard: { resize: "none" },
190
193
  icon: path.resolve("/repo/apps/portal", "assets/icon.png"),
191
194
  splash: { image: path.resolve("/repo/apps/portal", "assets/splash.png"), autoHide: false },
@@ -473,7 +476,7 @@ describe("NativeConfig.build", () => {
473
476
  webview2: "standalone",
474
477
  bin: root,
475
478
  });
476
- expect(config.android).toEqual({ debugAppIdSuffix: ".debug", autoplay: true });
479
+ expect(config.android).toEqual({ debugAppIdSuffix: ".debug", debugAppNameSuffix: " Dev", autoplay: true });
477
480
  await mkdir(path.join(root, "web"), { recursive: true });
478
481
  await writeFile(path.join(root, "web/index.html"), "<html><head></head><body></body></html>");
479
482
  expect((await NativeApi.load(repoApp)).validateConfig(config, { appDir: root })).toEqual([]);
@@ -503,7 +506,7 @@ describe("NativeConfig.build", () => {
503
506
  expect((await NativeApi.load(repoApp)).validateConfig(config, { appDir: root })).toEqual([]);
504
507
  });
505
508
 
506
- test("ios.hideFormAccessoryBar reaches the iOS shell, and the runtime accepts it; left out, the bar stays", async () => {
509
+ test("ios.hideFormAccessoryBar reaches the iOS shell next to the dev build's id suffix, and the runtime accepts it", async () => {
507
510
  const root = await makeTempRoot();
508
511
  const build = (ios?: { hideFormAccessoryBar?: boolean }) =>
509
512
  NativeConfig.build({
@@ -516,9 +519,10 @@ describe("NativeConfig.build", () => {
516
519
  }).config;
517
520
  const config = build({ hideFormAccessoryBar: true });
518
521
 
519
- expect(config.ios).toEqual({ hideFormAccessoryBar: true });
520
- expect(build().ios).toBeUndefined();
521
- expect(build({ hideFormAccessoryBar: false }).ios).toBeUndefined();
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);
522
526
  await mkdir(path.join(root, "web"), { recursive: true });
523
527
  await writeFile(path.join(root, "web/index.html"), "<html><head></head><body></body></html>");
524
528
  expect((await NativeApi.load(repoApp)).validateConfig(config, { appDir: root })).toEqual([]);
@@ -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
- ...(target.ios?.hideFormAccessoryBar ? { ios: { hideFormAccessoryBar: true } } : {}),
263
- //? assetlinks.json vouches for `<appId>.debug` outside main, the suffix a debug build installs under.
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
- debugAppIdSuffix: ".debug",
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.82",
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.82",
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.82",
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",