Repository navigation
Conversation
window is undefined in web worker contexts (DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, ServiceWorkerGlobalScope). globalThis resolves to the correct global object in all contexts: window on main thread, self in workers, global in Node.js. This fixes TypeError when using webcrypto APIs inside Squadron/isolate web workers.
window is undefined in web worker contexts (DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, ServiceWorkerGlobalScope). globalThis resolves to the correct global object in all contexts: window on main thread, self in workers, global in Node.js. This fixes TypeError when using webcrypto APIs inside Squadron/isolate web workers.
# Conflicts: # lib/src/crypto_subtle.dart
BoringSSL's AES code has paths that are statically unreachable on arm64, and the build treats warnings as errors. Upstream BoringSSL disables C4702 for MSVC for this reason (https://crbug.com/385161043). Verified on Windows 11 arm64: the package test suite passes.
BoringSSL guards third_party/fiat/asm/*.S with __APPLE__ || __ELF__, and p256_64.h and curve25519 call them on any non-Windows x86_64 with GCC or Clang. The source generator assigned them only to linux_x86_64, so a macOS x64 build failed with undefined _webcrypto_fiat_p256_adx_mul and _webcrypto_fiat_p256_adx_sqr.
The hook downloads the library from a GitHub release when native_artifacts/prebuilt.json matches the sources. User define native_build: auto (default) | download | source. Otherwise it builds from source as before. The local cache key is now the native_prebuilt source key plus the toolchain (D4). .github/workflows/native_release.yml builds all 12 targets on fixed runners, releases them, and pushes native-manifest/<tag>. .gitattributes keeps LF line endings so the source key is equal on Windows.
…publish The source key counts untracked files, so build output and key listings now go to RUNNER_TEMP, and each build checks the work tree is clean. Follows the Telosnex workflow conventions: run-name, default bash shell, exact-SHA shallow checkout, owner gate on the publishing job.
Each bundled native library's notice is a separate license in LICENSE, separated by 80 '-' as Flutter's license collector expects, so apps show them. native_prebuilt 59c965b excludes LICENSE from the source key.
The native files do not change. Telosnex can then drop its native_prebuilt dependency override.
Pinned sources, defaults.json and host_toolchain. The app overrides native_prebuilt to this commit; with every package on it, the override goes. The source key changes, so this needs a new release.
- kiln ^0.1.1 from pub.dev instead of git native_prebuilt. - .github/workflows/kiln_release.yml and kiln_check.yml call Telosnex/telosnex_ci_tools v0.1.1. tool/kiln/prepare.dart installs NASM for Windows. - doc/ leaves source_excludes.txt: kiln excludes it by default.
Move to kiln and the shared kiln release workflow
…art on the ffigen 23 visitor API (output unchanged)
Telosnex does not support Intel Macs. The job failed more often than any other (slow, contended macos-15-intel runners), and the ARM64 job still builds the app.
CI: integration tests on arm64 Android in a container
…ork of A daily check: alerts once the oldest commit of google/webcrypto.dart not merged here is a week old. The pin is the last upstream commit merged; update it with each merge.
Conflicts: - .github/workflows/test.yml: kept deleted (the fork uses unit.yml and integration.yml). - tool/bump-boringssl-revision.sh: kept the fork's fix (b75ec44), which already assigns the fiat ADX assembly to apple_x86_64; upstream's google#448 does the same. sources.cmake lists each file once. - CHANGELOG.md: upstream 0.6.2, then the fork's changes as 0.6.3-wip.
* ci: Telosnex/telosnex_ci_tools v0.5.24 * ci(android): update demo build for Flutter 3.50
# Conflicts: # .github/workflows/roll_boringssl.yml # example/webcrypto_demo_flutter_app/android/app/build.gradle.kts # example/webcrypto_demo_flutter_app/android/gradle.properties
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Author
|
Opened against upstream by mistake; this is a fork synchronization. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge upstream through 0fa20bd. Retain the Telosnex BoringSSL roll workflow and existing Android AGP 9 configuration, which already addresses the upstream Android change. Update the upstream watch pin. Local analyzer and VM tests pass (Valgrind skipped on macOS).