@akanjs/devkit 3.0.0-beta.21 → 3.0.0-beta.22
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.
|
@@ -35,7 +35,7 @@ const adminTarget: AkanMobileTargetConfig = {
|
|
|
35
35
|
version: "2.1.0",
|
|
36
36
|
buildNum: 42,
|
|
37
37
|
assets: { icon: "assets/icon.png", splash: "assets/splash.png" },
|
|
38
|
-
permissions: ["camera", "location", "contacts"],
|
|
38
|
+
permissions: ["camera", "location", "contacts", "speech"],
|
|
39
39
|
deepLinks: { domains: ["portal.example"] },
|
|
40
40
|
files: { "android/res/raw/chime.mp3": "assets/chime.mp3" },
|
|
41
41
|
native: {
|
|
@@ -85,16 +85,16 @@ describe("NativeConfig.build", () => {
|
|
|
85
85
|
locales: ["en", "ko"],
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
expect(warnings).toEqual(["Permission '
|
|
88
|
+
expect(warnings).toEqual(["Permission 'speech' has no native plugin yet; the app ships without it."]);
|
|
89
89
|
expect(config).toEqual({
|
|
90
90
|
app: { id: "com.portal.admin", name: "Portal Admin", fileName: "portal-admin", version: "2.1.0", build: 42 },
|
|
91
91
|
web: { dir: "/repo/apps/portal/.akan/mobile/admin/web" },
|
|
92
|
-
plugins: [...NativeConfig.basePlugins, "camera", "geolocation", "iap"],
|
|
92
|
+
plugins: [...NativeConfig.basePlugins, "camera", "geolocation", "contacts", "iap"],
|
|
93
93
|
capabilities: [
|
|
94
94
|
{
|
|
95
95
|
identifier: "app",
|
|
96
96
|
description: "The plugins Portal Admin ships, each with its default permissions",
|
|
97
|
-
permissions: [...NativeConfig.basePlugins, "camera", "geolocation", "iap"].map(
|
|
97
|
+
permissions: [...NativeConfig.basePlugins, "camera", "geolocation", "contacts", "iap"].map(
|
|
98
98
|
(plugin) => `${plugin}:default`,
|
|
99
99
|
),
|
|
100
100
|
},
|
|
@@ -107,6 +107,7 @@ describe("NativeConfig.build", () => {
|
|
|
107
107
|
"Portal Admin requires access to the location to get the user's location.",
|
|
108
108
|
NSLocationAlwaysUsageDescription: "Portal Admin requires access to the location to get the user's location.",
|
|
109
109
|
NSLocationWhenInUseUsageDescription: "Portal Admin requires access to the location to get the user's location.",
|
|
110
|
+
NSContactsUsageDescription: "Portal Admin requires access to the contacts to find people you know.",
|
|
110
111
|
},
|
|
111
112
|
deepLinks: { domains: [{ host: "portal.example", pathPrefixes: ["/en/admin", "/ko/admin"] }] },
|
|
112
113
|
native: {
|
package/mobile/nativeConfig.ts
CHANGED
|
@@ -37,7 +37,7 @@ export class NativeConfig {
|
|
|
37
37
|
"secure-storage",
|
|
38
38
|
"haptics",
|
|
39
39
|
] as const;
|
|
40
|
-
//* Used when no plugin of the app or its libs claims the permission;
|
|
40
|
+
//* Used when no plugin of the app or its libs claims the permission; speech has no native plugin yet.
|
|
41
41
|
static readonly builtinContributions: { [permission in MobilePermission]: AkanPluginNativeConfig } = {
|
|
42
42
|
camera: {
|
|
43
43
|
permission: "camera",
|
|
@@ -48,7 +48,13 @@ export class NativeConfig {
|
|
|
48
48
|
photoUsageDescription: "$(PRODUCT_NAME) requires access to the photo library to take photos.",
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
|
-
contacts: {
|
|
51
|
+
contacts: {
|
|
52
|
+
permission: "contacts",
|
|
53
|
+
plugins: ["contacts"],
|
|
54
|
+
usageDescriptions: {
|
|
55
|
+
contactsUsageDescription: "$(PRODUCT_NAME) requires access to the contacts to find people you know.",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
52
58
|
location: {
|
|
53
59
|
permission: "location",
|
|
54
60
|
plugins: ["geolocation"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.22",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@earendil-works/pi-tui": "0.86.1",
|
|
48
48
|
"@inquirer/prompts": "^8.4.3",
|
|
49
49
|
"@tailwindcss/node": "^4.3.0",
|
|
50
|
-
"akanjs": "3.0.0-beta.
|
|
50
|
+
"akanjs": "3.0.0-beta.22",
|
|
51
51
|
"chalk": "^5.6.2",
|
|
52
52
|
"commander": "^14.0.3",
|
|
53
53
|
"dayjs": "^1.11.20",
|