@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/ios/frameworks.js
CHANGED
|
@@ -17,13 +17,14 @@ export const LYNX_IOS = {
|
|
|
17
17
|
version: '4.1.0',
|
|
18
18
|
/**
|
|
19
19
|
* Counts rebuilds of one Lynx version whose frameworks changed (2 added
|
|
20
|
-
* XElement, 3 ANGLE); BUILD in the script.
|
|
21
|
-
* so a machine that cached an older zip
|
|
22
|
-
* linking frameworks the shell no longer
|
|
20
|
+
* XElement, 3 ANGLE, 4 SDWebImage's signed release); BUILD in the script.
|
|
21
|
+
* It's part of the cache folder, so a machine that cached an older zip
|
|
22
|
+
* downloads the new one instead of linking frameworks the shell no longer
|
|
23
|
+
* matches.
|
|
23
24
|
*/
|
|
24
|
-
build:
|
|
25
|
-
url: 'https://github.com/Blotch-Smart-Frames/AngularLynx/releases/download/lynx-ios-4.1.0-
|
|
26
|
-
sha256: '
|
|
25
|
+
build: 4,
|
|
26
|
+
url: 'https://github.com/Blotch-Smart-Frames/AngularLynx/releases/download/lynx-ios-4.1.0-4/lynx-ios-4.1.0-4.zip',
|
|
27
|
+
sha256: '996d8f3ff10ad565fd2503c3946d9929c0cc3f4cb1dcabec04647f31d32044c9',
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
30
|
* The frameworks the zip has from Lynx's pods. The frameworks build reads
|
|
@@ -78,7 +79,20 @@ export const resolveLynxFrameworks = async (logFile, log) => {
|
|
|
78
79
|
const dir = path.join(cacheRoot(), `${LYNX_IOS.version}-${LYNX_IOS.build}`);
|
|
79
80
|
const frameworks = path.join(dir, 'LynxFrameworks');
|
|
80
81
|
if (existsSync(path.join(dir, '.complete'))) {
|
|
81
|
-
|
|
82
|
+
// .complete says the download finished, not that the folder is still
|
|
83
|
+
// whole: before issue #1000, a build script deleted every file in it
|
|
84
|
+
// through a symlink and left the marker, and every iOS build then failed
|
|
85
|
+
// on a missing Info.plist. A damaged cache is downloaded again.
|
|
86
|
+
// SDWebImage's signature and manifest too: without them the app still
|
|
87
|
+
// builds, and only App Store Connect notices.
|
|
88
|
+
const missing = [
|
|
89
|
+
...missingFiles(frameworks),
|
|
90
|
+
...missingSdWebImageFiles(frameworks),
|
|
91
|
+
];
|
|
92
|
+
if (missing.length === 0) {
|
|
93
|
+
return frameworks;
|
|
94
|
+
}
|
|
95
|
+
log(`The cached Lynx ${LYNX_IOS.version} frameworks for iOS are missing ${missing.join(', ')}; downloading them again`);
|
|
82
96
|
}
|
|
83
97
|
if (!LYNX_IOS.sha256) {
|
|
84
98
|
throw new Error(`Prebuilt Lynx ${LYNX_IOS.version} frameworks for iOS aren't published yet. Build them with packages/native/scripts/build-lynx-ios-frameworks.sh from the AngularLynx repository, then set ${FRAMEWORKS_ENV} to the LynxFrameworks folder it creates.`);
|
|
@@ -113,18 +127,35 @@ export const resolveLynxFrameworks = async (logFile, log) => {
|
|
|
113
127
|
return frameworks;
|
|
114
128
|
};
|
|
115
129
|
const assertComplete = (dir, source) => {
|
|
116
|
-
const missing =
|
|
117
|
-
...IOS_FRAMEWORKS.filter((name) => !existsSync(path.join(dir, `${name}.xcframework`, 'Info.plist'))).map((name) => `${name}.xcframework`),
|
|
118
|
-
// A folder from before ANGLE (build 2) has every Lynx framework but
|
|
119
|
-
// these, and the shell wouldn't compile against it.
|
|
120
|
-
...(existsSync(path.join(dir, ANGLE_IOS_HEADERS, 'EGL/egl.h'))
|
|
121
|
-
? []
|
|
122
|
-
: [ANGLE_IOS_HEADERS]),
|
|
123
|
-
];
|
|
130
|
+
const missing = missingFiles(dir);
|
|
124
131
|
if (missing.length > 0) {
|
|
125
132
|
throw new Error(`${source} is missing ${missing.join(', ')}.`);
|
|
126
133
|
}
|
|
134
|
+
if (missingSdWebImageFiles(dir).length > 0) {
|
|
135
|
+
throw new Error(`${source} has an SDWebImage.xcframework without its publisher's signature and privacy manifest, which App Store Connect rejects (ITMS-91061, ITMS-91065). Rebuild it with packages/native/scripts/build-lynx-ios-frameworks.sh, which ships SDWebImage's signed release.`);
|
|
136
|
+
}
|
|
127
137
|
};
|
|
138
|
+
/**
|
|
139
|
+
* What a frameworks folder lacks of what the shell links and compiles against.
|
|
140
|
+
*/
|
|
141
|
+
const missingFiles = (dir) => [
|
|
142
|
+
...IOS_FRAMEWORKS.filter((name) => !existsSync(path.join(dir, `${name}.xcframework`, 'Info.plist'))).map((name) => `${name}.xcframework`),
|
|
143
|
+
// A folder from before ANGLE (build 2) has every Lynx framework but
|
|
144
|
+
// these, and the shell wouldn't compile against it.
|
|
145
|
+
...(existsSync(path.join(dir, ANGLE_IOS_HEADERS, 'EGL/egl.h'))
|
|
146
|
+
? []
|
|
147
|
+
: [ANGLE_IOS_HEADERS]),
|
|
148
|
+
];
|
|
149
|
+
/**
|
|
150
|
+
* What a frameworks folder lacks of SDWebImage's signature and privacy
|
|
151
|
+
* manifest. A folder from before build 4 has the SDWebImage compiled from its
|
|
152
|
+
* pod, without either. The app builds and runs with it, and App Store Connect
|
|
153
|
+
* then rejects it (ITMS-91061, ITMS-91065), so nothing should link it.
|
|
154
|
+
*/
|
|
155
|
+
const missingSdWebImageFiles = (dir) => [
|
|
156
|
+
'SDWebImage.xcframework/_CodeSignature',
|
|
157
|
+
'SDWebImage.xcframework/ios-arm64/SDWebImage.framework/PrivacyInfo.xcprivacy',
|
|
158
|
+
].filter((file) => !existsSync(path.join(dir, file)));
|
|
128
159
|
/** The Lynx version a frameworks folder was built from, if it says. */
|
|
129
160
|
export const readFrameworksVersion = (dir) => {
|
|
130
161
|
const versions = path.join(dir, 'VERSIONS');
|
package/dist/ios/project.d.ts
CHANGED
|
@@ -4,22 +4,149 @@ import { type ResolvedApp } from '../options.ts';
|
|
|
4
4
|
* Writes the app options into the iOS template: build settings go in
|
|
5
5
|
* Config/App.xcconfig (which App.xcodeproj reads), Info.plist entries go
|
|
6
6
|
* between the template's `angular-lynx:info` markers, the shortcuts
|
|
7
|
-
* become App/AppShortcuts.swift, the
|
|
8
|
-
* Config/App.entitlements, and the icon and the splash go in the asset
|
|
9
|
-
* catalog.
|
|
7
|
+
* become App/AppShortcuts.swift, the options that need a capability
|
|
8
|
+
* (IOS_ENTITLEMENTS) become Config/App.entitlements, and the icon and the splash go in the asset
|
|
9
|
+
* catalog. The barcode scanner's module stays only in an app with the
|
|
10
|
+
* `camera` permission, the Bluetooth module only in an app with the
|
|
11
|
+
* `bluetooth` permission, the store review module only in an app with
|
|
12
|
+
* `storeReview`, the calendar module only in one with `calendar`, the
|
|
13
|
+
* Sign in with Apple module only in one with `signInWithApple`, the
|
|
14
|
+
* tracking module only in one with `permissions.tracking`, the NFC module
|
|
15
|
+
* only in one with `permissions.nfc`, the audio recorder's module only in one
|
|
16
|
+
* with `permissions.microphone`, the geolocation module only in one with
|
|
17
|
+
* `permissions.location`, the motion module only in one with `motion`,
|
|
18
|
+
* the Share Extension, its target and
|
|
19
|
+
* its module only in one with `shareTarget`, and the Wi-Fi module only in
|
|
20
|
+
* one with `wifi`, with only the parts it turns on.
|
|
10
21
|
*/
|
|
22
|
+
/** LynxBarcodeScanner's module, which needs the `camera` permission. */
|
|
23
|
+
export declare const IOS_BARCODE_SCANNER_SOURCE = "App/BarcodeScannerModule.swift";
|
|
11
24
|
export declare const iosGenerator: PlatformGenerator;
|
|
25
|
+
/** The module behind `LynxStoreReview`, which only `storeReview` keeps. */
|
|
26
|
+
export declare const IOS_STORE_REVIEW_SOURCE = "App/StoreReviewModule.swift";
|
|
27
|
+
/** The module behind `LynxCalendar`, which only `calendar` keeps. */
|
|
28
|
+
export declare const IOS_CALENDAR_SOURCE = "App/CalendarModule.swift";
|
|
29
|
+
/**
|
|
30
|
+
* The module behind `LynxAppleSignIn` and the `<apple-sign-in-button>`
|
|
31
|
+
* element, which only `signInWithApple` keeps.
|
|
32
|
+
*/
|
|
33
|
+
export declare const IOS_APPLE_SIGN_IN_SOURCES: readonly ["App/AppleSignInModule.swift", "App/AppleSignInButton.swift"];
|
|
34
|
+
/**
|
|
35
|
+
* The module behind `LynxAudioRecorder`, which only `permissions.microphone`
|
|
36
|
+
* keeps.
|
|
37
|
+
*/
|
|
38
|
+
export declare const IOS_AUDIO_RECORDER_SOURCE = "App/AudioRecorderModule.swift";
|
|
39
|
+
/** The module behind `LynxNfc`, which only `permissions.nfc` keeps. */
|
|
40
|
+
export declare const IOS_NFC_SOURCE = "App/NfcModule.swift";
|
|
41
|
+
/**
|
|
42
|
+
* LynxImagePicker's module, whose camera (`// angular-lynx:image-picker-camera`)
|
|
43
|
+
* only an app with `permissions.camera` keeps.
|
|
44
|
+
*/
|
|
45
|
+
export declare const IOS_IMAGE_PICKER_SOURCE = "App/ImagePickerModule.swift";
|
|
46
|
+
/** The module behind `LynxWifi`, which only `wifi` keeps. */
|
|
47
|
+
export declare const IOS_WIFI_SOURCE = "App/WifiModule.swift";
|
|
48
|
+
/** The module behind `LynxMotion`, which only `motion` keeps. */
|
|
49
|
+
export declare const IOS_MOTION_SOURCE = "App/MotionModule.swift";
|
|
50
|
+
/**
|
|
51
|
+
* The module behind `LynxGeolocation`, which only `permissions.location`
|
|
52
|
+
* keeps.
|
|
53
|
+
*/
|
|
54
|
+
export declare const IOS_GEOLOCATION_SOURCE = "App/GeolocationModule.swift";
|
|
55
|
+
/**
|
|
56
|
+
* The module behind `LynxTracking`, which only an app with
|
|
57
|
+
* `permissions.tracking` keeps.
|
|
58
|
+
*/
|
|
59
|
+
export declare const IOS_TRACKING_SOURCE = "App/TrackingModule.swift";
|
|
60
|
+
/**
|
|
61
|
+
* The shell's biometrics module, `AngularLynxBiometrics` (LynxBiometrics, and
|
|
62
|
+
* the values LynxSecureStorage keeps behind Face ID or Touch ID), which only
|
|
63
|
+
* an app with `permissions.biometrics` keeps.
|
|
64
|
+
*/
|
|
65
|
+
export declare const IOS_BIOMETRICS_SOURCES: readonly ["App/BiometricsModule.swift"];
|
|
66
|
+
/**
|
|
67
|
+
* The shell's file picker module, `AngularLynxFilePicker` (LynxFilePicker),
|
|
68
|
+
* which only an app with `filePicker` keeps.
|
|
69
|
+
*/
|
|
70
|
+
export declare const IOS_FILE_PICKER_SOURCES: readonly ["App/FilePickerModule.swift"];
|
|
71
|
+
/** Where the plugins' Swift goes, a folder per plugin. */
|
|
72
|
+
export declare const IOS_PLUGIN_SOURCES = "App/Plugins";
|
|
73
|
+
/**
|
|
74
|
+
* The shell's photo library module, `AngularLynxPhotoLibrary`
|
|
75
|
+
* (LynxPhotoLibrary), which only an app with `permissions.savePhotos` keeps.
|
|
76
|
+
*/
|
|
77
|
+
export declare const IOS_PHOTO_LIBRARY_SOURCES: readonly ["App/PhotoLibraryModule.swift"];
|
|
78
|
+
/**
|
|
79
|
+
* The shell's `<canvas>`, its `AngularLynxWebGL` module and its contexts, and
|
|
80
|
+
* `<video>`'s readable frames: about 176 kB of the executable. Swift reaches
|
|
81
|
+
* them only by name (NSClassFromString in LynxViewController and
|
|
82
|
+
* XElementRegistry), so without them the shell registers no canvas, keeps
|
|
83
|
+
* XElement's own `<video>`, and still builds: App/ is a synchronized folder,
|
|
84
|
+
* which compiles what's in it.
|
|
85
|
+
*/
|
|
86
|
+
export declare const IOS_CANVAS_SOURCES: readonly ["App/AngularLynxBitmapRendererContext.m", "App/AngularLynxCanvas2DContext.m", "App/AngularLynxCanvas2DOps.h", "App/AngularLynxVideo.h", "App/AngularLynxVideo.m", "App/AngularLynxWebGL.h", "App/AngularLynxWebGL.m", "App/AngularLynxWebGLContext.m", "App/AngularLynxWebGLOps.h"];
|
|
87
|
+
/**
|
|
88
|
+
* The WebGL2 context, which an app that draws only in 2D leaves out with
|
|
89
|
+
* ANGLE (issue #847).
|
|
90
|
+
*/
|
|
91
|
+
export declare const IOS_WEBGL_SOURCES: readonly ["App/AngularLynxWebGLContext.m", "App/AngularLynxWebGLOps.h"];
|
|
92
|
+
/**
|
|
93
|
+
* The project without the XCFrameworks named, which it then neither links
|
|
94
|
+
* nor embeds: ANGLE's, about 6 MB of an app, are only for WebGL. Each
|
|
95
|
+
* reference to a framework is one line of the project (its file, its build
|
|
96
|
+
* files, and their places in the group, the link phase and the embed phase).
|
|
97
|
+
*/
|
|
98
|
+
export declare const withoutFrameworks: (project: string, frameworks: readonly string[]) => string;
|
|
99
|
+
/**
|
|
100
|
+
* An entitlement's value, in the shapes Apple's entitlements take: a flag
|
|
101
|
+
* (`com.apple.developer.siri`), a string (`aps-environment`), or a list
|
|
102
|
+
* of strings (`com.apple.developer.associated-domains`).
|
|
103
|
+
*/
|
|
104
|
+
export type EntitlementValue = boolean | string | readonly string[];
|
|
105
|
+
/** The entitlements one option adds, by key. */
|
|
106
|
+
export type Entitlements = Readonly<Record<string, EntitlementValue>>;
|
|
107
|
+
/**
|
|
108
|
+
* Each option that needs an iOS capability, and the entitlements it adds to
|
|
109
|
+
* Config/App.entitlements. A feature that needs one (Wi-Fi, in-app
|
|
110
|
+
* purchases, push...) adds its entry here, rather than writing the file: the generator
|
|
111
|
+
* writes the file, and points the target at it, only when an entry adds
|
|
112
|
+
* something, and {@link mergeEntitlements} joins two options' lists under
|
|
113
|
+
* the same key, as Associated Domains holds both `applinks:` and
|
|
114
|
+
* `webcredentials:` domains.
|
|
115
|
+
*/
|
|
116
|
+
export declare const IOS_ENTITLEMENTS: readonly {
|
|
117
|
+
/** The angular.json option, named in the file's header and in errors. */
|
|
118
|
+
readonly option: string;
|
|
119
|
+
/**
|
|
120
|
+
* The capability's name as Xcode's signing errors give it, such as
|
|
121
|
+
* "Personal development teams ... do not support the Associated Domains
|
|
122
|
+
* capability", so the build can say which option to change.
|
|
123
|
+
*/
|
|
124
|
+
readonly capability: string;
|
|
125
|
+
readonly entitlements: (app: ResolvedApp) => Entitlements;
|
|
126
|
+
}[];
|
|
127
|
+
/**
|
|
128
|
+
* Joins the entitlements several options add into one dictionary, its keys
|
|
129
|
+
* sorted, as Xcode writes them. Two lists under one key become one, each
|
|
130
|
+
* value once, in the order the options name them. Two different flags or
|
|
131
|
+
* strings under one key can't both be signed, so they throw, naming the
|
|
132
|
+
* options.
|
|
133
|
+
*/
|
|
134
|
+
export declare const mergeEntitlements: (contributions: readonly {
|
|
135
|
+
readonly option: string;
|
|
136
|
+
readonly entitlements: Entitlements;
|
|
137
|
+
}[]) => Entitlements;
|
|
138
|
+
/** The app's entitlements, from every option that adds some. */
|
|
139
|
+
export declare const iosEntitlements: (app: ResolvedApp) => Entitlements;
|
|
12
140
|
export declare const xcconfig: (app: ResolvedApp) => string;
|
|
13
141
|
/**
|
|
14
|
-
* Config/App.entitlements: the
|
|
15
|
-
*
|
|
16
|
-
* once the domain's apple-app-site-association names the app (see
|
|
17
|
-
* appLinkFiles). iOS fetches that file through Apple's CDN when the app is
|
|
18
|
-
* installed.
|
|
142
|
+
* Config/App.entitlements: the capabilities the app's options ask for
|
|
143
|
+
* ({@link IOS_ENTITLEMENTS}), merged.
|
|
19
144
|
*
|
|
20
|
-
* Signing
|
|
21
|
-
* Personal Team can't sign Associated Domains
|
|
22
|
-
*
|
|
145
|
+
* Signing most of them needs a team in the paid Apple Developer Program: a
|
|
146
|
+
* free Personal Team can't sign Associated Domains, Sign in with Apple, NFC
|
|
147
|
+
* Tag Reading or App Groups (explainSigningFailure in build.ts names the
|
|
148
|
+
* option). The simulator app
|
|
149
|
+
* needs no team.
|
|
23
150
|
*/
|
|
24
151
|
export declare const entitlementsPlist: (app: ResolvedApp) => string;
|
|
25
152
|
/** What iOS shows the first time someone taps Save Image, without `savePhotos`. */
|
|
@@ -47,4 +174,58 @@ export declare const infoPlistEntries: (app: ResolvedApp, { development }?: {
|
|
|
47
174
|
* stores a saved shortcut under, so it comes from the ID alone.
|
|
48
175
|
*/
|
|
49
176
|
export declare const appShortcutsSwift: (app: ResolvedApp) => string;
|
|
177
|
+
/** LynxShareTarget's module in the app, which only `shareTarget` keeps. */
|
|
178
|
+
export declare const IOS_SHARE_TARGET_SOURCE = "App/ShareTargetModule.swift";
|
|
179
|
+
/**
|
|
180
|
+
* The Share Extension's folder: the extension's code and its Info.plist,
|
|
181
|
+
* which only `shareTarget` keeps, with the target the generator adds to the
|
|
182
|
+
* project for it ({@link withShareExtension}).
|
|
183
|
+
*/
|
|
184
|
+
export declare const IOS_SHARE_EXTENSION_DIR = "ShareExtension";
|
|
185
|
+
/**
|
|
186
|
+
* The App Group the app and its Share Extension share, where the extension
|
|
187
|
+
* leaves each share for the app: `group.` and the app's bundle ID, as Xcode
|
|
188
|
+
* names a new group.
|
|
189
|
+
*/
|
|
190
|
+
export declare const shareGroup: (app: ResolvedApp) => string;
|
|
191
|
+
/**
|
|
192
|
+
* The URL scheme the Share Extension opens the app with once it has left a
|
|
193
|
+
* share: one of the app's own, from its bundle ID, so no other app answers
|
|
194
|
+
* to it. SceneDelegate takes it for the share, never for a deep link.
|
|
195
|
+
*/
|
|
196
|
+
export declare const shareScheme: (app: ResolvedApp) => string;
|
|
197
|
+
/**
|
|
198
|
+
* The activation rule's keys for `mimeTypes`: which kinds of things in a
|
|
199
|
+
* share sheet show the app. Apple's rule can't name a MIME type, only kinds,
|
|
200
|
+
* so a type that isn't text, a link, an image or a video allows files, and
|
|
201
|
+
* the extension then checks each file's own type against the list.
|
|
202
|
+
*/
|
|
203
|
+
export declare const shareActivationRule: (mimeTypes: readonly string[]) => Record<string, boolean | number>;
|
|
204
|
+
/**
|
|
205
|
+
* The Share Extension's Info.plist entries, between its template's
|
|
206
|
+
* `angular-lynx:share-extension` markers: the extension point, the
|
|
207
|
+
* activation rule for `mimeTypes`, and what the extension reads (the types,
|
|
208
|
+
* the App Group and the app's share scheme).
|
|
209
|
+
*/
|
|
210
|
+
export declare const shareExtensionPlistEntries: (app: ResolvedApp) => string;
|
|
211
|
+
/**
|
|
212
|
+
* Config/ShareExtension.entitlements: the App Group alone, which is all the
|
|
213
|
+
* extension needs to leave a share where the app reads it.
|
|
214
|
+
*/
|
|
215
|
+
export declare const shareExtensionEntitlementsPlist: (app: ResolvedApp) => string;
|
|
216
|
+
/**
|
|
217
|
+
* The project with the Share Extension's target added: built from the
|
|
218
|
+
* synchronized ShareExtension/ folder, embedded in the app (Embed Foundation
|
|
219
|
+
* Extensions), and built before it. The target reads App.xcconfig, as the
|
|
220
|
+
* app's does, for the version, the team and the display name, and has
|
|
221
|
+
* settings of its own for its bundle ID (the app's, then `.ShareExtension`,
|
|
222
|
+
* as Apple requires), its Info.plist and its entitlements. It links none of
|
|
223
|
+
* Lynx's frameworks: it can't run Lynx.
|
|
224
|
+
*
|
|
225
|
+
* Xcode's project format has no includes, so the target's objects are
|
|
226
|
+
* written into the sections they belong to, and each list that names them
|
|
227
|
+
* (the project's targets, the app's build phases and dependencies, the
|
|
228
|
+
* groups) gets a line after a line of the template's it must find once.
|
|
229
|
+
*/
|
|
230
|
+
export declare const withShareExtension: (project: string, app: ResolvedApp) => string;
|
|
50
231
|
//# sourceMappingURL=project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/ios/project.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/ios/project.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,OAAO,EAGL,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAC;AA0BvB;;;;;;;;;;;;;;;;;;GAkBG;AACH,wEAAwE;AACxE,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAE3E,eAAO,MAAM,YAAY,EAAE,iBAuO1B,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE,qEAAqE;AACrE,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,yEAG5B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,yBAAyB,kCAAkC,CAAC;AAEzE,uEAAuE;AACvE,eAAO,MAAM,cAAc,wBAAwB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE,6DAA6D;AAC7D,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD,iEAAiE;AACjE,eAAO,MAAM,iBAAiB,2BAA2B,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,gCAAgC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,yCAA0C,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,uBAAuB,yCAA0C,CAAC;AAE/E,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,gBA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