@gjsify/gi-runtime-android-tls 0.0.0-stage → 0.64.48

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/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gjsify contributors
4
+
5
+ This license covers the SOURCE of this package (index.js, index.d.ts,
6
+ platforms/android/include.gradle) and the build script in the gjsify repository
7
+ that assembles the payload. It does NOT cover the third-party
8
+ GObject-Introspection binaries inside `platforms/android/gi-runtime-android.aar`:
9
+ those keep the terms of their own projects, named in
10
+ `platforms/THIRD-PARTY-NOTICES.md` inside the published tarball.
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,41 @@
1
- # Temporary Holding Version
1
+ # @gjsify/gi-runtime-android-tls
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Add-on to [`@gjsify/gi-runtime-android`](../gi-runtime-android): a Gio TLS backend for an
4
+ Android NativeScript app (`arm64-v8a`, `x86_64`). It carries glib-networking's OpenSSL module
5
+ (`libgioopenssl.so`) and OpenSSL 3.5 (`libssl.so`, `libcrypto.so`). It adds no typelib, because
6
+ Gio is in the core. Part of
7
+ [ADR 0117](../../../docs/adr/0117-android-gi-namespaces-are-selected-at-build-time.md) stage 2.
8
+
9
+ Install it when the app talks https or TLS through Gio (`@gjsify/fetch`, `tls`, `ws`, libsoup).
10
+ Without it, `Gio.TlsBackend.get_default().supports_tls()` is `false` and every TLS connection
11
+ fails with "TLS support is not available". An app without the add-on gets the same APK as with
12
+ the core alone.
13
+
14
+ ```jsonc
15
+ "dependencies": {
16
+ "@gjsify/gi-runtime-android": "0.64.48",
17
+ "@gjsify/gi-runtime-android-tls": "0.64.48"
18
+ }
19
+ ```
20
+
21
+ ## What happens at startup
22
+
23
+ `@gjsify/node-gi` reads the add-on's runtime manifest (`assets/app/gi-runtime/gi-runtime-android-tls.json`),
24
+ which lists the module under `gioModules`. Once the addon is loaded it does two things:
25
+
26
+ 1. **Loads the module by soname.** Android keeps native libraries inside the APK
27
+ (`extractNativeLibs=false`), so there is no directory for GIO to scan. `GIO_MODULE_DIR` points
28
+ at an empty app-private directory, and `Gio.IOModule.new('libgioopenssl.so')` loads the module.
29
+ 2. **Installs Android's trust store** as Gio's default database
30
+ ([ADR 0134](../../../docs/adr/0134-https-trusts-the-os-store-through-one-package.md) § 3). It
31
+ takes `/system/etc/security/cacerts` minus the roots the user disabled, merges them into
32
+ `<cache>/gjsify-tls/system-ca.pem` and calls `set_default_database`. User-added CAs are not
33
+ trusted. No CA bundle ships in this package.
34
+
35
+ The result is on `globalThis.__NODE_GI_ANDROID_TLS` for device harnesses.
36
+
37
+ ## Building
38
+
39
+ `yarn build:bundle` needs a sysroot built with glib-networking (`lib/<abi>/gio/modules`), and
40
+ the same inputs as the core's build (see its README). The builder fails if that directory is
41
+ empty. The AAR holds only what the core's closure lacks and is gitignored.
package/index.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ // SPDX-License-Identifier: MIT
2
+
3
+ import type { RuntimeManifest } from '@gjsify/gi-runtime-android';
4
+
5
+ /** The NativeScript plugin directory — what the NS gradle scans for `**\/*.aar`. */
6
+ export const platformsDir: string;
7
+ /** The AAR carrying both ABIs' GIO TLS module and OpenSSL. */
8
+ export const aarPath: string;
9
+ /** Sidecar written beside the AAR by the build. */
10
+ export const manifestPath: string;
11
+ /** Device path of the add-on's runtime manifest, relative to the app's files dir. */
12
+ export const deviceManifestSubdir: string;
13
+ /** Whether the payload is actually on disk (it is built, never committed). */
14
+ export const isPresent: boolean;
15
+ /** The build's own record of the payload, or `null` when it was never built. */
16
+ export function readRuntimeManifest(): RuntimeManifest | null;
17
+
18
+ declare const _default: {
19
+ platformsDir: string;
20
+ aarPath: string;
21
+ manifestPath: string;
22
+ deviceManifestSubdir: string;
23
+ isPresent: boolean;
24
+ readRuntimeManifest: typeof readRuntimeManifest;
25
+ };
26
+ export default _default;
package/index.js ADDED
@@ -0,0 +1,46 @@
1
+ // SPDX-License-Identifier: MIT
2
+ // @gjsify/gi-runtime-android-tls — host-side view of the add-on's NativeScript plugin payload.
3
+ //
4
+ // Like the core, the payload is consumed by GRADLE (see @gjsify/gi-runtime-android/index.js):
5
+ // this file is for build scripts and device harnesses that want to know whether the AAR is
6
+ // present and what is in it. The add-on carries only what the core does not: glib-networking's
7
+ // OpenSSL GIO module (`libgioopenssl.so`) and OpenSSL's libssl/libcrypto. No typelib: Gio is
8
+ // the core's, this only gives it a TLS backend (ADR 0117 stage 2).
9
+ import { existsSync, readFileSync } from 'node:fs';
10
+ import { dirname, join } from 'node:path';
11
+ import { fileURLToPath } from 'node:url';
12
+
13
+ const here = dirname(fileURLToPath(import.meta.url));
14
+
15
+ /** The NativeScript plugin directory — what the NS gradle scans for `**\/*.aar`. */
16
+ export const platformsDir = join(here, 'platforms', 'android');
17
+
18
+ /** The AAR carrying both ABIs' GIO TLS module and OpenSSL. */
19
+ export const aarPath = join(platformsDir, 'gi-runtime-android-tls.aar');
20
+
21
+ /** Sidecar written beside the AAR by the build: what went in, with sizes and digests. */
22
+ export const manifestPath = join(platformsDir, 'gi-runtime-tls.json');
23
+
24
+ /**
25
+ * Where the add-on's runtime manifest sits INSIDE the AAR, and where it lands on the device.
26
+ * `host.nativescript.js` reads it at startup and compares its sysroot pin with the core's.
27
+ */
28
+ export const deviceManifestSubdir = 'app/gi-runtime/gi-runtime-android-tls.json';
29
+
30
+ /** Whether the payload is actually on disk (it is built, never committed). */
31
+ export const isPresent = existsSync(aarPath);
32
+
33
+ /** The build's own record of the payload, or `null` when it was never built. */
34
+ export function readRuntimeManifest() {
35
+ if (!existsSync(manifestPath)) return null;
36
+ return JSON.parse(readFileSync(manifestPath, 'utf8'));
37
+ }
38
+
39
+ export default {
40
+ platformsDir,
41
+ aarPath,
42
+ manifestPath,
43
+ deviceManifestSubdir,
44
+ isPresent,
45
+ readRuntimeManifest,
46
+ };
package/package.json CHANGED
@@ -1,6 +1,69 @@
1
1
  {
2
- "name": "@gjsify/gi-runtime-android-tls",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@gjsify/gi-runtime-android-tls",
3
+ "version": "0.64.48",
4
+ "description": "Add-on to @gjsify/gi-runtime-android: a Gio TLS backend (glib-networking's OpenSSL module and OpenSSL 3.5) for an Android NativeScript app, for arm64-v8a and x86_64. Install it next to the core when the app speaks https or TLS through Gio; an app without it gets the same APK as before.",
5
+ "type": "module",
6
+ "license": "SEE LICENSE IN platforms/THIRD-PARTY-NOTICES.md",
7
+ "main": "./index.js",
8
+ "types": "./index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./index.d.ts",
12
+ "default": "./index.js"
13
+ },
14
+ "./platforms/android": "./platforms/android",
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "index.js",
19
+ "index.d.ts",
20
+ "platforms"
21
+ ],
22
+ "nativescript": {
23
+ "platforms": {
24
+ "android": "9.1.1"
25
+ }
26
+ },
27
+ "dependencies": {
28
+ "@gjsify/gi-runtime-android": "0.64.48"
29
+ },
30
+ "peerDependencies": {
31
+ "@nativescript/android": ">=9.1.1"
32
+ },
33
+ "gjsify": {
34
+ "runtimes": {
35
+ "gjs": "none",
36
+ "node": "none",
37
+ "browser": "none",
38
+ "nativescript": "native"
39
+ },
40
+ "nativescriptPlatforms": [
41
+ "android"
42
+ ],
43
+ "tier": 3,
44
+ "giRuntime": {
45
+ "core": "@gjsify/gi-runtime-android",
46
+ "namespaces": [],
47
+ "gioModules": [
48
+ "libgioopenssl.so"
49
+ ]
50
+ }
51
+ },
52
+ "scripts": {
53
+ "build:bundle": "node scripts/build-gi-runtime-android-tls.mjs"
54
+ },
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "git+https://github.com/gjsify/gjsify.git",
58
+ "directory": "packages/node-gi/gi-runtime-android-tls"
59
+ },
60
+ "keywords": [
61
+ "nativescript",
62
+ "android",
63
+ "gobject-introspection",
64
+ "gio",
65
+ "tls",
66
+ "openssl",
67
+ "gjsify"
68
+ ]
69
+ }
@@ -0,0 +1,762 @@
1
+ # Third-party notices — @gjsify/gi-runtime-android-tls
2
+
3
+ This package is an Android NativeScript plugin whose payload is an AAR of native
4
+ libraries. The source files in it are MIT (see `LICENSE`); the AAR is not.
5
+
6
+ It carries, for arm64-v8a and x86_64:
7
+
8
+ - NO addon of its own: `libnode_gi.so` stays in `@gjsify/gi-runtime-android`, which
9
+ this package depends on at the same version.
10
+ - 3 unmodified shared libraries beyond that core's, listed per project below.
11
+ - Their `.typelib` introspection data, generated by GLib's `g-ir-compiler` from the
12
+ same sources as the libraries it describes.
13
+
14
+ The libraries are UNMODIFIED except that `llvm-strip --strip-unneeded` removes the
15
+ symbols nothing in the APK resolves. No install name, rpath or soname is rewritten —
16
+ unlike the darwin bundle, Android needs none, because the APK's `lib/<abi>/` is the
17
+ loader's own search path.
18
+
19
+ ## What is NOT bundled
20
+
21
+ The closure also resolves against libraries already present in the process, which this
22
+ package therefore does not redistribute:
23
+
24
+ - `libNativeScript.so` — the NativeScript runtime AAR, already in the APK
25
+ - `libandroid.so` — Android platform (NDK stable ABI)
26
+ - `libc.so` — Bionic (platform)
27
+ - `libdl.so` — Bionic (platform)
28
+ - `liblog.so` — Android platform (NDK stable ABI)
29
+ - `libm.so` — Bionic (platform)
30
+ - `libz.so` — Android platform (NDK stable ABI)
31
+
32
+ ## Bundled projects
33
+
34
+ ### glib-networking (the OpenSSL GIO TLS module)
35
+
36
+ Upstream: https://gitlab.gnome.org/GNOME/glib-networking
37
+
38
+ Bundled as:
39
+
40
+ - `libgioopenssl.so`
41
+
42
+ <details><summary>COPYING</summary>
43
+
44
+ ```
45
+ GNU LESSER GENERAL PUBLIC LICENSE
46
+ Version 2.1, February 1999
47
+
48
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
49
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
50
+ Everyone is permitted to copy and distribute verbatim copies
51
+ of this license document, but changing it is not allowed.
52
+
53
+ [This is the first released version of the Lesser GPL. It also counts
54
+ as the successor of the GNU Library Public License, version 2, hence
55
+ the version number 2.1.]
56
+
57
+ Preamble
58
+
59
+ The licenses for most software are designed to take away your
60
+ freedom to share and change it. By contrast, the GNU General Public
61
+ Licenses are intended to guarantee your freedom to share and change
62
+ free software--to make sure the software is free for all its users.
63
+
64
+ This license, the Lesser General Public License, applies to some
65
+ specially designated software packages--typically libraries--of the
66
+ Free Software Foundation and other authors who decide to use it. You
67
+ can use it too, but we suggest you first think carefully about whether
68
+ this license or the ordinary General Public License is the better
69
+ strategy to use in any particular case, based on the explanations below.
70
+
71
+ When we speak of free software, we are referring to freedom of use,
72
+ not price. Our General Public Licenses are designed to make sure that
73
+ you have the freedom to distribute copies of free software (and charge
74
+ for this service if you wish); that you receive source code or can get
75
+ it if you want it; that you can change the software and use pieces of
76
+ it in new free programs; and that you are informed that you can do
77
+ these things.
78
+
79
+ To protect your rights, we need to make restrictions that forbid
80
+ distributors to deny you these rights or to ask you to surrender these
81
+ rights. These restrictions translate to certain responsibilities for
82
+ you if you distribute copies of the library or if you modify it.
83
+
84
+ For example, if you distribute copies of the library, whether gratis
85
+ or for a fee, you must give the recipients all the rights that we gave
86
+ you. You must make sure that they, too, receive or can get the source
87
+ code. If you link other code with the library, you must provide
88
+ complete object files to the recipients, so that they can relink them
89
+ with the library after making changes to the library and recompiling
90
+ it. And you must show them these terms so they know their rights.
91
+
92
+ We protect your rights with a two-step method: (1) we copyright the
93
+ library, and (2) we offer you this license, which gives you legal
94
+ permission to copy, distribute and/or modify the library.
95
+
96
+ To protect each distributor, we want to make it very clear that
97
+ there is no warranty for the free library. Also, if the library is
98
+ modified by someone else and passed on, the recipients should know
99
+ that what they have is not the original version, so that the original
100
+ author's reputation will not be affected by problems that might be
101
+ introduced by others.
102
+
103
+ Finally, software patents pose a constant threat to the existence of
104
+ any free program. We wish to make sure that a company cannot
105
+ effectively restrict the users of a free program by obtaining a
106
+ restrictive license from a patent holder. Therefore, we insist that
107
+ any patent license obtained for a version of the library must be
108
+ consistent with the full freedom of use specified in this license.
109
+
110
+ Most GNU software, including some libraries, is covered by the
111
+ ordinary GNU General Public License. This license, the GNU Lesser
112
+ General Public License, applies to certain designated libraries, and
113
+ is quite different from the ordinary General Public License. We use
114
+ this license for certain libraries in order to permit linking those
115
+ libraries into non-free programs.
116
+
117
+ When a program is linked with a library, whether statically or using
118
+ a shared library, the combination of the two is legally speaking a
119
+ combined work, a derivative of the original library. The ordinary
120
+ General Public License therefore permits such linking only if the
121
+ entire combination fits its criteria of freedom. The Lesser General
122
+ Public License permits more lax criteria for linking other code with
123
+ the library.
124
+
125
+ We call this license the "Lesser" General Public License because it
126
+ does Less to protect the user's freedom than the ordinary General
127
+ Public License. It also provides other free software developers Less
128
+ of an advantage over competing non-free programs. These disadvantages
129
+ are the reason we use the ordinary General Public License for many
130
+ libraries. However, the Lesser license provides advantages in certain
131
+ special circumstances.
132
+
133
+ For example, on rare occasions, there may be a special need to
134
+ encourage the widest possible use of a certain library, so that it becomes
135
+ a de-facto standard. To achieve this, non-free programs must be
136
+ allowed to use the library. A more frequent case is that a free
137
+ library does the same job as widely used non-free libraries. In this
138
+ case, there is little to gain by limiting the free library to free
139
+ software only, so we use the Lesser General Public License.
140
+
141
+ In other cases, permission to use a particular library in non-free
142
+ programs enables a greater number of people to use a large body of
143
+ free software. For example, permission to use the GNU C Library in
144
+ non-free programs enables many more people to use the whole GNU
145
+ operating system, as well as its variant, the GNU/Linux operating
146
+ system.
147
+
148
+ Although the Lesser General Public License is Less protective of the
149
+ users' freedom, it does ensure that the user of a program that is
150
+ linked with the Library has the freedom and the wherewithal to run
151
+ that program using a modified version of the Library.
152
+
153
+ The precise terms and conditions for copying, distribution and
154
+ modification follow. Pay close attention to the difference between a
155
+ "work based on the library" and a "work that uses the library". The
156
+ former contains code derived from the library, whereas the latter must
157
+ be combined with the library in order to run.
158
+
159
+ GNU LESSER GENERAL PUBLIC LICENSE
160
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
161
+
162
+ 0. This License Agreement applies to any software library or other
163
+ program which contains a notice placed by the copyright holder or
164
+ other authorized party saying it may be distributed under the terms of
165
+ this Lesser General Public License (also called "this License").
166
+ Each licensee is addressed as "you".
167
+
168
+ A "library" means a collection of software functions and/or data
169
+ prepared so as to be conveniently linked with application programs
170
+ (which use some of those functions and data) to form executables.
171
+
172
+ The "Library", below, refers to any such software library or work
173
+ which has been distributed under these terms. A "work based on the
174
+ Library" means either the Library or any derivative work under
175
+ copyright law: that is to say, a work containing the Library or a
176
+ portion of it, either verbatim or with modifications and/or translated
177
+ straightforwardly into another language. (Hereinafter, translation is
178
+ included without limitation in the term "modification".)
179
+
180
+ "Source code" for a work means the preferred form of the work for
181
+ making modifications to it. For a library, complete source code means
182
+ all the source code for all modules it contains, plus any associated
183
+ interface definition files, plus the scripts used to control compilation
184
+ and installation of the library.
185
+
186
+ Activities other than copying, distribution and modification are not
187
+ covered by this License; they are outside its scope. The act of
188
+ running a program using the Library is not restricted, and output from
189
+ such a program is covered only if its contents constitute a work based
190
+ on the Library (independent of the use of the Library in a tool for
191
+ writing it). Whether that is true depends on what the Library does
192
+ and what the program that uses the Library does.
193
+
194
+ 1. You may copy and distribute verbatim copies of the Library's
195
+ complete source code as you receive it, in any medium, provided that
196
+ you conspicuously and appropriately publish on each copy an
197
+ appropriate copyright notice and disclaimer of warranty; keep intact
198
+ all the notices that refer to this License and to the absence of any
199
+ warranty; and distribute a copy of this License along with the
200
+ Library.
201
+
202
+ You may charge a fee for the physical act of transferring a copy,
203
+ and you may at your option offer warranty protection in exchange for a
204
+ fee.
205
+
206
+ 2. You may modify your copy or copies of the Library or any portion
207
+ of it, thus forming a work based on the Library, and copy and
208
+ distribute such modifications or work under the terms of Section 1
209
+ above, provided that you also meet all of these conditions:
210
+
211
+ a) The modified work must itself be a software library.
212
+
213
+ b) You must cause the files modified to carry prominent notices
214
+ stating that you changed the files and the date of any change.
215
+
216
+ c) You must cause the whole of the work to be licensed at no
217
+ charge to all third parties under the terms of this License.
218
+
219
+ d) If a facility in the modified Library refers to a function or a
220
+ table of data to be supplied by an application program that uses
221
+ the facility, other than as an argument passed when the facility
222
+ is invoked, then you must make a good faith effort to ensure that,
223
+ in the event an application does not supply such function or
224
+ table, the facility still operates, and performs whatever part of
225
+ its purpose remains meaningful.
226
+
227
+ (For example, a function in a library to compute square roots has
228
+ a purpose that is entirely well-defined independent of the
229
+ application. Therefore, Subsection 2d requires that any
230
+ application-supplied function or table used by this function must
231
+ be optional: if the application does not supply it, the square
232
+ root function must still compute square roots.)
233
+
234
+ These requirements apply to the modified work as a whole. If
235
+ identifiable sections of that work are not derived from the Library,
236
+ and can be reasonably considered independent and separate works in
237
+ themselves, then this License, and its terms, do not apply to those
238
+ sections when you distribute them as separate works. But when you
239
+ distribute the same sections as part of a whole which is a work based
240
+ on the Library, the distribution of the whole must be on the terms of
241
+ this License, whose permissions for other licensees extend to the
242
+ entire whole, and thus to each and every part regardless of who wrote
243
+ it.
244
+
245
+ Thus, it is not the intent of this section to claim rights or contest
246
+ your rights to work written entirely by you; rather, the intent is to
247
+ exercise the right to control the distribution of derivative or
248
+ collective works based on the Library.
249
+
250
+ In addition, mere aggregation of another work not based on the Library
251
+ with the Library (or with a work based on the Library) on a volume of
252
+ a storage or distribution medium does not bring the other work under
253
+ the scope of this License.
254
+
255
+ 3. You may opt to apply the terms of the ordinary GNU General Public
256
+ License instead of this License to a given copy of the Library. To do
257
+ this, you must alter all the notices that refer to this License, so
258
+ that they refer to the ordinary GNU General Public License, version 2,
259
+ instead of to this License. (If a newer version than version 2 of the
260
+ ordinary GNU General Public License has appeared, then you can specify
261
+ that version instead if you wish.) Do not make any other change in
262
+ these notices.
263
+
264
+ Once this change is made in a given copy, it is irreversible for
265
+ that copy, so the ordinary GNU General Public License applies to all
266
+ subsequent copies and derivative works made from that copy.
267
+
268
+ This option is useful when you wish to copy part of the code of
269
+ the Library into a program that is not a library.
270
+
271
+ 4. You may copy and distribute the Library (or a portion or
272
+ derivative of it, under Section 2) in object code or executable form
273
+ under the terms of Sections 1 and 2 above provided that you accompany
274
+ it with the complete corresponding machine-readable source code, which
275
+ must be distributed under the terms of Sections 1 and 2 above on a
276
+ medium customarily used for software interchange.
277
+
278
+ If distribution of object code is made by offering access to copy
279
+ from a designated place, then offering equivalent access to copy the
280
+ source code from the same place satisfies the requirement to
281
+ distribute the source code, even though third parties are not
282
+ compelled to copy the source along with the object code.
283
+
284
+ 5. A program that contains no derivative of any portion of the
285
+ Library, but is designed to work with the Library by being compiled or
286
+ linked with it, is called a "work that uses the Library". Such a
287
+ work, in isolation, is not a derivative work of the Library, and
288
+ therefore falls outside the scope of this License.
289
+
290
+ However, linking a "work that uses the Library" with the Library
291
+ creates an executable that is a derivative of the Library (because it
292
+ contains portions of the Library), rather than a "work that uses the
293
+ library". The executable is therefore covered by this License.
294
+ Section 6 states terms for distribution of such executables.
295
+
296
+ When a "work that uses the Library" uses material from a header file
297
+ that is part of the Library, the object code for the work may be a
298
+ derivative work of the Library even though the source code is not.
299
+ Whether this is true is especially significant if the work can be
300
+ linked without the Library, or if the work is itself a library. The
301
+ threshold for this to be true is not precisely defined by law.
302
+
303
+ If such an object file uses only numerical parameters, data
304
+ structure layouts and accessors, and small macros and small inline
305
+ functions (ten lines or less in length), then the use of the object
306
+ file is unrestricted, regardless of whether it is legally a derivative
307
+ work. (Executables containing this object code plus portions of the
308
+ Library will still fall under Section 6.)
309
+
310
+ Otherwise, if the work is a derivative of the Library, you may
311
+ distribute the object code for the work under the terms of Section 6.
312
+ Any executables containing that work also fall under Section 6,
313
+ whether or not they are linked directly with the Library itself.
314
+
315
+ 6. As an exception to the Sections above, you may also combine or
316
+ link a "work that uses the Library" with the Library to produce a
317
+ work containing portions of the Library, and distribute that work
318
+ under terms of your choice, provided that the terms permit
319
+ modification of the work for the customer's own use and reverse
320
+ engineering for debugging such modifications.
321
+
322
+ You must give prominent notice with each copy of the work that the
323
+ Library is used in it and that the Library and its use are covered by
324
+ this License. You must supply a copy of this License. If the work
325
+ during execution displays copyright notices, you must include the
326
+ copyright notice for the Library among them, as well as a reference
327
+ directing the user to the copy of this License. Also, you must do one
328
+ of these things:
329
+
330
+ a) Accompany the work with the complete corresponding
331
+ machine-readable source code for the Library including whatever
332
+ changes were used in the work (which must be distributed under
333
+ Sections 1 and 2 above); and, if the work is an executable linked
334
+ with the Library, with the complete machine-readable "work that
335
+ uses the Library", as object code and/or source code, so that the
336
+ user can modify the Library and then relink to produce a modified
337
+ executable containing the modified Library. (It is understood
338
+ that the user who changes the contents of definitions files in the
339
+ Library will not necessarily be able to recompile the application
340
+ to use the modified definitions.)
341
+
342
+ b) Use a suitable shared library mechanism for linking with the
343
+ Library. A suitable mechanism is one that (1) uses at run time a
344
+ copy of the library already present on the user's computer system,
345
+ rather than copying library functions into the executable, and (2)
346
+ will operate properly with a modified version of the library, if
347
+ the user installs one, as long as the modified version is
348
+ interface-compatible with the version that the work was made with.
349
+
350
+ c) Accompany the work with a written offer, valid for at
351
+ least three years, to give the same user the materials
352
+ specified in Subsection 6a, above, for a charge no more
353
+ than the cost of performing this distribution.
354
+
355
+ d) If distribution of the work is made by offering access to copy
356
+ from a designated place, offer equivalent access to copy the above
357
+ specified materials from the same place.
358
+
359
+ e) Verify that the user has already received a copy of these
360
+ materials or that you have already sent this user a copy.
361
+
362
+ For an executable, the required form of the "work that uses the
363
+ Library" must include any data and utility programs needed for
364
+ reproducing the executable from it. However, as a special exception,
365
+ the materials to be distributed need not include anything that is
366
+ normally distributed (in either source or binary form) with the major
367
+ components (compiler, kernel, and so on) of the operating system on
368
+ which the executable runs, unless that component itself accompanies
369
+ the executable.
370
+
371
+ It may happen that this requirement contradicts the license
372
+ restrictions of other proprietary libraries that do not normally
373
+ accompany the operating system. Such a contradiction means you cannot
374
+ use both them and the Library together in an executable that you
375
+ distribute.
376
+
377
+ 7. You may place library facilities that are a work based on the
378
+ Library side-by-side in a single library together with other library
379
+ facilities not covered by this License, and distribute such a combined
380
+ library, provided that the separate distribution of the work based on
381
+ the Library and of the other library facilities is otherwise
382
+ permitted, and provided that you do these two things:
383
+
384
+ a) Accompany the combined library with a copy of the same work
385
+ based on the Library, uncombined with any other library
386
+ facilities. This must be distributed under the terms of the
387
+ Sections above.
388
+
389
+ b) Give prominent notice with the combined library of the fact
390
+ that part of it is a work based on the Library, and explaining
391
+ where to find the accompanying uncombined form of the same work.
392
+
393
+ 8. You may not copy, modify, sublicense, link with, or distribute
394
+ the Library except as expressly provided under this License. Any
395
+ attempt otherwise to copy, modify, sublicense, link with, or
396
+ distribute the Library is void, and will automatically terminate your
397
+ rights under this License. However, parties who have received copies,
398
+ or rights, from you under this License will not have their licenses
399
+ terminated so long as such parties remain in full compliance.
400
+
401
+ 9. You are not required to accept this License, since you have not
402
+ signed it. However, nothing else grants you permission to modify or
403
+ distribute the Library or its derivative works. These actions are
404
+ prohibited by law if you do not accept this License. Therefore, by
405
+ modifying or distributing the Library (or any work based on the
406
+ Library), you indicate your acceptance of this License to do so, and
407
+ all its terms and conditions for copying, distributing or modifying
408
+ the Library or works based on it.
409
+
410
+ 10. Each time you redistribute the Library (or any work based on the
411
+ Library), the recipient automatically receives a license from the
412
+ original licensor to copy, distribute, link with or modify the Library
413
+ subject to these terms and conditions. You may not impose any further
414
+ restrictions on the recipients' exercise of the rights granted herein.
415
+ You are not responsible for enforcing compliance by third parties with
416
+ this License.
417
+
418
+ 11. If, as a consequence of a court judgment or allegation of patent
419
+ infringement or for any other reason (not limited to patent issues),
420
+ conditions are imposed on you (whether by court order, agreement or
421
+ otherwise) that contradict the conditions of this License, they do not
422
+ excuse you from the conditions of this License. If you cannot
423
+ distribute so as to satisfy simultaneously your obligations under this
424
+ License and any other pertinent obligations, then as a consequence you
425
+ may not distribute the Library at all. For example, if a patent
426
+ license would not permit royalty-free redistribution of the Library by
427
+ all those who receive copies directly or indirectly through you, then
428
+ the only way you could satisfy both it and this License would be to
429
+ refrain entirely from distribution of the Library.
430
+
431
+ If any portion of this section is held invalid or unenforceable under any
432
+ particular circumstance, the balance of the section is intended to apply,
433
+ and the section as a whole is intended to apply in other circumstances.
434
+
435
+ It is not the purpose of this section to induce you to infringe any
436
+ patents or other property right claims or to contest validity of any
437
+ such claims; this section has the sole purpose of protecting the
438
+ integrity of the free software distribution system which is
439
+ implemented by public license practices. Many people have made
440
+ generous contributions to the wide range of software distributed
441
+ through that system in reliance on consistent application of that
442
+ system; it is up to the author/donor to decide if he or she is willing
443
+ to distribute software through any other system and a licensee cannot
444
+ impose that choice.
445
+
446
+ This section is intended to make thoroughly clear what is believed to
447
+ be a consequence of the rest of this License.
448
+
449
+ 12. If the distribution and/or use of the Library is restricted in
450
+ certain countries either by patents or by copyrighted interfaces, the
451
+ original copyright holder who places the Library under this License may add
452
+ an explicit geographical distribution limitation excluding those countries,
453
+ so that distribution is permitted only in or among countries not thus
454
+ excluded. In such case, this License incorporates the limitation as if
455
+ written in the body of this License.
456
+
457
+ 13. The Free Software Foundation may publish revised and/or new
458
+ versions of the Lesser General Public License from time to time.
459
+ Such new versions will be similar in spirit to the present version,
460
+ but may differ in detail to address new problems or concerns.
461
+
462
+ Each version is given a distinguishing version number. If the Library
463
+ specifies a version number of this License which applies to it and
464
+ "any later version", you have the option of following the terms and
465
+ conditions either of that version or of any later version published by
466
+ the Free Software Foundation. If the Library does not specify a
467
+ license version number, you may choose any version ever published by
468
+ the Free Software Foundation.
469
+
470
+ 14. If you wish to incorporate parts of the Library into other free
471
+ programs whose distribution conditions are incompatible with these,
472
+ write to the author to ask for permission. For software which is
473
+ copyrighted by the Free Software Foundation, write to the Free
474
+ Software Foundation; we sometimes make exceptions for this. Our
475
+ decision will be guided by the two goals of preserving the free status
476
+ of all derivatives of our free software and of promoting the sharing
477
+ and reuse of software generally.
478
+
479
+ NO WARRANTY
480
+
481
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
482
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
483
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
484
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
485
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
486
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
487
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
488
+ LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
489
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
490
+
491
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
492
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
493
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
494
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
495
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
496
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
497
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
498
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
499
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
500
+ DAMAGES.
501
+
502
+ END OF TERMS AND CONDITIONS
503
+
504
+ How to Apply These Terms to Your New Libraries
505
+
506
+ If you develop a new library, and you want it to be of the greatest
507
+ possible use to the public, we recommend making it free software that
508
+ everyone can redistribute and change. You can do so by permitting
509
+ redistribution under these terms (or, alternatively, under the terms of the
510
+ ordinary General Public License).
511
+
512
+ To apply these terms, attach the following notices to the library. It is
513
+ safest to attach them to the start of each source file to most effectively
514
+ convey the exclusion of warranty; and each file should have at least the
515
+ "copyright" line and a pointer to where the full notice is found.
516
+
517
+ <one line to give the library's name and a brief idea of what it does.>
518
+ Copyright (C) <year> <name of author>
519
+
520
+ This library is free software; you can redistribute it and/or
521
+ modify it under the terms of the GNU Lesser General Public
522
+ License as published by the Free Software Foundation; either
523
+ version 2.1 of the License, or (at your option) any later version.
524
+
525
+ This library is distributed in the hope that it will be useful,
526
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
527
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
528
+ Lesser General Public License for more details.
529
+
530
+ You should have received a copy of the GNU Lesser General Public
531
+ License along with this library; if not, write to the Free Software
532
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
533
+
534
+ Also add information on how to contact you by electronic and paper mail.
535
+
536
+ You should also get your employer (if you work as a programmer) or your
537
+ school, if any, to sign a "copyright disclaimer" for the library, if
538
+ necessary. Here is a sample; alter the names:
539
+
540
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
541
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
542
+
543
+ <signature of Ty Coon>, 1 April 1990
544
+ Ty Coon, President of Vice
545
+
546
+ That's all there is to it!
547
+ ```
548
+
549
+ </details>
550
+
551
+ <details><summary>LICENSE_EXCEPTION</summary>
552
+
553
+ ```
554
+ LICENSE EXCEPTION FOR OPENSSL
555
+
556
+ * In addition, as a special exception, the copyright holders give
557
+ * permission to link the code of portions of this program with the
558
+ * OpenSSL library, and distribute linked combinations
559
+ * including the two.
560
+ * You must obey the GNU Lesser General Public License in all respects
561
+ * for all of the code used other than OpenSSL. If you modify
562
+ * file(s) with this exception, you may extend this exception to your
563
+ * version of the file(s), but you are not obligated to do so. If you
564
+ * do not wish to do so, delete this exception statement from your
565
+ * version. If you delete this exception statement from all source
566
+ * files in the program, then also delete it here.
567
+ ```
568
+
569
+ </details>
570
+
571
+ ### OpenSSL (libssl, libcrypto)
572
+
573
+ Upstream: https://github.com/openssl/openssl
574
+
575
+ Bundled as:
576
+
577
+ - `libcrypto.so`
578
+ - `libssl.so`
579
+
580
+ <details><summary>LICENSE.txt</summary>
581
+
582
+ ```
583
+
584
+ Apache License
585
+ Version 2.0, January 2004
586
+ https://www.apache.org/licenses/
587
+
588
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
589
+
590
+ 1. Definitions.
591
+
592
+ "License" shall mean the terms and conditions for use, reproduction,
593
+ and distribution as defined by Sections 1 through 9 of this document.
594
+
595
+ "Licensor" shall mean the copyright owner or entity authorized by
596
+ the copyright owner that is granting the License.
597
+
598
+ "Legal Entity" shall mean the union of the acting entity and all
599
+ other entities that control, are controlled by, or are under common
600
+ control with that entity. For the purposes of this definition,
601
+ "control" means (i) the power, direct or indirect, to cause the
602
+ direction or management of such entity, whether by contract or
603
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
604
+ outstanding shares, or (iii) beneficial ownership of such entity.
605
+
606
+ "You" (or "Your") shall mean an individual or Legal Entity
607
+ exercising permissions granted by this License.
608
+
609
+ "Source" form shall mean the preferred form for making modifications,
610
+ including but not limited to software source code, documentation
611
+ source, and configuration files.
612
+
613
+ "Object" form shall mean any form resulting from mechanical
614
+ transformation or translation of a Source form, including but
615
+ not limited to compiled object code, generated documentation,
616
+ and conversions to other media types.
617
+
618
+ "Work" shall mean the work of authorship, whether in Source or
619
+ Object form, made available under the License, as indicated by a
620
+ copyright notice that is included in or attached to the work
621
+ (an example is provided in the Appendix below).
622
+
623
+ "Derivative Works" shall mean any work, whether in Source or Object
624
+ form, that is based on (or derived from) the Work and for which the
625
+ editorial revisions, annotations, elaborations, or other modifications
626
+ represent, as a whole, an original work of authorship. For the purposes
627
+ of this License, Derivative Works shall not include works that remain
628
+ separable from, or merely link (or bind by name) to the interfaces of,
629
+ the Work and Derivative Works thereof.
630
+
631
+ "Contribution" shall mean any work of authorship, including
632
+ the original version of the Work and any modifications or additions
633
+ to that Work or Derivative Works thereof, that is intentionally
634
+ submitted to Licensor for inclusion in the Work by the copyright owner
635
+ or by an individual or Legal Entity authorized to submit on behalf of
636
+ the copyright owner. For the purposes of this definition, "submitted"
637
+ means any form of electronic, verbal, or written communication sent
638
+ to the Licensor or its representatives, including but not limited to
639
+ communication on electronic mailing lists, source code control systems,
640
+ and issue tracking systems that are managed by, or on behalf of, the
641
+ Licensor for the purpose of discussing and improving the Work, but
642
+ excluding communication that is conspicuously marked or otherwise
643
+ designated in writing by the copyright owner as "Not a Contribution."
644
+
645
+ "Contributor" shall mean Licensor and any individual or Legal Entity
646
+ on behalf of whom a Contribution has been received by Licensor and
647
+ subsequently incorporated within the Work.
648
+
649
+ 2. Grant of Copyright License. Subject to the terms and conditions of
650
+ this License, each Contributor hereby grants to You a perpetual,
651
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
652
+ copyright license to reproduce, prepare Derivative Works of,
653
+ publicly display, publicly perform, sublicense, and distribute the
654
+ Work and such Derivative Works in Source or Object form.
655
+
656
+ 3. Grant of Patent License. Subject to the terms and conditions of
657
+ this License, each Contributor hereby grants to You a perpetual,
658
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
659
+ (except as stated in this section) patent license to make, have made,
660
+ use, offer to sell, sell, import, and otherwise transfer the Work,
661
+ where such license applies only to those patent claims licensable
662
+ by such Contributor that are necessarily infringed by their
663
+ Contribution(s) alone or by combination of their Contribution(s)
664
+ with the Work to which such Contribution(s) was submitted. If You
665
+ institute patent litigation against any entity (including a
666
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
667
+ or a Contribution incorporated within the Work constitutes direct
668
+ or contributory patent infringement, then any patent licenses
669
+ granted to You under this License for that Work shall terminate
670
+ as of the date such litigation is filed.
671
+
672
+ 4. Redistribution. You may reproduce and distribute copies of the
673
+ Work or Derivative Works thereof in any medium, with or without
674
+ modifications, and in Source or Object form, provided that You
675
+ meet the following conditions:
676
+
677
+ (a) You must give any other recipients of the Work or
678
+ Derivative Works a copy of this License; and
679
+
680
+ (b) You must cause any modified files to carry prominent notices
681
+ stating that You changed the files; and
682
+
683
+ (c) You must retain, in the Source form of any Derivative Works
684
+ that You distribute, all copyright, patent, trademark, and
685
+ attribution notices from the Source form of the Work,
686
+ excluding those notices that do not pertain to any part of
687
+ the Derivative Works; and
688
+
689
+ (d) If the Work includes a "NOTICE" text file as part of its
690
+ distribution, then any Derivative Works that You distribute must
691
+ include a readable copy of the attribution notices contained
692
+ within such NOTICE file, excluding those notices that do not
693
+ pertain to any part of the Derivative Works, in at least one
694
+ of the following places: within a NOTICE text file distributed
695
+ as part of the Derivative Works; within the Source form or
696
+ documentation, if provided along with the Derivative Works; or,
697
+ within a display generated by the Derivative Works, if and
698
+ wherever such third-party notices normally appear. The contents
699
+ of the NOTICE file are for informational purposes only and
700
+ do not modify the License. You may add Your own attribution
701
+ notices within Derivative Works that You distribute, alongside
702
+ or as an addendum to the NOTICE text from the Work, provided
703
+ that such additional attribution notices cannot be construed
704
+ as modifying the License.
705
+
706
+ You may add Your own copyright statement to Your modifications and
707
+ may provide additional or different license terms and conditions
708
+ for use, reproduction, or distribution of Your modifications, or
709
+ for any such Derivative Works as a whole, provided Your use,
710
+ reproduction, and distribution of the Work otherwise complies with
711
+ the conditions stated in this License.
712
+
713
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
714
+ any Contribution intentionally submitted for inclusion in the Work
715
+ by You to the Licensor shall be under the terms and conditions of
716
+ this License, without any additional terms or conditions.
717
+ Notwithstanding the above, nothing herein shall supersede or modify
718
+ the terms of any separate license agreement you may have executed
719
+ with Licensor regarding such Contributions.
720
+
721
+ 6. Trademarks. This License does not grant permission to use the trade
722
+ names, trademarks, service marks, or product names of the Licensor,
723
+ except as required for reasonable and customary use in describing the
724
+ origin of the Work and reproducing the content of the NOTICE file.
725
+
726
+ 7. Disclaimer of Warranty. Unless required by applicable law or
727
+ agreed to in writing, Licensor provides the Work (and each
728
+ Contributor provides its Contributions) on an "AS IS" BASIS,
729
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
730
+ implied, including, without limitation, any warranties or conditions
731
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
732
+ PARTICULAR PURPOSE. You are solely responsible for determining the
733
+ appropriateness of using or redistributing the Work and assume any
734
+ risks associated with Your exercise of permissions under this License.
735
+
736
+ 8. Limitation of Liability. In no event and under no legal theory,
737
+ whether in tort (including negligence), contract, or otherwise,
738
+ unless required by applicable law (such as deliberate and grossly
739
+ negligent acts) or agreed to in writing, shall any Contributor be
740
+ liable to You for damages, including any direct, indirect, special,
741
+ incidental, or consequential damages of any character arising as a
742
+ result of this License or out of the use or inability to use the
743
+ Work (including but not limited to damages for loss of goodwill,
744
+ work stoppage, computer failure or malfunction, or any and all
745
+ other commercial damages or losses), even if such Contributor
746
+ has been advised of the possibility of such damages.
747
+
748
+ 9. Accepting Warranty or Additional Liability. While redistributing
749
+ the Work or Derivative Works thereof, You may choose to offer,
750
+ and charge a fee for, acceptance of support, warranty, indemnity,
751
+ or other liability obligations and/or rights consistent with this
752
+ License. However, in accepting such obligations, You may act only
753
+ on Your own behalf and on Your sole responsibility, not on behalf
754
+ of any other Contributor, and only if You agree to indemnify,
755
+ defend, and hold each Contributor harmless for any liability
756
+ incurred by, or claims asserted against, such Contributor by reason
757
+ of your accepting any such warranty or additional liability.
758
+
759
+ END OF TERMS AND CONDITIONS
760
+ ```
761
+
762
+ </details>
@@ -0,0 +1,85 @@
1
+ {
2
+ "builtAt": "2026-11-19T11:54:09.608Z",
3
+ "abis": [
4
+ "arm64-v8a",
5
+ "x86_64"
6
+ ],
7
+ "sysroot": {
8
+ "repository": "gjsify/android-sysroot",
9
+ "tag": "2026.11.19"
10
+ },
11
+ "giSysroot": "/tmp/gi-runtime-android-inputs/sysroot",
12
+ "libraries": {
13
+ "arm64-v8a": [
14
+ {
15
+ "name": "libcrypto.so",
16
+ "bytes": 5563152,
17
+ "sha256": "e3108f00c7585b9dd3d519784a15b408a9591039b78d2b6dddcc886a41dee751"
18
+ },
19
+ {
20
+ "name": "libgioopenssl.so",
21
+ "bytes": 167264,
22
+ "sha256": "b9c9cd8414dca93aa59637e24bedda37116b48395230ce5d7552450f889b88c1"
23
+ },
24
+ {
25
+ "name": "libssl.so",
26
+ "bytes": 731928,
27
+ "sha256": "f93a6f1084a9e3c913dcd67eeed493e450ffbceb123774493ebf5e84fb747b49"
28
+ }
29
+ ],
30
+ "x86_64": [
31
+ {
32
+ "name": "libcrypto.so",
33
+ "bytes": 5938312,
34
+ "sha256": "4248aaacf6793341d465fb14148b05b41b022f01bf9ccb80b2cccfec03f56d08"
35
+ },
36
+ {
37
+ "name": "libgioopenssl.so",
38
+ "bytes": 165712,
39
+ "sha256": "e8f159a169032ba742792e7ba58fef23cd74d066f8b87994e57d84ef174c240b"
40
+ },
41
+ {
42
+ "name": "libssl.so",
43
+ "bytes": 744648,
44
+ "sha256": "2f90deaca5fa9d99a13b17f56633e8638b36ff4b2e31cbae7ea740c655ac945b"
45
+ }
46
+ ]
47
+ },
48
+ "systemProvided": [
49
+ {
50
+ "soname": "libNativeScript.so",
51
+ "provider": "the NativeScript runtime AAR, already in the APK"
52
+ },
53
+ {
54
+ "soname": "libandroid.so",
55
+ "provider": "Android platform (NDK stable ABI)"
56
+ },
57
+ {
58
+ "soname": "libc.so",
59
+ "provider": "Bionic (platform)"
60
+ },
61
+ {
62
+ "soname": "libdl.so",
63
+ "provider": "Bionic (platform)"
64
+ },
65
+ {
66
+ "soname": "liblog.so",
67
+ "provider": "Android platform (NDK stable ABI)"
68
+ },
69
+ {
70
+ "soname": "libm.so",
71
+ "provider": "Bionic (platform)"
72
+ },
73
+ {
74
+ "soname": "libz.so",
75
+ "provider": "Android platform (NDK stable ABI)"
76
+ }
77
+ ],
78
+ "typelibSourceAbi": "arm64-v8a",
79
+ "typelibDivergence": [],
80
+ "typelibs": [],
81
+ "aar": {
82
+ "bytes": 13313098,
83
+ "sha256": "15c6217ff5e47ab6d9f06d37e1366fb844864fbb073304754f17c5c836dc2abd"
84
+ }
85
+ }
@@ -0,0 +1,125 @@
1
+ // SPDX-License-Identifier: MIT
2
+ // Applied by NativeScript into the app's gradle build, from this directory — the same
3
+ // directory it scans for `**/*.aar` (see @nativescript/android's app/build.gradle, where
4
+ // `$rootDir/${dep.directory}/platforms/android` supplies both the AAR list and this file).
5
+ //
6
+ // THE ONLY THING THIS DOES IS FAIL LOUDLY. The AAR beside it is the payload, it is
7
+ // gitignored, and it is built by `scripts/build-gi-runtime-android-tls.mjs` against an Android
8
+ // GObject-Introspection prefix. In a fresh checkout — a locally linked worktree, a CI job
9
+ // that did not run the bundle build — it is simply ABSENT, and NativeScript's `**/*.aar`
10
+ // scan then finds nothing and says nothing: the app builds, installs, starts, and dies in
11
+ // `dlopen` the first time anything calls `requireGi`, with a message about
12
+ // `libnode_gi.so` and no hint that a build step was skipped hours earlier.
13
+ //
14
+ // So the absence is turned into a gradle failure that names the command to run. This file
15
+ // is the one thing in `platforms/` that is COMMITTED, for exactly that reason — a guard
16
+ // that ships with the payload is a guard that is missing whenever it is needed.
17
+ //
18
+ // A SECOND failure this turns into a gradle error is an @nativescript/android too old to
19
+ // have Node-API: 9.1.0-alpha.6's libNativeScript.so exports ZERO `napi_*` symbols, 9.1.1
20
+ // exports 145. libnode_gi.so links against them, so on the older runtime the APK builds,
21
+ // installs and starts, and dies in `dlopen` with `cannot locate symbol
22
+ // napi_create_type_error` — a message that names neither NativeScript nor a version, and
23
+ // that cost a day's bisection in Learn6502. The floor is declared as this package's
24
+ // peerDependency so npm warns at install time; the warning scrolls past, this does not.
25
+ //
26
+ // `buildscript.sourceFile` is this script's own path: `projectDir` here is the APP's, not
27
+ // the plugin's, and hardcoding a `node_modules` path would break under `file:` links,
28
+ // pnpm's store and a gjsify worktree alike.
29
+ def gjsifyGiTlsDir = buildscript.sourceFile.parentFile
30
+ def gjsifyGiTlsAar = new File(gjsifyGiTlsDir, 'gi-runtime-android-tls.aar')
31
+ def gjsifyGiTlsRoot = gjsifyGiTlsDir.parentFile.parentFile
32
+
33
+ if (!gjsifyGiTlsAar.exists()) {
34
+ throw new GradleException("""
35
+ @gjsify/gi-runtime-android-tls has no payload: ${gjsifyGiTlsAar} does not exist.
36
+
37
+ This package carries glib-networking's OpenSSL GIO module and OpenSSL as ONE AAR on top of
38
+ @gjsify/gi-runtime-android, and that AAR is built rather than committed. Without it the APK
39
+ would hold the core but no TLS backend, and every https:// request would fail at runtime with
40
+ "TLS support is not available", so the build stops here instead.
41
+
42
+ Build it in the gjsify checkout (the core's addon first, see the core's README):
43
+
44
+ node packages/node-gi/gi-runtime-android-tls/scripts/build-gi-runtime-android-tls.mjs \\
45
+ --ndk <ndk> --gi-sysroot <prefix> --node-gi-lib <libdir>
46
+
47
+ The script prints its options with --help; packages/node-gi/gi-runtime-android/README.md
48
+ has a worked invocation. An installed npm tarball always carries the AAR — this failure can
49
+ only happen against a source checkout.
50
+ """)
51
+ }
52
+
53
+ // The floor is READ from this package's own `peerDependencies`, not written here: package.json
54
+ // is the only file that reaches an installed tarball AND carries the number (`files` ships
55
+ // `index.js`, `index.d.ts` and `platforms/` — not `build-inputs.json`, which is where the
56
+ // version is maintained and which a test holds equal to this range).
57
+ def gjsifyOwnManifest = new File(gjsifyGiTlsRoot, 'package.json')
58
+ def gjsifyNsFloor = null
59
+ if (gjsifyOwnManifest.exists()) {
60
+ def declared = new groovy.json.JsonSlurper()
61
+ .parseText(gjsifyOwnManifest.getText('UTF-8'))
62
+ ?.peerDependencies?.get('@nativescript/android')
63
+ if (declared) gjsifyNsFloor = declared.replaceFirst(/^[^0-9]+/, '')
64
+ }
65
+
66
+ // `rootDir` is the GENERATED `platforms/android` project; two levels up is the app root that
67
+ // holds `node_modules` (the same path `settings.gradle` calls USER_PROJECT_ROOT). The app's
68
+ // resolution is the one that matters — the runtime AAR in `libs/runtime-libs` came from it —
69
+ // so it is searched first, and a walk up from the plugin covers pnpm's nesting after that.
70
+ def gjsifyFindNsManifest = { File from ->
71
+ for (File dir = from; dir != null; dir = dir.parentFile) {
72
+ def candidate = new File(dir, 'node_modules/@nativescript/android/package.json')
73
+ if (candidate.exists()) return candidate
74
+ }
75
+ return null
76
+ }
77
+ def gjsifyNsManifest = gjsifyFindNsManifest(new File(rootDir, '../..').canonicalFile)
78
+ if (gjsifyNsManifest == null) gjsifyNsManifest = gjsifyFindNsManifest(gjsifyGiTlsRoot)
79
+
80
+ // Prereleases sort BELOW their own release, which is the whole point: the runtime that broke
81
+ // Learn6502 was 9.1.0-alpha.6, and a floor that reads it as "9.1.0, close enough" catches
82
+ // nothing.
83
+ def gjsifyVersionBelow = { String found, String floor ->
84
+ def parse = { String version ->
85
+ def halves = version.split('-', 2)
86
+ def numbers = halves[0].split(/\./).collect { it.isInteger() ? it.toInteger() : 0 }
87
+ while (numbers.size() < 3) numbers << 0
88
+ [numbers, halves.size() > 1]
89
+ }
90
+ def (foundNumbers, foundPre) = parse(found)
91
+ def (floorNumbers, floorPre) = parse(floor)
92
+ for (int i = 0; i < 3; i++) {
93
+ if (foundNumbers[i] != floorNumbers[i]) return foundNumbers[i] < floorNumbers[i]
94
+ }
95
+ return foundPre && !floorPre
96
+ }
97
+
98
+ // Saying "not checked" out loud is the point of the two quiet branches: a guard that fails to
99
+ // run looks exactly like a guard that passed.
100
+ if (gjsifyNsFloor == null) {
101
+ println("@gjsify/gi-runtime-android-tls: no @nativescript/android floor in ${gjsifyOwnManifest} — NOT checked.")
102
+ } else if (gjsifyNsManifest == null) {
103
+ println("@gjsify/gi-runtime-android-tls: found no installed @nativescript/android, so its version was NOT checked against the required >= ${gjsifyNsFloor}.")
104
+ } else {
105
+ def gjsifyNsVersion = new groovy.json.JsonSlurper()
106
+ .parseText(gjsifyNsManifest.getText('UTF-8'))?.version
107
+ if (gjsifyNsVersion == null) {
108
+ println("@gjsify/gi-runtime-android-tls: ${gjsifyNsManifest} declares no version, so the required >= ${gjsifyNsFloor} was NOT checked.")
109
+ } else if (gjsifyVersionBelow(gjsifyNsVersion, gjsifyNsFloor)) {
110
+ throw new GradleException("""
111
+ @nativescript/android ${gjsifyNsVersion} is too old for @gjsify/gi-runtime-android-tls, which needs >= ${gjsifyNsFloor}.
112
+ resolved from: ${gjsifyNsManifest}
113
+
114
+ libnode_gi.so calls Node-API, and NativeScript's libNativeScript.so is what provides it on
115
+ Android. Runtimes before ${gjsifyNsFloor} export no `napi_*` symbols at all, so this APK would build,
116
+ install and launch, and then abort in dlopen at the first requireGi with
117
+
118
+ cannot locate symbol "napi_create_type_error" referenced by "libnode_gi.so"
119
+
120
+ — a message that names neither NativeScript nor a version. Raise the dependency in the app:
121
+
122
+ npm install --save-dev @nativescript/android@^${gjsifyNsFloor}
123
+ """)
124
+ }
125
+ }