@blotch/angular-lynx-native 22.3.1 → 22.3.3
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/README.md +47 -15
- package/dist/android/project.d.ts +114 -1
- package/dist/android/project.d.ts.map +1 -1
- package/dist/android/project.js +440 -5
- package/dist/eject.d.ts +15 -1
- package/dist/eject.d.ts.map +1 -1
- package/dist/eject.js +14 -2
- package/dist/features.d.ts +70 -0
- package/dist/features.d.ts.map +1 -0
- package/dist/features.js +115 -0
- package/dist/files.d.ts +24 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +41 -0
- package/dist/generate.d.ts +34 -3
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +78 -19
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -2
- package/dist/ios/build.d.ts.map +1 -1
- package/dist/ios/build.js +8 -2
- package/dist/ios/frameworks.d.ts +6 -5
- package/dist/ios/frameworks.d.ts.map +1 -1
- package/dist/ios/frameworks.js +46 -15
- package/dist/ios/project.d.ts +192 -11
- package/dist/ios/project.d.ts.map +1 -1
- package/dist/ios/project.js +823 -33
- package/dist/options.d.ts +208 -1
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +154 -0
- package/dist/permissions.d.ts +18 -1
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +79 -4
- package/dist/plugins.d.ts +245 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/plugins.js +1244 -0
- package/package.json +1 -1
- package/templates/android/README.md +46 -5
- package/templates/android/angular-lynx.properties +2 -0
- package/templates/android/app/build.gradle.kts +78 -11
- package/templates/android/app/src/main/AndroidManifest.xml +19 -3
- package/templates/android/app/src/main/java/dev/angularlynx/shell/AngularLynxPlugins.kt +13 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/AudioRecorderModule.kt +520 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/BarcodeScannerModule.kt +144 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/BiometricsModule.kt +433 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/BitmapPresenter.kt +98 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/BitmapRendererContext.kt +175 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/BluetoothModule.kt +1288 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/CalendarModule.kt +127 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/Canvas2DContext.kt +1557 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/Canvas2DOps.kt +63 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/CanvasFilter.kt +357 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/CanvasUI.kt +4 -3
- package/templates/android/app/src/main/java/dev/angularlynx/shell/EdgeToEdgeOverlay.kt +24 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/EngineThreadHint.kt +156 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/FilePickerModule.kt +263 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/GeolocationModule.kt +557 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/HapticsModule.kt +82 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/HostElementUI.kt +331 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/ImagePickerModule.kt +143 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/ImagePipeline.kt +83 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/MainActivity.kt +523 -9
- package/templates/android/app/src/main/java/dev/angularlynx/shell/ModuleBytes.kt +58 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/MotionModule.kt +332 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/NetworkStatus.kt +121 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/NfcModule.kt +274 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/PermissionRequests.kt +35 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/PhotoLibraryModule.kt +355 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/ShareTargetModule.kt +234 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/ShellApplication.kt +7 -8
- package/templates/android/app/src/main/java/dev/angularlynx/shell/ShellModule.kt +58 -4
- package/templates/android/app/src/main/java/dev/angularlynx/shell/StoreReviewModule.kt +66 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/SystemFontFamilies.kt +68 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/TrackingModule.kt +74 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/VideoFrameTarget.kt +429 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/VideoUI.kt +676 -0
- package/templates/android/app/src/main/java/dev/angularlynx/shell/WebGLContext.kt +128 -13
- package/templates/android/app/src/main/java/dev/angularlynx/shell/WebGLModule.kt +493 -65
- package/templates/android/app/src/main/java/dev/angularlynx/shell/WifiModule.kt +429 -0
- package/templates/android/app/src/main/res/values/biometrics.xml +9 -0
- package/templates/android/app/src/main/res/values/share_target.xml +11 -0
- package/templates/android/app/src/main/res/xml/backup_rules.xml +5 -3
- package/templates/android/app/src/main/res/xml/data_extraction_rules.xml +6 -3
- package/templates/android/app/src/main/res/xml/share_paths.xml +7 -2
- package/templates/android/build.gradle.kts +1 -1
- package/templates/android/gradle/wrapper/gradle-wrapper.properties +2 -2
- package/templates/ios/App/AngularLynxBitmapRendererContext.m +188 -0
- package/templates/ios/App/AngularLynxCanvas2DContext.m +2467 -0
- package/templates/ios/App/AngularLynxCanvas2DOps.h +61 -0
- package/templates/ios/App/AngularLynxPlugins.swift +22 -0
- package/templates/ios/App/AngularLynxVideo.h +37 -0
- package/templates/ios/App/AngularLynxVideo.m +435 -0
- package/templates/ios/App/AngularLynxWebGL.h +69 -7
- package/templates/ios/App/AngularLynxWebGL.m +538 -29
- package/templates/ios/App/AngularLynxWebGLContext.m +148 -46
- package/templates/ios/App/AnimationFrameRate.swift +66 -0
- package/templates/ios/App/AppDelegate.swift +37 -3
- package/templates/ios/App/AppleSignInButton.swift +106 -0
- package/templates/ios/App/AppleSignInModule.swift +222 -0
- package/templates/ios/App/AudioRecorderModule.swift +433 -0
- package/templates/ios/App/BarcodeScannerModule.swift +284 -0
- package/templates/ios/App/BiometricsModule.swift +256 -0
- package/templates/ios/App/BluetoothModule.swift +1086 -0
- package/templates/ios/App/CalendarModule.swift +158 -0
- package/templates/ios/App/FilePickerModule.swift +240 -0
- package/templates/ios/App/GeolocationModule.swift +455 -0
- package/templates/ios/App/HapticsModule.swift +90 -0
- package/templates/ios/App/HostElementUI.swift +270 -0
- package/templates/ios/App/ImagePickerModule.swift +160 -1
- package/templates/ios/App/Info.plist +2 -0
- package/templates/ios/App/LynxViewController.swift +274 -9
- package/templates/ios/App/MotionModule.swift +430 -0
- package/templates/ios/App/NetworkStatus.swift +41 -0
- package/templates/ios/App/NfcModule.swift +346 -0
- package/templates/ios/App/PhotoLibraryModule.swift +169 -0
- package/templates/ios/App/ShareTargetModule.swift +150 -0
- package/templates/ios/App/ShellModule.swift +17 -0
- package/templates/ios/App/StoreReviewModule.swift +61 -0
- package/templates/ios/App/TrackingModule.swift +121 -0
- package/templates/ios/App/WifiModule.swift +237 -0
- package/templates/ios/App/XElementRegistry.swift +13 -3
- package/templates/ios/ShareExtension/Info.plist +42 -0
- package/templates/ios/ShareExtension/ShareViewController.swift +387 -0
package/dist/options.d.ts
CHANGED
|
@@ -26,8 +26,85 @@ export type NativeAppOptions = {
|
|
|
26
26
|
* lays the page out inside the safe area, with `env()` at 0.
|
|
27
27
|
*/
|
|
28
28
|
readonly edgeToEdge?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the app's text follows the phone's text size: iOS's Dynamic Type
|
|
31
|
+
* and Android's font size. The page's root font size grows by the user's
|
|
32
|
+
* scale, so every size in `rem` grows with it (a size in `px` doesn't), and
|
|
33
|
+
* `LynxAccessibilitySettings.textScale()` reads it. On by default; `false`
|
|
34
|
+
* keeps the text at its default size, and `{ "max": 1.6 }` stops it
|
|
35
|
+
* growing past 1.6 times that, for a layout that can't take more.
|
|
36
|
+
*/
|
|
37
|
+
readonly textScaling?: boolean | TextScaling;
|
|
29
38
|
/** Each permission the app uses, with the reason shown to the user. */
|
|
30
39
|
readonly permissions?: Partial<Record<Permission, string>>;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the app lets the person pick documents and save files with the
|
|
42
|
+
* runtime's `LynxFilePicker`: `UIDocumentPickerViewController` on iOS, and
|
|
43
|
+
* the system's document picker and save screen on Android. Neither needs a
|
|
44
|
+
* permission. Off by default, which leaves the native module out of both
|
|
45
|
+
* apps.
|
|
46
|
+
*/
|
|
47
|
+
readonly filePicker?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the iOS Files app lists the app's Documents folder, under On My
|
|
50
|
+
* iPhone (Info.plist's `UIFileSharingEnabled` and
|
|
51
|
+
* `LSSupportsOpeningDocumentsInPlace`), so the person can save a file
|
|
52
|
+
* there with `LynxFilePicker.save()` and pick it again later. Off by
|
|
53
|
+
* default. Android has no equivalent: its document picker already shows
|
|
54
|
+
* Downloads.
|
|
55
|
+
*/
|
|
56
|
+
readonly fileSharing?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the app asks for a rating in the app with the runtime's
|
|
59
|
+
* `LynxStoreReview`: StoreKit's review prompt on iOS, and Google Play's
|
|
60
|
+
* In-App Review API on Android. Off by default, which leaves the native
|
|
61
|
+
* module out of both apps, and Play's review library out of the Android
|
|
62
|
+
* one.
|
|
63
|
+
*/
|
|
64
|
+
readonly storeReview?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the app adds events to the person's calendar with the runtime's
|
|
67
|
+
* `LynxCalendar`, through the system's own event editor: EventKitUI's on
|
|
68
|
+
* iOS 17 and later, and the calendar app's on Android. Neither needs a
|
|
69
|
+
* calendar permission. Off by default, which leaves the native module out
|
|
70
|
+
* of both apps.
|
|
71
|
+
*/
|
|
72
|
+
readonly calendar?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the app offers Sign in with Apple's native sheet with the
|
|
75
|
+
* runtime's `LynxAppleSignIn` (`ASAuthorizationAppleIDProvider`). iOS only:
|
|
76
|
+
* Android has no native sheet, and signs in with Apple's web flow through
|
|
77
|
+
* `LynxWebAuthSession`. Off by default, which leaves the native module and
|
|
78
|
+
* the `com.apple.developer.applesignin` entitlement out of the app: a free
|
|
79
|
+
* Personal Team can't sign that entitlement.
|
|
80
|
+
*/
|
|
81
|
+
readonly signInWithApple?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Puts the app in other apps' share sheets for the types it lists, e.g.
|
|
84
|
+
* `{ "mimeTypes": ["text/plain", "text/uri-list", "image/*"] }`, so the
|
|
85
|
+
* runtime's `LynxShareTarget` receives what the person shares to it: an
|
|
86
|
+
* `ACTION_SEND` intent filter on Android, and a Share Extension on iOS,
|
|
87
|
+
* which hands the share to the app through an App Group. Off by default,
|
|
88
|
+
* which leaves the native module, the extension and the App Groups
|
|
89
|
+
* entitlement out of both apps: a free Personal Team can't sign App
|
|
90
|
+
* Groups.
|
|
91
|
+
*/
|
|
92
|
+
readonly shareTarget?: ShareTargetOptions | false;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the app reads the phone's Wi-Fi network and joins others with
|
|
95
|
+
* the runtime's `LynxWifi` (see {@link WifiOptions}). Off by default, which
|
|
96
|
+
* leaves the native module, its entitlements and its manifest permissions
|
|
97
|
+
* out of both apps.
|
|
98
|
+
*/
|
|
99
|
+
readonly wifi?: WifiOptions;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the app reads the phone's motion sensors and compass, and hears
|
|
102
|
+
* it shaken, with the runtime's `LynxMotion`: Core Motion and
|
|
103
|
+
* `CLLocationManager`'s heading on iOS, and `SensorManager` on Android.
|
|
104
|
+
* None of them needs a permission. Off by default, which leaves the native
|
|
105
|
+
* module out of both apps.
|
|
106
|
+
*/
|
|
107
|
+
readonly motion?: boolean;
|
|
31
108
|
/** Custom URL schemes that open the app, e.g. `["myapp"]`. */
|
|
32
109
|
readonly deepLinkSchemes?: readonly string[];
|
|
33
110
|
/**
|
|
@@ -65,9 +142,71 @@ export type NativeAppOptions = {
|
|
|
65
142
|
* first screen is drawn (see {@link SplashOptions}).
|
|
66
143
|
*/
|
|
67
144
|
readonly splash?: SplashOptions;
|
|
145
|
+
/**
|
|
146
|
+
* The app's native plugins: each a folder, relative to the project root, of
|
|
147
|
+
* the Swift and Kotlin it adds to the generated projects, and the modules
|
|
148
|
+
* and elements to register from them (see plugins.ts).
|
|
149
|
+
*/
|
|
150
|
+
readonly nativePlugins?: readonly NativePluginOptions[];
|
|
68
151
|
readonly ios?: IosOptions;
|
|
69
152
|
readonly android?: AndroidOptions;
|
|
70
153
|
};
|
|
154
|
+
/**
|
|
155
|
+
* One of angular.json's `nativePlugins`: a folder of the app's own Swift and
|
|
156
|
+
* Kotlin, and what each platform registers from it. In angular.json, beside
|
|
157
|
+
* the app's other options, as Angular's `assets` and `fileReplacements` take
|
|
158
|
+
* objects: the builder's schema checks it and editors complete it, and
|
|
159
|
+
* `configurations` override it as they do any option.
|
|
160
|
+
*
|
|
161
|
+
* Each platform's keys are those of Lynx Autolink's `lynx.lib.json`
|
|
162
|
+
* (`platforms.ios.sourceDir`, `platforms.android.packageName` and
|
|
163
|
+
* `sourceDir`), so the same keys mean the same things, plus `modules` and
|
|
164
|
+
* `elements`, which name the classes to register: Autolink finds them from
|
|
165
|
+
* markers in the sources (`@LynxNativeModule`, `@LynxElement`), which Swift
|
|
166
|
+
* can't carry. A plugin isn't an Autolink library, so it has no
|
|
167
|
+
* `lynx.lib.json` of its own: its sources are compiled into the app, with no
|
|
168
|
+
* `build.gradle` or podspec, which Lynx's Autolink tools require of a folder
|
|
169
|
+
* with one.
|
|
170
|
+
*/
|
|
171
|
+
export type NativePluginOptions = {
|
|
172
|
+
/** The plugin's folder, relative to the project root: `native/greeter`. */
|
|
173
|
+
readonly path: string;
|
|
174
|
+
readonly ios?: NativePluginPlatform;
|
|
175
|
+
readonly android?: NativePluginPlatform & {
|
|
176
|
+
/**
|
|
177
|
+
* The Java package the plugin's classes are in, as Autolink's
|
|
178
|
+
* `packageName`. A class named without one is in this package.
|
|
179
|
+
*/
|
|
180
|
+
readonly packageName?: string;
|
|
181
|
+
/**
|
|
182
|
+
* The plugin's Android resources (`values/`, `values-night/`,
|
|
183
|
+
* `drawable/`, `font/`, …), relative to the plugin's folder, as a
|
|
184
|
+
* module's `src/main/res` is laid out. Defaults to `res` in the source
|
|
185
|
+
* folder when that folder is there. Autolink has no key for it: an
|
|
186
|
+
* Autolink library is a Gradle module with resources of its own.
|
|
187
|
+
*/
|
|
188
|
+
readonly resDir?: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
/** One platform's half of a native plugin. */
|
|
192
|
+
export type NativePluginPlatform = {
|
|
193
|
+
/**
|
|
194
|
+
* The folder of source files, relative to the plugin's folder, copied into
|
|
195
|
+
* the generated project: Swift on iOS, Kotlin and Java on Android. Defaults
|
|
196
|
+
* to `ios` or `android`, as Autolink's does, when that folder is there.
|
|
197
|
+
*/
|
|
198
|
+
readonly sourceDir?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Each native module, as the name the app's code calls it by
|
|
201
|
+
* (`getNativeModule('<name>')`) to its class.
|
|
202
|
+
*/
|
|
203
|
+
readonly modules?: Readonly<Record<string, string>>;
|
|
204
|
+
/**
|
|
205
|
+
* Each native element, as the tag templates use (with a hyphen, as a
|
|
206
|
+
* custom element's) to its `LynxUI` class.
|
|
207
|
+
*/
|
|
208
|
+
readonly elements?: Readonly<Record<string, string>>;
|
|
209
|
+
};
|
|
71
210
|
/**
|
|
72
211
|
* The launch screen: an image centered on a color, from the tap on the app's
|
|
73
212
|
* icon until the app hides it (the runtime's `provideSplashScreen()`), or
|
|
@@ -169,7 +308,7 @@ export type ResolvedShortcut = {
|
|
|
169
308
|
};
|
|
170
309
|
/** Where a shortcut's phrase names the app. */
|
|
171
310
|
export declare const APP_NAME_PLACEHOLDER = "{appName}";
|
|
172
|
-
export type Permission = 'camera' | 'microphone' | 'location' | 'photos' | 'savePhotos' | 'contacts' | 'notifications' | 'localNetwork';
|
|
311
|
+
export type Permission = 'camera' | 'microphone' | 'location' | 'photos' | 'savePhotos' | 'contacts' | 'notifications' | 'localNetwork' | 'biometrics' | 'bluetooth' | 'tracking' | 'nfc';
|
|
173
312
|
/**
|
|
174
313
|
* How the `.ipa` is signed, as Xcode's export methods name it:
|
|
175
314
|
* `app-store-connect` for App Store Connect and TestFlight, and
|
|
@@ -233,6 +372,58 @@ export type AdaptiveIcon = {
|
|
|
233
372
|
/** A color (`#RRGGBB` or `#RGB`), or a 1024×1024 PNG like `foreground`. */
|
|
234
373
|
readonly background?: string;
|
|
235
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* {@link NativeAppOptions.wifi}: which of `LynxWifi`'s parts the app uses.
|
|
377
|
+
* Each adds an iOS capability, which a free Personal Team can't sign, so the
|
|
378
|
+
* app asks only for the parts it calls.
|
|
379
|
+
*/
|
|
380
|
+
export type WifiOptions = {
|
|
381
|
+
/**
|
|
382
|
+
* `join()` and `leave()`: the Hotspot Configuration entitlement
|
|
383
|
+
* (`NEHotspotConfigurationManager`) on iOS, and `CHANGE_WIFI_STATE` and
|
|
384
|
+
* `CHANGE_NETWORK_STATE` on Android.
|
|
385
|
+
*/
|
|
386
|
+
readonly join?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* `currentNetwork()`: the Access Wi-Fi Information entitlement
|
|
389
|
+
* (`NEHotspotNetwork`) on iOS, and `ACCESS_WIFI_STATE` on Android. Both
|
|
390
|
+
* platforms also need the person's location to give the network's name,
|
|
391
|
+
* so it needs `permissions.location`, whose reason iOS shows.
|
|
392
|
+
*/
|
|
393
|
+
readonly readCurrentNetwork?: boolean;
|
|
394
|
+
};
|
|
395
|
+
/** {@link NativeAppOptions.wifi} with its defaults applied. */
|
|
396
|
+
export type ResolvedWifi = {
|
|
397
|
+
readonly join: boolean;
|
|
398
|
+
readonly readCurrentNetwork: boolean;
|
|
399
|
+
};
|
|
400
|
+
/** {@link NativeAppOptions.textScaling} as an object. */
|
|
401
|
+
export type TextScaling = {
|
|
402
|
+
/**
|
|
403
|
+
* The largest scale the app's text takes, such as 1.6: at a larger text
|
|
404
|
+
* size it stays 1.6 times its default size. At least 1. Without it, the
|
|
405
|
+
* text follows the phone's largest sizes (about 3.1 on iOS, 2 on Android).
|
|
406
|
+
*/
|
|
407
|
+
readonly max?: number;
|
|
408
|
+
};
|
|
409
|
+
/** {@link NativeAppOptions.textScaling} with its default applied. */
|
|
410
|
+
export type ResolvedTextScaling = {
|
|
411
|
+
readonly enabled: boolean;
|
|
412
|
+
/** The cap, or undefined for none. */
|
|
413
|
+
readonly max?: number;
|
|
414
|
+
};
|
|
415
|
+
/** angular.json's `shareTarget`. */
|
|
416
|
+
export type ShareTargetOptions = {
|
|
417
|
+
/**
|
|
418
|
+
* The MIME types the app receives, such as `text/plain` for text,
|
|
419
|
+
* `text/uri-list` for links, `image/*` for photos or `application/pdf`.
|
|
420
|
+
*/
|
|
421
|
+
readonly mimeTypes: readonly string[];
|
|
422
|
+
};
|
|
423
|
+
/** {@link ShareTargetOptions}, checked, with each type in lowercase once. */
|
|
424
|
+
export type ResolvedShareTarget = {
|
|
425
|
+
readonly mimeTypes: readonly string[];
|
|
426
|
+
};
|
|
236
427
|
/** {@link NativeAppOptions} with every default applied and every value checked. */
|
|
237
428
|
export type ResolvedApp = {
|
|
238
429
|
readonly name: string;
|
|
@@ -241,7 +432,17 @@ export type ResolvedApp = {
|
|
|
241
432
|
readonly buildNumber: number;
|
|
242
433
|
readonly orientation: Orientation;
|
|
243
434
|
readonly edgeToEdge: boolean;
|
|
435
|
+
readonly textScaling: ResolvedTextScaling;
|
|
244
436
|
readonly permissions: Partial<Record<Permission, string>>;
|
|
437
|
+
readonly filePicker: boolean;
|
|
438
|
+
readonly fileSharing: boolean;
|
|
439
|
+
readonly storeReview: boolean;
|
|
440
|
+
readonly calendar: boolean;
|
|
441
|
+
readonly signInWithApple: boolean;
|
|
442
|
+
/** {@link NativeAppOptions.shareTarget}, or undefined when it's off. */
|
|
443
|
+
readonly shareTarget: ResolvedShareTarget | undefined;
|
|
444
|
+
readonly wifi: ResolvedWifi;
|
|
445
|
+
readonly motion: boolean;
|
|
245
446
|
readonly deepLinkSchemes: readonly string[];
|
|
246
447
|
/** {@link NativeAppOptions.appLinkDomains} in lowercase, each once. */
|
|
247
448
|
readonly appLinkDomains: readonly string[];
|
|
@@ -255,6 +456,12 @@ export type ResolvedApp = {
|
|
|
255
456
|
readonly splash: ResolvedSplash;
|
|
256
457
|
/** `MyApp`: the iOS product (and so .app/.ipa) name. */
|
|
257
458
|
readonly productName: string;
|
|
459
|
+
/**
|
|
460
|
+
* {@link NativeAppOptions.nativePlugins}, as listed: compact() would drop
|
|
461
|
+
* a platform given as `{}`, which takes its source folder by the default,
|
|
462
|
+
* where one left out adds nothing.
|
|
463
|
+
*/
|
|
464
|
+
readonly nativePlugins: readonly NativePluginOptions[];
|
|
258
465
|
/** `my-app`: the base name of Android artifacts. */
|
|
259
466
|
readonly artifactName: string;
|
|
260
467
|
readonly ios: IosOptions;
|
package/dist/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9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|
|
73
77
|
];
|
|
78
|
+
/** A `nativePlugins` entry, for messages. */
|
|
79
|
+
const PLUGIN_EXAMPLE = '{ "path": "native/greeter", "ios": { "modules": { "Greeter": "GreeterModule" } } }';
|
|
74
80
|
/**
|
|
75
81
|
* Applies defaults and validates the options, so the generators never see a
|
|
76
82
|
* value that would produce a project Xcode or Gradle rejects later with a
|
|
@@ -110,6 +116,29 @@ export const resolveAppOptions = (rawOptions, defaults) => {
|
|
|
110
116
|
throw new NativeConfigError(`permissions.${permission} needs the reason shown to the user, e.g. "Scan receipts".`);
|
|
111
117
|
}
|
|
112
118
|
}
|
|
119
|
+
// Checked here because the generators keep the module, or the Info.plist
|
|
120
|
+
// keys, for any truthy value, so a string such as "false" would quietly
|
|
121
|
+
// ship them.
|
|
122
|
+
// The switches are read from the options as given: compact() drops an
|
|
123
|
+
// empty object, which would then pass as false rather than be rejected.
|
|
124
|
+
const filePicker = resolveSwitch('filePicker', rawOptions.filePicker, 'to let the person pick and save files with LynxFilePicker');
|
|
125
|
+
const fileSharing = resolveSwitch('fileSharing', rawOptions.fileSharing, "to list the app's Documents folder in the iOS Files app");
|
|
126
|
+
// Checked here because the generators keep the module for any truthy
|
|
127
|
+
// value, so a string such as "false" would quietly ship it. Read from the
|
|
128
|
+
// options as given: compact() drops an empty object, which would then
|
|
129
|
+
// pass as false rather than be rejected.
|
|
130
|
+
const storeReview = rawOptions.storeReview ?? false;
|
|
131
|
+
if (typeof storeReview !== 'boolean') {
|
|
132
|
+
throw new NativeConfigError(`storeReview ${JSON.stringify(storeReview)} is not valid. Use true to ask for ratings in the app with LynxStoreReview, or false.`);
|
|
133
|
+
}
|
|
134
|
+
// Checked for the same reason as filePicker.
|
|
135
|
+
const calendar = resolveSwitch('calendar', rawOptions.calendar, 'to add events to the calendar with LynxCalendar');
|
|
136
|
+
// An entitlement too, so a string such as "false" would also make a
|
|
137
|
+
// Personal Team's signing fail.
|
|
138
|
+
const signInWithApple = resolveSwitch('signInWithApple', rawOptions.signInWithApple, "to offer Sign in with Apple's native sheet with LynxAppleSignIn");
|
|
139
|
+
const wifi = resolveWifi(options.wifi, permissions);
|
|
140
|
+
// As for calendar.
|
|
141
|
+
const motion = resolveSwitch('motion', rawOptions.motion, 'to read the motion sensors and compass with LynxMotion');
|
|
113
142
|
const deepLinkSchemes = options.deepLinkSchemes ?? [];
|
|
114
143
|
for (const scheme of deepLinkSchemes) {
|
|
115
144
|
if (!SCHEME.test(scheme)) {
|
|
@@ -139,6 +168,7 @@ export const resolveAppOptions = (rawOptions, defaults) => {
|
|
|
139
168
|
if (canOpenURLSchemes.length > MAX_QUERIED_SCHEMES) {
|
|
140
169
|
throw new NativeConfigError(`canOpenURLSchemes lists ${canOpenURLSchemes.length} schemes with the ${ALWAYS_QUERIED_SCHEMES.length} always there (${ALWAYS_QUERIED_SCHEMES.join(', ')}). iOS reads no more than ${MAX_QUERIED_SCHEMES}.`);
|
|
141
170
|
}
|
|
171
|
+
const textScaling = resolveTextScaling(options.textScaling);
|
|
142
172
|
const shortcuts = resolveShortcuts(options.shortcuts ?? []);
|
|
143
173
|
const splash = resolveSplash(options.splash ?? {});
|
|
144
174
|
const android = options.android ?? {};
|
|
@@ -162,6 +192,30 @@ export const resolveAppOptions = (rawOptions, defaults) => {
|
|
|
162
192
|
!IOS_EXPORT_METHODS.includes(exportMethod)) {
|
|
163
193
|
throw new NativeConfigError(`ios.export "${exportMethod}" is not valid. Use ${IOS_EXPORT_METHODS.join(' or ')}.`);
|
|
164
194
|
}
|
|
195
|
+
// Only the list's shape here: each entry is read when the project is
|
|
196
|
+
// generated (readNativePlugins), which has the project root to find its
|
|
197
|
+
// folder in. Read from the options as given: compact() drops an empty
|
|
198
|
+
// object, which would then pass as no plugins rather than be rejected, and
|
|
199
|
+
// an empty platform, which isn't the same as none.
|
|
200
|
+
const nativePlugins = rawOptions.nativePlugins ?? [];
|
|
201
|
+
if (!Array.isArray(nativePlugins)) {
|
|
202
|
+
throw new NativeConfigError(`nativePlugins must list the app's plugins, e.g. [${PLUGIN_EXAMPLE}].`);
|
|
203
|
+
}
|
|
204
|
+
for (const entry of nativePlugins) {
|
|
205
|
+
// The folder alone was the entry while each plugin had a file of its own
|
|
206
|
+
// describing it. Angular's schema check stops one first in ng build, but
|
|
207
|
+
// not a caller of the builder's API.
|
|
208
|
+
if (typeof entry === 'string') {
|
|
209
|
+
throw new NativeConfigError(`nativePlugins entry "${entry}" is a folder alone. Give each plugin as an object with its folder as path and what it registers on each platform, e.g. ${PLUGIN_EXAMPLE}.`);
|
|
210
|
+
}
|
|
211
|
+
if (typeof entry !== 'object' ||
|
|
212
|
+
entry === null ||
|
|
213
|
+
Array.isArray(entry) ||
|
|
214
|
+
typeof entry.path !== 'string' ||
|
|
215
|
+
!entry.path) {
|
|
216
|
+
throw new NativeConfigError(`nativePlugins must give each plugin as an object with its folder, relative to the project root, as path, e.g. ${PLUGIN_EXAMPLE}.`);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
165
219
|
const productName = name.replace(/[^A-Za-z0-9]/g, '') || 'App';
|
|
166
220
|
const artifactName = name
|
|
167
221
|
.toLowerCase()
|
|
@@ -174,7 +228,16 @@ export const resolveAppOptions = (rawOptions, defaults) => {
|
|
|
174
228
|
buildNumber,
|
|
175
229
|
orientation: options.orientation ?? 'portrait',
|
|
176
230
|
edgeToEdge: options.edgeToEdge ?? true,
|
|
231
|
+
textScaling,
|
|
177
232
|
permissions,
|
|
233
|
+
filePicker,
|
|
234
|
+
fileSharing,
|
|
235
|
+
storeReview,
|
|
236
|
+
calendar,
|
|
237
|
+
signInWithApple,
|
|
238
|
+
shareTarget: resolveShareTarget(options.shareTarget),
|
|
239
|
+
wifi,
|
|
240
|
+
motion,
|
|
178
241
|
deepLinkSchemes,
|
|
179
242
|
appLinkDomains,
|
|
180
243
|
canOpenURLSchemes,
|
|
@@ -182,11 +245,102 @@ export const resolveAppOptions = (rawOptions, defaults) => {
|
|
|
182
245
|
icon: options.icon,
|
|
183
246
|
splash,
|
|
184
247
|
productName,
|
|
248
|
+
nativePlugins: nativePlugins,
|
|
185
249
|
artifactName,
|
|
186
250
|
ios: options.ios ?? {},
|
|
187
251
|
android,
|
|
188
252
|
};
|
|
189
253
|
};
|
|
254
|
+
/**
|
|
255
|
+
* A MIME type, or a wildcard for its subtype (`image/*`) or for everything
|
|
256
|
+
* (`*\/*`), as Android's intent filters take them.
|
|
257
|
+
*/
|
|
258
|
+
const SHARE_MIME_TYPE = /^(?:\*\/\*|[a-z0-9][a-z0-9!#$&^_.+-]*\/(?:\*|[a-z0-9][a-z0-9!#$&^_.+-]*))$/;
|
|
259
|
+
/**
|
|
260
|
+
* Checks `shareTarget`: an object with at least one MIME type, each in
|
|
261
|
+
* lowercase once (MIME types are case-insensitive, and Android's intent
|
|
262
|
+
* filters match them case-sensitively in lowercase).
|
|
263
|
+
*/
|
|
264
|
+
const resolveShareTarget = (value) => {
|
|
265
|
+
if (value === undefined || value === false)
|
|
266
|
+
return undefined;
|
|
267
|
+
const mimeTypes = value?.mimeTypes;
|
|
268
|
+
if (typeof value !== 'object' ||
|
|
269
|
+
value === null ||
|
|
270
|
+
!Array.isArray(mimeTypes) ||
|
|
271
|
+
mimeTypes.length === 0 ||
|
|
272
|
+
mimeTypes.some((type) => typeof type !== 'string')) {
|
|
273
|
+
throw new NativeConfigError(`shareTarget ${JSON.stringify(value)} is not valid. Give the types the app receives, e.g. { "mimeTypes": ["text/plain", "image/*"] }, or false.`);
|
|
274
|
+
}
|
|
275
|
+
const types = [
|
|
276
|
+
...new Set(mimeTypes.map((type) => type.toLowerCase())),
|
|
277
|
+
];
|
|
278
|
+
for (const type of types) {
|
|
279
|
+
if (!SHARE_MIME_TYPE.test(type)) {
|
|
280
|
+
throw new NativeConfigError(`shareTarget.mimeTypes entry "${type}" is not a MIME type. Give a type and subtype, such as "text/plain", "image/*" or "application/pdf".`);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return { mimeTypes: types };
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* A boolean option that's off by default, checked so that anything but
|
|
287
|
+
* `true` or `false`, such as the string "false", is an error naming it.
|
|
288
|
+
*/
|
|
289
|
+
const resolveSwitch = (name, value, purpose) => {
|
|
290
|
+
if (value === undefined)
|
|
291
|
+
return false;
|
|
292
|
+
if (typeof value !== 'boolean') {
|
|
293
|
+
throw new NativeConfigError(`${name} ${JSON.stringify(value)} is not valid. Use true ${purpose}, or false.`);
|
|
294
|
+
}
|
|
295
|
+
return value;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Checks `wifi`: an object of the two switches, each a boolean, since the
|
|
299
|
+
* generators keep the module, the entitlements and the permissions for any
|
|
300
|
+
* truthy value. Reading the network's name needs the person's location on
|
|
301
|
+
* both platforms, so `readCurrentNetwork` needs `permissions.location`, whose
|
|
302
|
+
* reason iOS shows: without it, iOS shows no prompt and the name stays hidden.
|
|
303
|
+
*/
|
|
304
|
+
const resolveWifi = (wifi, permissions) => {
|
|
305
|
+
if (wifi === undefined)
|
|
306
|
+
return { join: false, readCurrentNetwork: false };
|
|
307
|
+
if (typeof wifi !== 'object' || wifi === null || Array.isArray(wifi)) {
|
|
308
|
+
throw new NativeConfigError(`wifi ${JSON.stringify(wifi)} is not valid. Use an object of the parts of LynxWifi the app uses, e.g. { "join": true, "readCurrentNetwork": true }.`);
|
|
309
|
+
}
|
|
310
|
+
for (const key of Object.keys(wifi)) {
|
|
311
|
+
if (key !== 'join' && key !== 'readCurrentNetwork') {
|
|
312
|
+
throw new NativeConfigError(`Unknown wifi option "${key}". Supported: join, readCurrentNetwork.`);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
const { join, readCurrentNetwork } = wifi;
|
|
316
|
+
const resolved = {
|
|
317
|
+
join: resolveSwitch('wifi.join', join, 'to join Wi-Fi networks with LynxWifi'),
|
|
318
|
+
readCurrentNetwork: resolveSwitch('wifi.readCurrentNetwork', readCurrentNetwork, "to read the phone's Wi-Fi network with LynxWifi"),
|
|
319
|
+
};
|
|
320
|
+
if (resolved.readCurrentNetwork && !permissions.location) {
|
|
321
|
+
throw new NativeConfigError('wifi.readCurrentNetwork needs permissions.location too: iOS and Android give the network\'s name only to an app with the person\'s location. Add the reason iOS shows, e.g. "permissions": { "location": "Find your Wi-Fi network to set up the device" }.');
|
|
322
|
+
}
|
|
323
|
+
return resolved;
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Checks `textScaling` and gives it its default, on. A cap below 1 would make
|
|
327
|
+
* the default text smaller than the app was designed at, so it's caught here,
|
|
328
|
+
* where the message can name the option.
|
|
329
|
+
*/
|
|
330
|
+
const resolveTextScaling = (textScaling) => {
|
|
331
|
+
if (textScaling === undefined || textScaling === true) {
|
|
332
|
+
return { enabled: true };
|
|
333
|
+
}
|
|
334
|
+
if (textScaling === false)
|
|
335
|
+
return { enabled: false };
|
|
336
|
+
const max = textScaling.max;
|
|
337
|
+
if (max === undefined)
|
|
338
|
+
return { enabled: true };
|
|
339
|
+
if (typeof max !== 'number' || !Number.isFinite(max) || max < 1) {
|
|
340
|
+
throw new NativeConfigError(`textScaling.max ${String(max)} is not valid. Use a number of at least 1, such as 1.6, or "textScaling": false to keep the text at its default size.`);
|
|
341
|
+
}
|
|
342
|
+
return { enabled: true, max };
|
|
343
|
+
};
|
|
190
344
|
/**
|
|
191
345
|
* A shortcut's ID as part of a Swift type name or an Android resource name,
|
|
192
346
|
* neither of which takes a hyphen: `show-photos` → `show_photos`.
|
package/dist/permissions.d.ts
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import type { Permission } from './options.ts';
|
|
2
|
+
/**
|
|
3
|
+
* A manifest permission: its name alone, or with the attributes that narrow
|
|
4
|
+
* it.
|
|
5
|
+
*/
|
|
6
|
+
export type AndroidPermission = string | {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The newest API level that gets the permission, for one a later
|
|
10
|
+
* Android version replaced with another.
|
|
11
|
+
*/
|
|
12
|
+
readonly maxSdkVersion?: number;
|
|
13
|
+
/**
|
|
14
|
+
* `|`-separated promises about how the app uses it, such as
|
|
15
|
+
* `neverForLocation`.
|
|
16
|
+
*/
|
|
17
|
+
readonly usesPermissionFlags?: string;
|
|
18
|
+
};
|
|
2
19
|
/**
|
|
3
20
|
* What each cross-platform permission becomes on each OS. iOS asks the user
|
|
4
21
|
* with the app's own reason string (an Info.plist usage description); Android
|
|
@@ -6,7 +23,7 @@ import type { Permission } from './options.ts';
|
|
|
6
23
|
*/
|
|
7
24
|
export declare const PERMISSION_MAP: Record<Permission, {
|
|
8
25
|
readonly ios: readonly string[];
|
|
9
|
-
readonly android: readonly
|
|
26
|
+
readonly android: readonly AndroidPermission[];
|
|
10
27
|
/**
|
|
11
28
|
* Hardware the Android permission implies. Declared as not required, or
|
|
12
29
|
* Google Play hides the app from devices without it (a tablet without a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../src/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,UAAU,EACV;IACE,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../src/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GACzB,MAAM,GACN;IACE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CACvC,CAAC;AAEN;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,UAAU,EACV;IACE,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC/C;;;;OAIG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9C,CAyHF,CAAC"}
|
package/dist/permissions.js
CHANGED
|
@@ -14,6 +14,12 @@ export const PERMISSION_MAP = {
|
|
|
14
14
|
android: ['android.permission.RECORD_AUDIO'],
|
|
15
15
|
androidFeatures: ['android.hardware.microphone'],
|
|
16
16
|
},
|
|
17
|
+
// Where the phone is, while the app is in use, through LynxGeolocation.
|
|
18
|
+
// iOS asks with this reason the first time the app asks for the location.
|
|
19
|
+
// Android asks at runtime for both, and Android 12 and later let the
|
|
20
|
+
// person grant only the coarse one ("Approximate"). The shells'
|
|
21
|
+
// geolocation module is only in apps that ask for this: App Store Connect
|
|
22
|
+
// flags an app whose code uses Core Location without the reason.
|
|
17
23
|
location: {
|
|
18
24
|
ios: ['NSLocationWhenInUseUsageDescription'],
|
|
19
25
|
android: [
|
|
@@ -22,15 +28,31 @@ export const PERMISSION_MAP = {
|
|
|
22
28
|
],
|
|
23
29
|
androidFeatures: ['android.hardware.location'],
|
|
24
30
|
},
|
|
31
|
+
// Reading the photo library, on iOS only. Nothing in the shells reads it:
|
|
32
|
+
// LynxImagePicker uses PHPicker and Android's Photo Picker, which need no
|
|
33
|
+
// permission. Android declares nothing for it, since Google Play rejects
|
|
34
|
+
// an app that declares READ_MEDIA_IMAGES without a core need for the
|
|
35
|
+
// whole library (its Photo and Video Permissions policy).
|
|
25
36
|
photos: {
|
|
26
37
|
ios: ['NSPhotoLibraryUsageDescription'],
|
|
27
|
-
android: [
|
|
38
|
+
android: [],
|
|
28
39
|
},
|
|
29
|
-
// Adding to the photo library only, as the share sheet's Save Image
|
|
30
|
-
//
|
|
40
|
+
// Adding to the photo library only, as the share sheet's Save Image and
|
|
41
|
+
// LynxPhotoLibrary do. The shells' photo library module is only in apps
|
|
42
|
+
// that ask for this. Android 10 and later let an app add its own media
|
|
43
|
+
// without a permission; Android 7 to 9 need WRITE_EXTERNAL_STORAGE, which
|
|
44
|
+
// the module asks for as it first saves there. READ_EXTERNAL_STORAGE goes
|
|
45
|
+
// with it: Android 8 and 9 mount shared storage writable for an app only
|
|
46
|
+
// when it holds both, so with WRITE alone a save works until the app
|
|
47
|
+
// restarts. Declared here, it also stops Android adding READ by itself,
|
|
48
|
+
// uncapped. Both are capped at Android 9, so newer phones neither list nor
|
|
49
|
+
// grant them.
|
|
31
50
|
savePhotos: {
|
|
32
51
|
ios: ['NSPhotoLibraryAddUsageDescription'],
|
|
33
|
-
android: [
|
|
52
|
+
android: [
|
|
53
|
+
{ name: 'android.permission.READ_EXTERNAL_STORAGE', maxSdkVersion: 28 },
|
|
54
|
+
{ name: 'android.permission.WRITE_EXTERNAL_STORAGE', maxSdkVersion: 28 },
|
|
55
|
+
],
|
|
34
56
|
},
|
|
35
57
|
contacts: {
|
|
36
58
|
ios: ['NSContactsUsageDescription'],
|
|
@@ -43,6 +65,59 @@ export const PERMISSION_MAP = {
|
|
|
43
65
|
ios: ['NSLocalNetworkUsageDescription'],
|
|
44
66
|
android: [],
|
|
45
67
|
},
|
|
68
|
+
// Face ID, Touch ID or a fingerprint, for LynxBiometrics and the values
|
|
69
|
+
// LynxSecureStorage keeps behind them. iOS shows the reason the first time
|
|
70
|
+
// the app uses Face ID (Touch ID needs none), and ends nothing without it:
|
|
71
|
+
// Face ID just fails. Android's USE_BIOMETRIC is granted at install. The
|
|
72
|
+
// shells' biometrics module is only in apps that ask for this.
|
|
73
|
+
biometrics: {
|
|
74
|
+
ios: ['NSFaceIDUsageDescription'],
|
|
75
|
+
android: ['android.permission.USE_BIOMETRIC'],
|
|
76
|
+
},
|
|
77
|
+
// Bluetooth LE devices, through LynxBluetooth. iOS asks with this reason the
|
|
78
|
+
// first time the app uses Bluetooth. Android 12 replaced BLUETOOTH and
|
|
79
|
+
// BLUETOOTH_ADMIN with the nearby devices permissions it asks for at
|
|
80
|
+
// runtime, so the old ones stop where it starts; before it, a scan also
|
|
81
|
+
// needs location. neverForLocation promises the app doesn't work out where
|
|
82
|
+
// the phone is from what a scan finds, so scanning needs no location from
|
|
83
|
+
// Android 12, which leaves some beacons out of the results in return.
|
|
84
|
+
bluetooth: {
|
|
85
|
+
ios: ['NSBluetoothAlwaysUsageDescription'],
|
|
86
|
+
android: [
|
|
87
|
+
{ name: 'android.permission.BLUETOOTH', maxSdkVersion: 30 },
|
|
88
|
+
{ name: 'android.permission.BLUETOOTH_ADMIN', maxSdkVersion: 30 },
|
|
89
|
+
{ name: 'android.permission.ACCESS_FINE_LOCATION', maxSdkVersion: 30 },
|
|
90
|
+
{
|
|
91
|
+
name: 'android.permission.BLUETOOTH_SCAN',
|
|
92
|
+
usesPermissionFlags: 'neverForLocation',
|
|
93
|
+
},
|
|
94
|
+
'android.permission.BLUETOOTH_CONNECT',
|
|
95
|
+
],
|
|
96
|
+
androidFeatures: ['android.hardware.bluetooth_le'],
|
|
97
|
+
},
|
|
98
|
+
// Tracking the person across other companies' apps and websites, as an ad
|
|
99
|
+
// or install-attribution SDK does with the advertising ID: iOS (14.5 and
|
|
100
|
+
// later) won't hand over the advertising ID until the person allows it in App
|
|
101
|
+
// Tracking Transparency's prompt, which shows this reason, and ends an app
|
|
102
|
+
// that asks without one. Android 13 and later give an app that doesn't
|
|
103
|
+
// declare AD_ID a zeroed advertising ID. The shells' tracking module, and
|
|
104
|
+
// Google Play's advertising ID library on Android, are only in apps that
|
|
105
|
+
// ask for this (LynxTracking).
|
|
106
|
+
tracking: {
|
|
107
|
+
ios: ['NSUserTrackingUsageDescription'],
|
|
108
|
+
android: ['com.google.android.gms.permission.AD_ID'],
|
|
109
|
+
},
|
|
110
|
+
// Reading and writing NFC tags, for LynxNfc. iOS ends an app that opens a
|
|
111
|
+
// reader session without the reason, and refuses one signed without the
|
|
112
|
+
// NFC Tag Reading entitlement, which this adds too (IOS_ENTITLEMENTS in
|
|
113
|
+
// ios/project.ts). Android's NFC permission is granted at install. The feature isn't required, so Google Play still
|
|
114
|
+
// offers the app to phones without NFC, where LynxNfc says unsupported.
|
|
115
|
+
// The shells' NFC module is only in apps that ask for this.
|
|
116
|
+
nfc: {
|
|
117
|
+
ios: ['NFCReaderUsageDescription'],
|
|
118
|
+
android: ['android.permission.NFC'],
|
|
119
|
+
androidFeatures: ['android.hardware.nfc'],
|
|
120
|
+
},
|
|
46
121
|
// iOS asks for notification permission at runtime without a usage string.
|
|
47
122
|
notifications: {
|
|
48
123
|
ios: [],
|