@blotch/angular-lynx-native 22.3.2 → 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.
Files changed (53) hide show
  1. package/README.md +8 -2
  2. package/dist/android/project.d.ts +27 -3
  3. package/dist/android/project.d.ts.map +1 -1
  4. package/dist/android/project.js +80 -9
  5. package/dist/eject.d.ts.map +1 -1
  6. package/dist/eject.js +1 -0
  7. package/dist/files.d.ts +24 -0
  8. package/dist/files.d.ts.map +1 -0
  9. package/dist/files.js +41 -0
  10. package/dist/generate.d.ts +17 -2
  11. package/dist/generate.d.ts.map +1 -1
  12. package/dist/generate.js +68 -17
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +8 -1
  15. package/dist/ios/project.d.ts +21 -2
  16. package/dist/ios/project.d.ts.map +1 -1
  17. package/dist/ios/project.js +58 -2
  18. package/dist/options.d.ts +68 -0
  19. package/dist/options.d.ts.map +1 -1
  20. package/dist/options.js +27 -0
  21. package/dist/permissions.d.ts.map +1 -1
  22. package/dist/permissions.js +18 -3
  23. package/dist/plugins.d.ts +245 -0
  24. package/dist/plugins.d.ts.map +1 -0
  25. package/dist/plugins.js +1244 -0
  26. package/package.json +1 -1
  27. package/templates/android/README.md +12 -4
  28. package/templates/android/app/build.gradle.kts +27 -9
  29. package/templates/android/app/src/main/AndroidManifest.xml +5 -0
  30. package/templates/android/app/src/main/java/dev/angularlynx/shell/AngularLynxPlugins.kt +13 -0
  31. package/templates/android/app/src/main/java/dev/angularlynx/shell/AudioRecorderModule.kt +520 -0
  32. package/templates/android/app/src/main/java/dev/angularlynx/shell/EdgeToEdgeOverlay.kt +24 -0
  33. package/templates/android/app/src/main/java/dev/angularlynx/shell/EngineThreadHint.kt +156 -0
  34. package/templates/android/app/src/main/java/dev/angularlynx/shell/GeolocationModule.kt +557 -0
  35. package/templates/android/app/src/main/java/dev/angularlynx/shell/HostElementUI.kt +331 -0
  36. package/templates/android/app/src/main/java/dev/angularlynx/shell/ImagePickerModule.kt +143 -0
  37. package/templates/android/app/src/main/java/dev/angularlynx/shell/ImagePipeline.kt +83 -0
  38. package/templates/android/app/src/main/java/dev/angularlynx/shell/MainActivity.kt +153 -9
  39. package/templates/android/app/src/main/java/dev/angularlynx/shell/NetworkStatus.kt +121 -0
  40. package/templates/android/app/src/main/java/dev/angularlynx/shell/PermissionRequests.kt +10 -0
  41. package/templates/android/app/src/main/java/dev/angularlynx/shell/PhotoLibraryModule.kt +203 -16
  42. package/templates/android/app/src/main/java/dev/angularlynx/shell/ShellApplication.kt +1 -8
  43. package/templates/android/app/src/main/java/dev/angularlynx/shell/ShellModule.kt +11 -1
  44. package/templates/android/app/src/main/res/xml/share_paths.xml +7 -2
  45. package/templates/ios/App/AngularLynxPlugins.swift +22 -0
  46. package/templates/ios/App/AnimationFrameRate.swift +66 -0
  47. package/templates/ios/App/AppDelegate.swift +3 -1
  48. package/templates/ios/App/AudioRecorderModule.swift +433 -0
  49. package/templates/ios/App/GeolocationModule.swift +455 -0
  50. package/templates/ios/App/HostElementUI.swift +270 -0
  51. package/templates/ios/App/ImagePickerModule.swift +160 -1
  52. package/templates/ios/App/LynxViewController.swift +66 -5
  53. package/templates/ios/App/NetworkStatus.swift +41 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotch/angular-lynx-native",
3
- "version": "22.3.2",
3
+ "version": "22.3.3",
4
4
  "description": "Builds AngularLynx apps into iOS and Android binaries",
5
5
  "homepage": "https://github.com/Blotch-Smart-Frames/AngularLynx#readme",
