@blotch/angular-lynx-native 22.2.27 → 22.3.1
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/dist/options.d.ts +3 -1
- package/dist/options.d.ts.map +1 -1
- package/package.json +1 -1
- package/templates/android/README.md +5 -3
- package/templates/android/app/build.gradle.kts +27 -4
- package/templates/android/app/src/main/AndroidManifest.xml +10 -0
- package/templates/android/gradle/wrapper/gradle-wrapper.properties +2 -2
package/dist/options.d.ts
CHANGED
|
@@ -205,7 +205,9 @@ export type IosOptions = {
|
|
|
205
205
|
export type AndroidOptions = {
|
|
206
206
|
/**
|
|
207
207
|
* The upload key for Google Play. The `*Env` fields name environment
|
|
208
|
-
* variables, so no secret is ever written to angular.json.
|
|
208
|
+
* variables, so no secret is ever written to angular.json. A release
|
|
209
|
+
* build signed with it holds only the ARM ABIs, which pass Play's 16 KB
|
|
210
|
+
* page-size check; the Android shell template's README says why.
|
|
209
211
|
*/
|
|
210
212
|
readonly signing?: {
|
|
211
213
|
readonly storeFileEnv?: string;
|
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;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,uEAAuE;I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,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,uEAAuE;IACvE,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAChD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,wDAAwD;IACxD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAmB/C;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,QAAuC,CAAC;AAG1E;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAMnD,CAAC;AAiCF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,gBAAgB,EAC5B,UAAU;IAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,KAC3E,WAoKF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,KAAG,MAA+B,CAAC;AA6KhF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,OAWxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -27,6 +27,8 @@ 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.
|
|
31
|
+
|
|
30
32
|
## How the shell loads the app
|
|
31
33
|
|
|
32
34
|
- **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.
|
|
@@ -114,8 +116,8 @@ Android's GLES has no 2D uploads from a `PIXEL_UNPACK_BUFFER` and no `glGetVerte
|
|
|
114
116
|
Pinned in `app/build.gradle.kts`, `build.gradle.kts` and `gradle/wrapper/gradle-wrapper.properties`:
|
|
115
117
|
|
|
116
118
|
- Lynx 4.1.0 and PrimJS 4.1.1 (Maven Central), Fresco 2.3.0 (the version Lynx's image service is built against), OkHttp 4.12.
|
|
117
|
-
- `androidx.browser` 1.
|
|
119
|
+
- `androidx.browser` 1.10.0, for the Custom Tabs `WebAuthModule` opens sign-in pages in and `LinkingModule` opens `openInApp()`'s pages in.
|
|
118
120
|
- `androidx.exifinterface` 1.4.2, for the orientation `ImagePickerModule` turns a re-encoded photo by.
|
|
119
|
-
- Lynx's XElement 4.1.0 (`<input>`, `<textarea>`, `<overlay>`, `<svg>`, `<blur-view>`, `<viewpager>`, `<refresh>`, the `<scroll-coordinator>` family, `<webview>`, `<video>`), without its AnimaX and Markdown modules, which the runtime doesn't support. `MainActivity` registers the elements with `XElementBehaviors`. XElement depends on appcompat and material 1.0.0, whose vectordrawable libraries share a namespace that AGP 9 rejects, so appcompat 1.
|
|
121
|
+
- Lynx's XElement 4.1.0 (`<input>`, `<textarea>`, `<overlay>`, `<svg>`, `<blur-view>`, `<viewpager>`, `<refresh>`, the `<scroll-coordinator>` family, `<webview>`, `<video>`), without its AnimaX and Markdown modules, which the runtime doesn't support. `MainActivity` registers the elements with `XElementBehaviors`. XElement depends on appcompat and material 1.0.0, whose vectordrawable libraries share a namespace that AGP 9 rejects, so appcompat 1.8.0 and material 1.14.0 are pinned.
|
|
120
122
|
- AGP 9.4.1 with its built-in Kotlin, Gradle 9.6.1 (AGP 9.4's minimum), JDK 17 or newer.
|
|
121
|
-
- `compileSdk`
|
|
123
|
+
- `compileSdk` 37 (androidx.core 1.19's minimum), `targetSdk` 36, `minSdk` 24. Google Play raises its target API requirement every August; bump `targetSdk` with it.
|
|
@@ -37,7 +37,10 @@ android {
|
|
|
37
37
|
// The namespace is the package of the shell's own Kotlin code and R class.
|
|
38
38
|
// It's fixed; only the applicationId (the store identity) is configurable.
|
|
39
39
|
namespace = "dev.angularlynx.shell"
|
|
40
|
-
|
|
40
|
+
// The API level the app compiles against, which androidx.core 1.19
|
|
41
|
+
// requires to be 37 or later. It only makes newer APIs available to the
|
|
42
|
+
// code; targetSdk below is what opts the app in to new runtime behavior.
|
|
43
|
+
compileSdk = 37
|
|
41
44
|
|
|
42
45
|
defaultConfig {
|
|
43
46
|
applicationId = appConfig("applicationId")
|
|
@@ -92,6 +95,20 @@ android {
|
|
|
92
95
|
} else {
|
|
93
96
|
signingConfigs.getByName("debug")
|
|
94
97
|
}
|
|
98
|
+
// A build signed with the upload key is for Google Play, which
|
|
99
|
+
// rejects an app whose 64-bit native libraries can't load on a
|
|
100
|
+
// device with 16 KB memory pages. Fresco's x86_64 libraries, at
|
|
101
|
+
// the version Lynx's image service is written against, are
|
|
102
|
+
// aligned for 4 KB pages only (its arm64 ones are fine), so the
|
|
103
|
+
// Play build ships the ARM ABIs alone. That leaves out only x86
|
|
104
|
+
// devices (emulators and a few Chromebooks); 32-bit x86 goes
|
|
105
|
+
// too, as no phone needs it. Builds signed with the debug key
|
|
106
|
+
// keep every ABI, so their APK still runs on an x86_64 emulator.
|
|
107
|
+
if (hasReleaseSigning) {
|
|
108
|
+
ndk {
|
|
109
|
+
abiFilters += listOf("arm64-v8a", "armeabi-v7a")
|
|
110
|
+
}
|
|
111
|
+
}
|
|
95
112
|
}
|
|
96
113
|
}
|
|
97
114
|
|
|
@@ -127,14 +144,14 @@ android {
|
|
|
127
144
|
|
|
128
145
|
dependencies {
|
|
129
146
|
implementation("androidx.activity:activity-ktx:1.13.0")
|
|
130
|
-
implementation("androidx.core:core-ktx:1.
|
|
147
|
+
implementation("androidx.core:core-ktx:1.19.1")
|
|
131
148
|
// The splash screen (MainActivity, themes.xml): Android 12's on every
|
|
132
149
|
// version the app runs on, and kept up until the app's first screen is
|
|
133
150
|
// ready.
|
|
134
151
|
implementation("androidx.core:core-splashscreen:1.2.0")
|
|
135
152
|
// Custom Tabs, which WebAuthModule opens sign-in pages in, and
|
|
136
153
|
// LinkingModule the pages of openInApp().
|
|
137
|
-
implementation("androidx.browser:browser:1.
|
|
154
|
+
implementation("androidx.browser:browser:1.10.0")
|
|
138
155
|
// EXIF orientation, which ImagePickerModule applies to a photo it
|
|
139
156
|
// re-encodes, since BitmapFactory ignores it. The AndroidX one reads it
|
|
140
157
|
// from every format the Photo Picker hands back, the same way on every
|
|
@@ -158,6 +175,12 @@ dependencies {
|
|
|
158
175
|
implementation("com.facebook.fresco:animated-webp:$frescoVersion")
|
|
159
176
|
implementation("com.facebook.fresco:webpsupport:$frescoVersion")
|
|
160
177
|
implementation("com.facebook.fresco:animated-base:$frescoVersion")
|
|
178
|
+
// Fresco 2.3 loads its native libraries with SoLoader 0.9, which can
|
|
179
|
+
// crash on devices that run 64-bit code only, and Google Play holds back
|
|
180
|
+
// an app that ships it. 0.10.5 fixes that and keeps the API Fresco 2.x
|
|
181
|
+
// calls (React Native ships the two together), so Gradle's conflict
|
|
182
|
+
// resolution moves Fresco onto it.
|
|
183
|
+
implementation("com.facebook.soloader:soloader:0.10.5")
|
|
161
184
|
implementation("com.squareup.okhttp3:okhttp:4.12.1")
|
|
162
185
|
|
|
163
186
|
// XElement: <input>, <textarea>, <overlay>, <svg>, <blur-view>,
|
|
@@ -179,5 +202,5 @@ dependencies {
|
|
|
179
202
|
// the namespace androidx.vectordrawable, and AGP 9's manifest merger
|
|
180
203
|
// fails the build on that; newer versions give them distinct namespaces.
|
|
181
204
|
implementation("androidx.appcompat:appcompat:1.8.0")
|
|
182
|
-
implementation("com.google.android.material:material:1.
|
|
205
|
+
implementation("com.google.android.material:material:1.14.0")
|
|
183
206
|
}
|
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- fetch() and XMLHttpRequest go through Lynx's HTTP service. -->
|
|
6
6
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
7
|
+
|
|
8
|
+
<!--
|
|
9
|
+
A fixed screenOrientation makes Android imply that the device needs a
|
|
10
|
+
screen in that orientation, and Google Play then hides the app from
|
|
11
|
+
devices that don't report one (some Chromebooks, TVs and headsets).
|
|
12
|
+
The app runs on them anyway, letterboxed or rotated, so neither
|
|
13
|
+
orientation is a requirement.
|
|
14
|
+
-->
|
|
15
|
+
<uses-feature android:name="android.hardware.screen.portrait" android:required="false" />
|
|
16
|
+
<uses-feature android:name="android.hardware.screen.landscape" android:required="false" />
|
|
7
17
|
<!-- angular-lynx:permissions -->
|
|
8
18
|
|
|
9
19
|
<!--
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionSha256Sum=
|
|
4
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.
|
|
3
|
+
distributionSha256Sum=971fcd7150ca4ba04852c0b2ca0d2d0ab9468e14b03473eab19528809914c76b
|
|
4
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.2-bin.zip
|
|
5
5
|
networkTimeout=10000
|
|
6
6
|
retries=0
|
|
7
7
|
retryBackOffMs=500
|