6
6
  "bugs": {
@@ -10,7 +10,7 @@ The app is one activity holding one full-screen `LynxView` that runs `main.lynx.
10
10
  | --------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
11
  | The bundle | `app/src/main/assets/` | The whole `dist/` folder (`main.lynx.bundle`, `static/…`), copied after emptying the folder. Bundled files are read from here. |
12
12
  | App identity | `angular-lynx.properties` | Keys: `applicationId`, `versionName`, `versionCode`, `appName`, `screenOrientation` (`portrait`, `sensorLandscape` or `unspecified`). Read by `app/build.gradle.kts`. The committed file holds defaults. |
13
- | Permissions | `AndroidManifest.xml`, at `<!-- angular-lynx:permissions -->` | `<uses-permission>` lines. `INTERNET` is always declared. |
13
+ | Permissions | `AndroidManifest.xml`, at `<!-- angular-lynx:permissions -->` | `<uses-permission>` lines. `INTERNET` and `ACCESS_NETWORK_STATE` are always declared. |
14
14
  | Deep links | `AndroidManifest.xml`, at `<!-- angular-lynx:deep-links -->` | `<intent-filter>`s inside the main activity. |
15
15
  | Shortcuts | `res/xml/shortcuts.xml`, `res/values/shortcuts.xml` | One `<shortcut>` per entry of angular.json's `shortcuts`, and a string for its title. The committed `shortcuts.xml` is an empty list. |
16
16
  | Splash screen | `res/values*/colors.xml`, `res/drawable-*/splash_icon.png` | angular.json's `splash`: its colors as `window_background` (`values/`, `values-night/`), and its image drawn on a transparent 288 dp canvas at each density, in place of `res/values/splash.xml`'s alias to the launcher icon. |
@@ -27,13 +27,15 @@ Build commands and outputs (no flavors, so the names are fixed):
27
27
 
28
28
  The release build runs R8 and the resource shrinker (`isMinifyEnabled`, `isShrinkResources`), and writes the mapping that turns the renamed classes back to `app/build/outputs/mapping/release/mapping.txt`, which also goes in the `.aab` for Google Play. Lynx's AAR ships keep rules for its own classes; `app/proguard-rules.pro` adds the ones they miss, each with what broke without it (the app aborting on launch, for one). Any class Lynx or the shell reaches only by name needs a rule there. How they were found, and the sizes, are in `investigations/native-app-builds.md` ("R8 in the Android release build").
29
29
 
30
- A release build signed with the upload key holds only `arm64-v8a` and `armeabi-v7a` (`ndk.abiFilters`). Google Play rejects an app whose 64-bit native libraries aren't aligned for 16 KB memory pages, and Fresco's `x86_64` libraries, at the version Lynx's image service is written against, are aligned for 4 KB only; its `arm64-v8a` ones, and all of Lynx's, are fine. So Play doesn't offer the app to x86 devices (emulators and a few Chromebooks). A release build signed with the debug key keeps all four ABIs, so its APK still installs on an `x86_64` emulator. Drop the filter once the image service moves to a Fresco whose `x86_64` libraries are 16 KB aligned.
30
+ A release build signed with the upload key holds only `arm64-v8a` and `armeabi-v7a` (`ndk.abiFilters`). Google Play rejects an app whose 64-bit native libraries' LOAD segments aren't aligned for 16 KB memory pages, and Fresco's `x86_64` libraries, at the version Lynx's image service is written against, are aligned for 4 KB only; its `arm64-v8a` ones, and all of Lynx's, pass. So Play doesn't offer the app to x86 devices (emulators and a few Chromebooks). A release build signed with the debug key keeps all four ABIs, so its APK still installs on an `x86_64` emulator. Drop the filter once the image service moves to a Fresco whose `x86_64` libraries are 16 KB aligned.
31
+
32
+ Passing Play's check isn't the same as loading with 16 KB pages. Fresco 2.3's `arm64-v8a` libraries have a 64 KB `p_align`, but `libimagepipeline.so`, `libgifimage.so`, `libnative-filters.so` and `libstatic-webp.so` each put their RELRO and their writable data in one segment, with the RELRO ending on a 4 or 8 KB boundary. Android 17's linker refuses them on a phone with 16 KB pages (`program alignment (8192) cannot be smaller than system page size (16384)`), and with Fresco's defaults the `UnsatisfiedLinkError` ends the app at its first `<image>`. Fresco 3.4 and later are 16 KB safe, but Fresco 3 isn't binary compatible with Lynx's image service: `CloseableImage` and `CloseableBitmap` became interfaces, so the service fails verification at its first bitmap. So `ImagePipeline.kt` configures Fresco 2.3 for a phone with pages larger than 4 KB: encoded images in Java memory rather than `libimagepipeline.so`'s, no native transcoder, and GIF and animated WebP decoded as their first frame by Android's `BitmapFactory`, which also means no `bindstartplay` or loop events there. Lynx's `blur-radius` copies the bitmap with `libimagepipeline.so` itself, so an image with it still ends the app on those phones. Phones with 4 KB pages get Fresco's defaults.
31
33
 
32
34
  ## How the shell loads the app
33
35
 
34
36
  - **Bundles** come from `assets/` (`ResourceFetchers.kt`, `BundleAssets.kt`). A URL without a scheme (`/static/…`, `static/…`), `asset:///…` and `file:///android_asset/…` all mean "the file at that path in `assets/`", so the bundle works with Rspeedy's default asset prefix (`/`) and doesn't need a platform-specific one. Absolute `http(s)` URLs are fetched with OkHttp.
35
37
  - **`fetch()` and `XMLHttpRequest`** go through Lynx's HTTP service (`LynxHttpService`, registered in `ShellApplication.kt`), which uses OkHttp. Plain HTTP is allowed to `localhost` and `127.0.0.1` only (`res/xml/network_security_config.xml`), for a server on the device or one on your machine through `adb reverse`; every other host needs HTTPS, Android's default.
36
- - **Images** are loaded by Fresco. The media fetcher rewrites bundled image URLs to `asset:///…`, which Fresco reads from the APK.
38
+ - **Images** are loaded by Fresco, configured in `ImagePipeline.kt` (see above for phones with 16 KB pages). The media fetcher rewrites bundled image URLs to `asset:///…`, which Fresco reads from the APK.
37
39
  - **Lazy routes** need nothing extra: the build plugin keeps each lazy chunk inside `main.lynx.bundle` (see `split-chunks.ts` in the build plugin). Bundles requested by URL at runtime still go through the template resource fetcher.
38
40
 
39
41
  ## Back button
@@ -44,6 +46,8 @@ Back is off by default, so it leaves the app like any root screen. The runtime t
44
46
 
45
47
  `MainActivity` starts with the theme `Theme.AngularLynxShell.Starting` (`res/values/themes.xml`), a child of AndroidX `core-splashscreen`'s `Theme.SplashScreen`, which draws Android 12's splash screen on every version from 7: `window_background` with `splash_icon` in the middle, the launcher icon unless angular.json's `splash` has an image. `installSplashScreen()`, before `super.onCreate`, switches it to the app's theme. Android would take the splash down at the first frame, the empty LynxView, so `setKeepOnScreenCondition` holds it until the runtime calls `NativeModules.AngularLynxShell.hideSplashScreen()` (`LynxSplashScreen` in `packages/runtime`, once the app's first screen is drawn), a development build's message shows, or five seconds pass. The exit animation fades it out over 250 ms, as the iOS shell does.
46
48
 
49
+ `ShellModule.hideSplashScreen` posts to the UI thread as an asynchronous message (`HandlerCompat.createAsync`). While the splash is up, its check cancels each frame and schedules the next, which puts a sync barrier in the UI thread's queue, and an ordinary message waited behind it for one more canceled frame.
50
+
47
51
  Android shows a splash icon without an icon background in a 288 dp square, cut to the circle 192 dp across in its middle. The generator draws the image at `splash.imageWidth` dp on a 288 dp canvas, smaller if its corners would reach past the circle (the build warns then), so a logo is never cropped.
48
52
 
49
53
  ## Memory
@@ -119,13 +123,17 @@ The module reads the picked photo on a background thread and calls back once wit
119
123
 
120
124
  `NativeModules.AngularLynxCalendar.addEvent(event, callback)` (`CalendarModule.kt`, behind the runtime's `LynxCalendar`) starts `ACTION_INSERT` on `CalendarContract.Events` with the event's title, times (an all-day event's as the UTC midnights of its first day and of the day after its last, as the calendar provider stores them), all-day flag, location and notes as extras, so the calendar app opens its own editor and saves the event: the app needs no calendar permission. `MainActivity` registers a `StartActivityForResult` launcher as it's created and passes the module a `CalendarModule.Host` that launches it. The module calls back `{ result: "saved" }` when the calendar app answers `RESULT_OK`, `{ result: "unknown" }` for anything else (Google Calendar answers `RESULT_CANCELED` whether or not the event was saved), and `{ error: "unavailable" }` when no app takes the intent. Only an app whose angular.json sets `calendar` has the module: otherwise the generator deletes it and the lines between the `// angular-lynx:calendar` markers in `MainActivity.kt`.
121
125
 
126
+ `NativeModules.AngularLynxAudioRecorder` (`AudioRecorderModule.kt`, behind the runtime's `LynxAudioRecorder`) records AAC into an `.m4a` in the cache folder with `MediaRecorder`, on a thread of its own. It asks for `RECORD_AUDIO` through MainActivity's `PermissionHost`, sends the `angularLynxAudioRecorder` event's `level` from `getMaxAmplitude()` ten times a second, and pauses the recording when an activity stops (not when it pauses, which Android's own permission prompt does), since an app in the background records only silence. Only an app with angular.json's `permissions.microphone` has the module, the `RECORD_AUDIO` permission and the lines between `MainActivity.kt`'s `// angular-lynx:audio-recorder` markers; the generator deletes them from the others.
127
+
122
128
  `NativeModules.AngularLynxNfc` (`NfcModule.kt`, behind the runtime's `LynxNfc`) runs `NfcAdapter.enableReaderMode` over `MainActivity`, which Android pauses with the activity and starts again when it's back: `start` turns it on (or answers `unsupported` without an adapter, `disabled` when NFC is off), `next` calls back with the next tag it read (through `Ndef`, or an empty, writable tag for one `NdefFormatable` reports) or wrote to, and `stop` turns it off. Records cross with their bytes in base64, and the runtime builds and reads them. Only an app with angular.json's `permissions.nfc` has the module, the `NFC` permission and the not-required `android.hardware.nfc` feature, and the lines between `MainActivity.kt`'s `// angular-lynx:nfc` markers; the generator deletes them from the others.
123
129
 
124
130
  `NativeModules.AngularLynxWifi.currentNetwork(callback)`, `.join(options, callback)` and `.leave(ssid, callback)` (`WifiModule.kt`, behind the runtime's `LynxWifi`) read and join Wi-Fi networks. `currentNetwork` reads `WifiManager.getConnectionInfo()`, deprecated from Android 12 but still answering an app with `ACCESS_FINE_LOCATION` while Location is on, and calls back `{ ssid, bssid }`, `{ none: true }` off Wi-Fi, or `{ error: "denied" }` once the person refuses it: without the permission, it first asks for `ACCESS_FINE_LOCATION` and `ACCESS_COARSE_LOCATION` through the `PermissionHost` (#990). `join` with `joinOnce` asks `ConnectivityManager.requestNetwork` for a `WifiNetworkSpecifier` network without `NET_CAPABILITY_INTERNET`, which Android shows its picker dialog for, and calls `bindProcessToNetwork` once it's up, so the app's traffic reaches the device; without `joinOnce` it adds a `WifiNetworkSuggestion`. Both need Android 10 and answer `unavailable` before. `leave` unregisters the request's callback, unbinds the process and removes the suggestion. MainActivity registers the module with its `PermissionHost` as the param; only an app whose angular.json sets `wifi` has it.
125
131
 
132
+ `NativeModules.AngularLynxGeolocation` (`GeolocationModule.kt`, behind the runtime's `LynxGeolocation`) finds the phone with `LocationManager` through AndroidX's `LocationManagerCompat`, without Google Play services: `requestLocationUpdates` until the first fix no older than `maximumAge` for `getCurrentPosition` (the newest last known position that's young enough answers at once, and the runtime's timeout ends the wait). Not `getCurrentLocation`, which takes a fix from the last few seconds even with a `maximumAge` of 0, and `requestLocationUpdates` for each watch, with its distance filter, about once a second for a precise one and every 10 seconds for an approximate one. It uses the fused provider from Android 12, GPS (with the fine permission) or the network before it. It asks for `ACCESS_FINE_LOCATION` and `ACCESS_COARSE_LOCATION` together through `MainActivity`'s `PermissionHost`, so Android 12 and later let the person choose approximate, which it reports as `approximate`. Whether the person refused is kept in its shared preferences, since Android can't tell an app whether it ever asked. Location turning off for the whole phone (`MODE_CHANGED_ACTION`) sends a `state` event and ends every watch with `off`. Only an app whose angular.json has `permissions.location` has the module: otherwise the generator deletes it and the lines between the `// angular-lynx:geolocation` markers in `MainActivity.kt`, and the manifest declares no location permission (except `permissions.bluetooth`'s `ACCESS_FINE_LOCATION` up to Android 11, which Bluetooth scans need there). iOS's `GeolocationModule.swift` uses Core Location.
133
+
126
134
  ## Photo library
127
135
 
128
- `NativeModules.AngularLynxPhotoLibrary` (`PhotoLibraryModule.kt`, behind the runtime's `LynxPhotoLibrary`) has `save(request, callback)`, which decodes the request's file (base64) on a thread of its own and inserts it into MediaStore: `MediaStore.Images` under `Pictures/<app name>`, or `MediaStore.Video` under `Movies/<app name>`, marked `IS_PENDING` until every byte is written so the gallery never shows half a file, and deleted again if writing fails. It calls back with `{ id, permission }`, `id` the new entry's `content://` URI, or `{ error, message, permission }`. `permission(callback)` answers `granted`. From Android 10 an app may add its own media there without a permission, so the manifest declares none. Before Android 10 it would need `WRITE_EXTERNAL_STORAGE`, asked for while the app runs, which `MainActivity` has no way to ask for yet, so both methods answer `unavailable`/`unsupported` there. The module and its line in `MainActivity` (between `// angular-lynx:photo-library` markers) are only in an app with `permissions.savePhotos`.
136
+ `NativeModules.AngularLynxPhotoLibrary` (`PhotoLibraryModule.kt`, behind the runtime's `LynxPhotoLibrary`) has `save(request, callback)`, which decodes the request's file (base64) on a thread of its own and inserts it into MediaStore: `MediaStore.Images` under `Pictures/<app name>`, or `MediaStore.Video` under `Movies/<app name>`, marked `IS_PENDING` until every byte is written so the gallery never shows half a file, and deleted again if writing fails. It calls back with `{ id, permission }`, `id` the new entry's `content://` URI, or `{ error, message, permission }`. `permission(callback)` answers `granted`. From Android 10 an app may add its own media there without a permission. Android 7 to 9 need `WRITE_EXTERNAL_STORAGE`, and `READ_EXTERNAL_STORAGE` with it (Android 8 and 9 mount storage writable only for an app holding both), which the manifest declares up to API 28 only: `save` asks for them through `MainActivity`'s `PermissionHost` (the module's param) when the app doesn't hold it, then writes the file into the public `Pictures`/`Movies` folder (in `<app name>`, as `name (2).jpg` beside a file of the same name) and adds it to MediaStore by its path, since those versions have no `RELATIVE_PATH` or `IS_PENDING`. There `permission` answers `granted`, `undetermined` (never asked, or refused without "Don't ask again", from `PermissionHost.canAskAgain`) or `denied`. The module and its line in `MainActivity` (between `// angular-lynx:photo-library` markers) are only in an app with `permissions.savePhotos`.
129
137
 
130
138
  ## Canvas and WebGL
131
139
 
@@ -30,7 +30,10 @@ val hasReleaseSigning = releaseSigning.values.all { !it.isNullOrEmpty() }
30
30
  val lynxVersion = "4.1.0"
31
31
  val primjsVersion = "4.2.1"
32
32
  // Lynx's image service is written against Fresco 2.3, and Lynx Explorer ships
33
- // the same version, so stay on it until Lynx moves.
33
+ // the same version, so stay on it until Lynx moves. Fresco 3 isn't binary
34
+ // compatible with the service (CloseableImage and CloseableBitmap became
35
+ // interfaces), and Fresco's native libraries before 3.4 don't load with 16 KB
36
+ // memory pages: ImagePipeline.kt says what the shell does about that.
34
37
  val frescoVersion = "2.3.0"
35
38
 
36
39
  android {
@@ -101,14 +104,16 @@ android {
101
104
  signingConfigs.getByName("debug")
102
105
  }
103
106
  // A build signed with the upload key is for Google Play, which
104
- // rejects an app whose 64-bit native libraries can't load on a
105
- // device with 16 KB memory pages. Fresco's x86_64 libraries, at
106
- // the version Lynx's image service is written against, are
107
- // aligned for 4 KB pages only (its arm64 ones are fine), so the
108
- // Play build ships the ARM ABIs alone. That leaves out only x86
109
- // devices (emulators and a few Chromebooks); 32-bit x86 goes
110
- // too, as no phone needs it. Builds signed with the debug key
111
- // keep every ABI, so their APK still runs on an x86_64 emulator.
107
+ // rejects an app whose 64-bit native libraries' LOAD segments
108
+ // aren't aligned for 16 KB memory pages. Fresco's x86_64
109
+ // libraries, at the version Lynx's image service is written
110
+ // against, are aligned for 4 KB pages, so the Play build ships
111
+ // the ARM ABIs alone. Fresco's arm64 libraries pass Play's check
112
+ // but still don't load on a phone with 16 KB pages (see
113
+ // ImagePipeline.kt). The filter leaves out only x86 devices
114
+ // (emulators and a few Chromebooks); 32-bit x86 goes too, as no
115
+ // phone needs it. Builds signed with the debug key keep every
116
+ // ABI, so their APK still runs on an x86_64 emulator.
112
117
  if (hasReleaseSigning) {
113
118
  ndk {
114
119
  abiFilters += listOf("arm64-v8a", "armeabi-v7a")
@@ -122,6 +127,19 @@ android {
122
127
  targetCompatibility = JavaVersion.VERSION_17
123
128
  }
124
129
 
130
+ // The app's native plugins' resources (angular.json's nativePlugins),
131
+ // which the generator copies into src/main/plugin-res, a folder each.
132
+ // Each is a resource folder of the module beside src/main/res, so a
133
+ // plugin's values/colors.xml doesn't replace the shell's file of that
134
+ // name, and its resources are in the app's R (dev.angularlynx.shell.R).
135
+ // The generator has already refused a resource the shell or another
136
+ // plugin defines.
137
+ sourceSets.getByName("main").res.directories +=
138
+ file("src/main/plugin-res").listFiles { file -> file.isDirectory }
139
+ .orEmpty()
140
+ .map { "src/main/plugin-res/${it.name}" }
141
+ .sorted()
142
+
125
143
  buildFeatures {
126
144
  resValues = true
127
145
  }
@@ -4,6 +4,11 @@
4
4
 
5
5
  <!-- fetch() and XMLHttpRequest go through Lynx's HTTP service. -->
6
6
  <uses-permission android:name="android.permission.INTERNET" />
7
+ <!--
8
+ Whether the phone is online (LynxNetwork, NetworkStatus.kt). Granted at
9
+ install, without a prompt.
10
+ -->
11
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
7
12
 
8
13
  <!--
9
14
  A fixed screenOrientation makes Android imply that the device needs a
@@ -0,0 +1,13 @@
1
+ // Written by @blotch/angular-lynx-native from the plugins angular.json's
2
+ // `nativePlugins` lists: a generated project gets a new copy on every
3
+ // build, so change the plugins rather than this file. In an ejected
4
+ // project it is yours, and `nativePlugins` no longer applies.
5
+ package dev.angularlynx.shell
6
+
7
+ import androidx.activity.ComponentActivity
8
+ import com.lynx.tasm.LynxViewBuilder
9
+
10
+ /** The app's native plugins' modules and elements. */
11
+ internal object AngularLynxPlugins {
12
+ fun register(builder: LynxViewBuilder, activity: ComponentActivity) {}
13
+ }