diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 024e06006..000000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -/packages/pluggableWidgets/rich-text-web/src/assets/plugins/**/*.js \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index 3ee0a6489..7ea3a7213 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,6 +10,14 @@ module.exports = deepmerge(base, { "@typescript-eslint/ban-ts-ignore": "off", "no-unused-expressions": "off", "@typescript-eslint/no-unused-expressions": "error", - "no-undef": "off" + "no-undef": "off", + // ESLint 9: no-return-await removed (disabled, no replacement since type-aware linting is off for performance) + "no-return-await": "off", + // Remove deprecated @typescript-eslint rules (already off in base, but silencing warnings) + "@typescript-eslint/camelcase": "off", + "@typescript-eslint/class-name-casing": "off", + "@typescript-eslint/no-object-literal-type-assertion": "off", + "react-hooks/exhaustive-deps": "off", + "@typescript-eslint/no-var-requires": "off" } }); diff --git a/.github/actions/archive-test-results/action.yaml b/.github/actions/archive-test-results/action.yaml index 4c4146091..b4ce5042a 100644 --- a/.github/actions/archive-test-results/action.yaml +++ b/.github/actions/archive-test-results/action.yaml @@ -12,12 +12,14 @@ inputs: required: false default: ${{ github.workspace }} +# `!cancelled()` rather than `always()` throughout: always() is exempt from cancellation, +# so cancelling a run still uploaded every artifact set. runs: using: composite steps: - name: Archive runtime logs uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7 - if: always() + if: ${{ !cancelled() }} with: name: ${{ inputs.platform }}-runtime-logs-${{ inputs.test-type }} path: log/*.log @@ -25,7 +27,7 @@ runs: - name: Archive test screenshots uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7 - if: always() + if: ${{ !cancelled() }} with: name: ${{ inputs.platform }}-screenshots-${{ inputs.test-type }} path: ${{ inputs.workspace-path }}/maestro/images/actual/${{ inputs.platform }}/**/*.png @@ -38,7 +40,7 @@ runs: # resolves the diff name against the baseline's own relative path. That nested location # was never matched by the screenshots glob above, so diffs were silently lost. Gather # any *_diff.png from wherever it landed into one flat dir for upload. - if: always() + if: ${{ !cancelled() }} shell: bash run: | dest="${{ inputs.workspace-path }}/maestro/images/diff/${{ inputs.platform }}" @@ -49,7 +51,7 @@ runs: - name: Archive screenshot diffs uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7 - if: always() + if: ${{ !cancelled() }} with: name: ${{ inputs.platform }}-diffs-${{ inputs.test-type }} path: ${{ inputs.workspace-path }}/maestro/images/diff/${{ inputs.platform }}/*.png @@ -57,18 +59,26 @@ runs: - name: Archive artifacts uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7 - if: always() + if: ${{ !cancelled() }} with: name: ${{ inputs.platform }}-artifacts-${{ inputs.test-type }} path: packages/pluggableWidgets/**/artifacts/ if-no-files-found: ignore + - name: Archive maestro debug output + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7 + if: ${{ !cancelled() }} + with: + name: ${{ inputs.platform }}-debug-${{ inputs.test-type }} + path: ${{ inputs.workspace-path }}/maestro/debug/** + if-no-files-found: ignore + # Per-flow videos are recorded for every flow but kept only for FAILED flows (passing # clips are deleted in helpers.sh to save storage), so on a fully-green shard this dir is # empty and the upload is a no-op (if-no-files-found: ignore). - name: Archive failure videos uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7 - if: always() + if: ${{ !cancelled() }} with: name: ${{ inputs.platform }}-videos-${{ inputs.test-type }} path: maestro/videos/*.mp4 diff --git a/.github/scripts/determine-widget-scope.sh b/.github/scripts/determine-widget-scope.sh index f8c126200..81d1363ea 100644 --- a/.github/scripts/determine-widget-scope.sh +++ b/.github/scripts/determine-widget-scope.sh @@ -27,6 +27,21 @@ to_json_array() { fi } +# Is $2 already present as a WHOLE word in the space-separated list $1? +# +# Must not use [[ $list =~ $widget ]]: that is an unanchored regex match, so a widget whose +# name is a substring of one already in the list is silently dropped. Two such pairs exist +# today — image-native ⊂ background-image-native and slider-native ⊂ range-slider-native — +# and `git diff --name-only` emits sorted paths, so the LONGER name always lands first and +# the shorter one is the one lost. A PR touching both built and tested only one of them. +# The name is also interpolated into the regex, where `-` and `.` are metacharacters. +contains_widget() { + case " $1 " in + *" $2 "*) return 0 ;; + *) return 1 ;; + esac +} + if [ "$event_name" == "pull_request" ]; then # Diff against the MERGE-BASE with the PR base branch so every commit in the PR is # considered, not just the latest. `before_commit` is the PR base SHA @@ -54,7 +69,7 @@ if [ "$event_name" == "pull_request" ]; then if [[ $file == packages/pluggableWidgets/* ]]; then widget=$(echo $file | cut -d'/' -f3) subdir=$(echo $file | cut -d'/' -f4) - if [[ ! $selected_workspaces =~ $widget ]]; then + if ! contains_widget "$selected_workspaces" "$widget"; then selected_workspaces="$selected_workspaces $widget" fi # A change confined to the widget's e2e/ folder (Maestro flows + screenshots) changes @@ -62,7 +77,7 @@ if [ "$event_name" == "pull_request" ]; then # still goes into selected_workspaces above (it gets TESTED), but it's kept out of the # BUILD scope; its .mpk comes from the test project's committed baseline, exactly like # every other not-rebuilt widget in a partial run. - if [[ "$subdir" != "e2e" ]] && [[ ! $build_workspaces =~ $widget ]]; then + if [[ "$subdir" != "e2e" ]] && ! contains_widget "$build_workspaces" "$widget"; then build_workspaces="$build_workspaces $widget" fi elif [[ $file == packages/jsActions/mobile-resources-native/* ]] || [[ $file == packages/jsActions/nanoflow-actions-native/* ]]; then @@ -116,11 +131,15 @@ if [ "$event_name" == "pull_request" ]; then fi else if [ -n "$input_workspace" ] && [ "$input_workspace" != "*-native" ] && [ "$input_workspace" != "js-actions" ]; then - # Specific widget(s) selected - selected_workspaces=$(echo "$input_workspace" | sed 's/,/ /g') + # Specific widget(s) selected. The dispatch dropdown is single-select, but a comma-separated + # list is accepted (and already split for `scope` below) — so build the JSON arrays from the + # SPLIT list. "[\"$input_workspace\"]" would emit ["a,b"]: one array entry that matches no + # workspace, so nothing builds and the test matrix spawns a single shard for a widget that + # does not exist. + selected_workspaces=$(echo "$input_workspace" | sed 's/,/ /g' | xargs) echo "scope=--all --include '${selected_workspaces}'" >> $GITHUB_OUTPUT - echo "widgets=[\"$input_workspace\"]" >> $GITHUB_OUTPUT - echo "widgets_to_test=[\"$input_workspace\"]" >> $GITHUB_OUTPUT + echo "widgets=$(to_json_array "$selected_workspaces")" >> $GITHUB_OUTPUT + echo "widgets_to_test=$(to_json_array "$selected_workspaces")" >> $GITHUB_OUTPUT echo "js_actions_changed=false" >> $GITHUB_OUTPUT echo "full_build=false" >> $GITHUB_OUTPUT elif [ "$input_workspace" == "js-actions" ]; then diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index ae890b8a3..b9ffb782f 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -4,11 +4,20 @@ on: push: branches: - main - - 'mx/release/**' + - 'mx/**' pull_request: branches: - main - - 'mx/release/**' + - 'mx/**' + +# Supersede in-flight runs: a new push to the same PR/branch cancels the previous run +# instead of queueing beside it (this repo shares GitHub Free's 20-concurrent-job cap with +# NativePipeline, so stale runs directly delay the ones that matter). Only PR runs are +# cancelled — a push run on main/mx-* is the recorded result for that commit, so let it finish. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: name: "Build (${{ matrix.os }})" @@ -23,7 +32,7 @@ jobs: uses: softprops/diffset@d60d53313c1b61c12ccb0fc76cbde5a14ae5d330 # v3 if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository with: - base: main + base: mx/11.12.x global_files: | !{packages/**/*,configs/e2e/*.json,scripts/**/*,data/**/*} env: @@ -32,7 +41,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - - name: "Fetching main to compare" + - name: "Fetching base branch to compare" if: github.event_name == 'pull_request' && steps.files.outputs.global_files == '' run: git fetch --no-tags --prune --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }} - name: "Defining node version" @@ -60,6 +69,10 @@ jobs: - name: "Building internal utilities" run: pnpm run build:internal-utils - name: "Running build for development" - run: pnpm -r --filter='!native-widgets' --filter=$(if [ "${{ steps.files.outputs.global_files }}" = "" ] && ${{ github.event_name == 'pull_request' }}; then echo '...[origin/main]'; else echo '**'; fi) run build + run: pnpm -r --filter='!native-widgets' --filter=$(if [ "${{ steps.files.outputs.global_files }}" = "" ] && ${{ github.event_name == 'pull_request' }}; then echo '...[origin/mx/11.12.x]'; else echo '**'; fi) run build env: NODE_OPTIONS: --max_old_space_size=8192 + - name: "Validating manifest format" + run: pnpm run validate-manifest-format + - name: "Validating native dependencies" + run: pnpm run validate-native-dependencies diff --git a/.github/workflows/BuildMpk.yml b/.github/workflows/BuildMpk.yml index 2447295a0..b4c5118de 100644 --- a/.github/workflows/BuildMpk.yml +++ b/.github/workflows/BuildMpk.yml @@ -24,6 +24,9 @@ jobs: publish_release: name: "Build MPK" runs-on: ubuntu-latest + permissions: + contents: read + packages: read steps: - name: "Checking-out code" @@ -49,6 +52,12 @@ jobs: echo "VERSION=${NEW_VER}" >> "$GITHUB_OUTPUT" - name: "Building native widgets and js actions" run: pnpm -r run release + - name: "Login to GitHub Container Registry" + uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: "Updating Native Mobile Resources project" run: pnpm run build-mpk env: diff --git a/.github/workflows/MarketplaceRelease.yml b/.github/workflows/MarketplaceRelease.yml index ed3360bb1..a55f8854e 100644 --- a/.github/workflows/MarketplaceRelease.yml +++ b/.github/workflows/MarketplaceRelease.yml @@ -47,6 +47,7 @@ jobs: GH_PAT: ${{ secrets.GH_PAT }} TAG: ${{ steps.variables.outputs.tag }} - name: "Check changes and publish package ${{ steps.variables.outputs.tag }}" + id: publish run: pnpm --filter=${{ steps.scope.outputs._0 }} run release:marketplace env: OPENID_URL: ${{ secrets.OPENID_URL }} @@ -54,7 +55,15 @@ jobs: CPAPI_PASS_PROD: ${{ secrets.CPAPI_PASS_PROD }} TAG: ${{ steps.variables.outputs.tag }} MENDIX_PAT_TOKEN: ${{ secrets.MENDIX_PAT_TOKEN }} - - name: "Send slack msg on failure" + - name: "Send slack notification on verification failure" + if: ${{ steps.publish.outputs.verification_failed == 'true' }} + uses: ./.github/actions/slack-notification + with: + channel-id: ${{ secrets.SLACK_CHANNEL_ID }} + message: | + :warning: *${{ steps.scope.outputs._0 }}* v${{ steps.scope.outputs._1 }} — published successfully but verification step failed. Please check manually: <${{ steps.publish.outputs.marketplace_url }}|Marketplace> · + bot-token: ${{ secrets.SLACK_BOT_TOKEN }} + - name: "Send slack msg on publish failure" if: ${{ failure() }} uses: ./.github/actions/slack-notification with: diff --git a/.github/workflows/NativePipeline.yml b/.github/workflows/NativePipeline.yml index 8db9e1101..637ded993 100644 --- a/.github/workflows/NativePipeline.yml +++ b/.github/workflows/NativePipeline.yml @@ -85,6 +85,7 @@ on: pull_request: branches: - main + - 'mx/**' # Surface capture mode in the run title (workflow_dispatch inputs aren't shown in the UI), # otherwise fall back to the provided run_name / default. inputs.update_baselines is the @@ -104,7 +105,7 @@ env: # Pin the test project (mendix/Native-Mobile-Resources) to a SHA for reproducibility instead # of tracking a moving `main`. Single source of truth — bump deliberately. The repo publishes # no tags, so a commit SHA is the only stable ref. Override per run via the dispatch input. - NATIVE_MOBILE_RESOURCES_REF: ${{ github.event.inputs.test_project_ref || 'f0e7c2278578022cc742f82a087e6c4fff2f7159' }} + NATIVE_MOBILE_RESOURCES_REF: ${{ github.event.inputs.test_project_ref || '3a712b57baa1215413df11c2fc896595374a0766' }} permissions: packages: write jobs: @@ -273,7 +274,28 @@ jobs: echo "Nothing to build." fi - name: "Unit test" - run: pnpm -r --filter="${{ needs.scope.outputs.scope }}" run test + # One --filter per workspace, exactly like "Build resources" above. Passing the whole + # `scope` string as a single filter (--filter="--all --include 'a b'") makes pnpm treat + # that entire string as ONE workspace pattern: it matches nothing, prints "No projects + # matched the filters" and exits 0 — so the unit tests silently never ran. + # + # Tests run for widgets_to_test, not `widgets`: a widget whose only change is under e2e/ + # is deliberately not rebuilt but should still have its unit tests run. + run: | + filters=() + if [ "${{ needs.scope.outputs.js_actions_changed }}" = "true" ]; then + filters+=(--filter=mobile-resources-native --filter=nanoflow-actions-native) + fi + while read -r w; do + [ -n "$w" ] && filters+=(--filter="$w") + done < <(echo '${{ needs.scope.outputs.widgets_to_test }}' | jq -r '.[]') + + if [ ${#filters[@]} -eq 0 ]; then + echo "No workspaces in scope — nothing to unit test." + exit 0 + fi + echo "Unit testing: ${filters[*]}" + pnpm -r "${filters[@]}" run test - name: "Save built resources (dist) cache" # Only after a full build (every widget built), so a partial build never populates the # shared cache with an incomplete dist set under a key a later full build could hit. @@ -349,12 +371,61 @@ jobs: - name: "Overlay built widget mpks" if: ${{ github.event.inputs.workspace != 'js-actions' }} shell: bash + # Located by `find` rather than a fixed-depth glob: upload-artifact strips the least-common + # ancestor of the paths it is given, so the depth here follows whatever else is in the + # artifact. Adding resources-manifest.txt at the repo root moved that ancestor from + # packages/ to the root, every path gained a packages/ prefix, and the old + # 'resources/pluggableWidgets/**' glob silently stopped matching — so no built mpk was + # installed and the e2e suite tested the baseline project's widgets instead. + # + # And it is fatal rather than silent: a widget that was built but not installed makes the + # e2e run test something other than the commit under test, which is worse than not running. run: | - if compgen -G 'resources/pluggableWidgets/**/dist/*/*.mpk' > /dev/null; then - for oldPath in resources/pluggableWidgets/**/dist/*/*.mpk; do - newPath="Native-Mobile-Resources-main/widgets/$(basename "$oldPath")" - mv -f "$oldPath" "$newPath" - done + set -uo pipefail + + # A widget's dist/ can hold MORE THAN ONE version dir (e.g. image-native ships + # dist/3.1.1 and dist/3.1.2 after a version bump, since the widget build does not clear + # dist/ the way the jsActions rollup does). Every version emits an identically-named + # .mpk, so installing them in `find` order let an arbitrary — in practice the OLDEST — + # build win and the e2e suite silently tested stale widget code. + # + # Deduplicate on the mpk basename, keeping the highest version dir per widget: key on + # the filename, sort by the parent dir with -V (version sort, so 3.1.10 > 3.1.2), and + # keep the last of each group. + find resources -type f -path '*/dist/*/*.mpk' \ + | awk -F/ '{ print $NF "\t" $(NF-1) "\t" $0 }' \ + | sort -t"$(printf '\t')" -k1,1 -k2,2V \ + | awk -F'\t' '{ best[$1] = $3 } END { for (n in best) print best[n] }' \ + | sort > /tmp/mpks.txt + + found=0 + while IFS= read -r oldPath; do + [ -n "$oldPath" ] || continue + found=$((found + 1)) + echo "installing $(basename "$oldPath") (from ${oldPath#resources/})" + mv -f "$oldPath" "Native-Mobile-Resources-main/widgets/$(basename "$oldPath")" + done < /tmp/mpks.txt + + # The scope this job was given, read from the manifest rather than needs.scope: `project` + # does not depend on `scope`, so its outputs are not visible here. Compared as a string + # rather than parsed as JSON: the manifest line is written by echoing an interpolated + # expression, and the shell strips the inner quotes on the way in, so it reads + # [a, b] rather than ["a","b"]. + built=$(sed -n 's/^built widgets: //p' resources/resources-manifest.txt) + echo "mpks installed: ${found}; widgets in scope: ${built:-unknown}" + + # Count the widgets the resources job says it built, and require an .mpk for EVERY one. + # Checking only `found -eq 0` passed a multi-widget run in which just one widget's mpk + # made it through — the rest silently tested the baseline project's stale build, which + # is the same class of failure the zero-check exists to prevent. + expected=$(printf '%s' "$built" | tr -d '[]' | tr ',' '\n' | sed 's/^ *//; s/ *$//' | grep -c . || true) + if [ "${expected:-0}" -gt 0 ] && [ "$found" -lt "$expected" ]; then + echo "::error::Expected ${expected} built widget mpk(s) (${built}) but installed ${found} — the test project would run stale widgets." + echo "--- mpks found under resources/ ---" + cat /tmp/mpks.txt + echo "--- all files under resources/ ---" + find resources -type f | head -50 + exit 1 fi - name: "Register widgets in the test project" # Run unconditionally: update-widgets must sync the project's widget definitions with the @@ -363,17 +434,31 @@ jobs: # then skip it and leave stale Atlas widget defs for the portable-app build. shell: bash run: mx update-widgets --loose-version-check Native-Mobile-Resources-main/NativeComponentsTestProject.mpr + # Same layout-independence as the mpk overlay above: locate the dist dir rather than assume + # its depth in the artifact. Each guard also checks its OWN source dir — nanoflow-actions + # previously tested mobile-resources-native, so it moved either both or neither. + # + # `cp -R /.` rather than `mv /*`: the destination in the test project already + # ships a populated node_modules/, and `mv` refuses to rename a directory over a non-empty + # one ("Directory not empty") instead of merging into it. cp recurses and merges, so the + # built files win per-file while packages the build treats as external (and therefore does + # not collect into dist/node_modules) survive in the project. The trailing /. copies the + # directory's contents including dotfiles, which /* would miss. - name: "Move mobile-resources" shell: bash run: | - if compgen -G 'resources/jsActions/mobile-resources-native/*' > /dev/null; then - mv -f resources/jsActions/mobile-resources-native/* Native-Mobile-Resources-main/javascriptsource/nativemobileresources/actions/ + src=$(find resources -type d -path '*/mobile-resources-native/dist' | head -1) + if [ -n "$src" ]; then + echo "installing mobile-resources from $src" + cp -Rf "$src"/. Native-Mobile-Resources-main/javascriptsource/nativemobileresources/actions/ fi - name: "Move nanoflow-actions" shell: bash run: | - if compgen -G 'resources/jsActions/mobile-resources-native/*' > /dev/null; then - mv -f resources/jsActions/nanoflow-actions-native/* Native-Mobile-Resources-main/javascriptsource/nanoflowcommons/actions/ + src=$(find resources -type d -path '*/nanoflow-actions-native/dist' | head -1) + if [ -n "$src" ]; then + echo "installing nanoflow-actions from $src" + cp -Rf "$src"/. Native-Mobile-Resources-main/javascriptsource/nanoflowcommons/actions/ fi - name: "Build portable app package (self-contained runtime)" # Run this BEFORE the native-packager deploy: portable-app-package re-prepares and @@ -417,7 +502,7 @@ jobs: runs-on: ubuntu-26.04 # Skip this job if we're using artifacts from a specific run; the native bundles now come # from the project job (deploy + native-packager), so gate on project success. - if: ${{ github.event.inputs.LOCAL_TEST_ARTIFACT_RUN_ID == '' && always() && (needs.project.result == 'success') }} + if: ${{ github.event.inputs.LOCAL_TEST_ARTIFACT_RUN_ID == '' && !cancelled() && (needs.project.result == 'success') }} steps: - name: Debug branch value run: echo "Using branch ${{ needs.determine-nt-version.outputs.nt_branch }}" @@ -449,20 +534,89 @@ jobs: with: name: android-bundle path: bundles/android + # Only the JS bundle can be swapped into a cached APK: aapt2 rewrites the artifact's res/ + # density qualifiers into resources.arsc, so a resource change needs a full rebuild. + - name: "Resolve Android APK cache inputs" + shell: bash + run: | + set -euo pipefail + NT_SHA=$(git -C native-template rev-parse HEAD) + echo "NT_SHA=$NT_SHA" >> "$GITHUB_ENV" + SDK="${ANDROID_HOME:-${ANDROID_SDK_ROOT:-/usr/local/lib/android/sdk}}" + BT_DIR=$(ls -1d "$SDK"/build-tools/* 2>/dev/null | sort -V | tail -1) + if [ -z "${BT_DIR:-}" ]; then + echo "::error::No Android build-tools found under $SDK; cannot align/sign a swapped APK." + exit 1 + fi + echo "BUILD_TOOLS_DIR=$BT_DIR" >> "$GITHUB_ENV" + echo "BUILD_TOOLS_ID=$(basename "$BT_DIR")" >> "$GITHUB_ENV" + echo "native-template $NT_SHA, build-tools $(basename "$BT_DIR")" + - name: "Restore built Android APK" + id: android-apk-cache + uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 + with: + path: android-apk-cache + # No restore-keys: a partial-input change must rebuild. gradle autolinks from + # native_dependencies.json, so it belongs in the key. + key: android-apk-v1-${{ runner.os }}-${{ env.BUILD_TOOLS_ID }}-${{ env.NT_SHA }}-${{ hashFiles('native-template/package-lock.json', 'native-widgets/configs/e2e/native_dependencies.json', 'native-widgets/configs/e2e/config.json', 'native-widgets/configs/e2e/google-services.json', 'native-widgets/scripts/test/add-native-dependencies.js') }} + - name: "Verify restored Android APK" + shell: bash + run: | + set -euo pipefail + cached=false + apk="android-apk-cache/app-appstore-debug.apk" + test_apk="android-apk-cache/app-appstore-debug-androidTest.apk" + if [ "${{ steps.android-apk-cache.outputs.cache-hit }}" = "true" ] && [ -f "$apk" ]; then + if ! unzip -l "$apk" | grep -q 'assets/index.android.bundle$'; then + echo "::warning::APK cache hit but no assets/index.android.bundle inside; rebuilding." + elif [ ! -f "$test_apk" ]; then + echo "::warning::APK cache hit but the androidTest APK is missing; rebuilding." + else + # aapt2's -v4 density suffix means paths differ, so compare by CONTENT. + stale="" + while IFS= read -r f; do + rel=${f#bundles/android/} + name=$(basename "$f") + entry=$(unzip -l "$apk" | awk '{print $4}' \ + | grep -E "^res/$(dirname "$rel" | sed 's|res/||')(-v[0-9]+)?/$name$" | head -1 || true) + if [ -z "$entry" ]; then stale="$stale $rel(absent)"; continue; fi + if ! cmp -s <(unzip -p "$apk" "$entry") "$f"; then stale="$stale $rel"; fi + done < <(find bundles/android/res -type f 2>/dev/null) + if [ -n "$stale" ]; then + echo "::warning::Bundle resources differ from the cached APK (${stale# }); rebuilding rather than swapping only the JS bundle." + else + cached=true + echo "APK_PATH=$apk" >> "$GITHUB_ENV" + echo "TEST_APK_PATH=$test_apk" >> "$GITHUB_ENV" + echo "Reusing cached APK: $apk" + fi + fi + else + echo "No usable Android APK cache; building." + fi + echo "ANDROID_APK_CACHED=$cached" >> "$GITHUB_ENV" - name: "Set up Node" + if: env.ANDROID_APK_CACHED != 'true' uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version-file: native-template/.nvmrc cache: npm cache-dependency-path: native-template/package-lock.json - name: "Cache Android Build" + if: env.ANDROID_APK_CACHED != 'true' uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 with: - path: native-template/android/app/build + path: | + native-template/android/app/build + !native-template/android/app/build/outputs + !native-template/android/app/build/intermediates + !native-template/android/app/build/tmp + !native-template/android/app/build/reports key: ${{ runner.os }}-android-build-${{ hashFiles('native-template/android/app/src/**/*.java', 'native-template/android/app/src/**/*.kt', 'native-template/android/app/build.gradle') }} restore-keys: | ${{ runner.os }}-android-build- - name: "Copy files to the right location" + if: env.ANDROID_APK_CACHED != 'true' run: | # native-packager output is pre-split: bundle/android/{assets/index.android.bundle, res/...} # maps directly onto app/src/main/{assets,res} (per the official manual-build doc). @@ -472,9 +626,11 @@ jobs: mv native-widgets/configs/e2e/google-services.json native-template/android/app node native-widgets/scripts/test/add-native-dependencies.js - name: "Install dependencies" + if: env.ANDROID_APK_CACHED != 'true' working-directory: native-template run: npm i - name: "Setup JDK " + if: env.ANDROID_APK_CACHED != 'true' uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #v5.2.0 with: java-version: 21 @@ -487,13 +643,13 @@ jobs: # — unlike shell $VARs.) If detection failed, these no-op and gradle resolves it. - name: "Cache Android NDK" id: cache-ndk - if: env.ANDROID_NDK_VERSION != '' + if: env.ANDROID_NDK_VERSION != '' && env.ANDROID_APK_CACHED != 'true' uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 with: path: /usr/local/lib/android/sdk/ndk/${{ env.ANDROID_NDK_VERSION }} key: ${{ runner.os }}-android-ndk-${{ env.ANDROID_NDK_VERSION }} - name: "Install Android NDK" - if: env.ANDROID_NDK_VERSION != '' && steps.cache-ndk.outputs.cache-hit != 'true' + if: env.ANDROID_NDK_VERSION != '' && env.ANDROID_APK_CACHED != 'true' && steps.cache-ndk.outputs.cache-hit != 'true' shell: bash run: | set -euo pipefail @@ -511,6 +667,7 @@ jobs: "$SDKMANAGER" "ndk;${ANDROID_NDK_VERSION}" - name: "Build Android app" + if: env.ANDROID_APK_CACHED != 'true' working-directory: native-template/android # The CI emulator is x86_64, so only compile that ABI's native code instead of all # four (arm64-v8a, armeabi-v7a, x86, x86_64) — cuts the C/C++ build by ~75%. @@ -521,20 +678,84 @@ jobs: # reused instead of recompiled. Safe: a cache miss just rebuilds. run: ./gradlew assembleAppstoreDebug assembleAppstoreDebugAndroidTest -PreactNativeArchitectures=x86_64 --build-cache - name: "List APK files" + if: env.ANDROID_APK_CACHED != 'true' run: | echo "Listing APK files in the output directory:" ls -R native-template/android/app/build/outputs/apk/ + - name: "Stage the built APKs for caching" + if: env.ANDROID_APK_CACHED != 'true' + shell: bash + run: | + set -euo pipefail + out=native-template/android/app/build/outputs/apk + mkdir -p android-apk-cache + cp "$out/appstore/debug/app-appstore-debug.apk" android-apk-cache/ + cp "$out/androidTest/appstore/debug/app-appstore-debug-androidTest.apk" android-apk-cache/ + ls -l android-apk-cache + - name: "Save built Android APK" + if: env.ANDROID_APK_CACHED != 'true' + uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 + with: + path: android-apk-cache + key: ${{ steps.android-apk-cache.outputs.cache-primary-key }} + + - name: "Swap the JS bundle into the cached APK" + # -0 (store) is required — the bundle is Hermes bytecode mmapped out of the APK and + # `zip -u` would deflate it. Re-signing is required because the edit voids the signature. + if: env.ANDROID_APK_CACHED == 'true' + shell: bash + run: | + set -euo pipefail + test -f bundles/android/assets/index.android.bundle + KS="$HOME/.android/debug.keystore" + if [ ! -f "$KS" ]; then + mkdir -p "$HOME/.android" + keytool -genkeypair -keystore "$KS" -storepass android -keypass android \ + -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10950 \ + -dname "C=US, O=Android, CN=Android Debug" + fi + before=$(unzip -v "$APK_PATH" | awk '/assets\/index.android.bundle$/ {print $2}') + rm -rf apk-swap && mkdir -p apk-swap/assets + cp bundles/android/assets/index.android.bundle apk-swap/assets/ + ( cd apk-swap && zip -q -X -0 -u "$OLDPWD/$APK_PATH" assets/index.android.bundle ) + "$BUILD_TOOLS_DIR/zipalign" -p -f 4 "$APK_PATH" apk-swap/aligned.apk + "$BUILD_TOOLS_DIR/apksigner" sign --ks "$KS" --ks-pass pass:android \ + --ks-key-alias androiddebugkey --key-pass pass:android apk-swap/aligned.apk + mv apk-swap/aligned.apk "$APK_PATH" + "$BUILD_TOOLS_DIR/apksigner" verify "$APK_PATH" + after=$(unzip -v "$APK_PATH" | awk '/assets\/index.android.bundle$/ {print $2}') + if [ "$after" != "Stored" ]; then + echo "::error::index.android.bundle is '$after', expected 'Stored' (was '$before'). Hermes bytecode must stay uncompressed." + exit 1 + fi + cmp <(unzip -p "$APK_PATH" assets/index.android.bundle) bundles/android/assets/index.android.bundle + echo "Swapped JS bundle into $APK_PATH (Stored, signature verified)" + - name: "Collect APKs for upload" + shell: bash + run: | + set -euo pipefail + mkdir -p apk-out/appstore/debug apk-out/androidTest/appstore/debug + if [ "$ANDROID_APK_CACHED" = "true" ]; then + cp "$APK_PATH" apk-out/appstore/debug/app-appstore-debug.apk + cp "$TEST_APK_PATH" apk-out/androidTest/appstore/debug/app-appstore-debug-androidTest.apk + else + out=native-template/android/app/build/outputs/apk + cp "$out/appstore/debug/app-appstore-debug.apk" apk-out/appstore/debug/ + cp "$out/androidTest/appstore/debug/app-appstore-debug-androidTest.apk" apk-out/androidTest/appstore/debug/ + fi + find apk-out -name '*.apk' -exec ls -l {} + - name: "Archive Android app" uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7 with: name: android-app - path: native-template/android/app/build/outputs/apk/**/*.apk + path: apk-out/**/*.apk + if-no-files-found: error ios-app: needs: [project, determine-nt-version] runs-on: macos-26 # Skip this job if we're using artifacts from a specific run; the native bundles now come # from the project job (deploy + native-packager), so gate on project success. - if: ${{ github.event.inputs.LOCAL_TEST_ARTIFACT_RUN_ID == '' && always() && (needs.project.result == 'success') }} + if: ${{ github.event.inputs.LOCAL_TEST_ARTIFACT_RUN_ID == '' && !cancelled() && (needs.project.result == 'success') }} steps: - name: "Check out Native Template for Native Components Test Project" uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -551,22 +772,60 @@ jobs: with: name: ios-bundle path: bundles/ios + # `Bundle` is a folder reference resolved at launch by getJSBundleFile(), not compiled in, + # so a widget-only change can reuse the cached .app with that folder swapped. + - name: "Resolve iOS app cache inputs" + shell: bash + run: | + set -euo pipefail + NT_SHA=$(git -C native-template rev-parse HEAD) + echo "NT_SHA=$NT_SHA" >> "$GITHUB_ENV" + echo "XCODE_ID=$(xcodebuild -version | tr '\n' '-' | tr -d ' ')" >> "$GITHUB_ENV" + echo "native-template $NT_SHA" + - name: "Restore built iOS app" + id: ios-app-cache + uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 + with: + path: native-template/ios/build/Build/Products + # No restore-keys: `pod install` regenerates Podfile.lock from native_dependencies.json, + # so the lock alone is not enough. + key: ios-app-v1-${{ runner.os }}-${{ env.XCODE_ID }}-${{ env.NT_SHA }}-${{ hashFiles('native-template/package-lock.json', 'native-template/ios/Podfile', 'native-template/ios/Podfile.lock', 'native-widgets/configs/e2e/native_dependencies.json', 'native-widgets/configs/e2e/config.json', 'native-widgets/scripts/test/add-native-dependencies.js') }} + - name: "Verify restored iOS app" + shell: bash + run: | + set -euo pipefail + cached=false + # Keep in sync with install_ios_app() in maestro/helpers/prepare_ios.sh. + app="native-template/ios/build/Build/Products/Debug-iphonesimulator/NativeTemplate.app" + if [ "${{ steps.ios-app-cache.outputs.cache-hit }}" = "true" ]; then + if [ ! -d "$app" ]; then + echo "::warning::iOS app cache hit but $app is missing; rebuilding." + find native-template/ios/build/Build/Products -maxdepth 2 -name '*.app' 2>/dev/null || true + else + js=$(find "$app" -name 'index.ios.bundle' 2>/dev/null | head -1 || true) + if [ -z "$js" ]; then + echo "::warning::iOS app cache hit but no index.ios.bundle inside $app; rebuilding." + else + cached=true + echo "APP_PATH=$app" >> "$GITHUB_ENV" + echo "APP_BUNDLE_DIR=$(dirname "$js")" >> "$GITHUB_ENV" + echo "Reusing cached app: $app (bundle at $(dirname "$js"))" + fi + fi + else + echo "No usable iOS app cache; building." + fi + echo "IOS_APP_CACHED=$cached" >> "$GITHUB_ENV" + - name: "Set up Node" + if: env.IOS_APP_CACHED != 'true' uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version-file: native-template/.nvmrc cache: npm cache-dependency-path: native-template/package-lock.json - - name: "Cache iOS Build" - # Persists the DerivedData root (`build/`) so unchanged products can be reused across - # runs; restore-keys falls back to the latest entry on a partial-input change. - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 - with: - path: native-template/ios/build - key: ${{ runner.os }}-ios-build-${{ hashFiles('native-template/ios/**/*.swift', 'native-template/ios/**/*.h', 'native-template/ios/Podfile.lock') }} - restore-keys: | - ${{ runner.os }}-ios-build- - name: "Copy files to the right location" + if: env.IOS_APP_CACHED != 'true' run: | # native-packager emits bundle/iOS/{index.ios.bundle, assets/...}; copy the lot into # ios/Bundle (per the official manual-build doc). @@ -575,10 +834,12 @@ jobs: mv native-widgets/configs/e2e/config.json native-template node native-widgets/scripts/test/add-native-dependencies.js - name: "Install Node dependencies" + if: env.IOS_APP_CACHED != 'true' working-directory: native-template run: npm i - name: "Setup Pods cache" + if: env.IOS_APP_CACHED != 'true' uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 with: # Also cache CocoaPods' own download cache so `pod install` is fast even when @@ -590,20 +851,44 @@ jobs: restore-keys: | ${{ runner.os }}-pods- - name: "Install Pod dependencies" + if: env.IOS_APP_CACHED != 'true' working-directory: native-template/ios run: pod install - name: "Build iOS app" + if: env.IOS_APP_CACHED != 'true' working-directory: native-template/ios # Build for the simulator's native arch (arm64 on Apple Silicon runners). # ONLY_ACTIVE_ARCH=YES already limits to the active arch; the old # VALID_ARCHS="i386 x86_64" forced dead/foreign archs and broke on macos-26. run: xcodebuild -workspace NativeTemplate.xcworkspace -scheme nativeTemplate -configuration Debug -sdk iphonesimulator -derivedDataPath build ONLY_ACTIVE_ARCH=YES + - name: "Save built iOS app" + if: env.IOS_APP_CACHED != 'true' + uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 + with: + path: native-template/ios/build/Build/Products + key: ${{ steps.ios-app-cache.outputs.cache-primary-key }} + + - name: "Swap the JS bundle into the cached app" + # _CodeSignature goes stale, which is fine: simulator apps are not signature verified. + if: env.IOS_APP_CACHED == 'true' + shell: bash + run: | + set -euo pipefail + rm -rf "$APP_BUNDLE_DIR" + mkdir -p "$APP_BUNDLE_DIR" + cp -R bundles/ios/. "$APP_BUNDLE_DIR"/ + test -f "$APP_BUNDLE_DIR/index.ios.bundle" + echo "Swapped bundle into $APP_PATH" + ls -l "$APP_BUNDLE_DIR" - name: "Archive iOS app" uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7 with: name: ios-app path: native-template/ios/build/Build/Products/**/*.app + # NOTE: no iOS counterpart to android-avd-cache — simslim's state is not persisted anywhere + # cacheable (see slim_simulator() in maestro/helpers/prepare_ios.sh), so each shard slims itself. + android-avd-cache: runs-on: ubuntu-26.04 # Warm a booted-emulator snapshot once and cache it, so the per-widget Android shards @@ -646,7 +931,7 @@ jobs: android-widget-tests: needs: [scope, mendix-version, project, android-app, android-avd-cache] # Run if widgets need testing (widgets_to_test is not empty) and project succeeds - if: ${{ needs.scope.outputs.widgets_to_test != '[]' && always() && needs.project.result == 'success' && (needs.android-app.result == 'success' || needs.android-app.result == 'skipped') }} + if: ${{ needs.scope.outputs.widgets_to_test != '[]' && !cancelled() && needs.project.result == 'success' && (needs.android-app.result == 'success' || needs.android-app.result == 'skipped') }} runs-on: ubuntu-26.04 # 30 min hard cap per widget shard. A healthy widget's flows run in ~30s each; the cap is a # backstop for genuinely wedged shards. Bumped 20→30 after a run where shards were cancelled @@ -730,10 +1015,10 @@ jobs: bash maestro/run_maestro_widget_tests.sh android "${{ matrix.widget }}" || [ "$UPDATE_BASELINES" = "true" ] - name: Archive test results - # always(): the test step exits non-zero on a failing shard, which would otherwise + # !cancelled(): the test step exits non-zero on a failing shard, which would otherwise # SKIP this step — i.e. we'd capture screenshots/logs/videos for green shards but NOT - # for the failing ones we actually need to debug. Run regardless of test outcome. - if: ${{ always() }} + # for the failing ones we actually need to debug. Unlike always(), a cancelled run stops. + if: ${{ !cancelled() }} uses: ./.github/actions/archive-test-results with: platform: android @@ -741,16 +1026,9 @@ jobs: ios-widget-tests: needs: [scope, mendix-version, project, ios-app] - # Run if widgets need testing (widgets_to_test is not empty) and project succeeds - if: ${{ needs.scope.outputs.widgets_to_test != '[]' && always() && needs.project.result == 'success' && (needs.ios-app.result == 'success' || needs.ios-app.result == 'skipped') }} + if: ${{ needs.scope.outputs.widgets_to_test != '[]' && !cancelled() && needs.project.result == 'success' && (needs.ios-app.result == 'success' || needs.ios-app.result == 'skipped') }} runs-on: macos-26 - # 30 min per widget shard, matching android-widget-tests. iOS needs the budget more than - # Android: sim cold-boot + Maestro driver startup + runtime-ready wait eat several minutes - # before any flow runs, so on a free macOS runner slow-but-healthy shards were getting - # truncated — at 20 min several shards (accordion, background-image, bottom-sheet, - # color-picker, safe-area-view) were cancelled mid-flow. If a shard still hits 30 the cause - # is real app instability, not the cap. - timeout-minutes: 30 + timeout-minutes: 40 strategy: max-parallel: 4 matrix: @@ -802,8 +1080,7 @@ jobs: bash maestro/run_maestro_widget_tests.sh ios "${{ matrix.widget }}" || [ "$UPDATE_BASELINES" = "true" ] - name: Archive test results - # always(): capture failure artifacts (the failing shard's test step exits non-zero). - if: ${{ always() }} + if: ${{ !cancelled() }} uses: ./.github/actions/archive-test-results with: platform: ios @@ -812,7 +1089,7 @@ jobs: android-js-tests: needs: [scope, mendix-version, project, android-app, android-avd-cache] # Run if JS actions changed and project succeeds and either android-app succeeds OR we're using custom artifacts (android-app was skipped) - if: ${{ needs.scope.outputs.js_actions_changed == 'true' && always() && needs.project.result == 'success' && (needs.android-app.result == 'success' || needs.android-app.result == 'skipped') }} + if: ${{ needs.scope.outputs.js_actions_changed == 'true' && !cancelled() && needs.project.result == 'success' && (needs.android-app.result == 'success' || needs.android-app.result == 'skipped') }} runs-on: ubuntu-26.04 timeout-minutes: 90 steps: @@ -882,8 +1159,7 @@ jobs: bash maestro/run_maestro_jsactions_tests.sh android || [ "$UPDATE_BASELINES" = "true" ] - name: Archive test results - # always(): capture failure artifacts (the failing shard's test step exits non-zero). - if: ${{ always() }} + if: ${{ !cancelled() }} uses: ./.github/actions/archive-test-results with: platform: android @@ -892,7 +1168,7 @@ jobs: ios-js-tests: needs: [scope, mendix-version, project, ios-app] # Run if JS actions changed and project succeeds and either ios-app succeeds OR we're using custom artifacts (ios-app was skipped) - if: ${{ needs.scope.outputs.js_actions_changed == 'true' && always() && needs.project.result == 'success' && (needs.ios-app.result == 'success' || needs.ios-app.result == 'skipped') }} + if: ${{ needs.scope.outputs.js_actions_changed == 'true' && !cancelled() && needs.project.result == 'success' && (needs.ios-app.result == 'success' || needs.ios-app.result == 'skipped') }} runs-on: macos-26 timeout-minutes: 90 steps: @@ -940,8 +1216,7 @@ jobs: bash maestro/run_maestro_jsactions_tests.sh ios || [ "$UPDATE_BASELINES" = "true" ] - name: Archive test results - # always(): capture failure artifacts (the failing shard's test step exits non-zero). - if: ${{ always() }} + if: ${{ !cancelled() }} uses: ./.github/actions/archive-test-results with: platform: ios @@ -953,9 +1228,7 @@ jobs: # sources after a successful merge, leaving just the combined artifacts. aggregate-test-results: needs: [android-widget-tests, ios-widget-tests, android-js-tests, ios-js-tests] - # Run even when shards fail/cancel — the failing shards are exactly the ones whose - # screenshots/logs we want to inspect. - if: ${{ always() }} + if: ${{ !cancelled() }} runs-on: ubuntu-26.04 # The workflow-level block grants only packages:write, so every other scope defaults to # none. This job needs contents:read (to check out the triage script) and actions:read diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index cd32f3bd5..6a471037d 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -2,9 +2,17 @@ name: Run release on: push: - branches: [main] + branches: [main, 'mx/11.12.x'] pull_request: - branches: [main] + branches: [main, 'mx/11.12.x'] + +# Supersede in-flight runs: a new push to the same PR/branch cancels the previous run +# instead of queueing beside it (this repo shares GitHub Free's 20-concurrent-job cap with +# NativePipeline, so stale runs directly delay the ones that matter). Only PR runs are +# cancelled — a push run on main/mx-* is the recorded result for that commit, so let it finish. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: test: @@ -20,7 +28,7 @@ jobs: uses: softprops/diffset@d60d53313c1b61c12ccb0fc76cbde5a14ae5d330 # v3 if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository with: - base: main + base: mx/11.12.x global_files: | !{packages/**/*,configs/e2e/*.json,scripts/**/*,data/**/*} env: @@ -29,7 +37,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - - name: "Fetching main to compare" + - name: "Fetching base branch to compare" if: github.event_name == 'pull_request' && steps.files.outputs.global_files == '' run: git fetch --no-tags --prune --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }} - name: "Defining environment variables" @@ -65,6 +73,6 @@ jobs: - name: "Building internal utilities" run: pnpm run build:internal-utils - name: "Running release for production" - run: pnpm -r --filter=$(if [ "${{ steps.files.outputs.global_files }}" = "" ] && ${{ github.event_name == 'pull_request' }}; then echo '...[origin/main]'; else echo '**'; fi) run release + run: pnpm -r --filter=$(if [ "${{ steps.files.outputs.global_files }}" = "" ] && ${{ github.event_name == 'pull_request' }}; then echo '...[origin/mx/11.12.x]'; else echo '**'; fi) run release env: NODE_OPTIONS: --max_old_space_size=8192 diff --git a/.github/workflows/ShaCheck.yml b/.github/workflows/ShaCheck.yml index 4c5ebbbf0..d701e4482 100644 --- a/.github/workflows/ShaCheck.yml +++ b/.github/workflows/ShaCheck.yml @@ -2,14 +2,22 @@ name: Ensure SHA pinned actions on: push: - branches: [main] + branches: [main, 'mx/11.12.x'] paths: - ".github/workflows/*.yml" pull_request: - branches: [main] + branches: [main, 'mx/11.12.x'] paths: - ".github/workflows/*.yml" +# Supersede in-flight runs: a new push to the same PR/branch cancels the previous run +# instead of queueing beside it (this repo shares GitHub Free's 20-concurrent-job cap with +# NativePipeline, so stale runs directly delay the ones that matter). Only PR runs are +# cancelled — a push run on main/mx-* is the recorded result for that commit, so let it finish. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: harden_security: name: Check SHA in GH Actions diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index 8bea28ed1..2313ffe84 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -2,9 +2,17 @@ name: Run unit tests on: push: - branches: [main] + branches: [main, 'mx/11.12.x'] pull_request: - branches: [main] + branches: [main, 'mx/11.12.x'] + +# Supersede in-flight runs: a new push to the same PR/branch cancels the previous run +# instead of queueing beside it (this repo shares GitHub Free's 20-concurrent-job cap with +# NativePipeline, so stale runs directly delay the ones that matter). Only PR runs are +# cancelled — a push run on main/mx-* is the recorded result for that commit, so let it finish. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: test: @@ -17,7 +25,7 @@ jobs: uses: softprops/diffset@d60d53313c1b61c12ccb0fc76cbde5a14ae5d330 # v3 if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository with: - base: main + base: mx/11.12.x global_files: | !{packages/**/*,configs/e2e/*.json,scripts/**/*,data/**/*} env: @@ -26,12 +34,12 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - - name: "Fetching main to compare" + - name: "Fetching base branch to compare" if: github.event_name == 'pull_request' && steps.files.outputs.global_files == '' run: git fetch --no-tags --prune --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }} - name: "Defining environment variables" id: variables - run: echo "arg=$(if [ "${{ steps.files.outputs.global_files }}" = "" ] && ${{ github.event_name == 'pull_request' }}; then echo '...[origin/main]'; else echo '**'; fi)" >> ${{ runner.os == 'Windows' && '$env:GITHUB_OUTPUT' || '$GITHUB_OUTPUT' }} + run: echo "arg=$(if [ "${{ steps.files.outputs.global_files }}" = "" ] && ${{ github.event_name == 'pull_request' }}; then echo '...[origin/mx/11.12.x]'; else echo '**'; fi)" >> ${{ runner.os == 'Windows' && '$env:GITHUB_OUTPUT' || '$GITHUB_OUTPUT' }} - name: "Defining node version" uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: diff --git a/.gitignore b/.gitignore index 8f32a1818..6f5a2bddb 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,12 @@ mendixProject **/tests/testProject **/pluggableWidgets/**/artifacts +# Per-flow e2e failure artifacts, produced into the workspace so CI can upload them +# (helpers.sh). Local runs leave them behind too; they are never committed. *.log above +# already covers maestro/debug/*/maestro.log, but not its screenshots or commands JSON. +maestro/videos +maestro/debug + .pnpm-debug.log* .pnpm-store .pnpmfile.cjs diff --git a/.husky/commit-msg b/.husky/commit-msg index 3b4299ef3..474570e59 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -2,3 +2,4 @@ . "$(dirname "$0")/_/husky.sh" npx --no -- commitlint --edit "$1" +pnpm run validate-native-dependencies "$1" diff --git a/configs/e2e/mendix-versions.json b/configs/e2e/mendix-versions.json index 0a6c74b78..2664f00d1 100644 --- a/configs/e2e/mendix-versions.json +++ b/configs/e2e/mendix-versions.json @@ -1,3 +1,3 @@ { - "latest": "11.11.0" + "latest": "11.12.5" } diff --git a/configs/e2e/native_dependencies.json b/configs/e2e/native_dependencies.json index a024e3337..d2ec18a7e 100644 --- a/configs/e2e/native_dependencies.json +++ b/configs/e2e/native_dependencies.json @@ -7,9 +7,12 @@ "react-native-linear-gradient": "2.8.3", "@react-native-community/netinfo": "11.5.2", "react-native-svg": "15.15.4", - "react-native-video": "6.19.2", + "react-native-video": "6.19.3", "@react-native-async-storage/async-storage": "2.2.0", - "react-native-vision-camera": "4.7.3", + "react-native-vision-camera": "5.2.3", + "react-native-vision-camera-barcode-scanner": "5.2.3", + "react-native-nitro-modules": "0.37.0", + "react-native-nitro-image": "0.15.2", "react-native-view-shot": "5.1.0", "react-native-blob-util": "0.24.7", "react-native-file-viewer-turbo": "0.7.4", @@ -17,5 +20,6 @@ "react-native-image-picker": "7.2.3", "react-native-permissions": "5.5.1", "react-native-webview": "13.16.1", - "@sbaiahmed1/react-native-biometrics": "0.15.0" + "@sbaiahmed1/react-native-biometrics": "0.15.0", + "react-native-sound": "0.13.0" } diff --git a/configs/jsactions/rollup-plugin-bigjs-import-replacer.mjs b/configs/jsactions/rollup-plugin-bigjs-import-replacer.mjs index 206a7bca6..22eb1166a 100644 --- a/configs/jsactions/rollup-plugin-bigjs-import-replacer.mjs +++ b/configs/jsactions/rollup-plugin-bigjs-import-replacer.mjs @@ -5,7 +5,11 @@ export function bigJsImportReplacer() { const [filename] = Object.keys(bundle); const fileInfo = bundle[filename]; - fileInfo.code = fileInfo.code.replace("import { Big } from 'big.js';", `import { Big } from "big.js";`); + // Keep the Big import (Studio Pro does not re-add it at runtime), normalized to Studio Pro's quote style + fileInfo.code = fileInfo.code.replace( + /^import\s*\{\s*Big\s*\}\s*from\s*['"]big\.js['"];?/m, + `import { Big } from "big.js";` + ); } }; } diff --git a/configs/jsactions/rollup-plugin-collect-dependencies.mjs b/configs/jsactions/rollup-plugin-collect-dependencies.mjs index 0a0ca59f2..b51714042 100644 --- a/configs/jsactions/rollup-plugin-collect-dependencies.mjs +++ b/configs/jsactions/rollup-plugin-collect-dependencies.mjs @@ -127,7 +127,14 @@ async function resolvePackage(target, sourceDir, optional = false) { } async function hasNativeCode(dir) { - return (await fg(["**/{android,ios}/*", "**/*.podspec"], { cwd: dir })).length > 0; + return (await fg( + ["**/{android,ios}/*", "**/*.podspec"], + { + cwd: dir, + ignore: ["**/example*/**", "**/__tests__/**", "**/docs/**", "**/.github/**"], + caseSensitiveMatch: false + } + )).length > 0; } async function getTransitiveDependencies(packagePath, isExternal) { @@ -187,7 +194,7 @@ export async function copyJsModule(moduleSourcePath, to) { // Skip certain directories if ( - relativePath.match(/[\\/](android|ios|windows|mac|jest|github|gradle|__.*__|docs|example.*)[\\/]/) + relativePath.match(/(^|[\\/])(android|ios|windows|mac|jest|\.github|gradle|__.*__|docs|example.*)([\\/]|$)/i) ) { return false; } diff --git a/configs/jsactions/rollup.config.mjs b/configs/jsactions/rollup.config.mjs index d8691fac1..94cc39bc7 100644 --- a/configs/jsactions/rollup.config.mjs +++ b/configs/jsactions/rollup.config.mjs @@ -34,7 +34,12 @@ export default async args => { types: ["mendix-client", "react-native"], allowSyntheticDefaultImports: true, compilerOptions: { - newLine: "CRLF" + newLine: "CRLF", + // `react-native-nitro-geolocation` ships no compiled JS; its entry points are `.tsx` + // (`main: "src/index"`, `browser: "src/index.web.tsx"`). The TS plugin therefore needs + // `jsx` set to parse those `.tsx` files, otherwise the build fails with + // `TS6142: Module ... was resolved to '.../src/index.tsx', but '--jsx' is not set`. + jsx: "react-native" } }); @@ -92,16 +97,6 @@ export default async args => { overwrite: true } ); - } else if (args.configProject === "nanoflowcommons") { - // `invariant` is being used silently by @react-native-community/geolocation; it is not listed as a dependency nor peerDependency. - // https://github.dev/react-native-geolocation/react-native-geolocation/blob/1786929f2be581da91082ff857c2393da5e597b3/js/implementation.native.js#L13 - await copyAsync( - dirname(require.resolve("invariant")), - join(outDir, "node_modules", "invariant"), - { - overwrite: true - } - ); } // this is helpful to copy the files and folders to a test project path for dev/testing purposes. @@ -143,6 +138,7 @@ export default async args => { const nativeExternal = [ /^mendix\//, + /^mendix-native(\/|$)/, /^react-native(\/|$)/, /^react-native-windows(\/|$)/, /^react-native-web(\/|$)/, diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 000000000..089556974 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,23 @@ +const { FlatCompat } = require("@eslint/eslintrc"); +const js = require("@eslint/js"); +const path = require("path"); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended +}); + +// Use FlatCompat to translate the legacy .eslintrc.js config to flat config +module.exports = [ + // First, load the ignore patterns (replaces .eslintignore) + { + ignores: [ + "**/node_modules/**", + "**/dist/**", + "**/build/**", + "packages/pluggableWidgets/rich-text-web/src/assets/plugins/**/*.js" + ] + }, + // Then extend from the legacy .eslintrc.js file + ...compat.extends(path.resolve(__dirname, ".eslintrc.js")) +]; \ No newline at end of file diff --git a/maestro/helpers/helpers.sh b/maestro/helpers/helpers.sh index d035668e1..66d20946e 100644 --- a/maestro/helpers/helpers.sh +++ b/maestro/helpers/helpers.sh @@ -10,7 +10,10 @@ RETRY_DELAY=10 # CI emulators/simulators are slower, but 5 min (300000) was the per-attempt multiplier that # amplified broken-build runs to ~25 min. 2 min is generous for the driver to start while # keeping the worst-case failure time bounded. -MAESTRO_DRIVER_STARTUP_TIMEOUT=120000 +# +# MUST be exported: Maestro reads it with System.getenv (LocalXCTestInstaller), not as a flow +# variable, so passing it via `--env` was silently ignored. +export MAESTRO_DRIVER_STARTUP_TIMEOUT=240000 # --- Per-flow video recording (BrowserStack-style debugging) ---------------------------- # We record a screen video around every flow, then KEEP it only if the flow FAILS and DELETE @@ -78,13 +81,149 @@ stop_recording() { REC_FILE="" } +# A wedged XCUITest driver escapes as UnknownFailure to main, so a flow-level `retry:` can never +# catch it. Bound the wall clock here, then reset the device and retry once. + +MAESTRO_FLOW_TIMEOUT="${MAESTRO_FLOW_TIMEOUT:-480}" + +# Outside maestro's 0-1 range and below the 128+N signal range. +MAESTRO_INFRA_EXIT=90 + +# Deliberately narrow: a real assertion failure prints "Assertion is false" and matches none. +MAESTRO_INFRA_PATTERNS='kAXError|UnknownFailure|Exception in thread "main"|IOSDriverTimeoutException|Failed to connect to 127\.0\.0\.1' + +# Maestro defaults this to ~/.maestro/tests//, outside the workspace, so it was +# never uploaded. +DEBUG_OUTPUT_DIR="${DEBUG_OUTPUT_DIR:-$PWD/maestro/debug}" + +# run_maestro [extra maestro args...] — sets DEBUG_RUN_DIR for the caller. +run_maestro() { + local flow="$1" + shift + local log_file + # Explicit XXXXXX template: GNU mktemp rejects `-t maestro-run` ("too few X's"), which left + # log_file empty on the Linux runners. + log_file="$(mktemp "${TMPDIR:-/tmp}/maestro-run.XXXXXX")" || log_file="" + if [ -z "$log_file" ]; then + log_file="${TMPDIR:-/tmp}/maestro-run.$$" + : > "$log_file" 2>/dev/null || true + fi + + DEBUG_RUN_DIR="$DEBUG_OUTPUT_DIR/${PLATFORM}-$(basename "${flow%.yaml}" | tr -c 'A-Za-z0-9._-' '_')" + rm -rf "$DEBUG_RUN_DIR" + mkdir -p "$DEBUG_RUN_DIR" + set -- --debug-output "$DEBUG_RUN_DIR" --flatten-debug-output "$@" + + # Process substitution, not `| tee`: in a pipeline $! is tee's PID, leaving no handle on the + # JVM to kill. + "$HOME/.local/bin/maestro/bin/maestro" test "$@" \ + --env APP_ID="$APP_ID" --env PLATFORM="$PLATFORM" "$flow" \ + > >(tee "$log_file") 2>&1 & + local maestro_pid=$! + + ( + local waited=0 + while [ "$waited" -lt "$MAESTRO_FLOW_TIMEOUT" ]; do + kill -0 "$maestro_pid" 2>/dev/null || exit 0 + sleep 5 + waited=$((waited + 5)) + done + echo "::warning::maestro exceeded ${MAESTRO_FLOW_TIMEOUT}s on $(basename "$flow") — killing it (hung driver)" + kill -TERM "$maestro_pid" 2>/dev/null || true + sleep 10 + kill -9 "$maestro_pid" 2>/dev/null || true + ) & + local watchdog_pid=$! + + wait "$maestro_pid" + local status=$? + kill "$watchdog_pid" 2>/dev/null || true + wait "$watchdog_pid" 2>/dev/null || true + + # Let tee drain before reading the log; it is reaped asynchronously from the substitution. + sleep 1 + + # Only a FAILED run: a passing flow may mention a driver error Maestro recovered from. + if [ "$status" -ne 0 ] && + { [ "$status" -gt 128 ] || grep -qE "$MAESTRO_INFRA_PATTERNS" "$log_file" 2>/dev/null; }; then + rm -f "$log_file" + return "$MAESTRO_INFRA_EXIT" + fi + rm -f "$log_file" + return "$status" +} + +# Move an attempt's evidence aside BEFORE the retry, which reuses both paths and would otherwise +# delete it: start_recording rm -f's the same REC_FILE and run_maestro rm -rf's the same +# DEBUG_RUN_DIR, so a flake that passes on retry left no video and no hierarchy to diagnose from. +preserve_fault_artifacts() { + local video="${1:-}" + local suffix="${2:-driver-fault}" + if [ -n "$video" ] && [ -f "$video" ]; then + mv -f "$video" "${video%.mp4}-${suffix}.mp4" 2>/dev/null || true + fi + if [ -n "${DEBUG_RUN_DIR:-}" ] && [ -d "$DEBUG_RUN_DIR" ]; then + rm -rf "${DEBUG_RUN_DIR}-${suffix}" + mv -f "$DEBUG_RUN_DIR" "${DEBUG_RUN_DIR}-${suffix}" 2>/dev/null || true + # Cleared so a later discard_debug_output cannot remove the preserved copy. + DEBUG_RUN_DIR="" + fi +} + +discard_debug_output() { + [ -n "${DEBUG_RUN_DIR:-}" ] || return 0 + rm -rf "$DEBUG_RUN_DIR" + DEBUG_RUN_DIR="" +} + +reset_device() { + if [ "$PLATFORM" == "android" ]; then + ensure_emulator_ready + else + restart_simulator + fi +} + +cleanup_xctest_processes() { + if [ "$PLATFORM" != "ios" ]; then + return 0 + fi + echo "🧹 Cleaning up stale XCTest processes..." + pkill -9 -f "XCTRunner" 2>/dev/null || true + pkill -9 -f "xctest" 2>/dev/null || true + pkill -9 -f "maestro.*driver" 2>/dev/null || true + sleep 2 +} + # Function to restart the iOS simulator +# +# The shutdown is verified rather than discarded with `|| true`, which left the shard +# reinstalling the app on top of the same wedged runtime. restart_simulator() { echo "🔄 Restarting iOS Simulator..." - # Shut down whatever is booted; the device is auto-selected in prepare_ios.sh, - # so we don't depend on a hardcoded device name here. - xcrun simctl shutdown all || true - sleep 10 + # Kill the XCTest runner FIRST: while it holds the device, shutdown can fail. + cleanup_xctest_processes + + # `all` on a shard's first call, where SIMULATOR_DEVICE_ID isn't exported into this shell yet. + local target="${SIMULATOR_DEVICE_ID:-all}" + echo "Shutting down simulator ($target)..." + if ! xcrun simctl shutdown "$target" 2>&1; then + echo "shutdown reported an error; verifying device state anyway" + fi + + local deadline=$((SECONDS + 30)) + while [ "$SECONDS" -lt "$deadline" ]; do + if [ -n "${SIMULATOR_DEVICE_ID:-}" ]; then + xcrun simctl list devices | grep -q "$SIMULATOR_DEVICE_ID.*Shutdown" && break + else + xcrun simctl list devices | grep -q "(Booted)" || break + fi + sleep 1 + done + if [ "$SECONDS" -ge "$deadline" ]; then + echo "::warning::Simulator did not reach Shutdown within 30s; the driver may still be wedged after this restart" + fi + bash ./maestro/helpers/prepare_ios.sh } @@ -135,6 +274,15 @@ ensure_emulator_ready() { done } +# Maestro reinstalls the driver per invocation, and that window is what throws +# IOSDriverTimeoutException; the smoke check installs it fresh so the flows can reuse it. +MAESTRO_REUSE_DRIVER="${MAESTRO_REUSE_DRIVER:-true}" +flow_driver_args() { + if [ "$PLATFORM" == "ios" ] && [ "$MAESTRO_REUSE_DRIVER" = "true" ]; then + echo "--no-reinstall-driver" + fi +} + # Function to run tests run_tests() { local test_files=("$@") @@ -145,13 +293,39 @@ run_tests() { set_status_bar fi start_recording "$(basename "${yaml_test_file%.yaml}")" - if $HOME/.local/bin/maestro/bin/maestro test --env APP_ID=$APP_ID --env PLATFORM=$PLATFORM --env MAESTRO_DRIVER_STARTUP_TIMEOUT=$MAESTRO_DRIVER_STARTUP_TIMEOUT "$yaml_test_file"; then + run_maestro "$yaml_test_file" $(flow_driver_args) + local status=$? + if [ "$status" -eq 0 ]; then echo "✅ Test passed: $yaml_test_file" stop_recording discard + discard_debug_output passed_tests+=("$yaml_test_file") + elif [ "$status" -eq "$MAESTRO_INFRA_EXIT" ]; then + echo "::warning::Driver/device fault on $(basename "$yaml_test_file") (not a test failure) — resetting device and retrying once" + # Capture the path before stop_recording clears REC_FILE. + local fault_video="$REC_FILE" + stop_recording keep + preserve_fault_artifacts "$fault_video" + reset_device + start_recording "$(basename "${yaml_test_file%.yaml}")" + if run_maestro "$yaml_test_file"; then + echo "✅ Test passed after device reset: $yaml_test_file" + stop_recording discard + discard_debug_output + passed_tests+=("$yaml_test_file") + else + echo "❌ Test failed: $yaml_test_file" + stop_recording keep + failed_tests+=("$yaml_test_file") + fi else echo "❌ Test failed: $yaml_test_file" + # Capture the path before stop_recording clears REC_FILE. + local failed_video="$REC_FILE" stop_recording keep + # The retry reuses both paths, so a flake that passes on retry would erase the only + # evidence of the failure. Keep this attempt's video and hierarchy under -attempt1. + preserve_fault_artifacts "$failed_video" "attempt1" failed_tests+=("$yaml_test_file") fi completed_tests=$((completed_tests + 1)) @@ -179,22 +353,17 @@ smoke_check() { set_status_bar fi start_recording "smoke-attempt-$attempt" - if $HOME/.local/bin/maestro/bin/maestro test --env APP_ID=$APP_ID --env PLATFORM=$PLATFORM --env MAESTRO_DRIVER_STARTUP_TIMEOUT=$MAESTRO_DRIVER_STARTUP_TIMEOUT "$script_dir/Smoke.yaml"; then + if run_maestro "$script_dir/Smoke.yaml"; then echo "✅ Smoke check passed — running widget flows." stop_recording discard + discard_debug_output return 0 fi # Keep this attempt's clip — a launch crash / blank screen here is exactly what we want to see. stop_recording keep if [ "$attempt" -lt "$max_attempts" ]; then echo "⚠️ Smoke check attempt $attempt failed — resetting driver/simulator and retrying once." - # Reset the layer that actually flakes: on iOS restart the sim (re-runs prepare_ios.sh, - # re-establishing the Maestro driver); on Android just re-confirm the emulator is up. - if [ "$PLATFORM" == "android" ]; then - ensure_emulator_ready - else - restart_simulator - fi + reset_device fi attempt=$((attempt + 1)) done @@ -211,17 +380,14 @@ rerun_failed_tests() { for yaml_test_file in "${retry_failed_tests[@]}"; do retry_count=$((retry_count + 1)) echo "🧪 Retrying test $retry_count/$total_retries: $(basename "$yaml_test_file")" - if [ "$PLATFORM" == "android" ]; then - ensure_emulator_ready - else - restart_simulator - fi + reset_device local attempt=0 while [ $attempt -lt $MAX_RETRIES ]; do start_recording "$(basename "${yaml_test_file%.yaml}")" - if $HOME/.local/bin/maestro/bin/maestro test --env APP_ID=$APP_ID --env PLATFORM=$PLATFORM --env MAESTRO_DRIVER_STARTUP_TIMEOUT=$MAESTRO_DRIVER_STARTUP_TIMEOUT "$yaml_test_file"; then + if run_maestro "$yaml_test_file"; then echo "✅ Test passed: $yaml_test_file" stop_recording discard + discard_debug_output passed_tests+=("$yaml_test_file") break else diff --git a/maestro/helpers/prepare_ios.sh b/maestro/helpers/prepare_ios.sh index c914b9a4f..56ed921c4 100644 --- a/maestro/helpers/prepare_ios.sh +++ b/maestro/helpers/prepare_ios.sh @@ -60,10 +60,53 @@ elif best: echo "Using $DEVICE_NAME (iOS $RUNTIME_VER) [$SELECT_STATUS], UDID: $DEVICE_ID" export SIMULATOR_DEVICE_ID="$DEVICE_ID" + # Leaves the device BOOTED and slim when it succeeds, so the boot below is a no-op. + slim_simulator "$DEVICE_ID" + xcrun simctl boot "$DEVICE_ID" || echo "Simulator already booted" xcrun simctl bootstatus "$DEVICE_ID" -b || echo "Simulator booted" } +# Boot with ~170 background daemons disabled (simslim), cutting memory ~4GB -> ~1GB. Cannot be +# cached: the disables are not persisted to any file under the device (simslim 0.4.0 / iOS 26.5). +slim_simulator() { + local udid="$1" + + if [ "${SKIP_SIMSLIM:-false}" = "true" ]; then + echo "SKIP_SIMSLIM=true; booting a stock simulator." + return 0 + fi + + if ! command -v simslim >/dev/null 2>&1; then + if ! brew install mobai-app/tap/simslim; then + echo "::warning::Could not install simslim; booting a stock simulator." + return 0 + fi + fi + + # Full slim, no --except: per simslim's profiles.go no category touches the camera, MapKit + # rendering or local notifications, which the flows need. + echo "Slimming $udid (simslim); this takes several minutes but cuts simulator memory ~4GB -> ~1GB." + if ! simslim --boot-timeout 15m on "$udid"; then + echo "::warning::simslim failed; booting a stock simulator." + return 0 + fi +} + +# The counterpart to `disable-animations: true` on the Android emulator. SYSTEM transitions only — +# React Native's `Animated` ignores this flag, so it is no substitute for the per-flow waits. +reduce_motion() { + echo "Reducing motion on iOS Simulator..." + if [ -z "$SIMULATOR_DEVICE_ID" ]; then + echo "Error: SIMULATOR_DEVICE_ID not set" + return 1 + fi + xcrun simctl spawn "$SIMULATOR_DEVICE_ID" defaults write com.apple.Accessibility ReduceMotionEnabled -bool true \ + || echo "::warning::Could not set ReduceMotionEnabled; animations stay at full length" + xcrun simctl spawn "$SIMULATOR_DEVICE_ID" defaults write com.apple.Accessibility ReduceMotionReduceSlideTransitionsEnabled -bool true \ + || echo "::warning::Could not set ReduceMotionReduceSlideTransitionsEnabled" +} + set_status_bar() { echo "Setting status bar on iOS Simulator..." if [ -z "$SIMULATOR_DEVICE_ID" ]; then @@ -91,7 +134,19 @@ verify_installed_app() { xcrun simctl get_app_container "$SIMULATOR_DEVICE_ID" com.mendix.native.template } +# `grep -E`, not BRE: the alternation matched under zsh but not the bash CI runs, so every shard +# logged 0 even on a fully slimmed simulator. +report_slim_state() { + [ -n "${SIMULATOR_DEVICE_ID:-}" ] || return 0 + local n + n=$(xcrun simctl spawn "$SIMULATOR_DEVICE_ID" launchctl print-disabled system 2>/dev/null \ + | grep -cE '=> (disabled|true)' || true) + echo "Slim state: ${n:-0} disabled system daemons on $SIMULATOR_DEVICE_ID" +} + start_simulator +report_slim_state +reduce_motion set_status_bar install_ios_app verify_installed_app \ No newline at end of file diff --git a/maestro/images/expected/android/bg_image_dynamic_svg.png b/maestro/images/expected/android/bg_image_dynamic_svg.png index ebd38ac4c..77122942e 100644 Binary files a/maestro/images/expected/android/bg_image_dynamic_svg.png and b/maestro/images/expected/android/bg_image_dynamic_svg.png differ diff --git a/maestro/images/expected/android/rating.png b/maestro/images/expected/android/rating.png index 3b65b4a04..22cf6d395 100644 Binary files a/maestro/images/expected/android/rating.png and b/maestro/images/expected/android/rating.png differ diff --git a/maestro/images/expected/ios/bg_image_clickable_container.png b/maestro/images/expected/ios/bg_image_clickable_container.png index 6cf24f946..8c1014832 100644 Binary files a/maestro/images/expected/ios/bg_image_clickable_container.png and b/maestro/images/expected/ios/bg_image_clickable_container.png differ diff --git a/maestro/images/expected/ios/bg_image_conditional_visibility.png b/maestro/images/expected/ios/bg_image_conditional_visibility.png index cf710adf3..9d612ac33 100644 Binary files a/maestro/images/expected/ios/bg_image_conditional_visibility.png and b/maestro/images/expected/ios/bg_image_conditional_visibility.png differ diff --git a/maestro/images/expected/ios/bg_image_dynamic_image.png b/maestro/images/expected/ios/bg_image_dynamic_image.png index acff22ce4..1c5d42146 100644 Binary files a/maestro/images/expected/ios/bg_image_dynamic_image.png and b/maestro/images/expected/ios/bg_image_dynamic_image.png differ diff --git a/maestro/images/expected/ios/bg_image_dynamic_svg.png b/maestro/images/expected/ios/bg_image_dynamic_svg.png new file mode 100644 index 000000000..91393cdfb Binary files /dev/null and b/maestro/images/expected/ios/bg_image_dynamic_svg.png differ diff --git a/maestro/images/expected/ios/bg_image_layout_grid.png b/maestro/images/expected/ios/bg_image_layout_grid.png index 0800dd4b2..ed69d889f 100644 Binary files a/maestro/images/expected/ios/bg_image_layout_grid.png and b/maestro/images/expected/ios/bg_image_layout_grid.png differ diff --git a/maestro/images/expected/ios/bg_image_nested.png b/maestro/images/expected/ios/bg_image_nested.png index 3579f4af2..531a7f9ef 100644 Binary files a/maestro/images/expected/ios/bg_image_nested.png and b/maestro/images/expected/ios/bg_image_nested.png differ diff --git a/maestro/images/expected/ios/bg_image_static_images.png b/maestro/images/expected/ios/bg_image_static_images.png index e3818c3fd..90941cbfb 100644 Binary files a/maestro/images/expected/ios/bg_image_static_images.png and b/maestro/images/expected/ios/bg_image_static_images.png differ diff --git a/maestro/images/expected/ios/bg_image_static_svg.png b/maestro/images/expected/ios/bg_image_static_svg.png index 86f756fee..6e1fde095 100644 Binary files a/maestro/images/expected/ios/bg_image_static_svg.png and b/maestro/images/expected/ios/bg_image_static_svg.png differ diff --git a/maestro/images/expected/ios/bottom_sheet_modal_basic_landscape.png b/maestro/images/expected/ios/bottom_sheet_modal_basic_landscape.png new file mode 100644 index 000000000..b34e98f92 Binary files /dev/null and b/maestro/images/expected/ios/bottom_sheet_modal_basic_landscape.png differ diff --git a/maestro/images/expected/ios/floating_action_button.png b/maestro/images/expected/ios/floating_action_button.png index afc0ac2be..d23cd4bf3 100644 Binary files a/maestro/images/expected/ios/floating_action_button.png and b/maestro/images/expected/ios/floating_action_button.png differ diff --git a/maestro/images/expected/ios/rating.png b/maestro/images/expected/ios/rating.png index ccf0c840b..4d4558e14 100644 Binary files a/maestro/images/expected/ios/rating.png and b/maestro/images/expected/ios/rating.png differ diff --git a/maestro/maestro/images/actual/ios/authentication.png b/maestro/maestro/images/actual/ios/authentication.png deleted file mode 100644 index 235b9e00a..000000000 Binary files a/maestro/maestro/images/actual/ios/authentication.png and /dev/null differ diff --git a/maestro/maestro/images/actual/ios/bar_chart.png b/maestro/maestro/images/actual/ios/bar_chart.png deleted file mode 100644 index a4cc7b9e7..000000000 Binary files a/maestro/maestro/images/actual/ios/bar_chart.png and /dev/null differ diff --git a/maestro/maestro/images/actual/ios/clipboard.png b/maestro/maestro/images/actual/ios/clipboard.png deleted file mode 100644 index ed3ed3d93..000000000 Binary files a/maestro/maestro/images/actual/ios/clipboard.png and /dev/null differ diff --git a/maestro/maestro/images/actual/ios/device_info.png b/maestro/maestro/images/actual/ios/device_info.png deleted file mode 100644 index e906d88a6..000000000 Binary files a/maestro/maestro/images/actual/ios/device_info.png and /dev/null differ diff --git a/maestro/maestro/images/actual/ios/safe_area_view_text.png b/maestro/maestro/images/actual/ios/safe_area_view_text.png deleted file mode 100644 index 4f9622d5d..000000000 Binary files a/maestro/maestro/images/actual/ios/safe_area_view_text.png and /dev/null differ diff --git a/maestro/maestro/images/actual/ios/toggle_sidebar.png b/maestro/maestro/images/actual/ios/toggle_sidebar.png deleted file mode 100644 index 362cc34eb..000000000 Binary files a/maestro/maestro/images/actual/ios/toggle_sidebar.png and /dev/null differ diff --git a/maestro/run_maestro_jsactions_tests.sh b/maestro/run_maestro_jsactions_tests.sh index 56bc5b595..f4f7c5a7b 100644 --- a/maestro/run_maestro_jsactions_tests.sh +++ b/maestro/run_maestro_jsactions_tests.sh @@ -97,6 +97,16 @@ run_jsactions_tests() { fi } +# Clean up any stale XCTest processes before starting (iOS only) +if [ "$PLATFORM" == "ios" ]; then + cleanup_xctest_processes +fi + +# Fast-fail smoke check before running jsActions tests (same as widget tests) +if ! smoke_check; then + exit 1 +fi + # Run jsActions tests run_jsactions_tests if [ $? -ne 0 ]; then diff --git a/package.json b/package.json index e4f4a6417..a611ff2dc 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,9 @@ "format": "pretty-quick --staged --config \"./prettier.config.js\" --pattern \"**/{src,script,typings,test,**}/**/*.{js,jsx,ts,tsx,scss,html,xml,md,json}\"", "clean-all-screenshots-mac": "find . -name 'screenshot-baseline' -type d -prune -exec rm -rf '{}' +", "lint": "pnpm lint:src && pnpm -r run lint", - "lint:src": "eslint --config .eslintrc.js --ext .jsx,.js,.ts,.tsx packages/*/*/src --no-error-on-unmatched-pattern", - "lint:scripts": "eslint --fix --config .eslintrc.js --ext .jsx,.js,.ts,.tsx scripts", - "lint:configs": "eslint --fix --config .eslintrc.js --ext .jsx,.js,.ts,.tsx configs", + "lint:src": "eslint --ext .jsx,.js,.ts,.tsx packages/*/*/src --no-error-on-unmatched-pattern", + "lint:scripts": "eslint --fix --ext .jsx,.js,.ts,.tsx scripts", + "lint:configs": "eslint --fix --ext .jsx,.js,.ts,.tsx configs", "test": "pnpm -r run test", "test:e2e:android": "pnpm -r run test:e2e:android", "test:e2e:ios": "pnpm -r run test:e2e:ios", @@ -30,6 +30,8 @@ "build-mpk": "ts-node --project ./scripts/tsconfig.json ./scripts/release/build-mpk.ts", "version": "ts-node --project ./scripts/tsconfig.json ./scripts/release/BumpVersion.ts", "validate-staged-widget-versions": "node scripts/validation/validate-versions-staged-files.js", + "validate-manifest-format": "node --experimental-strip-types scripts/validation/validate-manifest-format.ts", + "validate-native-dependencies": "node --experimental-strip-types scripts/validation/validate-native-dependencies.ts", "setup-mobile": "pnpm setup-android && pnpm setup-ios", "build:widgets": "node ./scripts/widget/buildWidgets.js", "test_widgets:maestro:ios": "bash maestro/run_maestro_widget_tests.sh ios", @@ -78,9 +80,10 @@ }, "pnpm": { "overrides": { - "@mendix/pluggable-widgets-tools": "11.8.0", + "@mendix/pluggable-widgets-tools": "11.12.0", "@rollup/plugin-typescript": "12.3.0", "mendix": "11.8.0", + "eslint": "9.39.4", "react": "19.2.3", "react-dom": "19.2.3", "react-native": "0.84.1", @@ -89,9 +92,10 @@ "@prettier/plugin-xml": "2.2.0", "cheerio": "1.0.0-rc.12", "typescript": "~5.9.3", - "rollup": "3.30.0", + "rollup": "4.30.1", "react-test-renderer": "19.2.3", "@xmldom/xmldom": ">=0.8.13", + "brace-expansion": "5.0.12", "flatted": ">=3.4.2", "immutable": ">=5.1.5", "minimatch": ">=3.1.4", @@ -102,11 +106,8 @@ "lodash": ">=4.18.0" }, "patchedDependencies": { - "@mendix/pluggable-widgets-tools@11.8.0": "patches/@mendix+pluggable-widgets-tools+11.8.0.patch", "react-native-gesture-handler@2.31.2": "patches/react-native-gesture-handler+2.31.2.patch", - "react-native-slider@0.11.0": "patches/react-native-slider+0.11.0.patch", - "react-native-snap-carousel@3.9.1": "patches/react-native-snap-carousel+3.9.1.patch", - "react-native-track-player@4.1.2": "patches/react-native-track-player@4.1.2.patch" + "@mendix/pluggable-widgets-tools@11.12.0": "patches/@mendix__pluggable-widgets-tools@11.12.0.patch" } }, "packageManager": "pnpm@10.32.0+sha512.9b2634bb3fed5601c33633f2d92593f506270a3963b8c51d2b2d6a828da615ce4e9deebef9614ccebbc13ac8d3c0f9c9ccceb583c69c8578436fa477dbb20d70" diff --git a/packages/jsActions/mobile-resources-native/CHANGELOG.md b/packages/jsActions/mobile-resources-native/CHANGELOG.md index 5c77e7258..a00b15f98 100644 --- a/packages/jsActions/mobile-resources-native/CHANGELOG.md +++ b/packages/jsActions/mobile-resources-native/CHANGELOG.md @@ -6,6 +6,357 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +- testing entry + +## [12.7.0] Native Mobile Resources - 2026-11-20 + +## [4.6.0] BarcodeScanner + +### BREAKING + +- We updated react-native-vision-camera from v4.7.3 to v5.2.3. On Android, barcodes are now scanned with react-native-vision-camera-barcode-scanner v5.2.3 (Google ML Kit). On iOS, barcodes are still scanned with Apple's built-in scanner, as before. This version requires Make It Native version 11.12.3 or above. Older versions of Make It Native cannot run this version of the widget. +- For Native Template builds, Native Template version 19.1.8 or above is required. + +### Added + +- We added a `scan delay` property that delays scanning by the specified number of seconds, giving the end user time to position the scanner over the code. + +### Fixed + +- We fixed barcodes with patterned backgrounds not being scanned correctly on Android. + +## [3.7.0] Feedback + +### Changed + +- The feedback dialogs are now presented through the shared MxOverlay component instead of react-native-dialog, which has been removed as a dependency. +- Screen readers now treat the feedback dialogs as modal, move focus to the dialog title when one opens, and return focus to the feedback button when the last one closes. + +## [4.6.1] IntroScreen + +### Added + +- We added an "Accessibility" group with a label for the slide position announcement, and an accessibility label for each of the Skip, Previous, Next and Done buttons, so screen reader text can be translated. + +### Fixed + +- We fixed an issue where screen readers (TalkBack and VoiceOver) read out every pagination dot as a separate button. The dots are now announced once as a page indicator (for example "Slide 2 of 4"), which can be adjusted to change slide. + +## [12.6.0] Native Mobile Resources - 2026-11-4 + +### Fixed + +- Fixed an issue where actions using decimal values threw a "Big is not defined" error at runtime. + +### Added + +- We added mendix-native as a dependency to provide native file system. +- We bumped the `brace-expansion` package to v5.0.12 to fix a denial-of-service vulnerability. + +## [5.3.5] BottomSheet + +### Fixed + +- Fixed the app becoming unresponsive to touches after a modal bottom sheet (basic or custom rendering) was closed while it was still opening, e.g. when opening and closing it quickly. A sheet whose trigger attribute is set to false while it is opening now also closes once it has opened. + +## [2.4.1] ColorPicker + +### Added + +- We added screen reader label properties for the hue, saturation, brightness and transparency sliders. + +### Changed + +- We replaced react-native-slider and react-native-color with built-in components, and removed deprecated-react-native-prop-types. + +### Fixed + +- We fixed the sliders not announcing their value to screen readers. They can now also be adjusted with VoiceOver and TalkBack. +- We fixed the other sliders moving slightly while one slider is dragged, and hue and saturation being lost when the color becomes black or white. + +## [3.2.0] Image + +### Changed + +- The enlarged image is now presented through the shared MxOverlay component. Screen readers now treat it as a modal, move focus to the enlarged image when it opens and return focus to the image when it closes. + +## [4.6.0] IntroScreen + +### Changed + +- The IntroScreen is now presented through the shared MxOverlay component. Its appearance and behaviour, including blocking the Android back button, are unchanged. + +## [4.5.0] ProgressBar + +### Changed + +- Removed the react-native-progress dependency. There is no change in appearance or behavior. + +### Added + +- The progress bar now announces itself to screen readers with a progress bar role and its current value. + +## [3.4.0] ProgressCircle + +### Changed + +- Removed the react-native-progress dependency. There is no change in appearance or behavior. + +### Added + +- The progress circle now announces itself to screen readers with a progress bar role and its current value. + +## [3.1.0] RangeSlider + +### Changed + +- We replaced @miblanchard/react-native-slider with a built-in slider component. + +### Fixed + +- We fixed the range slider thumbs not announcing their values or being adjustable with VoiceOver and TalkBack. + +## [3.1.0] Signature + +### Added + +- We added mendix-native as a dependency to provide native file system. + +## [4.1.0] Slider + +### Changed + +- We replaced @miblanchard/react-native-slider with a built-in slider component. + +### Fixed + +- We fixed the slider not announcing its value or being adjustable with VoiceOver and TalkBack. + +## [6.5.0] VideoPlayer + +### Added + +- We added mendix-native as a dependency to provide platform utilities. + +### Changed + +- The Android fullscreen video is now presented through the shared MxOverlay component. Screen readers now treat it as a modal, and focus returns to the fullscreen button when you leave fullscreen. + +## [12.5.1] Native Mobile Resources - 2026-10-8 + +## [2.3.0] Gallery + +### Fixed + +- We've fixed an issue where Gallery widget does not display data. +- We've fixed an issue where items in a horizontally scrolling Gallery would stretch to the full screen width instead of sizing to their content. + +### Added + +- Added horizontal item sizing options to fit items to their content or divide the Gallery width into configurable columns. + +## [12.5.0] Native Mobile Resources - 2026-9-24 + +## [2.3.1] BackgroundGradient + +### Changed + +- We removed the library of `react-native-linear-gradient` in favor of a react-native View with linear-gradient type background. + +## [2.3.1] BackgroundImage + +- Fixed background image widget not visible when there is no content inside it. + +## [5.3.3] BottomSheet + +### Added + +- Added an `On change` event that triggers when the `Trigger attribute` value changes, allowing detection of bottom sheet dismissal (e.g. by outside click). + +### Fixed + +- Fixed iOS orientation change when opening the bottom sheet modal on devices in landscape mode. +- Replaced a deprecated prop 'containerHeight' with the respective 'containerLayoutState' option. + +## [3.0.0] Signature + +### Added + +- Added direct image upload to System.Image object using the type `image` with `allowUpload` set to true. +- Renamed `onSave` action to `onSignEnd` to match web signature widget naming convention + +## [12.4.0] Native Mobile Resources - 2026-9-2 + +### Fixed + +- Removed the visible changes in NC and NMR modules during the first build of the app. + +## [3.4.0] Animation + +### Changed + +- We updated react-native-animatable to 1.4.0. + +## [3.3.0] BarChart + +### Changed + +- We updated victory-native to 36.9.2. + +## [4.5.0] BarcodeScanner + +- We fixed the barcode mask not visible issue and selection logic of QR code. + +## [3.3.0] Carousel + +### Changed + +- We updated deprecated-react-native-prop-types to 4.2.3. +- We pinned react-native-snap-carousel to 3.9.1. + +## [2.3.0] ColorPicker + +### Changed + +- We updated deprecated-react-native-prop-types to 4.2.3. +- We pinned react-native-color to 0.0.10. +- We pinned react-native-slider to 0.11.0. +- We updated tinycolor2 to 1.6.0. + +## [2.3.0] ColumnChart + +### Changed + +- We updated victory-native to 36.9.2. + +## [3.6.2] Feedback + +### Changed + +- We pinned querystringify to 2.2.0. + +## [4.3.0] FloatingActionButton + +- We have removed the 'react-native-reanimated' library and used Animated API of react native for animation purpose. +- We fixed an issue of secondary button's caption not displayed if its horizontal position is center. +- We refactored code and migrated to functional component. + +## [4.5.0] IntroScreen + +### Fixed + +- We fixed an issue where the IntroScreen did not show the slide set by the active slide attribute, and where swiping between slides did not work reliably on slower Android devices. + +## [3.3.0] LineChart + +### Changed + +- We updated victory-native to 36.9.2. + +## [5.2.1] Maps + +### Changed + +- We pinned prop-types to 15.8.1. + +## [2.3.0] PieDoughnutChart + +### Changed + +- We updated victory-native to 36.9.2. + +## [4.1.1] PopupMenu + +### Changed + +- We pinned react-native-material-menu to 1.2.0. + +## [4.4.1] ProgressBar + +### Changed + +- We pinned react-native-progress to 5.0.1. + +## [3.3.1] ProgressCircle + +### Changed + +- We pinned react-native-progress to 5.0.1. + +## [3.0.1] RangeSlider + +### Changed + +- We pinned @miblanchard/react-native-slider to 2.6.0. + +## [5.3.0] Rating + +### Changed + +- We removed @react-native-vector-icons/common dependency. +- We removed @react-native-vector-icons/get-image depedency. +- We added react-native-svg dependency and fixed the issue of rating icons not visible if user sets empty star and selected star as none in studio pro. + +## [4.0.1] Slider + +### Changed + +- We pinned @miblanchard/react-native-slider to 2.6.0. + +## [2.5.0] ToggleButtons + +### Changed + +- We updated react-native-segmented-control-tab to 3.4.1. + +## [12.3.0] Native Mobile Resources - 2026-8-4 + +### Changed + +- Replaced @notifee/react-native with react-native-notify-kit library. + +## [4.4.0] BarcodeScanner + +- We added support for QR of available remaining types including pdf417 in barcode scanner functinality. + +## [5.3.2] BottomSheet + +### Fixed + +- Fixed bottomsheet issue to close when the trigger attribute changes. + +## [5.3.0] Notifications + +### Changed + +- Replaced @notifee/react-native with react-native-notify-kit library. + +## [12.2.2] Native Mobile Resources - 2026-7-21 + +- Fixed an issue where the `TakePicture` and `TakePictureAdvanced` actions did not properly clean up temporary files. + +## [12.2.1] Native Mobile Resources - 2026-7-17 + +- We switched to a new sound library for the Play sound action to support react-native 0.84+. +- The Play sound action now plays audio files from online (network) documents on Android by downloading them to a version-based cache before playback. +- We have fixed the biometric authentication issue where it was not working on Android and crashing on iOS. +- Fixed an issue where the `TakePicture` and `TakePictureAdvanced` actions failed to capture photos on Android. + +## [3.1.2] Image + +### Fixed + +- We fixed an issue that caused images from entities to not render on Android in Online Synchronization mode + +## [12.2.0] Native Mobile Resources - 2026-7-3 + +## [5.3.1] BottomSheet + +### Fixed + +- Fixed flickering issue on Android when opening bottom sheet (both basic and custom render types). +- Improved backdrop animation with smooth fade-in/fade-out transitions. + ## [12.1.0] Native Mobile Resources - 2026-6-10 - Updated react-native from version 0.83.4 to 0.84.1. diff --git a/packages/jsActions/mobile-resources-native/SiemensMendixNativeMobileResources__12.1.0__READMEOSS_2026-06-09__10-55-24.html b/packages/jsActions/mobile-resources-native/SiemensMendixNativeMobileResources__12.7.0__READMEOSS_2026-11-20__09-38-31.html similarity index 99% rename from packages/jsActions/mobile-resources-native/SiemensMendixNativeMobileResources__12.1.0__READMEOSS_2026-06-09__10-55-24.html rename to packages/jsActions/mobile-resources-native/SiemensMendixNativeMobileResources__12.7.0__READMEOSS_2026-11-20__09-38-31.html index 952094a17..aeb6a763d 100644 --- a/packages/jsActions/mobile-resources-native/SiemensMendixNativeMobileResources__12.1.0__READMEOSS_2026-06-09__10-55-24.html +++ b/packages/jsActions/mobile-resources-native/SiemensMendixNativeMobileResources__12.7.0__READMEOSS_2026-11-20__09-38-31.html @@ -141,7 +141,7 @@
Siemens Third-Party Software Disclosure Document

English / English
Note to Resellers: Please @@ -3755,114 +3755,6 @@ > - - - @floating-ui/core (npm) - 1.7.3 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/core (npm) - 1.7.3 - - - - - @floating-ui/core (npm) - 1.7.5 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/core (npm) - 1.7.5 - - - - - @floating-ui/dom (npm) - 1.7.4 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/dom (npm) - 1.7.4 - - - - - @floating-ui/dom (npm) - 1.7.6 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/dom (npm) - 1.7.6 - - - - - @floating-ui/react (npm) - 0.26.28 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/react (npm) - 0.26.28 - - - - - @floating-ui/react-dom (npm) - 2.1.6 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/react-dom (npm) - 2.1.6 - - - - - @floating-ui/react-dom (npm) - 2.1.8 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/react-dom (npm) - 2.1.8 - - - - - @floating-ui/utils (npm) - 0.2.10 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/utils (npm) - 0.2.10 - - - - - @floating-ui/utils (npm) - 0.2.11 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @floating-ui/utils (npm) - 0.2.11 - - @gorhom/bottom-sheet (npm) - 5.1.1 @@ -4448,18 +4340,6 @@ > - - - @notifee/react-native (npm) - 9.1.8 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @notifee/react-native (npm) - 9.1.8 - - @prettier/cli (npm) - 0.6.0 @@ -4499,14 +4379,160 @@ - @react-native-async-storage/async-storage (npm) - 2.0.0 + @rc-component/motion (npm) - 1.1.4 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/motion (npm) - 1.1.4 + + + + + @rc-component/motion (npm) - 1.2.0 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/motion (npm) - 1.2.0 + + + + + @rc-component/portal (npm) - 2.0.0 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/portal (npm) - 2.0.0 + + + + + @rc-component/portal (npm) - 2.2.0 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/portal (npm) - 2.2.0 + + + + + @rc-component/resize-observer (npm) - 1.0.0 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/resize-observer (npm) - + 1.0.0 + + + + + @rc-component/resize-observer (npm) - 1.1.1 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/resize-observer (npm) - + 1.1.1 + + + + + @rc-component/slider (npm) - 1.0.1 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/slider (npm) - 1.0.1 + + + + + @rc-component/tooltip (npm) - 1.3.3 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/tooltip (npm) - 1.3.3 + + + + + @rc-component/trigger (npm) - 3.6.15 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/trigger (npm) - 3.6.15 + + + + + @rc-component/trigger (npm) - 3.9.0 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/trigger (npm) - 3.9.0 + + + + + @rc-component/util (npm) - 1.3.0 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/util (npm) - 1.3.0 + + + + + @rc-component/util (npm) - 1.9.0 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @rc-component/util (npm) - 1.9.0 + + + + + @react-native-async-storage/async-storage (npm) - 2.2.0 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @react-native-async-storage/async-storage - (npm) - 2.0.0 @@ -5123,6 +5149,18 @@ > + + + @shopify/flash-list (npm) - 2.3.1 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @shopify/flash-list (npm) - 2.3.1 + + @sideway/address (npm) - 4.1.5 @@ -5569,18 +5607,6 @@ > - - - @types/geojson (npm) - 7946.0.16 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @types/geojson (npm) - 7946.0.16 - - @types/graceful-fs (npm) - 4.1.9 @@ -6318,12 +6344,12 @@ - ansi-regex (npm) - 6.2.2 + ansi-regex (npm) - 6.3.0 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT ansi-regex (npm) - 6.2.2LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT ansi-regex (npm) - 6.3.0 @@ -7219,13 +7245,25 @@ - brace-expansion (npm) - 5.0.6 + brace-expansion (npm) - 5.0.12 + + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT brace-expansion (npm) - 5.0.12 + + + + + brace-expansion (npm) - 5.0.8 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT brace-expansion (npm) - 5.0.6LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT brace-expansion (npm) - 5.0.8 @@ -7733,6 +7771,16 @@ > + + clsx (npm) - 2.1.1 + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT clsx (npm) - 2.1.1 + + co (npm) - 4.6.0 Yes @@ -8027,6 +8075,16 @@ > + + core-js (npm) - 3.49.0 + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT core-js (npm) - 3.49.0 + + core-js-compat (npm) - 3.41.0 @@ -11578,6 +11636,16 @@ > + + is-mobile (npm) - 5.0.0 + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT is-mobile (npm) - 5.0.0 + + is-module (npm) - 1.0.0 Yes @@ -13266,12 +13334,12 @@ - lru-cache (npm) - 11.5.1 + lru-cache (npm) - 11.5.2 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT lru-cache (npm) - 11.5.1LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT lru-cache (npm) - 11.5.2 @@ -13820,6 +13888,16 @@ > + + minimatch (npm) - 10.2.6 + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT minimatch (npm) - 10.2.6 + + minimatch (npm) - 3.0.8 Yes @@ -15927,18 +16005,6 @@ > - - - react-native-barcode-mask (npm) - 1.2.4 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-barcode-mask (npm) - 1.2.4 - - react-native-blob-util (npm) - 0.24.7 @@ -15953,25 +16019,25 @@ - react-native-color (npm) - 0.0.10 + react-native-device-info (npm) - 14.0.4 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-color (npm) - 0.0.10LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-device-info (npm) - 14.0.4 - react-native-device-info (npm) - 14.0.4 + react-native-device-info (npm) - 15.0.2 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-device-info (npm) - 14.0.4LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-device-info (npm) - 15.0.2 @@ -16000,18 +16066,6 @@ > - - - react-native-geocoder (npm) - 0.5.0 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-geocoder (npm) - 0.5.0 - - react-native-image-picker (npm) - 7.2.3 @@ -16024,19 +16078,6 @@ > - - - react-native-linear-gradient (npm) - 2.8.3 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-linear-gradient (npm) - - 2.8.3 - - react-native-localize (npm) - 3.7.0 @@ -16051,13 +16092,13 @@ - react-native-maps (npm) - 1.20.1 + react-native-notify-kit (npm) - 10.4.7 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-maps (npm) - 1.20.1LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-notify-kit (npm) - 10.4.7 @@ -16125,49 +16166,49 @@ - react-native-slider (npm) - 0.11.0 + react-native-snap-carousel (npm) - 3.9.1 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-slider (npm) - 0.11.0LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-snap-carousel (npm) - 3.9.1 - react-native-snap-carousel (npm) - 3.9.1 + react-native-sound (npm) - 0.13.0 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-snap-carousel (npm) - 3.9.1LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-sound (npm) - 0.13.0 - react-native-track-player (npm) - 4.1.2 + react-native-video (npm) - 6.19.0 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-track-player (npm) - 4.1.2LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-video (npm) - 6.19.0 - react-native-video (npm) - 6.19.0 + react-native-view-shot (npm) - 5.1.0 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-video (npm) - 6.19.0LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-view-shot (npm) - 5.1.0 @@ -18052,26 +18093,6 @@ > - - tabbable (npm) - 6.2.0 - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT tabbable (npm) - 6.2.0 - - - - tabbable (npm) - 6.4.0 - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT tabbable (npm) - 6.4.0 - - table (npm) - 6.9.0 Yes @@ -18332,28 +18353,6 @@ > - - tinycolor2 (npm) - 1.6.0 - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT tinycolor2 (npm) - 1.6.0 - - - - - tinycolor2 (npm) - 1.6.0-beta.3 - - Yes - - - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT tinycolor2 (npm) - 1.6.0-beta.3 - - tmpl (npm) - 1.0.5 Yes @@ -18432,6 +18431,16 @@ > + + tr46 (npm) - 5.1.1 + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT tr46 (npm) - 5.1.1 + + tree-kill (npm) - 1.2.2 Yes @@ -19811,6 +19820,16 @@ > + + whatwg-url (npm) - 14.2.0 + Yes + + + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT whatwg-url (npm) - 14.2.0 + + whatwg-url (npm) - 5.0.0 Yes @@ -35227,232 +35246,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/core (npm) - 1.7.3

-

- Enclosed you will find the license conditions and - copyright notices applicable for - @floating-ui/core - (npm) - 1.7.3 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2021-present Floating UI contributors
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/core (npm) - 1.7.5

-

- Enclosed you will find the license conditions and - copyright notices applicable for - @floating-ui/core - (npm) - 1.7.5 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2021-present Floating UI contributors
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/dom (npm) - 1.7.4

-

- Enclosed you will find the license conditions and - copyright notices applicable for - @floating-ui/dom - (npm) - 1.7.4 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2021-present Floating UI contributors
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/dom (npm) - 1.7.6

-

- Enclosed you will find the license conditions and - copyright notices applicable for - @floating-ui/dom - (npm) - 1.7.6 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2021-present Floating UI contributors
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/react (npm) - 0.26.28

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @gorhom/bottom-sheet (npm) - 5.1.1

- Enclosed you will find the license conditions and - copyright notices applicable for - - @floating-ui/react (npm) - 0.26.28 + Enclosed you will find the license conditions and + copyright notices applicable for - + @gorhom/bottom-sheet (npm) - 5.1.1


-
License conditions:
+
License conditions:

@@ -35485,13 +35288,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright (c) 2021-present Floating UI contributors; atomiks', license' - MIT', bugs' https://github.com/floating-ui/floating-ui - Copyright (c) 2020 Mo Gorhom

@@ -35500,286 +35300,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/react-dom (npm) - 2.1.6

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @gorhom/portal (npm) - 1.0.14

- Enclosed you will find the license conditions and - copyright notices applicable for - - @floating-ui/react-dom (npm) - 2.1.6 + Enclosed you will find the license conditions and + copyright notices applicable for - @gorhom/portal + (npm) - 1.0.14


-
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2021-present Floating UI contributors
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/react-dom (npm) - 2.1.8

-

- Enclosed you will find the license conditions and - copyright notices applicable for - - @floating-ui/react-dom (npm) - 2.1.8 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2021-present Floating UI contributors
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/utils (npm) - 0.2.10

-

- Enclosed you will find the license conditions and - copyright notices applicable for - - @floating-ui/utils (npm) - 0.2.10 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2021-present Floating UI contributors
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @floating-ui/utils (npm) - 0.2.11

-

- Enclosed you will find the license conditions and - copyright notices applicable for - - @floating-ui/utils (npm) - 0.2.11 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2021-present Floating UI contributors
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @gorhom/bottom-sheet (npm) - 5.1.1

-

- Enclosed you will find the license conditions and - copyright notices applicable for - - @gorhom/bottom-sheet (npm) - 5.1.1 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2020 Mo Gorhom
-
-
- - - - -


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @gorhom/portal (npm) - 1.0.14

-

- Enclosed you will find the license conditions and - copyright notices applicable for - @gorhom/portal - (npm) - 1.0.14 -

-
- -
License conditions:
+
License conditions:

@@ -36774,7 +36304,661 @@
License conditions:


-
Copyrights:
+
Copyrights:
+
+ + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/expect (npm) - 30.0.5

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/expect + (npm) - 30.0.5 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/expect-utils (npm) - 29.7.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - + @jest/expect-utils (npm) - 29.7.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
+ Copyright (c) 2008-2016 Pivotal Labs; Copyright (c) Meta Platforms, Inc. and + affiliates +
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/expect-utils (npm) - 30.0.5

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - + @jest/expect-utils (npm) - 30.0.5 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
+ Copyright (c) 2008-2016 Pivotal Labs; Copyright (c) Meta Platforms, Inc. and + affiliates +
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/fake-timers (npm) - 29.7.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/fake-timers + (npm) - 29.7.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/get-type (npm) - 30.0.1

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/get-type + (npm) - 30.0.1 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/globals (npm) - 29.7.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/globals + (npm) - 29.7.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/pattern (npm) - 30.0.1

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/pattern + (npm) - 30.0.1 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/reporters (npm) - 29.7.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/reporters + (npm) - 29.7.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/schemas (npm) - 29.6.3

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/schemas + (npm) - 29.6.3 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/schemas (npm) - 30.0.5

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/schemas + (npm) - 30.0.5 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/source-map (npm) - 29.6.3

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/source-map + (npm) - 29.6.3 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Meta Platforms, Inc. and affiliates
+
+
+ + + + +


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/test-result (npm) - 29.7.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - @jest/test-result + (npm) - 29.7.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
@@ -36786,16 +36970,16 @@
Copyrights:
Copyright (c) Meta Platforms, Inc. and affiliates
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/expect (npm) - 30.0.5

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/test-sequencer (npm) - 29.7.0

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/expect - (npm) - 30.0.5 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jest/test-sequencer (npm) - 29.7.0


-
License conditions:
+
License conditions:

@@ -36828,7 +37012,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
@@ -36840,16 +37024,16 @@
Copyrights:
Copyright (c) Meta Platforms, Inc. and affiliates
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/expect-utils (npm) - 29.7.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/transform (npm) - 29.7.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jest/expect-utils (npm) - 29.7.0 + Enclosed you will find the license conditions and + copyright notices applicable for - @jest/transform + (npm) - 29.7.0


-
License conditions:
+
License conditions:

@@ -36882,13 +37066,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright (c) 2008-2016 Pivotal Labs; Copyright (c) Meta Platforms, Inc. and - affiliates - Copyright (c) Meta Platforms, Inc. and affiliates

@@ -36897,16 +37078,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/expect-utils (npm) - 30.0.5

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/types (npm) - 26.6.2

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jest/expect-utils (npm) - 30.0.5 + Enclosed you will find the license conditions and + copyright notices applicable for - @jest/types (npm) + - 26.6.2


-
License conditions:
+
License conditions:

@@ -36939,13 +37120,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright (c) 2008-2016 Pivotal Labs; Copyright (c) Meta Platforms, Inc. and - affiliates - Copyright (c) Facebook, Inc. and its affiliates

@@ -36954,16 +37132,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/fake-timers (npm) - 29.7.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/types (npm) - 27.5.1

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/fake-timers - (npm) - 29.7.0 + Enclosed you will find the license conditions and + copyright notices applicable for - @jest/types (npm) + - 27.5.1


-
License conditions:
+
License conditions:

@@ -36996,10 +37174,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliatesCopyright (c) Facebook, Inc. and its affiliates

@@ -37008,16 +37186,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/get-type (npm) - 30.0.1

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/types (npm) - 29.6.3

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/get-type - (npm) - 30.0.1 + Enclosed you will find the license conditions and + copyright notices applicable for - @jest/types (npm) + - 29.6.3


-
License conditions:
+
License conditions:

@@ -37050,7 +37228,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
@@ -37062,16 +37240,16 @@
Copyrights:
Copyright (c) Meta Platforms, Inc. and affiliates
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/globals (npm) - 29.7.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jest/types (npm) - 30.0.5

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/globals - (npm) - 29.7.0 + Enclosed you will find the license conditions and + copyright notices applicable for - @jest/types (npm) + - 30.0.5


-
License conditions:
+
License conditions:

@@ -37104,7 +37282,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
@@ -37116,16 +37294,16 @@
Copyrights:
- - -
Copyright (c) Meta Platforms, Inc. and affiliates
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/pattern (npm) - 30.0.1

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/gen-mapping (npm) - 0.3.12

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/pattern - (npm) - 30.0.1 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/gen-mapping (npm) - 0.3.12


-
License conditions:
+
License conditions:

@@ -37158,10 +37336,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2024 Justin Ridgewell <justin@ridgewell.name> +

@@ -37170,16 +37350,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/reporters (npm) - 29.7.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/gen-mapping (npm) - 0.3.8

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/reporters - (npm) - 29.7.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/gen-mapping (npm) - 0.3.8


-
License conditions:
+
License conditions:

@@ -37212,10 +37392,14 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2022 Justin Ridgewell <jridgewell@google.com>; Justin Ridgewell + <justin@ridgewell.name> , license' MIT', repository' + https://github.com/jridgewell/gen-mapping +

@@ -37224,16 +37408,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/schemas (npm) - 29.6.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/resolve-uri (npm) - 3.1.2

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/schemas - (npm) - 29.6.3 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/resolve-uri (npm) - 3.1.2


-
License conditions:
+
License conditions:

@@ -37266,10 +37450,14 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2019 Justin Ridgewell <jridgewell@google.com>; Justin Ridgewell + <justin@ridgewell.name> , license' MIT', repository' + https://github.com/jridgewell/resolve-uri +

@@ -37278,16 +37466,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/schemas (npm) - 30.0.5

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/set-array (npm) - 1.2.1

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/schemas - (npm) - 30.0.5 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/set-array (npm) - 1.2.1


-
License conditions:
+
License conditions:

@@ -37320,10 +37508,14 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2022 Justin Ridgewell <jridgewell@google.com>; Justin Ridgewell + <justin@ridgewell.name> , license' MIT', repository' + https://github.com/jridgewell/set-array +

@@ -37332,16 +37524,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/source-map (npm) - 29.6.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/source-map (npm) - 0.3.10

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/source-map - (npm) - 29.6.3 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/source-map (npm) - 0.3.10


-
License conditions:
+
License conditions:

@@ -37374,10 +37566,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2024 Justin Ridgewell <justin@ridgewell.name> +

@@ -37386,16 +37580,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/test-result (npm) - 29.7.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/source-map (npm) - 0.3.6

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/test-result - (npm) - 29.7.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/source-map (npm) - 0.3.6


-
License conditions:
+
License conditions:

@@ -37428,10 +37622,14 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2019 Justin Ridgewell <jridgewell@google.com>; Justin Ridgewell + <justin@ridgewell.name> , license' MIT', repository' + https://github.com/jridgewell/source-map +

@@ -37440,16 +37638,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/test-sequencer (npm) - 29.7.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/sourcemap-codec (npm) - 1.5.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jest/test-sequencer (npm) - 29.7.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/sourcemap-codec (npm) - 1.5.0


-
License conditions:
+
License conditions:

@@ -37482,10 +37680,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliatesCopyright (c) 2015 Rich Harris

@@ -37494,16 +37692,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/transform (npm) - 29.7.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/sourcemap-codec (npm) - 1.5.4

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/transform - (npm) - 29.7.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/sourcemap-codec (npm) - 1.5.4


-
License conditions:
+
License conditions:

@@ -37536,10 +37734,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2024 Justin Ridgewell <justin@ridgewell.name> +

@@ -37548,16 +37748,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/types (npm) - 26.6.2

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/trace-mapping (npm) - 0.3.25

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/types (npm) - - 26.6.2 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/trace-mapping (npm) - 0.3.25


-
License conditions:
+
License conditions:

@@ -37590,82 +37790,31 @@
License conditions:


-
Copyrights:
+
Copyrights:
- - -
Copyright (c) Facebook, Inc. and its affiliates
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/types (npm) - 27.5.1

-

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/types (npm) - - 27.5.1 -

-
- -
License conditions:
-
- - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+ Copyright 2022 Justin Ridgewell <justin@ridgewell.name>; Justin Ridgewell + <justin@ridgewell.name>

- -
- -
-
Copyrights:
- - - - -
Copyright (c) Facebook, Inc. and its affiliates
-

-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/types (npm) - 29.6.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/trace-mapping (npm) - 0.3.29

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/types (npm) - - 29.6.3 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/trace-mapping (npm) - 0.3.29


-
License conditions:
+
License conditions:

@@ -37698,10 +37847,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2024 Justin Ridgewell <justin@ridgewell.name> +

@@ -37710,16 +37861,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jest/types (npm) - 30.0.5

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @jridgewell/trace-mapping (npm) - 0.3.9

- Enclosed you will find the license conditions and - copyright notices applicable for - @jest/types (npm) - - 30.0.5 + Enclosed you will find the license conditions and + copyright notices applicable for - + @jridgewell/trace-mapping (npm) - 0.3.9


-
License conditions:
+
License conditions:

@@ -37752,10 +37903,13 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Meta Platforms, Inc. and affiliates + Copyright 2022 Justin Ridgewell <justin@ridgewell.name>; Justin Ridgewell + <justin@ridgewell.name> +

@@ -37764,16 +37918,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/gen-mapping (npm) - 0.3.12

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @nodelib/fs.scandir (npm) - 2.1.5

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/gen-mapping (npm) - 0.3.12 + Enclosed you will find the license conditions and + copyright notices applicable for - + @nodelib/fs.scandir (npm) - 2.1.5


-
License conditions:
+
License conditions:

@@ -37806,12 +37960,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2024 Justin Ridgewell <justin@ridgewell.name> - Copyright (c) Denis Malinochkin

@@ -37820,16 +37972,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/gen-mapping (npm) - 0.3.8

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @nodelib/fs.stat (npm) - 2.0.5

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/gen-mapping (npm) - 0.3.8 + Enclosed you will find the license conditions and + copyright notices applicable for - @nodelib/fs.stat + (npm) - 2.0.5


-
License conditions:
+
License conditions:

@@ -37862,14 +38014,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2022 Justin Ridgewell <jridgewell@google.com>; Justin Ridgewell - <justin@ridgewell.name> , license' MIT', repository' - https://github.com/jridgewell/gen-mapping - Copyright (c) Denis Malinochkin

@@ -37878,16 +38026,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/resolve-uri (npm) - 3.1.2

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @nodelib/fs.walk (npm) - 1.2.8

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/resolve-uri (npm) - 3.1.2 + Enclosed you will find the license conditions and + copyright notices applicable for - @nodelib/fs.walk + (npm) - 1.2.8


-
License conditions:
+
License conditions:

@@ -37920,14 +38068,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2019 Justin Ridgewell <jridgewell@google.com>; Justin Ridgewell - <justin@ridgewell.name> , license' MIT', repository' - https://github.com/jridgewell/resolve-uri - Copyright (c) Denis Malinochkin

@@ -37936,16 +38080,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/set-array (npm) - 1.2.1

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @prettier/cli (npm) - 0.6.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/set-array (npm) - 1.2.1 + Enclosed you will find the license conditions and + copyright notices applicable for - @prettier/cli + (npm) - 0.6.0


-
License conditions:
+
License conditions:

@@ -37978,14 +38122,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2022 Justin Ridgewell <jridgewell@google.com>; Justin Ridgewell - <justin@ridgewell.name> , license' MIT', repository' - https://github.com/jridgewell/set-array - Copyright (c) James Long and contributors

@@ -37994,16 +38134,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/source-map (npm) - 0.3.10

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @prettier/plugin-xml (npm) - 2.2.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/source-map (npm) - 0.3.10 + Enclosed you will find the license conditions and + copyright notices applicable for - + @prettier/plugin-xml (npm) - 2.2.0


-
License conditions:
+
License conditions:

@@ -38036,12 +38176,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2024 Justin Ridgewell <justin@ridgewell.name> - Copyright (c) 2019-present Kevin Newton

@@ -38050,16 +38188,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/source-map (npm) - 0.3.6

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @ptomasroos/react-native-multi-slider (npm) - 1.0.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/source-map (npm) - 0.3.6 + Enclosed you will find the license conditions and + copyright notices applicable for - + @ptomasroos/react-native-multi-slider (npm) - 1.0.0


-
License conditions:
+
License conditions:

@@ -38092,14 +38230,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2019 Justin Ridgewell <jridgewell@google.com>; Justin Ridgewell - <justin@ridgewell.name> , license' MIT', repository' - https://github.com/jridgewell/source-map - Copyright (c) Tomas Roos 2016

@@ -38108,16 +38242,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/sourcemap-codec (npm) - 1.5.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/motion (npm) - 1.1.4

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/sourcemap-codec (npm) - 1.5.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/motion (npm) - 1.1.4


-
License conditions:
+
License conditions:

@@ -38150,10 +38284,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) 2015 Rich HarrisCopyright (c) 2019-present afc163

@@ -38162,16 +38296,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/sourcemap-codec (npm) - 1.5.4

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/motion (npm) - 1.2.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/sourcemap-codec (npm) - 1.5.4 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/motion (npm) - 1.2.0


-
License conditions:
+
License conditions:

@@ -38204,12 +38338,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2024 Justin Ridgewell <justin@ridgewell.name> - Copyright (c) 2019-present afc163

@@ -38218,16 +38350,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/trace-mapping (npm) - 0.3.25

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/portal (npm) - 2.0.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/trace-mapping (npm) - 0.3.25 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/portal (npm) - 2.0.0


-
License conditions:
+
License conditions:

@@ -38260,13 +38392,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2022 Justin Ridgewell <justin@ridgewell.name>; Justin Ridgewell - <justin@ridgewell.name> - Copyright (c) 2019-present react-component

@@ -38275,16 +38404,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/trace-mapping (npm) - 0.3.29

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/portal (npm) - 2.2.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/trace-mapping (npm) - 0.3.29 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/portal (npm) - 2.2.0


-
License conditions:
+
License conditions:

@@ -38317,12 +38446,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2024 Justin Ridgewell <justin@ridgewell.name> - Copyright (c) 2019-present react-component

@@ -38331,16 +38458,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @jridgewell/trace-mapping (npm) - 0.3.9

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/resize-observer (npm) - 1.0.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @jridgewell/trace-mapping (npm) - 0.3.9 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/resize-observer (npm) - 1.0.0


-
License conditions:
+
License conditions:

@@ -38373,13 +38500,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright 2022 Justin Ridgewell <justin@ridgewell.name>; Justin Ridgewell - <justin@ridgewell.name> - Copyright (c) 2019-present afc163

@@ -38388,16 +38512,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @nodelib/fs.scandir (npm) - 2.1.5

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/resize-observer (npm) - 1.1.1

- Enclosed you will find the license conditions and - copyright notices applicable for - - @nodelib/fs.scandir (npm) - 2.1.5 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/resize-observer (npm) - 1.1.1


-
License conditions:
+
License conditions:

@@ -38430,10 +38554,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Denis MalinochkinCopyright (c) 2019-present afc163

@@ -38442,16 +38566,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @nodelib/fs.stat (npm) - 2.0.5

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/slider (npm) - 1.0.1

- Enclosed you will find the license conditions and - copyright notices applicable for - @nodelib/fs.stat - (npm) - 2.0.5 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/slider (npm) - 1.0.1


-
License conditions:
+
License conditions:

@@ -38484,10 +38608,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Denis Malinochkin + Copyright (c) 2015-present Alipay.com, https://www.alipay.com +

@@ -38496,16 +38622,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @nodelib/fs.walk (npm) - 1.2.8

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/tooltip (npm) - 1.3.3

- Enclosed you will find the license conditions and - copyright notices applicable for - @nodelib/fs.walk - (npm) - 1.2.8 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/tooltip (npm) - 1.3.3


-
License conditions:
+
License conditions:

@@ -38538,10 +38664,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Denis Malinochkin + Copyright (c) 2015-present Alipay.com, https://www.alipay.com +

@@ -38550,163 +38678,18 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @notifee/react-native (npm) - 9.1.8

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/trigger (npm) - 3.6.15

- Enclosed you will find the license conditions and - copyright notices applicable for - - @notifee/react-native (npm) - 9.1.8 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/trigger (npm) - 3.6.15


-
License conditions:
+
License conditions:

- - -
- Apache License Version 2.0, January 2004
-
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, - REPRODUCTION, AND DISTRIBUTION
-
1. Definitions.
-
"License" shall mean the terms and conditions for use, reproduction, and - distribution as defined by Sections 1 through 9 of this document.
-
"Licensor" shall mean the copyright owner or entity authorized by the - copyright owner that is granting the License.
-
"Legal Entity" shall mean the union of the acting entity and all other - entities that control, are controlled by, or are under common control with that - entity. For the purposes of this definition, "control" means (i) the power, direct - or indirect, to cause the direction or management of such entity, whether by - contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity.
-
"You" (or "Your") shall mean an individual or Legal Entity exercising - permissions granted by this License.
-
"Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation source, and - configuration files.
-
"Object" form shall mean any form resulting from mechanical transformation or - translation of a Source form, including but not limited to compiled object code, - generated documentation, and conversions to other media types.
-
"Work" shall mean the work of authorship, whether in Source or Object form, - made available under the License, as indicated by a copyright notice that is - included in or attached to the work (an example is provided in the Appendix - below).
-
"Derivative Works" shall mean any work, whether in Source or Object form, that - is based on (or derived from) the Work and for which the editorial revisions, - annotations, elaborations, or other modifications represent, as a whole, an original - work of authorship. For the purposes of this License, Derivative Works shall not - include works that remain separable from, or merely link (or bind by name) to the - interfaces of, the Work and Derivative Works thereof.
-
"Contribution" shall mean any work of authorship, including the original - version of the Work and any modifications or additions to that Work or Derivative - Works thereof, that is intentionally submitted to Licensor for inclusion in the Work - by the copyright owner or by an individual or Legal Entity authorized to submit on - behalf of the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent to the Licensor - or its representatives, including but not limited to communication on electronic - mailing lists, source code control systems, and issue tracking systems that are - managed by, or on behalf of, the Licensor for the purpose of discussing and - improving the Work, but excluding communication that is conspicuously marked or - otherwise designated in writing by the copyright owner as "Not a Contribution."
-
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf - of whom a Contribution has been received by Licensor and subsequently incorporated - within the Work.
-
2. Grant of Copyright License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, - prepare Derivative Works of, publicly display, publicly perform, sublicense, and - distribute the Work and such Derivative Works in Source or Object form.
-
3. Grant of Patent License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this - section) patent license to make, have made, use, offer to sell, sell, import, and - otherwise transfer the Work, where such license applies only to those patent claims - licensable by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) with the Work to - which such Contribution(s) was submitted. If You institute patent litigation against - any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the - Work or a Contribution incorporated within the Work constitutes direct or - contributory patent infringement, then any patent licenses granted to You under this - License for that Work shall terminate as of the date such litigation is filed.
-
4. Redistribution. You may reproduce and distribute copies of the Work or - Derivative Works thereof in any medium, with or without modifications, and in Source - or Object form, provided that You meet the following conditions:
-
(a) You must give any other recipients of the Work or Derivative Works a copy - of this License; and
-
(b) You must cause any modified files to carry prominent notices stating that - You changed the files; and
-
(c) You must retain, in the Source form of any Derivative Works that You - distribute, all copyright, patent, trademark, and attribution notices from the - Source form of the Work, excluding those notices that do not pertain to any part of - the Derivative Works; and
-
(d) If the Work includes a "NOTICE" text file as part of its distribution, - then any Derivative Works that You distribute must include a readable copy of the - attribution notices contained within such NOTICE file, excluding those notices that - do not pertain to any part of the Derivative Works, in at least one of the following - places: within a NOTICE text file distributed as part of the Derivative Works; - within the Source form or documentation, if provided along with the Derivative - Works; or, within a display generated by the Derivative Works, if and wherever such - third-party notices normally appear. The contents of the NOTICE file are for - informational purposes only and do not modify the License. You may add Your own - attribution notices within Derivative Works that You distribute, alongside or as an - addendum to the NOTICE text from the Work, provided that such additional attribution - notices cannot be construed as modifying the License.
You may add Your own - copyright statement to Your modifications and may provide additional or different - license terms and conditions for use, reproduction, or distribution of Your - modifications, or for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with the conditions - stated in this License.
-
5. Submission of Contributions. Unless You explicitly state otherwise, any - Contribution intentionally submitted for inclusion in the Work by You to the - Licensor shall be under the terms and conditions of this License, without any - additional terms or conditions. Notwithstanding the above, nothing herein shall - supersede or modify the terms of any separate license agreement you may have - executed with Licensor regarding such Contributions.
-
6. Trademarks. This License does not grant permission to use the trade names, - trademarks, service marks, or product names of the Licensor, except as required for - reasonable and customary use in describing the origin of the Work and reproducing - the content of the NOTICE file.
-
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in - writing, Licensor provides the Work (and each Contributor provides its - Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - either express or implied, including, without limitation, any warranties or - conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR - PURPOSE. You are solely responsible for determining the appropriateness of using or - redistributing the Work and assume any risks associated with Your exercise of - permissions under this License.
-
8. Limitation of Liability. In no event and under no legal theory, whether in - tort (including negligence), contract, or otherwise, unless required by applicable - law (such as deliberate and grossly negligent acts) or agreed to in writing, shall - any Contributor be liable to You for damages, including any direct, indirect, - special, incidental, or consequential damages of any character arising as a result - of this License or out of the use or inability to use the Work (including but not - limited to damages for loss of goodwill, work stoppage, computer failure or - malfunction, or any and all other commercial damages or losses), even if such - Contributor has been advised of the possibility of such damages.
-
9. Accepting Warranty or Additional Liability. While redistributing the Work - or Derivative Works thereof, You may choose to offer, and charge a fee for, - acceptance of support, warranty, indemnity, or other liability obligations and/or - rights consistent with this License. However, in accepting such obligations, You may - act only on Your own behalf and on Your sole responsibility, not on behalf of any - other Contributor, and only if You agree to indemnify, defend, and hold each - Contributor harmless for any liability incurred by, or claims asserted against, such - Contributor by reason of your accepting any such warranty or additional - liability.
-
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to - your work.
To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own - identifying information. (Don't include the brackets!) The text should be enclosed - in the appropriate comment syntax for the file format. We also recommend that a file - or class name and description of purpose be included on the same "printed page" as - the copyright notice for easier identification within third-party archives.
Copyright - [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with the License. -
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless - required by applicable law or agreed to in writing, software distributed under the - License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the specific language governing - permissions and limitations under the License. -
The MIT License @@ -38737,13 +38720,11 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) 2015 Chris Scott; Copyright (c) 2016-present Invertase Limited; - Copyright (c) 2016-present Invertase Limited & Contributors; Copyright (c) - 2016-present Invertase Limited <oss@invertase.io> + Copyright (c) 2015-present Alipay.com, https://www.alipay.com
@@ -38753,16 +38734,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @prettier/cli (npm) - 0.6.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/trigger (npm) - 3.9.0

- Enclosed you will find the license conditions and - copyright notices applicable for - @prettier/cli - (npm) - 0.6.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/trigger (npm) - 3.9.0


-
License conditions:
+
License conditions:

@@ -38795,10 +38776,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) James Long and contributors + Copyright (c) 2015-present Alipay.com, https://www.alipay.com +

@@ -38807,16 +38790,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @prettier/plugin-xml (npm) - 2.2.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/util (npm) - 1.3.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @prettier/plugin-xml (npm) - 2.2.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/util (npm) - 1.3.0


-
License conditions:
+
License conditions:

@@ -38849,10 +38832,13 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) 2019-present Kevin Newton + Copyright (c) 2014-present yiminghe; Copyright (c) 2015-present Alipay.com, + https://www.alipay.com +

@@ -38861,16 +38847,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @ptomasroos/react-native-multi-slider (npm) - 1.0.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @rc-component/util (npm) - 1.9.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @ptomasroos/react-native-multi-slider (npm) - 1.0.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @rc-component/util (npm) - 1.9.0


-
License conditions:
+
License conditions:

@@ -38903,10 +38889,13 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) Tomas Roos 2016 + Copyright (c) 2014-present yiminghe; Copyright (c) 2015-present Alipay.com, + https://www.alipay.com +

@@ -38915,16 +38904,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @react-native-async-storage/async-storage (npm) - 2.0.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @react-native-async-storage/async-storage (npm) - 2.2.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - @react-native-async-storage/async-storage (npm) - 2.0.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + @react-native-async-storage/async-storage (npm) - 2.2.0


-
License conditions:
+
License conditions:

@@ -38957,7 +38946,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
+ + +
@@ -43027,10 +43016,64 @@
License conditions:


-
Copyrights:
+
Copyrights:
+ + + + +
Copyright (c) 2025 Ahmed Sbai
+
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @shopify/flash-list (npm) - 1.7.3

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - + @shopify/flash-list (npm) - 1.7.3 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
- +
Copyright (c) 2025 Ahmed SbaiCopyright 2022-present, Shopify Inc.

@@ -43039,16 +43082,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @shopify/flash-list (npm) - 1.7.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - @shopify/flash-list (npm) - 2.3.1

- Enclosed you will find the license conditions and - copyright notices applicable for - - @shopify/flash-list (npm) - 1.7.3 + Enclosed you will find the license conditions and + copyright notices applicable for - + @shopify/flash-list (npm) - 2.3.1


-
License conditions:
+
License conditions:

@@ -43081,7 +43124,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
@@ -45382,60 +45425,6 @@
Copyrights:

- - -
Copyright 2022-present, Shopify Inc.
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @types/geojson (npm) - 7946.0.16

-

- Enclosed you will find the license conditions and - copyright notices applicable for - @types/geojson - (npm) - 7946.0.16 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) Microsoft Corporation
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -49120,16 +49109,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - ansi-regex (npm) - 6.2.2

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - ansi-regex (npm) - 6.3.0

- Enclosed you will find the license conditions and - copyright notices applicable for - ansi-regex (npm) - - 6.2.2 + Enclosed you will find the license conditions and + copyright notices applicable for - ansi-regex (npm) + - 6.3.0


-
License conditions:
+
License conditions:

@@ -49162,7 +49151,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
+ + +
@@ -53837,16 +53826,73 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - brace-expansion (npm) - 5.0.6

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - brace-expansion (npm) - 5.0.12

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - brace-expansion + (npm) - 5.0.12 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
+ Copyright Isaac Z. Schlueter <i@izs.me>; Copyright Julian Gruber + <julian@juliangruber.com> +
+
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - brace-expansion (npm) - 5.0.8

- Enclosed you will find the license conditions and - copyright notices applicable for - brace-expansion - (npm) - 5.0.6 + Enclosed you will find the license conditions and + copyright notices applicable for - brace-expansion + (npm) - 5.0.8


-
License conditions:
+
License conditions:

@@ -53879,7 +53925,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
+ + + + + + + + +
@@ -57600,6 +57646,63 @@
Copyrights:

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - clsx (npm) - 2.1.1

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - clsx (npm) - + 2.1.1 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
+ (c) Luke Edwards (https://lukeed.com); Copyright (c) Luke Edwards + <luke.edwards05@gmail.com> (lukeed.com) +
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -59097,6 +59200,63 @@
Copyrights:

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - core-js (npm) - 3.49.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - core-js (npm) - + 3.49.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
+ Copyright (c) 2013-2025 Denis Pushkarev; Copyright (c) 2025-2026 CoreJS Company + (core-js.io); copyright (c) 2013-2025 Denis Pushkarev +
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -78830,12 +78990,69 @@
License conditions:


-
Copyrights:
+
Copyrights:
+ + + + +
+ (c) Sindre Sorhus (https://sindresorhus.com); Copyright (c) Sindre Sorhus + <sindresorhus@gmail.com> (sindresorhus.com) +
+
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - is-generator-function (npm) - 1.1.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - + is-generator-function (npm) - 1.1.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
- (c) Sindre Sorhus (https://sindresorhus.com); Copyright (c) Sindre Sorhus - <sindresorhus@gmail.com> (sindresorhus.com) + Copyright (c) 2014 Jordan Harband; Jordan Harband <ljharb@gmail.com> , + funding' url' https://github.com/sponsors/ljharb
@@ -78845,16 +79062,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - is-generator-function (npm) - 1.1.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - is-glob (npm) - 2.0.1

- Enclosed you will find the license conditions and - copyright notices applicable for - - is-generator-function (npm) - 1.1.0 + Enclosed you will find the license conditions and + copyright notices applicable for - is-glob (npm) - + 2.0.1


-
License conditions:
+
License conditions:

@@ -78887,12 +79104,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) 2014 Jordan Harband; Jordan Harband <ljharb@gmail.com> , - funding' url' https://github.com/sponsors/ljharb + Copyright (c) 2014-2015, Jon Schlinkert; Copyright (c) 2015 Jon Schlinkert; + name' Jon Schlinkert', url' https://github.com/jonschlinkert
@@ -78902,16 +79119,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - is-glob (npm) - 2.0.1

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - is-glob (npm) - 4.0.3

- Enclosed you will find the license conditions and - copyright notices applicable for - is-glob (npm) - - 2.0.1 + Enclosed you will find the license conditions and + copyright notices applicable for - is-glob (npm) - + 4.0.3


-
License conditions:
+
License conditions:

@@ -78944,12 +79161,13 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) 2014-2015, Jon Schlinkert; Copyright (c) 2015 Jon Schlinkert; - name' Jon Schlinkert', url' https://github.com/jonschlinkert + Copyright (c) 2014-2017, Jon Schlinkert; Copyright (c) 2019, Jon Schlinkert + (https://github.com/jonschlinkert); Jon Schlinkert + (https://github.com/jonschlinkert)
@@ -78959,16 +79177,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - is-glob (npm) - 4.0.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - is-interactive (npm) - 1.0.0

- Enclosed you will find the license conditions and - copyright notices applicable for - is-glob (npm) - - 4.0.3 + Enclosed you will find the license conditions and + copyright notices applicable for - is-interactive + (npm) - 1.0.0


-
License conditions:
+
License conditions:

@@ -79001,13 +79219,11 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) 2014-2017, Jon Schlinkert; Copyright (c) 2019, Jon Schlinkert - (https://github.com/jonschlinkert); Jon Schlinkert - (https://github.com/jonschlinkert) + Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
@@ -79017,16 +79233,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - is-interactive (npm) - 1.0.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - is-map (npm) - 2.0.3

- Enclosed you will find the license conditions and - copyright notices applicable for - is-interactive - (npm) - 1.0.0 + Enclosed you will find the license conditions and + copyright notices applicable for - is-map (npm) - + 2.0.3


-
License conditions:
+
License conditions:

@@ -79059,11 +79275,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) + Copyright (c) 2019 Inspect JS; Jordan Harband <ljharb@gmail.com> , + funding' url' https://github.com/sponsors/ljharb
@@ -79073,16 +79290,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - is-map (npm) - 2.0.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - is-mobile (npm) - 5.0.0

- Enclosed you will find the license conditions and - copyright notices applicable for - is-map (npm) - - 2.0.3 + Enclosed you will find the license conditions and + copyright notices applicable for - is-mobile (npm) - + 5.0.0


-
License conditions:
+
License conditions:

@@ -79115,12 +79332,11 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) 2019 Inspect JS; Jordan Harband <ljharb@gmail.com> , - funding' url' https://github.com/sponsors/ljharb + Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
@@ -89562,16 +89778,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - lru-cache (npm) - 11.5.1

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - lru-cache (npm) - 11.5.2

Enclosed you will find the - license conditions applicable for - lru-cache (npm) - - 11.5.1 + license conditions applicable for - lru-cache (npm) - + 11.5.2


-
License conditions:
+
License conditions:

@@ -92539,6 +92755,65 @@
License conditions:

+ + + - - - - - -
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - minimatch (npm) - 10.2.6

+

+ Enclosed you will find the + license conditions applicable for - minimatch (npm) - + 10.2.6 +

+
+ +
License conditions:
+
+ + + + +
+ # Blue Oak Model License
+
Version 1.0.0
+
## Purpose
+
This license gives everyone as much permission to work with
this software + as possible, while protecting contributors
from liability.
+
## Acceptance
+
In order to receive this license, you must agree to its
rules. The rules + of this license are both obligations
under that agreement and conditions to + your license.
You must not do anything with this software that triggers
a + rule that you cannot or will not follow.
+
## Copyright
+
Each contributor licenses you to do everything with this
software that + would otherwise infringe that contributor's
copyright in it.
+
## Notices
+
You must ensure that everyone who gets a copy of
any part of this + software from you, with or without
changes, also gets the text of this license + or a link to
<https://blueoakcouncil.org/license/1.0.0>.
+
## Excuse
+
If anyone notifies you in writing that you have not
complied with + [Notices](#notices), you can keep your
license by taking all practical steps to + comply within 30
days after the notice. If you do not do so, your license
ends + immediately.
+
## Patent
+
Each contributor licenses you to do everything with this
software that + would otherwise infringe any patent claims
they can license or become able to + license.
+
## Reliability
+
No contributor can revoke this license.
+
## No Liability
+
***As far as the law allows, this software comes as is,
without any + warranty or condition, and no contributor
will be liable to anyone for any + damages related to this
software or this license, under any kind of legal + claim.***
+
+
+ +
+ +
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -104021,130 +104296,20 @@
License conditions:


-
Copyrights:
- - - - -
- Copyright (c) 1999-2016, International Business Machines Corporation and others; - Copyright (c) 2005 The Android Open Source Project; Copyright (c) 2006 The Android - Open Source Project; Copyright (c) 2007 The Guava Authors; Copyright (c) 2014 The - Android Open Source Project; Copyright (c) 2015 Daniel Kirchner; Copyright (c) - 2015-2021 the original authors.; Copyright (c) 2016 and later Unicode, Inc. and - others; Copyright (c) Facebook, Inc. and its affiliates; Copyright (c) Meta - Platforms, Inc. and affiliates; Copyright 2015 the original author or authors; - Copyright Edward Nevill; Copyright Oliver Kowalke 2009; Portions Copyright (c) Meta - Platforms, Inc. and affiliates; copyright 2014-2015 Gaetan Renaudeau -
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-animatable (npm) - 1.4.0

-

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-animatable (npm) - 1.4.0 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
- (c) Joel Arvidsson 2015; Copyright (c) 2015 Joel Arvidsson -
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-barcode-mask (npm) - 1.2.4

-

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-barcode-mask (npm) - 1.2.4 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
+
Copyrights:
- +
Copyright (c) 2019 Shahnawaz Ali + Copyright (c) 1999-2016, International Business Machines Corporation and others; + Copyright (c) 2005 The Android Open Source Project; Copyright (c) 2006 The Android + Open Source Project; Copyright (c) 2007 The Guava Authors; Copyright (c) 2014 The + Android Open Source Project; Copyright (c) 2015 Daniel Kirchner; Copyright (c) + 2015-2021 the original authors.; Copyright (c) 2016 and later Unicode, Inc. and + others; Copyright (c) Facebook, Inc. and its affiliates; Copyright (c) Meta + Platforms, Inc. and affiliates; Copyright 2015 the original author or authors; + Copyright Edward Nevill; Copyright Oliver Kowalke 2009; Portions Copyright (c) Meta + Platforms, Inc. and affiliates; copyright 2014-2015 Gaetan Renaudeau +

@@ -104153,42 +104318,18 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-blob-util (npm) - 0.24.7

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-animatable (npm) - 1.4.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-blob-util (npm) - 0.24.7 + Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-animatable (npm) - 1.4.0


-
License conditions:
+
License conditions:

- - -
- Redistribution and use in source and binary forms, with or without modification, are - permitted provided that the following conditions are met: -
-
Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. -
-
Redistributions in binary form must reproduce the above copyright notice, this - list of conditions and the following disclaimer in the documentation and/or other - materials provided with the distribution. -
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -
The MIT License @@ -104219,14 +104360,11 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) 2013, Jim Higson; Copyright (c) 2016 wkh237; Copyright (c) 2016Nian - suzuri04x2; Copyright (c) 2016Nian wkh237; Copyright (c) 2016Nian wkh237.github.io; - Copyright (c) 2017 Ron Radtke (dev@ikascrips.de, ron.radtke@hawk-intech.com); - Copyright (c) 2018 wkh237.github.io; Copyright 2016 wkh237@github + (c) Joel Arvidsson 2015; Copyright (c) 2015 Joel Arvidsson
@@ -104236,18 +104374,42 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-color (npm) - 0.0.10

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-blob-util (npm) - 0.24.7

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-color (npm) - 0.0.10 + Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-blob-util (npm) - 0.24.7


-
License conditions:
+
License conditions:

+ + + - - - - - - - - - - - - - - -
+ Redistribution and use in source and binary forms, with or without modification, are + permitted provided that the following conditions are met: +
+
Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +
+
Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or other + materials provided with the distribution. +
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +
The MIT License @@ -104278,10 +104440,15 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) 2017 Hector Garcia + Copyright (c) 2013, Jim Higson; Copyright (c) 2016 wkh237; Copyright (c) 2016Nian + suzuri04x2; Copyright (c) 2016Nian wkh237; Copyright (c) 2016Nian wkh237.github.io; + Copyright (c) 2017 Ron Radtke (dev@ikascrips.de, ron.radtke@hawk-intech.com); + Copyright (c) 2018 wkh237.github.io; Copyright 2016 wkh237@github +

@@ -104347,16 +104514,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-dialog (npm) - 9.3.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-device-info (npm) - 15.0.2

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-dialog (npm) - 9.3.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-device-info (npm) - 15.0.2


-
License conditions:
+
License conditions:

@@ -104389,10 +104556,13 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) 2017 React Native Community + Copyright (c) 2015 Learnium Limited; Copyright (c) 2015 Rebecca Hughes; Copyright + (c) 2021 Learnium +

@@ -104401,16 +104571,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-file-viewer-turbo (npm) - 0.7.4

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-dialog (npm) - 9.3.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-file-viewer-turbo (npm) - 0.7.4 + Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-dialog (npm) - 9.3.0


-
License conditions:
+
License conditions:

@@ -104443,10 +104613,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) 2024 VadkoCopyright (c) 2017 React Native Community

@@ -104455,16 +104625,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-geocoder (npm) - 0.5.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-file-viewer-turbo (npm) - 0.7.4

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-geocoder (npm) - 0.5.0 + Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-file-viewer-turbo (npm) - 0.7.4


-
License conditions:
+
License conditions:

@@ -104497,10 +104667,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c) 2015 AlexeyCopyright (c) 2024 Vadko

@@ -104561,60 +104731,6 @@
Copyrights:

-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-linear-gradient (npm) - 2.8.3

-

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-linear-gradient (npm) - 2.8.3 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2016 React Native Community
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -104671,16 +104787,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-maps (npm) - 1.20.1

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-notify-kit (npm) - 10.4.7

- Enclosed you will find the license conditions and - copyright notices applicable for - react-native-maps - (npm) - 1.20.1 + Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-notify-kit (npm) - 10.4.7


-
License conditions:
+
License conditions:

@@ -104828,58 +104944,6 @@
License conditions:
permissions and limitations under the License. - - - - - - - - - + + + - - - - - - @@ -117871,231 +117705,7 @@
License conditions:


-
Copyrights:
-
- Copyright (c) <year> <copyright holders> -
-
- This software is provided 'as-is', without any express or implied
- warranty. In no event will the authors be held liable for any damages
- arising from the use of this software. -
-
- Permission is granted to anyone to use this software for any purpose,
- including commercial applications, and to alter it and redistribute it
- freely, subject to the following restrictions: -
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution. -
-
- Jean-loup Gailly Mark Adler
- jloup@gzip.org madler@alumni.caltech.edu -
- Redistribution and use in source and binary forms, with or without modification, are - permitted provided that the following conditions are met:
Redistributions of - source code must retain the above copyright notice, this list of conditions and the - following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this - list of conditions and the following disclaimer in the documentation and/or other - materials provided with the distribution.
-
Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific prior - written permission.
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -
The MIT License @@ -104910,16 +104974,13 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) 2012 Charcoal Design; Copyright (c) 2015 Airbnb; Copyright (c) 2015 - Facebook; Copyright (c) 2015-2021 the original authors; Copyright (c) 2015-present, - Facebook, Inc.; Copyright (c) 2016 Christopher; Copyright (c) 2016 by cascadian; - Copyright (c) 2017 Airbnb; Copyright (c) 2017 Christopher; Copyright (c) 2017 - IjzerenHein; Copyright (c) 2018 by nizam; Copyright (c) 2023 Christopher; Copyright - 2015 the original author or authors + Copyright (c) 2015 Chris Scott; Copyright (c) 2016-present Invertase Limited; + Copyright (c) 2016-present Invertase Limited & Contributors; Copyright 2021 + Invertase Limited; Copyright 2025 Marco Crupi
@@ -105199,52 +105260,6 @@
Copyrights:

-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-slider (npm) - 0.11.0

-

- Enclosed you will find the - license conditions applicable for - - react-native-slider (npm) - 0.11.0 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -105305,161 +105320,40 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - react-native-track-player (npm) - 4.1.2

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-sound (npm) - 0.13.0

- Enclosed you will find the license conditions and - copyright notices applicable for - - react-native-track-player (npm) - 4.1.2 + Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-sound (npm) - 0.13.0


-
License conditions:
+
License conditions:

- Apache License Version 2.0, January 2004
-
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, - REPRODUCTION, AND DISTRIBUTION
-
1. Definitions.
-
"License" shall mean the terms and conditions for use, reproduction, and - distribution as defined by Sections 1 through 9 of this document.
-
"Licensor" shall mean the copyright owner or entity authorized by the - copyright owner that is granting the License.
-
"Legal Entity" shall mean the union of the acting entity and all other - entities that control, are controlled by, or are under common control with that - entity. For the purposes of this definition, "control" means (i) the power, direct - or indirect, to cause the direction or management of such entity, whether by - contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity.
-
"You" (or "Your") shall mean an individual or Legal Entity exercising - permissions granted by this License.
-
"Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation source, and - configuration files.
-
"Object" form shall mean any form resulting from mechanical transformation or - translation of a Source form, including but not limited to compiled object code, - generated documentation, and conversions to other media types.
-
"Work" shall mean the work of authorship, whether in Source or Object form, - made available under the License, as indicated by a copyright notice that is - included in or attached to the work (an example is provided in the Appendix - below).
-
"Derivative Works" shall mean any work, whether in Source or Object form, that - is based on (or derived from) the Work and for which the editorial revisions, - annotations, elaborations, or other modifications represent, as a whole, an original - work of authorship. For the purposes of this License, Derivative Works shall not - include works that remain separable from, or merely link (or bind by name) to the - interfaces of, the Work and Derivative Works thereof.
-
"Contribution" shall mean any work of authorship, including the original - version of the Work and any modifications or additions to that Work or Derivative - Works thereof, that is intentionally submitted to Licensor for inclusion in the Work - by the copyright owner or by an individual or Legal Entity authorized to submit on - behalf of the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent to the Licensor - or its representatives, including but not limited to communication on electronic - mailing lists, source code control systems, and issue tracking systems that are - managed by, or on behalf of, the Licensor for the purpose of discussing and - improving the Work, but excluding communication that is conspicuously marked or - otherwise designated in writing by the copyright owner as "Not a Contribution."
-
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf - of whom a Contribution has been received by Licensor and subsequently incorporated - within the Work.
-
2. Grant of Copyright License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, - prepare Derivative Works of, publicly display, publicly perform, sublicense, and - distribute the Work and such Derivative Works in Source or Object form.
-
3. Grant of Patent License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this - section) patent license to make, have made, use, offer to sell, sell, import, and - otherwise transfer the Work, where such license applies only to those patent claims - licensable by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) with the Work to - which such Contribution(s) was submitted. If You institute patent litigation against - any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the - Work or a Contribution incorporated within the Work constitutes direct or - contributory patent infringement, then any patent licenses granted to You under this - License for that Work shall terminate as of the date such litigation is filed.
-
4. Redistribution. You may reproduce and distribute copies of the Work or - Derivative Works thereof in any medium, with or without modifications, and in Source - or Object form, provided that You meet the following conditions:
-
(a) You must give any other recipients of the Work or Derivative Works a copy - of this License; and
-
(b) You must cause any modified files to carry prominent notices stating that - You changed the files; and
-
(c) You must retain, in the Source form of any Derivative Works that You - distribute, all copyright, patent, trademark, and attribution notices from the - Source form of the Work, excluding those notices that do not pertain to any part of - the Derivative Works; and
-
(d) If the Work includes a "NOTICE" text file as part of its distribution, - then any Derivative Works that You distribute must include a readable copy of the - attribution notices contained within such NOTICE file, excluding those notices that - do not pertain to any part of the Derivative Works, in at least one of the following - places: within a NOTICE text file distributed as part of the Derivative Works; - within the Source form or documentation, if provided along with the Derivative - Works; or, within a display generated by the Derivative Works, if and wherever such - third-party notices normally appear. The contents of the NOTICE file are for - informational purposes only and do not modify the License. You may add Your own - attribution notices within Derivative Works that You distribute, alongside or as an - addendum to the NOTICE text from the Work, provided that such additional attribution - notices cannot be construed as modifying the License.
You may add Your own - copyright statement to Your modifications and may provide additional or different - license terms and conditions for use, reproduction, or distribution of Your - modifications, or for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with the conditions - stated in this License.
-
5. Submission of Contributions. Unless You explicitly state otherwise, any - Contribution intentionally submitted for inclusion in the Work by You to the - Licensor shall be under the terms and conditions of this License, without any - additional terms or conditions. Notwithstanding the above, nothing herein shall - supersede or modify the terms of any separate license agreement you may have - executed with Licensor regarding such Contributions.
-
6. Trademarks. This License does not grant permission to use the trade names, - trademarks, service marks, or product names of the Licensor, except as required for - reasonable and customary use in describing the origin of the Work and reproducing - the content of the NOTICE file.
-
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in - writing, Licensor provides the Work (and each Contributor provides its - Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - either express or implied, including, without limitation, any warranties or - conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR - PURPOSE. You are solely responsible for determining the appropriateness of using or - redistributing the Work and assume any risks associated with Your exercise of - permissions under this License.
-
8. Limitation of Liability. In no event and under no legal theory, whether in - tort (including negligence), contract, or otherwise, unless required by applicable - law (such as deliberate and grossly negligent acts) or agreed to in writing, shall - any Contributor be liable to You for damages, including any direct, indirect, - special, incidental, or consequential damages of any character arising as a result - of this License or out of the use or inability to use the Work (including but not - limited to damages for loss of goodwill, work stoppage, computer failure or - malfunction, or any and all other commercial damages or losses), even if such - Contributor has been advised of the possibility of such damages.
-
9. Accepting Warranty or Additional Liability. While redistributing the Work - or Derivative Works thereof, You may choose to offer, and charge a fee for, - acceptance of support, warranty, indemnity, or other liability obligations and/or - rights consistent with this License. However, in accepting such obligations, You may - act only on Your own behalf and on Your sole responsibility, not on behalf of any - other Contributor, and only if You agree to indemnify, defend, and hold each - Contributor harmless for any liability incurred by, or claims asserted against, such - Contributor by reason of your accepting any such warranty or additional - liability.
-
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to - your work.
To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own - identifying information. (Don't include the brackets!) The text should be enclosed - in the appropriate comment syntax for the file format. We also recommend that a file - or class name and description of purpose be included on the same "printed page" as - the copyright notice for easier identification within third-party archives.
Copyright - [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with the License. -
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless - required by applicable law or agreed to in writing, software distributed under the - License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the specific language governing - permissions and limitations under the License. + The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -105468,13 +105362,10 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
- Copyright (c) 2017 David Chavez; Copyright (c) 2018 David Chavez; Copyright (c) 2019 - David Chavez; Copyright (c) 2021 Double Symmmery; Copyright (c) 2023 Double Symmetry - Copyright (c) 2015 Zhen Wang; Copyright (c) 2017

@@ -105538,6 +105429,60 @@
Copyrights:

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-view-shot (npm) - 5.1.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-view-shot (npm) - 5.1.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) 2016 Gaetan Renaudeau; Copyright (c) 2021
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -116769,127 +116714,16 @@
License conditions:


-
Copyrights:
- - - - -
- Copyright (c) 2015 Joris van der Wel; Joris van der Wel - <joris@jorisvanderwel.com> -
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tabbable (npm) - 6.2.0

-

- Enclosed you will find the license conditions and - copyright notices applicable for - tabbable (npm) - - 6.2.0 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
+
Copyrights:
- -
- Copyright (c) 2015 David Clark; name' David Clark', url' - http://davidtheclark.com -
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tabbable (npm) - 6.4.0

-

- Enclosed you will find the license conditions and - copyright notices applicable for - tabbable (npm) - - 6.4.0 -

-
- -
License conditions:
-
- - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + Copyright (c) 2015 Joris van der Wel; Joris van der Wel + <joris@jorisvanderwel.com>

- -
- -
-
Copyrights:
- - - - -
Copyright (c) 2015 David Clark
-

- - - -
- (c) Fabio Spampinato; Copyright (c) 2022-present Fabio Spampinato -
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tiny-parse-argv (npm) - 2.8.2

-

- Enclosed you will find the license conditions and - copyright notices applicable for - tiny-parse-argv - (npm) - 2.8.2 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
- (c) Fabio Spampinato; Copyright (c) 2022-present Fabio Spampinato -
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tiny-readdir (npm) - 2.7.4

-

- Enclosed you will find the license conditions and - copyright notices applicable for - tiny-readdir - (npm) - 2.7.4 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
- (c) Fabio Spampinato; Copyright (c) 2020-present Fabio Spampinato -
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tiny-readdir-glob (npm) - 1.23.2

-

- Enclosed you will find the license conditions and - copyright notices applicable for - tiny-readdir-glob - (npm) - 1.23.2 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
- - - - -
- (c) Fabio Spampinato; Copyright (c) 2023-present Fabio Spampinato -
-
-
-
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tiny-spinner (npm) - 2.0.5

-

- Enclosed you will find the license conditions and - copyright notices applicable for - tiny-spinner - (npm) - 2.0.5 -

-
- -
License conditions:
-
- - - - -
- The MIT License -
-
Copyright (c) <year> <copyright holders> -
-
Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal in the - Software without restriction, including without limitation the rights to use, copy, - modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, subject to the - following conditions: -
-
The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. -
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR - A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE - OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
-
- -
- -
-
Copyrights:
+
Copyrights:
@@ -118109,16 +117719,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tiny-truncate (npm) - 1.0.4

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - tiny-parse-argv (npm) - 2.8.2

- Enclosed you will find the license conditions and - copyright notices applicable for - tiny-truncate - (npm) - 1.0.4 + Enclosed you will find the license conditions and + copyright notices applicable for - tiny-parse-argv + (npm) - 2.8.2


-
License conditions:
+
License conditions:

@@ -118151,7 +117761,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
+ + + + + + + + + + + + - - - - - - @@ -464,12 +451,12 @@ - + @@ -517,13 +504,25 @@ + + + + + + @@ -706,12 +705,12 @@ - + @@ -745,6 +744,16 @@ > + + + + + + @@ -823,6 +832,32 @@ > + + + + + + + + + + + +
@@ -118165,16 +117775,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tiny-updater (npm) - 3.5.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - tiny-readdir (npm) - 2.7.4

- Enclosed you will find the license conditions and - copyright notices applicable for - tiny-updater - (npm) - 3.5.3 + Enclosed you will find the license conditions and + copyright notices applicable for - tiny-readdir + (npm) - 2.7.4


-
License conditions:
+
License conditions:

@@ -118207,11 +117817,123 @@
License conditions:


-
Copyrights:
+
Copyrights:
+ +
- (c) Fabio Spampinato; Copyright (c) 2021-present Fabio Spampinato + (c) Fabio Spampinato; Copyright (c) 2020-present Fabio Spampinato +
+
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - tiny-readdir-glob (npm) - 1.23.2

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - tiny-readdir-glob + (npm) - 1.23.2 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
+ (c) Fabio Spampinato; Copyright (c) 2023-present Fabio Spampinato +
+
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - tiny-spinner (npm) - 2.0.5

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - tiny-spinner + (npm) - 2.0.5 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + +
+ (c) Fabio Spampinato; Copyright (c) 2022-present Fabio Spampinato
@@ -118221,16 +117943,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tinycolor2 (npm) - 1.6.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - tiny-truncate (npm) - 1.0.4

- Enclosed you will find the license conditions and - copyright notices applicable for - tinycolor2 (npm) - - 1.6.0 + Enclosed you will find the license conditions and + copyright notices applicable for - tiny-truncate + (npm) - 1.0.4


-
License conditions:
+
License conditions:

@@ -118263,13 +117985,11 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Brian Grinstead <briangrinstead@gmail.com> (http://briangrinstead.com)', - bugs' url' https://github.com/bgrins/TinyColor/issues; Copyright (c), Brian - Grinstead, http://briangrinstead.com + (c) Fabio Spampinato; Copyright (c) 2022-present Fabio Spampinato
@@ -118279,16 +117999,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - tinycolor2 (npm) - 1.6.0-beta.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - tiny-updater (npm) - 3.5.3

- Enclosed you will find the license conditions and - copyright notices applicable for - tinycolor2 (npm) - - 1.6.0-beta.3 + Enclosed you will find the license conditions and + copyright notices applicable for - tiny-updater + (npm) - 3.5.3


-
License conditions:
+
License conditions:

@@ -118321,10 +118041,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- +
Copyright (c), Brian Grinstead, http://briangrinstead.com + (c) Fabio Spampinato; Copyright (c) 2021-present Fabio Spampinato +

@@ -118757,6 +118479,60 @@
Copyrights:

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - tr46 (npm) - 5.1.1

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - tr46 (npm) - + 5.1.1 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
Copyright (c) Sebastian Mayr
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -126034,6 +125810,62 @@
Copyrights:

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - whatwg-url (npm) - 14.2.0

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - whatwg-url (npm) + - 14.2.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
+ (c) extraPathPercentEncodeSet.has; Copyright (c) Sebastian Mayr +
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

diff --git a/packages/jsActions/mobile-resources-native/package.json b/packages/jsActions/mobile-resources-native/package.json index 3b7e79be0..56ef9341c 100644 --- a/packages/jsActions/mobile-resources-native/package.json +++ b/packages/jsActions/mobile-resources-native/package.json @@ -1,7 +1,7 @@ { "name": "mobile-resources-native", "moduleName": "Native Mobile Resources", - "version": "12.1.0", + "version": "12.7.0", "license": "Apache-2.0", "copyright": "© Mendix Technology BV 2022. All rights reserved.", "repository": { @@ -11,29 +11,30 @@ "marketplace": { "name": "Native Mobile Resources", "description": "Download this module to access a rich set of widgets and nanoflow actions created for native mobile, including authentication, network, platform, and more. A must-have for native mobile development!", - "minimumMXVersion": "11.11.0", + "minimumMXVersion": "11.12.5", "marketplaceId": 109513 }, "testProject": { "githubUrl": "https://github.com/mendix/native-mobile-resources", - "branchName": "main" + "branchName": "mx/11.12.x" }, "scripts": { "prestart": "rimraf dist", "start": "rollup --config ../../../configs/jsactions/rollup.config.mjs --watch --configProject nativemobileresources", "prebuild": "rimraf dist", "build": "rollup --config ../../../configs/jsactions/rollup.config.mjs --configProject nativemobileresources", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "release": "pnpm build", "release:marketplace": "node ../../../scripts/release/marketplaceRelease.js" }, "dependencies": { - "@notifee/react-native": "9.1.8", "@react-native-camera-roll/camera-roll": "7.10.2", + "react-native-notify-kit": "10.4.7", "@react-native-firebase/messaging": "20.1.0", "@sbaiahmed1/react-native-biometrics": "0.15.0", "@swan-io/react-native-browser": "1.0.1", "fbjs": "3.0.4", + "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.5.2/mendix-native-v0.5.2.tgz", "mime": "3.0.0", "react-native-blob-util": "0.24.7", "react-native-device-info": "15.0.2", @@ -41,7 +42,7 @@ "react-native-image-picker": "7.2.3", "react-native-localize": "3.7.0", "react-native-permissions": "5.5.1", - "react-native-track-player": "4.1.2", + "react-native-sound": "0.13.0", "url-parse": "^1.4.7" }, "devDependencies": { @@ -51,4 +52,4 @@ "mendix": "11.8.0", "rimraf": "^6.1.2" } -} +} \ No newline at end of file diff --git a/packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts b/packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts index 7deacf2f7..cd4582e5f 100644 --- a/packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts +++ b/packages/jsActions/mobile-resources-native/src/authentication/BiometricAuthentication.ts @@ -18,7 +18,7 @@ export async function BiometricAuthentication(reason?: string): Promise // BEGIN USER CODE // Documentation https://github.com/sbaiahmed1/react-native-biometrics - return simplePrompt(reason ?? "") + return simplePrompt(reason || "Verify your identity to continue") .then(result => result.success) .catch(() => false); diff --git a/packages/jsActions/mobile-resources-native/src/camera/TakePicture.ts b/packages/jsActions/mobile-resources-native/src/camera/TakePicture.ts index 324d6c15d..a8f7d52e6 100644 --- a/packages/jsActions/mobile-resources-native/src/camera/TakePicture.ts +++ b/packages/jsActions/mobile-resources-native/src/camera/TakePicture.ts @@ -6,7 +6,8 @@ // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. import { Big } from "big.js"; -import { Alert, Linking, NativeModules, Platform } from "react-native"; +import { NativeFileSystem } from "mendix-native"; +import { Alert, Linking, Platform } from "react-native"; import { CameraOptions, ErrorCode, @@ -16,7 +17,8 @@ import { launchImageLibrary } from "react-native-image-picker"; import { getLocales } from "react-native-localize"; -import { ImagePickerV2Options, ImagePickerV2Response, PictureQuality, PictureSource } from "../../typings/Camera"; +import RNPermissions from "react-native-permissions"; +import { PictureQuality, PictureSource } from "../../typings/Camera"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -56,8 +58,7 @@ export async function TakePicture( } // V3 dropped the feature of providing an action sheet so users can decide on which action to take, camera or library. - const nativeVersionMajor = NativeModules?.ImagePickerManager?.showImagePicker ? 2 : 4; - const RNPermissions = nativeVersionMajor === 4 ? (await import("react-native-permissions")).default : null; + // react-native-image-picker v7.2.3 is always v4+ (no legacy action sheet API) try { const uri = await takePicture(); @@ -77,32 +78,14 @@ export async function TakePicture( function takePicture(): Promise { return new Promise((resolve, reject) => { - const options = nativeVersionMajor === 2 ? getOptionsV2() : getOptions(); + const options = getOptions(); getPictureMethod() .then(method => - method(options, (response: ImagePickerV2Response | ImagePickerResponse) => { + method(options, (response: ImagePickerResponse) => { if (response.didCancel) { return resolve(undefined); } - if (nativeVersionMajor === 2) { - const responseV2 = response as ImagePickerV2Response; - - if (responseV2.error) { - const unhandledError = handleImagePickerV2Error(responseV2.error); - - if (!unhandledError) { - return resolve(undefined); - } - - return reject(new Error(responseV2.error)); - } - - return resolve(responseV2.uri); - } - - response = response as ImagePickerResponse; - if (response.errorCode) { handleImagePickerV4Error(response.errorCode, response.errorMessage); @@ -116,22 +99,38 @@ export async function TakePicture( }); } + async function safeRemove(filePath: string): Promise { + try { + await NativeFileSystem.remove(filePath); + } catch (error) { + console.warn(`Failed to remove file at ${filePath}. Error: ${error}`); + // ignore error + } + } + function storeFile(imageObject: mendix.lib.MxObject, uri: string): Promise { return new Promise((resolve, reject) => { - fetch(uri) - .then(response => response.blob()) - .then(blob => { + NativeFileSystem.read(uri.replace("file://", "")) + .then((nativeBlob: unknown) => { + const blob = new Blob(); + Object.assign(blob, { data: nativeBlob }); // eslint-disable-next-line no-useless-escape const filename = /[^\/]*$/.exec(uri)![0]; const filePathWithoutFileScheme = uri.replace("file://", ""); + // Set nativePayload so the patched FormData.prototype.append in NativeFileBackend + // replaces the blob value with { uri, name, type } for online uploads. The patch + // reads the third append() argument (fileName) and writes it onto nativePayload.name, + // which FormData.getParts() uses as the Content-Disposition filename. + (blob as any).nativePayload = { uri: `file://${uri}`, name: filename, type: "*/*" }; + mx.data.saveDocument( imageObject.getGuid(), filename, {}, blob, async () => { - await NativeModules.MendixNative.fsRemove(filePathWithoutFileScheme); + await safeRemove(filePathWithoutFileScheme); imageObject.set("Name", filename); @@ -142,7 +141,7 @@ export async function TakePicture( }); }, async (error: Error) => { - await NativeModules.MendixNative.fsRemove(filePathWithoutFileScheme); + await safeRemove(filePathWithoutFileScheme); reject(error); } @@ -153,13 +152,10 @@ export async function TakePicture( } async function getPictureMethod(): Promise< - ( - options: ImagePickerV2Options | CameraOptions | ImageLibraryOptions, - callback: (response: ImagePickerV2Response | ImagePickerResponse) => void - ) => void + (options: CameraOptions | ImageLibraryOptions, callback: (response: ImagePickerResponse) => void) => void > { async function handleCameraRequest(): Promise { - if (Platform.OS === "android" && nativeVersionMajor === 4) { + if (Platform.OS === "android") { await checkAndMaybeRequestAndroidPermission(); } @@ -209,38 +205,6 @@ export async function TakePicture( } } - function getOptionsV2(): ImagePickerV2Options { - const { maxWidth, maxHeight } = getPictureQuality(); - const [language] = getLocales().map(local => local.languageCode); - const isDutch = language === "nl"; - - return { - mediaType: "photo" as const, - maxWidth, - maxHeight, - noData: true, - title: isDutch ? "Foto toevoegen" : "Select a photo", - cancelButtonTitle: isDutch ? "Annuleren" : "Cancel", - takePhotoButtonTitle: isDutch ? "Foto maken" : "Take photo", - chooseFromLibraryButtonTitle: isDutch ? "Kies uit bibliotheek" : "Choose from library", - permissionDenied: { - title: isDutch - ? "Deze app heeft geen toegang tot uw camera of foto bibliotheek" - : "This app does not have access to your camera or photo library", - text: isDutch - ? "Ga naar Instellingen > Privacy om toegang tot uw camera en bestanden te verlenen." - : "To enable access, tap Settings > Privacy and turn on Camera and Photos/Storage.", - reTryTitle: isDutch ? "Instellingen" : "Settings", - okTitle: isDutch ? "Annuleren" : "Cancel" - }, - storageOptions: { - skipBackup: true, - cameraRoll: false, - privateDirectory: true - } - }; - } - function getOptions(): CameraOptions | ImageLibraryOptions { const { maxWidth, maxHeight } = getPictureQuality(); return { @@ -277,37 +241,6 @@ export async function TakePicture( } } - function handleImagePickerV2Error(error: string): string | undefined { - const ERRORS = { - AndroidPermissionDenied: "Permissions weren't granted", - iOSPhotoLibraryPermissionDenied: "Photo library permissions not granted", - iOSCameraPermissionDenied: "Camera permissions not granted" - }; - - switch (error) { - case ERRORS.iOSPhotoLibraryPermissionDenied: - showAlert( - "This app does not have access to your photo library", - "To enable access, tap Settings and turn on Photos." - ); - return; - - case ERRORS.iOSCameraPermissionDenied: - showAlert( - "This app does not have access to your camera", - "To enable access, tap Settings and turn on Camera." - ); - return; - - case ERRORS.AndroidPermissionDenied: - // Ignore this error because the image picker plugin already shows an alert in this case. - return; - - default: - return error; - } - } - function showAlert(title: string, message: string): void { Alert.alert( title, diff --git a/packages/jsActions/mobile-resources-native/src/camera/TakePictureAdvanced.ts b/packages/jsActions/mobile-resources-native/src/camera/TakePictureAdvanced.ts index c141b842e..e4b77c894 100644 --- a/packages/jsActions/mobile-resources-native/src/camera/TakePictureAdvanced.ts +++ b/packages/jsActions/mobile-resources-native/src/camera/TakePictureAdvanced.ts @@ -6,7 +6,8 @@ // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. import { Big } from "big.js"; -import { Alert, Linking, NativeModules, Platform } from "react-native"; +import { NativeFileSystem } from "mendix-native"; +import { Alert, Linking, Platform } from "react-native"; import { CameraOptions, ErrorCode, @@ -15,8 +16,8 @@ import { launchCamera, launchImageLibrary } from "react-native-image-picker"; -import { getLocales } from "react-native-localize"; -import { ImagePickerV2Options, ImagePickerV2Response, PictureQuality, PictureSource } from "../../typings/Camera"; +import RNPermissions from "react-native-permissions"; +import { PictureQuality, PictureSource } from "../../typings/Camera"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -46,7 +47,6 @@ export async function TakePictureAdvanced( maximumHeight?: Big ): Promise { // BEGIN USER CODE - if (!picture) { return Promise.reject(new Error("Input parameter 'Picture' is required")); } @@ -62,63 +62,35 @@ export async function TakePictureAdvanced( } // V3 dropped the feature of providing an action sheet so users can decide on which action to take, camera or library. - const nativeVersionMajor = NativeModules?.ImagePickerManager?.showImagePicker ? 2 : 4; - const RNPermissions = nativeVersionMajor === 4 ? (await import("react-native-permissions")).default : null; + // react-native-image-picker v7.2.3 is always v4+ (no legacy action sheet API) const resultObject = await createMxObject("NativeMobileResources.ImageMetaData"); try { const response = await takePicture(); - let pictureTaken: boolean; - - if (nativeVersionMajor === 2) { - const responseV2 = response as ImagePickerV2Response; - - if (!responseV2 || !responseV2.uri) { - return Promise.resolve(resultObject); - } - const responseV2Uri = responseV2.uri; - - pictureTaken = await storeFile(picture, responseV2Uri); - - resultObject.set("PictureTaken", pictureTaken); - resultObject.set("URI", responseV2Uri); - resultObject.set("IsVertical", responseV2.isVertical); - resultObject.set("Width", responseV2.width); - resultObject.set("Height", responseV2.height); - resultObject.set( - "FileName", - // eslint-disable-next-line no-useless-escape - responseV2.fileName ? responseV2.fileName : /[^\/]*$/.exec(responseV2Uri)![0] - ); - resultObject.set("FileSize", responseV2.fileSize); - resultObject.set("FileType", responseV2.type); - } else { - const responseV1 = response as ImagePickerResponse; - if (!responseV1 || !responseV1.assets || !responseV1.assets[0] || !responseV1.assets[0].uri) { - return Promise.resolve(resultObject); - } - const responseV1Assets = responseV1.assets[0]; - const responseV1Uri = responseV1.assets[0].uri; - - pictureTaken = await storeFile(picture, responseV1Uri); - - resultObject.set("PictureTaken", pictureTaken); - resultObject.set("URI", responseV1Uri); - // Note: V4 asset doesn't include isVertical - resultObject.set("Width", responseV1Assets.width); - resultObject.set("Height", responseV1Assets.height); - resultObject.set( - "FileName", - responseV1Assets.fileName - ? responseV1Assets.fileName - : // eslint-disable-next-line no-useless-escape - /[^\/]*$/.exec(responseV1Uri)![0] - ); - resultObject.set("FileSize", responseV1Assets.fileSize); - resultObject.set("FileType", responseV1Assets.type); + if (!response || !response.assets || !response.assets[0] || !response.assets[0].uri) { + return Promise.resolve(resultObject); } + const asset = response.assets[0]; + const uri = response.assets[0].uri; + const pictureTaken = await storeFile(picture, uri); + + resultObject.set("PictureTaken", pictureTaken); + resultObject.set("URI", uri); + // Note: V4 asset doesn't include isVertical + resultObject.set("Width", asset.width); + resultObject.set("Height", asset.height); + resultObject.set( + "FileName", + asset.fileName + ? asset.fileName + : // eslint-disable-next-line no-useless-escape + /[^\/]*$/.exec(uri)![0] + ); + resultObject.set("FileSize", asset.fileSize); + resultObject.set("FileType", asset.type); + return Promise.resolve(resultObject); } catch (error) { if (error === "canceled") { @@ -128,34 +100,16 @@ export async function TakePictureAdvanced( } } - function takePicture(): Promise { + function takePicture(): Promise { return new Promise((resolve, reject) => { - const options = nativeVersionMajor === 2 ? getOptionsV2() : getOptions(); + const options = getOptions(); getPictureMethod() .then(method => - method(options, (response: ImagePickerV2Response | ImagePickerResponse) => { + method(options, (response: ImagePickerResponse) => { if (response.didCancel) { return resolve(undefined); } - if (nativeVersionMajor === 2) { - const responseV2 = response as ImagePickerV2Response; - - if (responseV2.error) { - const unhandledError = handleImagePickerV2Error(responseV2.error); - - if (!unhandledError) { - return resolve(undefined); - } - - return reject(new Error(responseV2.error)); - } - - return resolve(responseV2); - } - - response = response as ImagePickerResponse; - if (response.errorCode) { handleImagePickerV4Error(response.errorCode, response.errorMessage); @@ -169,22 +123,38 @@ export async function TakePictureAdvanced( }); } + async function safeRemove(filePath: string): Promise { + try { + await NativeFileSystem.remove(filePath); + } catch (error) { + console.warn(`Failed to remove file at ${filePath}. Error: ${error}`); + // ignore error + } + } + function storeFile(imageObject: mendix.lib.MxObject, uri: string): Promise { return new Promise((resolve, reject) => { - fetch(uri) - .then(response => response.blob()) - .then(blob => { + NativeFileSystem.read(uri.replace("file://", "")) + .then((nativeBlob: unknown) => { + const blob = new Blob(); + Object.assign(blob, { data: nativeBlob }); // eslint-disable-next-line no-useless-escape const filename = /[^\/]*$/.exec(uri)![0]; const filePathWithoutFileScheme = uri.replace("file://", ""); + // Set nativePayload so the patched FormData.prototype.append in NativeFileBackend + // replaces the blob value with { uri, name, type } for online uploads. The patch + // reads the third append() argument (fileName) and writes it onto nativePayload.name, + // which FormData.getParts() uses as the Content-Disposition filename. + (blob as any).nativePayload = { uri: `file://${uri}`, name: filename, type: "*/*" }; + mx.data.saveDocument( imageObject.getGuid(), filename, {}, blob, async () => { - await NativeModules.MendixNative.fsRemove(filePathWithoutFileScheme); + await safeRemove(filePathWithoutFileScheme); imageObject.set("Name", filename); @@ -195,7 +165,7 @@ export async function TakePictureAdvanced( }); }, async (error: Error) => { - await NativeModules.MendixNative.fsRemove(filePathWithoutFileScheme); + await safeRemove(filePathWithoutFileScheme); reject(error); } @@ -206,13 +176,10 @@ export async function TakePictureAdvanced( } async function getPictureMethod(): Promise< - ( - options: ImagePickerV2Options | CameraOptions | ImageLibraryOptions, - callback: (response: ImagePickerV2Response | ImagePickerResponse) => void - ) => void + (options: CameraOptions | ImageLibraryOptions, callback: (response: ImagePickerResponse) => void) => void > { async function handleCameraRequest(): Promise { - if (Platform.OS === "android" && nativeVersionMajor === 4) { + if (Platform.OS === "android") { await checkAndMaybeRequestAndroidPermission(); } @@ -262,38 +229,6 @@ export async function TakePictureAdvanced( } } - function getOptionsV2(): ImagePickerV2Options { - const { maxWidth, maxHeight } = getPictureQuality(); - const [language] = getLocales().map(local => local.languageCode); - const isDutch = language === "nl"; - - return { - mediaType: "photo" as const, - maxWidth, - maxHeight, - noData: true, - title: isDutch ? "Foto toevoegen" : "Select a photo", - cancelButtonTitle: isDutch ? "Annuleren" : "Cancel", - takePhotoButtonTitle: isDutch ? "Foto maken" : "Take photo", - chooseFromLibraryButtonTitle: isDutch ? "Kies uit bibliotheek" : "Choose from library", - permissionDenied: { - title: isDutch - ? "Deze app heeft geen toegang tot uw camera of foto bibliotheek" - : "This app does not have access to your camera or photo library", - text: isDutch - ? "Ga naar Instellingen > Privacy om toegang tot uw camera en bestanden te verlenen." - : "To enable access, tap Settings > Privacy and turn on Camera and Photos/Storage.", - reTryTitle: isDutch ? "Instellingen" : "Settings", - okTitle: isDutch ? "Annuleren" : "Cancel" - }, - storageOptions: { - skipBackup: true, - cameraRoll: false, - privateDirectory: true - } - }; - } - function getOptions(): CameraOptions | ImageLibraryOptions { const { maxWidth, maxHeight } = getPictureQuality(); return { @@ -330,37 +265,6 @@ export async function TakePictureAdvanced( } } - function handleImagePickerV2Error(error: string): string | undefined { - const ERRORS = { - AndroidPermissionDenied: "Permissions weren't granted", - iOSPhotoLibraryPermissionDenied: "Photo library permissions not granted", - iOSCameraPermissionDenied: "Camera permissions not granted" - }; - - switch (error) { - case ERRORS.iOSPhotoLibraryPermissionDenied: - showAlert( - "This app does not have access to your photo library", - "To enable access, tap Settings and turn on Photos." - ); - return; - - case ERRORS.iOSCameraPermissionDenied: - showAlert( - "This app does not have access to your camera", - "To enable access, tap Settings and turn on Camera." - ); - return; - - case ERRORS.AndroidPermissionDenied: - // Ignore this error because the image picker plugin already shows an alert in this case. - return; - - default: - return error; - } - } - function showAlert(title: string, message: string): void { Alert.alert( title, diff --git a/packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts b/packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts index e3e547625..b1efbc3e6 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/CancelAllScheduledNotifications.ts @@ -5,8 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { NativeModules } from "react-native"; -import notifee from "@notifee/react-native"; +import notifee from "react-native-notify-kit"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -18,9 +17,6 @@ import notifee from "@notifee/react-native"; export async function CancelAllScheduledNotifications(): Promise { // BEGIN USER CODE // Documentation https://github.com/invertase/notifee - if (NativeModules && !NativeModules.NotifeeApiModule) { - return Promise.reject(new Error("Notifee native module is not available in your app")); - } notifee.cancelAllNotifications(); return Promise.resolve(); diff --git a/packages/jsActions/mobile-resources-native/src/notifications/CancelScheduledNotification.ts b/packages/jsActions/mobile-resources-native/src/notifications/CancelScheduledNotification.ts index d840fc9cd..63da389c6 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/CancelScheduledNotification.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/CancelScheduledNotification.ts @@ -5,8 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { NativeModules } from "react-native"; -import notifee from "@notifee/react-native"; +import notifee from "react-native-notify-kit"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -18,9 +17,6 @@ import notifee from "@notifee/react-native"; export async function CancelScheduledNotification(notificationId?: string): Promise { // BEGIN USER CODE // Documentation Documentation https://github.com/invertase/notifee - if (NativeModules && !NativeModules.NotifeeApiModule) { - return Promise.reject(new Error("Notifee native module is not available in your app")); - } if (!notificationId) { return Promise.reject(new Error("Input parameter 'Notification id' is required")); diff --git a/packages/jsActions/mobile-resources-native/src/notifications/ClearAllDeliveredNotifications.ts b/packages/jsActions/mobile-resources-native/src/notifications/ClearAllDeliveredNotifications.ts index cd0debaed..c26554327 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/ClearAllDeliveredNotifications.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/ClearAllDeliveredNotifications.ts @@ -5,8 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { NativeModules } from "react-native"; -import notifee from "@notifee/react-native"; +import notifee from "react-native-notify-kit"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -18,9 +17,6 @@ import notifee from "@notifee/react-native"; export async function ClearAllDeliveredNotifications(): Promise { // BEGIN USER CODE // Documentation Documentation https://github.com/invertase/notifee - if (NativeModules && !NativeModules.NotifeeApiModule) { - return Promise.reject(new Error("Notifee native module is not available in your app")); - } notifee.cancelAllNotifications(); diff --git a/packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts b/packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts index bbfff2e5f..e0eb4556d 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/DisplayNotification.ts @@ -5,8 +5,8 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { NativeModules, Platform } from "react-native"; -import notifee, { AndroidChannel, AndroidImportance, Notification } from "@notifee/react-native"; +import { Platform } from "react-native"; +import notifee, { AndroidChannel, AndroidImportance, Notification } from "react-native-notify-kit"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -37,9 +37,6 @@ export async function DisplayNotification( } // Documentation Documentation https://github.com/invertase/notifee - if (NativeModules && !NativeModules.NotifeeApiModule) { - return Promise.reject(new Error("Notifee native module is not available in your app")); - } const channelId = playSound ? "mendix-local-notifications-withsound" : "mendix-local-notifications"; await createNotificationChannelIfNeeded(channelId); diff --git a/packages/jsActions/mobile-resources-native/src/notifications/GetPushNotificationToken.ts b/packages/jsActions/mobile-resources-native/src/notifications/GetPushNotificationToken.ts index a395b5e3b..4cb908407 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/GetPushNotificationToken.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/GetPushNotificationToken.ts @@ -5,7 +5,6 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { NativeModules } from "react-native"; import messaging from "@react-native-firebase/messaging"; // BEGIN EXTRA CODE @@ -19,10 +18,6 @@ export async function getPushNotificationToken(): Promise { // BEGIN USER CODE // Documentation https://rnfirebase.io/docs/v5.x.x/messaging/reference/Messaging#getToken - if (NativeModules && !NativeModules.RNFBMessagingModule) { - return Promise.reject(new Error("Firebase module is not available in your app")); - } - return messaging().getToken(); // END USER CODE diff --git a/packages/jsActions/mobile-resources-native/src/notifications/HasNotificationPermission.ts b/packages/jsActions/mobile-resources-native/src/notifications/HasNotificationPermission.ts index d1598b170..24bf49ab6 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/HasNotificationPermission.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/HasNotificationPermission.ts @@ -5,7 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { NativeModules } from "react-native"; +import messaging from "@react-native-firebase/messaging"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -28,17 +28,15 @@ export async function HasNotificationPermission(): Promise { const allowedAuthorizationStatuses = [permissionStatus.Authorized, permissionStatus.Provisional]; - if (NativeModules && !NativeModules.RNFBMessagingModule) { - return Promise.reject(new Error("Firebase module is not available in your app")); - } - - return NativeModules.RNFBMessagingModule.hasPermission().then((authStatus: number) => { - if (allowedAuthorizationStatuses.includes(authStatus)) { - return Promise.resolve(true); - } else { - return Promise.resolve(false); - } - }); + return messaging() + .hasPermission() + .then((authStatus: number) => { + if (allowedAuthorizationStatuses.includes(authStatus)) { + return Promise.resolve(true); + } else { + return Promise.resolve(false); + } + }); // END USER CODE } diff --git a/packages/jsActions/mobile-resources-native/src/notifications/RequestNotificationPermission.ts b/packages/jsActions/mobile-resources-native/src/notifications/RequestNotificationPermission.ts index 36fddaa9c..04b28c4d0 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/RequestNotificationPermission.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/RequestNotificationPermission.ts @@ -5,7 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { NativeModules, PermissionsAndroid, Platform } from "react-native"; +import { PermissionsAndroid, Platform } from "react-native"; import messaging from "@react-native-firebase/messaging"; // BEGIN EXTRA CODE @@ -20,10 +20,6 @@ export async function RequestNotificationPermission(): Promise { // BEGIN USER CODE // Documentation https://rnfirebase.io/messaging/usage - if (NativeModules && !NativeModules.RNFBMessagingModule) { - return Promise.reject(new Error("Firebase module is not available in your app")); - } - if (Platform.OS === "android") { try { const granted = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS); diff --git a/packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts b/packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts index a0683e593..7a3620770 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/ScheduleNotification.ts @@ -13,7 +13,8 @@ import notifee, { AndroidImportance, Notification, AlarmType -} from "@notifee/react-native"; +} from "react-native-notify-kit"; + // BEGIN EXTRA CODE // END EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/notifications/SetBadgeNumber.ts b/packages/jsActions/mobile-resources-native/src/notifications/SetBadgeNumber.ts index e5e80a248..50fafae35 100644 --- a/packages/jsActions/mobile-resources-native/src/notifications/SetBadgeNumber.ts +++ b/packages/jsActions/mobile-resources-native/src/notifications/SetBadgeNumber.ts @@ -6,8 +6,7 @@ // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. import { Big } from "big.js"; -import { NativeModules } from "react-native"; -import notifee from "@notifee/react-native"; +import notifee from "react-native-notify-kit"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -20,10 +19,6 @@ export async function SetBadgeNumber(badgeNumber?: Big): Promise { // BEGIN USER CODE // Documentation Documentation https://github.com/invertase/notifee - if (NativeModules && !NativeModules.NotifeeApiModule) { - return Promise.reject(new Error("Notifee native module is not available in your app")); - } - if (!badgeNumber) { return Promise.reject(new Error("Input parameter 'Badge number' is required")); } diff --git a/packages/jsActions/mobile-resources-native/src/permissions/CheckGenericPermission.ts b/packages/jsActions/mobile-resources-native/src/permissions/CheckGenericPermission.ts index 2fca380aa..68e38fcbd 100644 --- a/packages/jsActions/mobile-resources-native/src/permissions/CheckGenericPermission.ts +++ b/packages/jsActions/mobile-resources-native/src/permissions/CheckGenericPermission.ts @@ -5,8 +5,8 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { Platform, NativeModules } from "react-native"; -import { check, Permission, PERMISSIONS as RNPermissions } from "react-native-permissions"; +import { Platform } from "react-native"; +import { check, Permission, PERMISSIONS as RNPermissions, canScheduleExactAlarms } from "react-native-permissions"; import { ANDROIDPermissionName, IOSPermissionName } from "../../typings/RequestGenericPermission"; // BEGIN EXTRA CODE @@ -32,23 +32,12 @@ function mapPermissionName(permissionName: string): Permission | "android.permis } async function checkScheduleAlarm(): Promise<"granted" | "blocked"> { - if (NativeModules && !NativeModules.ScheduleEA) { - return Promise.reject(new Error("ScheduleEA module is not available in your app")); - } - if (Platform.OS !== "android") { return Promise.resolve("granted"); } - const checkPermissionPromise = new Promise(resolve => { - NativeModules.ScheduleEA.checkPermission((isEnabled: boolean) => { - resolve(isEnabled); - }); - }); - - return checkPermissionPromise.then(result => { - return Promise.resolve(result ? "granted" : "blocked"); - }); + const canSchedule = await canScheduleExactAlarms(); + return canSchedule ? "granted" : "blocked"; } // END EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/permissions/RequestGenericPermission.ts b/packages/jsActions/mobile-resources-native/src/permissions/RequestGenericPermission.ts index e6fb1f165..748875160 100644 --- a/packages/jsActions/mobile-resources-native/src/permissions/RequestGenericPermission.ts +++ b/packages/jsActions/mobile-resources-native/src/permissions/RequestGenericPermission.ts @@ -5,7 +5,7 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import { Alert, Platform, NativeModules } from "react-native"; +import { Alert, Platform } from "react-native"; import { check, request, @@ -66,23 +66,12 @@ function mapPermissionName(permissionName: string): Permission | "android.permis } async function checkScheduleAlarm(): Promise<"granted" | "blocked"> { - if (NativeModules && !NativeModules.ScheduleEA) { - return Promise.reject(new Error("ScheduleEA module is not available in your app")); - } - if (Platform.OS !== "android") { return Promise.resolve("granted"); } - const checkPermissionPromise = new Promise(resolve => { - NativeModules.ScheduleEA.checkPermission((isEnabled: boolean) => { - resolve(isEnabled); - }); - }); - - return checkPermissionPromise.then(result => { - return Promise.resolve(result ? "granted" : "blocked"); - }); + const canSchedule = await canScheduleExactAlarms(); + return canSchedule ? "granted" : "blocked"; } // END EXTRA CODE diff --git a/packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts b/packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts index dad9141c6..3aa2be40e 100644 --- a/packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts +++ b/packages/jsActions/mobile-resources-native/src/platform/PlaySound.ts @@ -5,9 +5,68 @@ // - the code between BEGIN USER CODE and END USER CODE // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. -import TrackPlayer, { State, Event } from "react-native-track-player"; +import Sound from "react-native-sound"; +import RNBlobUtil from "react-native-blob-util"; +import { Platform } from "react-native"; // BEGIN EXTRA CODE +// Audio downloaded for online (network) documents is cached here. CacheDir is used +// on purpose: the OS is allowed to reclaim it under storage pressure, so we do not +// have to own the cleanup lifecycle ourselves. +const SOUND_CACHE_DIR = `${RNBlobUtil.fs.dirs.CacheDir}/mx-play-sound`; + +function getFileExtension(fileName?: string): string { + if (!fileName) { + return ""; + } + const dotIndex = fileName.lastIndexOf("."); + return dotIndex >= 0 ? fileName.slice(dotIndex) : ""; +} + +// Resolves a path the Android media player can actually play. +// +// For online documents the URL points at the runtime and requires the Mendix session +// cookie. The Android media player does not forward that cookie, so playback fails. +// react-native-blob-util shares the platform cookie jar, so we download the file with +// it and hand the local copy to the player instead. +// +// The download is cached by content version (guid + changedDate): +// - the same file is never downloaded twice; +// - when the source changes, changedDate changes, so a fresh copy is fetched even +// though the file name stayed the same; +// - stale versions of the same document are removed before fetching a new one, so the +// cache does not grow unbounded. +async function resolveAndroidSoundPath( + url: string, + guid: string, + changedDate: number, + fileName?: string +): Promise { + // Offline documents already resolve to a local file path; play it directly. + if (!/^https?:\/\//i.test(url)) { + return url; + } + + if (!(await RNBlobUtil.fs.exists(SOUND_CACHE_DIR))) { + await RNBlobUtil.fs.mkdir(SOUND_CACHE_DIR); + } + + const cachedPath = `${SOUND_CACHE_DIR}/${guid}_${changedDate}${getFileExtension(fileName)}`; + if (await RNBlobUtil.fs.exists(cachedPath)) { + return cachedPath; + } + + // Drop previously cached versions of this document (same guid, other changedDate). + const entries = await RNBlobUtil.fs.ls(SOUND_CACHE_DIR); + await Promise.all( + entries + .filter(entry => entry.startsWith(`${guid}_`)) + .map(entry => RNBlobUtil.fs.unlink(`${SOUND_CACHE_DIR}/${entry}`).catch(() => undefined)) + ); + + const response = await RNBlobUtil.config({ fileCache: true, path: cachedPath }).fetch("GET", url); + return response.path(); +} // END EXTRA CODE /** @@ -19,7 +78,7 @@ import TrackPlayer, { State, Event } from "react-native-track-player"; */ export async function PlaySound(audioFile?: mendix.lib.MxObject): Promise { // BEGIN USER CODE - // Documentation https://rntp.dev + // Documentation https://github.com/zmxv/react-native-sound if (!audioFile) { return Promise.reject(new Error("Input parameter 'Audio file' is required")); @@ -32,36 +91,29 @@ export async function PlaySound(audioFile?: mendix.lib.MxObject): Promise const guid = audioFile.getGuid(); const changedDate = audioFile.get("changedDate") as number; + const fileName = audioFile.get("Name") as string; try { const url = await mx.data.getDocumentUrl(guid, changedDate); - // Initialize the player if it hasn't been set up yet - const state = await TrackPlayer.getPlaybackState(); - if (state.state === State.None) { - await TrackPlayer.setupPlayer({ - maxCacheSize: 1024 - }); - } + // iOS forwards the session cookie for remote URLs, so it can stream directly. + // Android cannot, so we download the file first (see resolveAndroidSoundPath). + const path = Platform.OS === "ios" ? url : await resolveAndroidSoundPath(url, guid, changedDate, fileName); - await TrackPlayer.reset(); - await TrackPlayer.add({ - id: guid, - url, - title: `Audio ${guid}`, - artist: "Mendix App" - }); - - await TrackPlayer.play(); - - return new Promise((resolve, reject) => { - const subscription = TrackPlayer.addEventListener(Event.PlaybackState, event => { - if (event.state === State.Stopped || event.state === State.Ended) { - subscription.remove(); - resolve(); - } else if (event.state === State.Error) { - subscription.remove(); - reject(new Error(event.error.message || "Playback error")); + return await new Promise((resolve, reject) => { + const sound = new Sound(path, "", error => { + if (error) { + reject(new Error(`Failed to load audio: ${error.message ?? error}`)); + return; } + + sound.play(success => { + sound.release(); + if (success) { + resolve(); + } else { + reject(new Error("Playback failed due to an audio encoding error")); + } + }); }); }); } catch (error) { diff --git a/packages/jsActions/nanoflow-actions-native/CHANGELOG.md b/packages/jsActions/nanoflow-actions-native/CHANGELOG.md index 349bc64d3..6c4cc326b 100644 --- a/packages/jsActions/nanoflow-actions-native/CHANGELOG.md +++ b/packages/jsActions/nanoflow-actions-native/CHANGELOG.md @@ -6,6 +6,39 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [7.4.2] Nanoflow Commons - 2026-11-23 +### Changed + +- Updated react-native-nitro-modules to 0.37.0. + +## [7.4.1] Nanoflow Commons - 2026-11-17 + +### Fixed + +- Fixed an issue where the "Get straight line distance" action threw an error at runtime. +- Fixed an issue where actions using decimal values threw a "Big is not defined" error at runtime. + +### Added + +- We added mendix-native as a dependency to provide native file system. +- We bumped the `brace-expansion` package to v5.0.12 to fix a denial-of-service vulnerability. + +## [7.4.0] Nanoflow Commons - 2026-9-22 + +- Migrated the geolocation actions from `@react-native-community/geolocation` to `react-native-nitro-geolocation`. + +## [7.3.0] Nanoflow Commons - 2026-9-2 + +### Fixed + +- Removed the visible changes in NC and NMR modules during the first build of the app. + +## [7.2.1] Nanoflow Commons - 2026-7-22 + +- Fixed an issue where base64-to-image decoding was failing. + +## [7.2.0] Nanoflow Commons - 2026-7-3 + - Close offline database connection before navigating between pages with OpenURL nanoflow action. ## [7.1.0] Nanoflow Commons - 2026-6-5 diff --git a/packages/jsActions/nanoflow-actions-native/SiemensMendixNanoflowCommons__7.1.0__READMEOSS_2026-06-05__07-30-56.html b/packages/jsActions/nanoflow-actions-native/SiemensMendixNanoflowCommons__7.4.2__READMEOSS_2026-11-23__08-03-25.html similarity index 94% rename from packages/jsActions/nanoflow-actions-native/SiemensMendixNanoflowCommons__7.1.0__READMEOSS_2026-06-05__07-30-56.html rename to packages/jsActions/nanoflow-actions-native/SiemensMendixNanoflowCommons__7.4.2__READMEOSS_2026-11-23__08-03-25.html index f0b273729..00708cbba 100644 --- a/packages/jsActions/nanoflow-actions-native/SiemensMendixNanoflowCommons__7.1.0__READMEOSS_2026-06-05__07-30-56.html +++ b/packages/jsActions/nanoflow-actions-native/SiemensMendixNanoflowCommons__7.4.2__READMEOSS_2026-11-23__08-03-25.html @@ -141,7 +141,7 @@
Siemens Third-Party Software Disclosure Document

English / English
Note to Resellers: Please @@ -440,19 +440,6 @@ >
- @react-native-community/geolocation (npm) - 3.4.0 - Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT @react-native-community/geolocation (npm) - - 3.4.0 -
ansi-regex (npm) - 5.0.1 Yes
ansi-regex (npm) - 6.2.2ansi-regex (npm) - 6.6.0 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT ansi-regex (npm) - 6.2.2LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT ansi-regex (npm) - 6.6.0
- brace-expansion (npm) - 5.0.6 + brace-expansion (npm) - 5.0.12 + Yes + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT brace-expansion (npm) - 5.0.12 +
+ brace-expansion (npm) - 5.0.13 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT brace-expansion (npm) - 5.0.6LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT brace-expansion (npm) - 5.0.13
lru-cache (npm) - 11.5.1lru-cache (npm) - 11.5.3 Yes - LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT lru-cache (npm) - 11.5.1LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT lru-cache (npm) - 11.5.3
minimatch (npm) - 10.2.6Yes + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT minimatch (npm) - 10.2.6 +
minipass (npm) - 7.1.3 Yes
+ react-native-nitro-geolocation (npm) - 1.4.3 + Yes + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-nitro-geolocation (npm) - + 1.4.3 +
+ react-native-nitro-modules (npm) - 0.37.0 + Yes + LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT react-native-nitro-modules (npm) - + 0.37.0 +
react-native-permissions (npm) - 5.5.1 @@ -1084,16 +1119,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - @react-native-community/geolocation (npm) - 3.4.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - ansi-regex (npm) - 5.0.1

- Enclosed you will find the license conditions and - copyright notices applicable for - - @react-native-community/geolocation (npm) - 3.4.0 + Enclosed you will find the license conditions and + copyright notices applicable for - ansi-regex (npm) + - 5.0.1


-
License conditions:
+
License conditions:

@@ -1126,12 +1161,11 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) 2022-present, React Native Community; Copyright (c) Facebook, Inc. and - its affiliates; Copyright (c) React Native Community + Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
@@ -1141,16 +1175,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - ansi-regex (npm) - 5.0.1

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - ansi-regex (npm) - 6.6.0

- Enclosed you will find the license conditions and - copyright notices applicable for - ansi-regex (npm) - - 5.0.1 + Enclosed you will find the license conditions and + copyright notices applicable for - ansi-regex (npm) + - 6.6.0


-
License conditions:
+
License conditions:

@@ -1183,11 +1217,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) + Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> + (https://sindresorhus.com)
@@ -1197,16 +1232,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - ansi-regex (npm) - 6.2.2

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - ansi-styles (npm) - 4.3.0

- Enclosed you will find the license conditions and - copyright notices applicable for - ansi-regex (npm) - - 6.2.2 + Enclosed you will find the license conditions and + copyright notices applicable for - ansi-styles (npm) + - 4.3.0


-
License conditions:
+
License conditions:

@@ -1239,12 +1274,11 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> - (https://sindresorhus.com) + Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
@@ -1254,16 +1288,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - ansi-styles (npm) - 4.3.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - ansi-styles (npm) - 6.2.3

- Enclosed you will find the license conditions and - copyright notices applicable for - ansi-styles (npm) - - 4.3.0 + Enclosed you will find the license conditions and + copyright notices applicable for - ansi-styles (npm) + - 6.2.3


-
License conditions:
+
License conditions:

@@ -1296,11 +1330,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) + Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> + (https://sindresorhus.com)
@@ -1310,16 +1345,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - ansi-styles (npm) - 6.2.3

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - balanced-match (npm) - 4.0.4

- Enclosed you will find the license conditions and - copyright notices applicable for - ansi-styles (npm) - - 6.2.3 + Enclosed you will find the license conditions and + copyright notices applicable for - balanced-match + (npm) - 4.0.4


-
License conditions:
+
License conditions:

@@ -1352,12 +1387,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> - (https://sindresorhus.com) + Copyright Isaac Z. Schlueter <i@izs.me>; Copyright Julian Gruber + <julian@juliangruber.com>
@@ -1367,16 +1402,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - balanced-match (npm) - 4.0.4

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - base-64 (npm) - 0.1.0

- Enclosed you will find the license conditions and - copyright notices applicable for - balanced-match - (npm) - 4.0.4 + Enclosed you will find the license conditions and + copyright notices applicable for - base-64 (npm) - + 0.1.0


-
License conditions:
+
License conditions:

@@ -1409,12 +1444,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright Isaac Z. Schlueter <i@izs.me>; Copyright Julian Gruber - <julian@juliangruber.com> + Copyright Mathias Bynens <http://mathiasbynens.be/>; name' Mathias + Bynens', url' http://mathiasbynens.be
@@ -1424,16 +1459,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - base-64 (npm) - 0.1.0

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - brace-expansion (npm) - 5.0.12

- Enclosed you will find the license conditions and - copyright notices applicable for - base-64 (npm) - - 0.1.0 + Enclosed you will find the license conditions and + copyright notices applicable for - brace-expansion + (npm) - 5.0.12


-
License conditions:
+
License conditions:

@@ -1466,12 +1501,12 @@
License conditions:


-
Copyrights:
+
Copyrights:
- Copyright Mathias Bynens <http://mathiasbynens.be/>; name' Mathias - Bynens', url' http://mathiasbynens.be + Copyright Isaac Z. Schlueter <i@izs.me>; Copyright Julian Gruber + <julian@juliangruber.com>
@@ -1481,16 +1516,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - brace-expansion (npm) - 5.0.6

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - brace-expansion (npm) - 5.0.13

- Enclosed you will find the license conditions and - copyright notices applicable for - brace-expansion - (npm) - 5.0.6 + Enclosed you will find the license conditions and + copyright notices applicable for - brace-expansion + (npm) - 5.0.13


-
License conditions:
+
License conditions:

@@ -1523,7 +1558,7 @@
License conditions:


-
Copyrights:
+
Copyrights:
@@ -2496,16 +2531,16 @@
Copyrights:
-


LICENSE CONDITIONS AND COPYRIGHT NOTICES

-

Open Source Software: - lru-cache (npm) - 11.5.1

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - lru-cache (npm) - 11.5.3

Enclosed you will find the - license conditions applicable for - lru-cache (npm) - - 11.5.1 + license conditions applicable for - lru-cache (npm) - + 11.5.3


-
License conditions:
+
License conditions:

@@ -2719,6 +2754,65 @@
License conditions:

+ + + + + + + + + The attribute that will receive the scanned barcode value. - + @@ -25,14 +25,20 @@ + + + + Number of seconds to wait after the camera starts before barcodes are scanned, so the user has time to position the barcode. Set to 0 to start scanning immediately. + + - + - + diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/BarcodeScanner.ios.spec.tsx b/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/BarcodeScanner.ios.spec.tsx new file mode 100644 index 000000000..e0ed64422 --- /dev/null +++ b/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/BarcodeScanner.ios.spec.tsx @@ -0,0 +1,138 @@ +import { actionValue, EditableValueBuilder } from "@mendix/piw-utils-internal"; +import { fireEvent, render } from "@testing-library/react-native"; +import { Platform } from "react-native"; +import type { Props } from "../BarcodeScanner"; + +// The scanner implementation is chosen when the widget module loads, so switch to iOS before requiring it +Object.defineProperty(Platform, "OS", { configurable: true, value: "ios" }); +const { BarcodeScanner } = require("../BarcodeScanner") as typeof import("../BarcodeScanner"); + +type MockScannedObject = { value?: string; viewBounds?: { x: number; y: number; width: number; height: number } }; + +let mockOnObjectsScanned: ((objects: MockScannedObject[]) => void) | undefined; + +jest.mock("react-native-vision-camera", () => { + const { useImperativeHandle } = jest.requireActual("react"); + const { View } = jest.requireActual("react-native"); + return { + Camera: ({ children, onStarted, ref, ...props }: any) => { + useImperativeHandle(ref, () => ({ + convertScannedObjectCoordinatesToViewCoordinates: (object: MockScannedObject) => { + if (!object.viewBounds) { + throw new Error("Failed to transform the Scanned Object's coordinates"); + } + return { boundingBox: object.viewBounds }; + } + })); + // Call onStarted to simulate camera being ready + if (onStarted) { + setTimeout(() => onStarted(), 0); + } + return ( + + {children} + + ); + }, + useCameraDevice: () => "mock-device", + useCameraPermission: () => ({ + hasPermission: true, + canRequestPermission: false, + requestPermission: jest.fn() + }), + useObjectOutput: (options: any) => { + mockOnObjectsScanned = options.onObjectsScanned; + return "mockObjectOutput"; + }, + useVideoOutput: () => "mockResolutionOutput", + CommonResolutions: { FHD_16_9: { width: 1080, height: 1920 } }, + isScannedCode: (object: object) => "value" in object + }; +}); + +// The ML Kit scanner isn't linked on iOS, loading it there crashes the app +jest.mock("react-native-vision-camera-barcode-scanner", () => { + throw new Error("react-native-vision-camera-barcode-scanner must not be loaded on iOS"); +}); + +jest.mock("../components/BarcodeMask", () => "BarcodeMask"); + +describe("BarcodeScanner (iOS)", () => { + let defaultProps: Props; + + beforeEach(() => { + jest.useFakeTimers(); + defaultProps = { + showAnimatedLine: false, + showMask: false, + name: "barcode-scanner-test", + style: [], + barcode: new EditableValueBuilder().build(), + scanDelay: 0 + }; + }); + + afterEach(() => { + jest.clearAllTimers(); + }); + + it("renders with Apple's object output and a 1080p 30 fps camera format", () => { + const component = render(); + const camera = component.getByTestId("camera"); + expect(camera.props.outputs).toEqual(["mockObjectOutput", "mockResolutionOutput"]); + expect(camera.props.constraints).toEqual([{ resolutionBias: "mockResolutionOutput" }, { fps: 30 }]); + }); + + it("sets a value and executes the onDetect action on the first read", () => { + const onDetectAction = actionValue(); + render(); + jest.runOnlyPendingTimers(); + + mockOnObjectsScanned?.([{ value: "value" }]); + + expect(defaultProps.barcode.setValue).toHaveBeenCalledWith("value"); + expect(onDetectAction.execute).toHaveBeenCalledTimes(1); + + // Further scans are locked for 2 seconds + mockOnObjectsScanned?.([{ value: "value1" }]); + expect(onDetectAction.execute).toHaveBeenCalledTimes(1); + + jest.advanceTimersByTime(2000); + mockOnObjectsScanned?.([{ value: "value1" }]); + + expect(defaultProps.barcode.setValue).toHaveBeenCalledWith("value1"); + expect(onDetectAction.execute).toHaveBeenCalledTimes(2); + }); + + it("ignores scanned objects that are not codes or have no value", () => { + const onDetectAction = actionValue(); + render(); + jest.runOnlyPendingTimers(); + + mockOnObjectsScanned?.([{} as MockScannedObject, { value: undefined }, { value: "" }]); + + expect(defaultProps.barcode.setValue).not.toHaveBeenCalled(); + expect(onDetectAction.execute).not.toHaveBeenCalled(); + }); + + it("only accepts codes inside the mask, using view coordinates from the camera", () => { + const onDetectAction = actionValue(); + const component = render(); + jest.runOnlyPendingTimers(); + // Default mask is 280x260, centered: x 60..340, y 270..530 + fireEvent(component.getByTestId("camera"), "layout", { nativeEvent: { layout: { width: 400, height: 800 } } }); + + mockOnObjectsScanned?.([ + { value: "outside", viewBounds: { x: 0, y: 0, width: 50, height: 50 } }, + { value: "no-preview-yet" } + ]); + expect(onDetectAction.execute).not.toHaveBeenCalled(); + + mockOnObjectsScanned?.([ + { value: "outside", viewBounds: { x: 0, y: 0, width: 50, height: 50 } }, + { value: "inside", viewBounds: { x: 150, y: 350, width: 100, height: 100 } } + ]); + expect(defaultProps.barcode.setValue).toHaveBeenCalledWith("inside"); + expect(onDetectAction.execute).toHaveBeenCalledTimes(1); + }); +}); diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/BarcodeScanner.spec.tsx b/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/BarcodeScanner.spec.tsx index dbf475a34..a4c1d2655 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/BarcodeScanner.spec.tsx +++ b/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/BarcodeScanner.spec.tsx @@ -3,19 +3,34 @@ import { actionValue, EditableValueBuilder } from "@mendix/piw-utils-internal"; import { render } from "@testing-library/react-native"; import { View } from "react-native"; import { BarcodeScanner, Props } from "../BarcodeScanner"; +import { defaultBarcodeScannerStyle } from "../ui/styles"; -let mockOnCodeScanned: ((codes: Array<{ value: string }>) => void) | undefined; +let mockOnBarcodeScanned: ((barcodes: Array<{ rawValue: string }>) => void) | undefined; jest.mock("react-native-vision-camera", () => ({ - Camera: ({ children, ...props }: any) => {children}, + Camera: ({ children, onStarted, ...props }: any) => { + // Call onStarted to simulate camera being ready + if (onStarted) { + setTimeout(() => onStarted(), 0); + } + return {children}; + }, useCameraDevice: () => "mock-device", - useCodeScanner: (options: any) => { - mockOnCodeScanned = options.onCodeScanned; - return "mockCodeScanner"; + useCameraPermission: () => ({ + hasPermission: true, + canRequestPermission: false, + requestPermission: jest.fn() + }) +})); + +jest.mock("react-native-vision-camera-barcode-scanner", () => ({ + useBarcodeScannerOutput: (options: any) => { + mockOnBarcodeScanned = options.onBarcodeScanned; + return "mockScannerOutput"; } })); -jest.mock("react-native-barcode-mask", () => "BarcodeMask"); +jest.mock("../components/BarcodeMask", () => "BarcodeMask"); describe("BarcodeScanner", () => { let defaultProps: Props; @@ -27,7 +42,8 @@ describe("BarcodeScanner", () => { showMask: false, name: "barcode-scanner-test", style: [], - barcode: new EditableValueBuilder().build() + barcode: new EditableValueBuilder().build(), + scanDelay: 0 }; }); @@ -54,18 +70,35 @@ describe("BarcodeScanner", () => { const onDetectAction = actionValue(); render(); - // Simulate scanning - mockOnCodeScanned?.([{ value: "value" }]); + // Wait for camera start and advance time past scan delay + jest.runOnlyPendingTimers(); + + // Simulate scanning (3 consecutive reads required on Android) + mockOnBarcodeScanned?.([{ rawValue: "value" }]); + mockOnBarcodeScanned?.([{ rawValue: "value" }]); + mockOnBarcodeScanned?.([{ rawValue: "value" }]); jest.advanceTimersByTime(2000); expect(defaultProps.barcode.setValue).toHaveBeenCalledWith("value"); expect(onDetectAction.execute).toHaveBeenCalledTimes(1); // Another scan - mockOnCodeScanned?.([{ value: "value1" }]); + mockOnBarcodeScanned?.([{ rawValue: "value1" }]); + mockOnBarcodeScanned?.([{ rawValue: "value1" }]); + mockOnBarcodeScanned?.([{ rawValue: "value1" }]); jest.advanceTimersByTime(2000); expect(defaultProps.barcode.setValue).toHaveBeenCalledWith("value1"); expect(onDetectAction.execute).toHaveBeenCalledTimes(2); }); + + it("preserves expected style key set", () => { + const keys = Object.keys(defaultBarcodeScannerStyle).sort(); + expect(keys).toEqual(["container", "mask"]); + }); + + it("preserves expected mask style key set", () => { + const keys = Object.keys(defaultBarcodeScannerStyle.mask).sort(); + expect(keys).toEqual(["backgroundColor", "color"]); + }); }); diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/__snapshots__/BarcodeScanner.spec.tsx.snap b/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/__snapshots__/BarcodeScanner.spec.tsx.snap index 479e716ac..441ae54c1 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/__snapshots__/BarcodeScanner.spec.tsx.snap +++ b/packages/pluggableWidgets/barcode-scanner-native/src/__tests__/__snapshots__/BarcodeScanner.spec.tsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`BarcodeScanner renders 1`] = ` `; @@ -36,12 +41,18 @@ exports[`BarcodeScanner renders with mask 1`] = ` "minHeight": 100, } } + testID="barcode-scanner-test" > - - + /> + `; @@ -69,12 +80,18 @@ exports[`BarcodeScanner renders with mask with animated line 1`] = ` "minHeight": 100, } } + testID="barcode-scanner-test" > - - + /> + `; diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/components/BarcodeMask.tsx b/packages/pluggableWidgets/barcode-scanner-native/src/components/BarcodeMask.tsx new file mode 100644 index 000000000..d76f2b857 --- /dev/null +++ b/packages/pluggableWidgets/barcode-scanner-native/src/components/BarcodeMask.tsx @@ -0,0 +1,139 @@ +import { ReactElement, useEffect, useState } from "react"; +import { Animated, View } from "react-native"; +import Svg, { Line, Path } from "react-native-svg"; +import { barcodeMaskStyles as styles } from "../ui/styles"; + +const AnimatedLine = Animated.createAnimatedComponent(Line); + +export type BarcodeMaskSvgProps = { + edgeColor?: string; + width?: number; + height?: number; + showAnimatedLine?: boolean; + backgroundColor?: string; +}; + +const EDGE_WIDTH = 25; +const EDGE_HEIGHT = 25; +const EDGE_BORDER_WIDTH = 4; +const ANIMATED_LINE_COLOR = "#fff"; +const ANIMATED_LINE_THICKNESS = 3; +const LINE_ANIMATION_DURATION = 2000; + +export const BarcodeMask = (props: BarcodeMaskSvgProps): ReactElement => { + const { + edgeColor = "#fff", + width = 280, + height = 260, + showAnimatedLine = true, + backgroundColor = "rgba(0, 0, 0, 0.6)" + } = props; + + const [lineY] = useState(() => new Animated.Value(0)); + const [lineStrokeWidth] = useState(() => new Animated.Value(0)); + + useEffect(() => { + lineY.setValue(0); + lineStrokeWidth.setValue(0); + + Animated.spring(lineStrokeWidth, { + toValue: ANIMATED_LINE_THICKNESS, + damping: 15, + stiffness: 100, + mass: 0.5, + useNativeDriver: false + }).start(); + + Animated.loop( + Animated.sequence([ + Animated.timing(lineY, { + toValue: height, + duration: LINE_ANIMATION_DURATION, + useNativeDriver: false + }), + Animated.timing(lineY, { + toValue: 0, + duration: LINE_ANIMATION_DURATION, + useNativeDriver: false + }) + ]) + ).start(); + }, [height, lineY, lineStrokeWidth]); + + const strokeOffset = EDGE_BORDER_WIDTH / 2; + const maskLeft = strokeOffset; + const maskTop = strokeOffset; + const maskRight = width - strokeOffset; + const maskBottom = height - strokeOffset; + + return ( + + + + + + + + + + + + + + + {showAnimatedLine && ( + + )} + + + + + + + ); +}; + +export default BarcodeMask; diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/package.xml b/packages/pluggableWidgets/barcode-scanner-native/src/package.xml index fb14e92bd..76015e608 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/src/package.xml +++ b/packages/pluggableWidgets/barcode-scanner-native/src/package.xml @@ -1,6 +1,6 @@ - + diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/scanners/types.ts b/packages/pluggableWidgets/barcode-scanner-native/src/scanners/types.ts new file mode 100644 index 000000000..d60aa4bcf --- /dev/null +++ b/packages/pluggableWidgets/barcode-scanner-native/src/scanners/types.ts @@ -0,0 +1,27 @@ +import type { RefObject } from "react"; +import type { CameraOutput, CameraRef, Constraint } from "react-native-vision-camera"; + +export type Size = { width: number; height: number }; + +// Rectangle in camera view space (dp) +export type ViewBounds = { x: number; y: number; width: number; height: number }; + +export type DetectedCode = { + value: string; + // Resolved lazily, only when the mask needs the code position. Undefined when it can't be determined yet. + getViewBounds: () => ViewBounds | undefined; +}; + +export type ScannerOutputOptions = { + onCodesScanned: (codes: DetectedCode[]) => void; + cameraRef: RefObject; + cameraViewDimensions: Size | null; +}; + +export type ScannerOutput = { + // Outputs to attach to the Camera, the first one is the scanner + outputs: CameraOutput[]; + constraints: Constraint[]; +}; + +export type UseScannerOutput = (options: ScannerOutputOptions) => ScannerOutput; diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/scanners/useAndroidScannerOutput.ts b/packages/pluggableWidgets/barcode-scanner-native/src/scanners/useAndroidScannerOutput.ts new file mode 100644 index 000000000..bfd82843b --- /dev/null +++ b/packages/pluggableWidgets/barcode-scanner-native/src/scanners/useAndroidScannerOutput.ts @@ -0,0 +1,108 @@ +// Android only: react-native-vision-camera-barcode-scanner (Google ML Kit) creates its native object when it is +// loaded and isn't linked on iOS, so this file must only be required behind a Platform.OS === "android" check. +import { useCallback, useEffect, useMemo, useRef } from "react"; +import type { CameraOutput } from "react-native-vision-camera"; +import { + useBarcodeScannerOutput, + type Barcode, + type TargetBarcodeFormat +} from "react-native-vision-camera-barcode-scanner"; + +import { ScannerOutput, ScannerOutputOptions, Size, ViewBounds } from "./types"; +import { buildDetectedCodes } from "./utils"; + +// Kept as a module constant because the scanner output is recreated whenever this array changes. +const BARCODE_FORMATS: TargetBarcodeFormat[] = [ + "qr-code", + "aztec", + "codabar", + "code-39", + "code-93", + "code-128", + "data-matrix", + "ean-13", + "ean-8", + "upc-a", + "upc-e", + "pdf-417", + "itf" +]; + +/** + * Transforms barcode coordinates from scanner buffer space to screen view space. + * ML Kit already rotates coordinates to match device orientation. + * Uses uniform cover scaling (like CSS object-fit: cover) to match VisionCamera's preview rendering. + */ +function toViewBounds(boundingBox: Barcode["boundingBox"], bufferResolution: Size, viewSize: Size): ViewBounds { + const frameWidth = bufferResolution.width; + const frameHeight = bufferResolution.height; + const { width: viewWidth, height: viewHeight } = viewSize; + const isPortrait = viewHeight > viewWidth; + + const codeFrameWidth = boundingBox.right - boundingBox.left; + const codeFrameHeight = boundingBox.bottom - boundingBox.top; + + // Buffer resolution reports sensor landscape dimensions (e.g. 1920x1080) even in portrait. + // In portrait, we need to use the swapped dimensions for aspect ratio calculation. + const effectiveFrameWidth = isPortrait ? Math.min(frameWidth, frameHeight) : frameWidth; + const effectiveFrameHeight = isPortrait ? Math.max(frameWidth, frameHeight) : frameHeight; + + // Use uniform cover scaling: scale factor is the maximum of width/height ratios + // This ensures the frame fills the view completely, with one dimension cropped + const scale = Math.max(viewWidth / effectiveFrameWidth, viewHeight / effectiveFrameHeight); + + // Calculate how much the scaled frame extends beyond the view (crop region) + const scaledFrameWidth = effectiveFrameWidth * scale; + const scaledFrameHeight = effectiveFrameHeight * scale; + const cropOffsetX = (scaledFrameWidth - viewWidth) / 2; + const cropOffsetY = (scaledFrameHeight - viewHeight) / 2; + + const result = { + x: boundingBox.left * scale - cropOffsetX, + y: boundingBox.top * scale - cropOffsetY, + width: codeFrameWidth * scale, + height: codeFrameHeight * scale + }; + + return result; +} + +export function useAndroidScannerOutput({ onCodesScanned, cameraViewDimensions }: ScannerOutputOptions): ScannerOutput { + // Read when resolving a code position to get the buffer resolution the scanner is actually using + const scannerOutputRef = useRef(null); + + const onBarcodeScanned = useCallback( + (barcodes: Barcode[]) => { + const codes = buildDetectedCodes( + barcodes, + barcode => barcode.rawValue, + barcode => () => { + const bufferResolution = scannerOutputRef.current?.currentResolution; + if (!bufferResolution || !cameraViewDimensions) { + return undefined; + } + return toViewBounds(barcode.boundingBox, bufferResolution, cameraViewDimensions); + } + ); + onCodesScanned(codes); + }, + [onCodesScanned, cameraViewDimensions] + ); + + const onScanError = useCallback((error: Error) => { + console.warn("Barcode scanner error:", error); + }, []); + + const scannerOutput = useBarcodeScannerOutput({ + barcodeFormats: BARCODE_FORMATS, + // Full resolution so dense/patterned QR codes can be decoded + outputResolution: "full", + onBarcodeScanned, + onError: onScanError + }); + useEffect(() => { + scannerOutputRef.current = scannerOutput; + }, [scannerOutput]); + + return useMemo(() => ({ outputs: [scannerOutput], constraints: [] }), [scannerOutput]); +} diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/scanners/useIosScannerOutput.ts b/packages/pluggableWidgets/barcode-scanner-native/src/scanners/useIosScannerOutput.ts new file mode 100644 index 000000000..0918b04ba --- /dev/null +++ b/packages/pluggableWidgets/barcode-scanner-native/src/scanners/useIosScannerOutput.ts @@ -0,0 +1,67 @@ +import { useCallback, useMemo } from "react"; +import { + CommonResolutions, + isScannedCode, + useObjectOutput, + useVideoOutput, + type ScannedObject, + type ScannedObjectType +} from "react-native-vision-camera"; + +import { ScannerOutput, ScannerOutputOptions } from "./types"; +import { buildDetectedCodes } from "./utils"; + +// Same code types as v4 on iOS (Apple AVFoundation): UPC-A is reported as EAN-13, and v4's "itf" was interleaved 2 of 5. +// Kept as a module constant because the object output is recreated whenever this array changes. +const OBJECT_TYPES: ScannedObjectType[] = [ + "qr", + "aztec", + "codabar", + "code-39", + "code-93", + "code-128", + "data-matrix", + "ean-13", + "ean-8", + "upc-e", + "pdf-417", + "interleaved-2-of-5" +]; + +export function useIosScannerOutput({ onCodesScanned, cameraRef }: ScannerOutputOptions): ScannerOutput { + const onObjectsScanned = useCallback( + (objects: ScannedObject[]) => { + const scannedCodes = objects.filter(isScannedCode); + const codes = buildDetectedCodes( + scannedCodes, + object => object.value, + object => () => { + try { + // Converts from normalized camera space to view space, handling orientation and cropping natively + return cameraRef.current?.convertScannedObjectCoordinatesToViewCoordinates(object).boundingBox; + } catch { + // The preview isn't ready yet + return undefined; + } + } + ); + onCodesScanned(codes); + }, + [onCodesScanned, cameraRef] + ); + + const objectOutput = useObjectOutput({ types: OBJECT_TYPES, onObjectsScanned }); + + // Without a resolution target VisionCamera picks the first matching camera format, while v4 kept Apple's + // default 1080p 30 fps setup that dense/patterned QR codes need. Only a created output can be used as + // resolution bias, so a video output is added that never records. + const resolutionOutput = useVideoOutput({ targetResolution: CommonResolutions.FHD_16_9, enableAudio: false }); + + return useMemo( + () => ({ + outputs: [objectOutput, resolutionOutput], + constraints: [{ resolutionBias: resolutionOutput }, { fps: 30 }] + }), + [objectOutput, resolutionOutput] + ); +} diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/scanners/utils.ts b/packages/pluggableWidgets/barcode-scanner-native/src/scanners/utils.ts new file mode 100644 index 000000000..eff451e36 --- /dev/null +++ b/packages/pluggableWidgets/barcode-scanner-native/src/scanners/utils.ts @@ -0,0 +1,24 @@ +import { DetectedCode, ViewBounds } from "./types"; + +/** + * Generic helper to build DetectedCode array from platform-specific scanner results. + * Filters out items without values and applies the provided view bounds getter. + */ +export function buildDetectedCodes( + items: T[], + getValue: (item: T) => string | null | undefined, + getViewBounds: (item: T) => () => ViewBounds | undefined +): DetectedCode[] { + const codes: DetectedCode[] = []; + for (const item of items) { + const value = getValue(item); + if (!value) { + continue; + } + codes.push({ + value, + getViewBounds: getViewBounds(item) + }); + } + return codes; +} diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/ui/styles.tsx b/packages/pluggableWidgets/barcode-scanner-native/src/ui/styles.tsx index 6ad1c7b94..57d71ebe5 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/src/ui/styles.tsx +++ b/packages/pluggableWidgets/barcode-scanner-native/src/ui/styles.tsx @@ -1,5 +1,5 @@ import { Style } from "@mendix/piw-native-utils-internal"; -import { ViewStyle } from "react-native"; +import { StyleSheet, ViewStyle } from "react-native"; export interface BarcodeScannerStyle extends Style { container: ViewStyle; @@ -22,3 +22,31 @@ export const defaultBarcodeScannerStyle: BarcodeScannerStyle = { backgroundColor: "rgba(0, 0, 0, 0.6)" } }; + +export const barcodeMaskStyles = StyleSheet.create({ + container: { + flex: 1, + display: "flex", + alignItems: "center", + justifyContent: "space-around", + position: "absolute", + height: "100%", + width: "100%" + }, + maskCenter: { + flexDirection: "row", + alignItems: "center", + justifyContent: "space-around" + }, + mask: { + position: "relative", + maxHeight: "100%", + maxWidth: "100%", + zIndex: 99 + }, + svg: { + position: "absolute", + top: 0, + left: 0 + } +}); diff --git a/packages/pluggableWidgets/barcode-scanner-native/typings/BarcodeScannerProps.d.ts b/packages/pluggableWidgets/barcode-scanner-native/typings/BarcodeScannerProps.d.ts index b7bc06952..a961fea4d 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/typings/BarcodeScannerProps.d.ts +++ b/packages/pluggableWidgets/barcode-scanner-native/typings/BarcodeScannerProps.d.ts @@ -3,8 +3,8 @@ * WARNING: All changes made to this file will be overwritten * @author Mendix Widgets Framework Team */ -import { CSSProperties } from "react"; import { ActionValue, EditableValue } from "mendix"; +import { CSSProperties } from "react"; export interface BarcodeScannerProps
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - minimatch (npm) - 10.2.6

+

+ Enclosed you will find the + license conditions applicable for - minimatch (npm) - + 10.2.6 +

+
+ +
License conditions:
+
+ + + + +
+ # Blue Oak Model License
+
Version 1.0.0
+
## Purpose
+
This license gives everyone as much permission to work with
this software + as possible, while protecting contributors
from liability.
+
## Acceptance
+
In order to receive this license, you must agree to its
rules. The rules + of this license are both obligations
under that agreement and conditions to + your license.
You must not do anything with this software that triggers
a + rule that you cannot or will not follow.
+
## Copyright
+
Each contributor licenses you to do everything with this
software that + would otherwise infringe that contributor's
copyright in it.
+
## Notices
+
You must ensure that everyone who gets a copy of
any part of this + software from you, with or without
changes, also gets the text of this license + or a link to
<https://blueoakcouncil.org/license/1.0.0>.
+
## Excuse
+
If anyone notifies you in writing that you have not
complied with + [Notices](#notices), you can keep your
license by taking all practical steps to + comply within 30
days after the notice. If you do not do so, your license
ends + immediately.
+
## Patent
+
Each contributor licenses you to do everything with this
software that + would otherwise infringe any patent claims
they can license or become able to + license.
+
## Reliability
+
No contributor can revoke this license.
+
## No Liability
+
***As far as the law allows, this software comes as is,
without any + warranty or condition, and no contributor
will be liable to anyone for any + damages related to this
software or this license, under any kind of legal + claim.***
+
+
+ +
+ +
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

@@ -3164,6 +3258,108 @@
Copyrights:

+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-nitro-geolocation (npm) - 1.4.3

+

+ Enclosed you will find the license conditions and + copyright notices applicable for - + react-native-nitro-geolocation (npm) - 1.4.3 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+
Copyrights:
+ + + + +
+ Copyright (c) 2026 jingjing2222; Copyright (c) Marc Rousavy Margelo +
+
+
+
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

+

Open Source Software: - react-native-nitro-modules (npm) - 0.37.0

+

+ Enclosed you will find the + license conditions applicable for - + react-native-nitro-modules (npm) - 0.37.0 +

+
+ +
License conditions:
+
+ + + + +
+ The MIT License +
+
Copyright (c) <year> <copyright holders> +
+
Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal in the + Software without restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, subject to the + following conditions: +
+
The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. +
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR + A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE + OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +
+
+ +
+ +
+


LICENSE CONDITIONS AND COPYRIGHT NOTICES

diff --git a/packages/jsActions/nanoflow-actions-native/package.json b/packages/jsActions/nanoflow-actions-native/package.json index aea3b75f4..6ef38401f 100644 --- a/packages/jsActions/nanoflow-actions-native/package.json +++ b/packages/jsActions/nanoflow-actions-native/package.json @@ -1,7 +1,7 @@ { "name": "nanoflow-actions-native", "moduleName": "Nanoflow Commons", - "version": "7.1.0", + "version": "7.4.2", "license": "Apache-2.0", "copyright": "© Mendix Technology BV 2022. All rights reserved.", "repository": { @@ -11,25 +11,26 @@ "marketplace": { "name": "Nanoflow Commons", "description": "The Nanoflow Commons module contains commonly used nanoflow actions that are usable across web, hybrid mobile, and native mobile apps, such as: client activities, geo location, local storage, & more.", - "minimumMXVersion": "11.11.0", + "minimumMXVersion": "11.12.5", "marketplaceId": 109515 }, "testProject": { "githubUrl": "https://github.com/mendix/native-mobile-resources", - "branchName": "main" + "branchName": "mx/11.12.x" }, "scripts": { "start": "rollup --config ../../../configs/jsactions/rollup.config.mjs --watch --configProject nanoflowcommons", "build": "rollup --config ../../../configs/jsactions/rollup.config.mjs --configProject nanoflowcommons", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "release": "pnpm build", "release:marketplace": "node ../../../scripts/release/marketplaceRelease.js" }, "dependencies": { "@react-native-async-storage/async-storage": "2.2.0", - "@react-native-community/geolocation": "3.4.0", - "invariant": "^2.2.4", "js-base64": "~3.7.2", + "react-native-nitro-geolocation": "1.4.3", + "react-native-nitro-modules": "0.37.0", + "mendix-native": "https://github.com/mendix/mendix-native/releases/download/v0.5.2/mendix-native-v0.5.2.tgz", "react-native-permissions": "5.5.1", "react-native-geocoder": "0.5.0" }, @@ -37,4 +38,4 @@ "@mendix/pluggable-widgets-tools": "*", "mendix": "11.8.0" } -} +} \ No newline at end of file diff --git a/packages/jsActions/nanoflow-actions-native/src/geolocation/GetCurrentLocation.ts b/packages/jsActions/nanoflow-actions-native/src/geolocation/GetCurrentLocation.ts index b333c81d4..d9ca95e21 100644 --- a/packages/jsActions/nanoflow-actions-native/src/geolocation/GetCurrentLocation.ts +++ b/packages/jsActions/nanoflow-actions-native/src/geolocation/GetCurrentLocation.ts @@ -6,14 +6,7 @@ // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. import { Big } from "big.js"; -import Geolocation, { - GeolocationError, - GeolocationOptions, - GeolocationResponse -} from "@react-native-community/geolocation"; - -import type { Platform, NativeModules } from "react-native"; -import type { GeoError, GeoPosition, GeoOptions } from "../../typings/Geolocation"; +import { getCurrentPosition, GeolocationResponse, LocationRequestOptions } from "react-native-nitro-geolocation"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -39,94 +32,114 @@ export async function GetCurrentLocation( ): Promise { // BEGIN USER CODE - let reactNativeModule: { NativeModules: typeof NativeModules; Platform: typeof Platform } | undefined; - let geolocationModule: typeof import("@react-native-community/geolocation").default | Geolocation; + const isReactNative = navigator && navigator.product === "ReactNative"; + const isWeb = navigator && navigator.geolocation; - if (navigator && navigator.product === "ReactNative") { - reactNativeModule = require("react-native"); + if (!isReactNative && !isWeb) { + return Promise.reject(new Error("Geolocation module could not be found")); + } - if (!reactNativeModule) { - return Promise.reject(new Error("React Native module could not be found")); - } + // We keep a manual web branch (backed by `navigator.geolocation`) rather than relying on the + // library's web entry, because it is not guaranteed that the Mendix web client resolves the + // package's `browser`/`exports` condition. If that is ever confirmed, this branch can be dropped. + const options = buildLocationOptions(timeout, maximumAge, highAccuracy); + try { + let position: GeolocationResponse; - if (reactNativeModule.NativeModules.RNFusedLocation) { - geolocationModule = (await import("@react-native-community/geolocation")).default; - } else if (reactNativeModule.NativeModules.RNCGeolocation) { - geolocationModule = Geolocation; + if (isReactNative) { + position = await getCurrentPosition(options); } else { - return Promise.reject(new Error("Geolocation module could not be found")); + position = await new Promise((resolve, reject) => { + navigator.geolocation.getCurrentPosition( + pos => resolve(normalizeWebPosition(pos)), + err => reject(err), + { + timeout: options.timeout, + maximumAge: options.maximumAge, + enableHighAccuracy: highAccuracy ?? false + } + ); + }); } - } else if (navigator && navigator.geolocation) { - geolocationModule = navigator.geolocation; - } else { - return Promise.reject(new Error("Geolocation module could not be found")); - } - - return new Promise((resolve, reject) => { - const options = getOptions(); - geolocationModule?.getCurrentPosition(onSuccess, onError, options); - function onSuccess(position: GeolocationResponse | GeoPosition): void { + return new Promise((resolve, reject) => { mx.data.create({ entity: "NanoflowCommons.Geolocation", callback: mxObject => { - const geolocation = mapPositionToMxObject(mxObject, position); - resolve(geolocation); + resolve(mapPositionToMxObject(mxObject, position)); }, error: () => reject(new Error("Could not create 'NanoflowCommons.Geolocation' object to store location")) }); - } + }); + } catch (error: any) { + const message = error?.message ?? String(error); + return Promise.reject(new Error(`Could not get current location: ${message}`)); + } + + function buildLocationOptions( + timeout: Big | undefined, + maximumAge: Big | undefined, + highAccuracy: boolean | undefined + ): LocationRequestOptions { + let timeoutNumber = timeout ? timeout.toNumber() : undefined; + const maximumAgeNumber = maximumAge ? maximumAge.toNumber() : undefined; - function onError(error: GeolocationError | GeoError): void { - return reject(new Error(error.message)); + // If the timeout is 0 or undefined (empty), it causes a crash on iOS. + // If the timeout is undefined (empty); we set timeout to 30 sec (default timeout) + // If the timeout is 0; we set timeout to 1 hour (no timeout) + if (isReactNative && require("react-native").Platform.OS === "ios") { + if (timeoutNumber === undefined) { + timeoutNumber = 30000; + } else if (timeoutNumber === 0) { + timeoutNumber = 3600000; + } } - function getOptions(): GeolocationOptions | GeoOptions { - let timeoutNumber = timeout && Number(timeout.toString()); - const maximumAgeNumber = maximumAge && Number(maximumAge.toString()); + return { + timeout: timeoutNumber, + maximumAge: maximumAgeNumber, + accuracy: highAccuracy ? { android: "high", ios: "best" } : { android: "balanced", ios: "hundredMeters" } + }; + } - // If the timeout is 0 or undefined (empty), it causes a crash on iOS. - // If the timeout is undefined (empty); we set timeout to 30 sec (default timeout) - // If the timeout is 0; we set timeout to 1 hour (no timeout) - if (reactNativeModule?.Platform.OS === "ios") { - if (timeoutNumber === undefined) { - timeoutNumber = 30000; - } else if (timeoutNumber === 0) { - timeoutNumber = 3600000; - } - } + // NOTE: `normalizeWebPosition` is duplicated verbatim in `GetCurrentLocationMinimumAccuracy.ts`. + // The Mendix action model does not allow sharing code across action files, so if you change this + // function, keep the copy in the other action in sync. + function normalizeWebPosition(pos: GeolocationPosition): GeolocationResponse { + return { + coords: { + latitude: pos.coords.latitude, + longitude: pos.coords.longitude, + altitude: pos.coords.altitude ?? null, + accuracy: pos.coords.accuracy, + altitudeAccuracy: pos.coords.altitudeAccuracy ?? null, + heading: pos.coords.heading ?? null, + speed: pos.coords.speed ?? null + }, + timestamp: pos.timestamp + }; + } - return { - timeout: timeoutNumber, - maximumAge: maximumAgeNumber, - enableHighAccuracy: highAccuracy - }; + function mapPositionToMxObject(mxObject: mendix.lib.MxObject, pos: GeolocationResponse): mendix.lib.MxObject { + mxObject.set("Timestamp", new Date(pos.timestamp)); + mxObject.set("Latitude", new Big(pos.coords.latitude.toFixed(8))); + mxObject.set("Longitude", new Big(pos.coords.longitude.toFixed(8))); + mxObject.set("Accuracy", new Big(pos.coords.accuracy.toFixed(8))); + if (pos.coords.altitude != null) { + mxObject.set("Altitude", new Big(pos.coords.altitude.toFixed(8))); } - - function mapPositionToMxObject( - mxObject: mendix.lib.MxObject, - position: GeolocationResponse | GeoPosition - ): mendix.lib.MxObject { - mxObject.set("Timestamp", new Date(position.timestamp)); - mxObject.set("Latitude", new Big(position.coords.latitude.toFixed(8))); - mxObject.set("Longitude", new Big(position.coords.longitude.toFixed(8))); - mxObject.set("Accuracy", new Big(position.coords.accuracy.toFixed(8))); - if (position.coords.altitude != null) { - mxObject.set("Altitude", new Big(position.coords.altitude.toFixed(8))); - } - if (position.coords.altitudeAccuracy != null && position.coords.altitudeAccuracy !== -1) { - mxObject.set("AltitudeAccuracy", new Big(position.coords.altitudeAccuracy.toFixed(8))); - } - if (position.coords.heading != null && position.coords.heading !== -1) { - mxObject.set("Heading", new Big(position.coords.heading.toFixed(8))); - } - if (position.coords.speed != null && position.coords.speed !== -1) { - mxObject.set("Speed", new Big(position.coords.speed.toFixed(8))); - } - return mxObject; + if (pos.coords.altitudeAccuracy != null && pos.coords.altitudeAccuracy !== -1) { + mxObject.set("AltitudeAccuracy", new Big(pos.coords.altitudeAccuracy.toFixed(8))); + } + if (pos.coords.heading != null && pos.coords.heading !== -1) { + mxObject.set("Heading", new Big(pos.coords.heading.toFixed(8))); } - }); + if (pos.coords.speed != null && pos.coords.speed !== -1) { + mxObject.set("Speed", new Big(pos.coords.speed.toFixed(8))); + } + return mxObject; + } // END USER CODE } diff --git a/packages/jsActions/nanoflow-actions-native/src/geolocation/GetCurrentLocationMinimumAccuracy.ts b/packages/jsActions/nanoflow-actions-native/src/geolocation/GetCurrentLocationMinimumAccuracy.ts index 7756b3e1b..b1419bf0e 100644 --- a/packages/jsActions/nanoflow-actions-native/src/geolocation/GetCurrentLocationMinimumAccuracy.ts +++ b/packages/jsActions/nanoflow-actions-native/src/geolocation/GetCurrentLocationMinimumAccuracy.ts @@ -6,14 +6,7 @@ // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. import { Big } from "big.js"; -import Geolocation, { - GeolocationError, - GeolocationOptions, - GeolocationResponse -} from "@react-native-community/geolocation"; - -import type { Platform, NativeModules } from "react-native"; -import type { GeoError, GeoPosition, GeoOptions } from "../../typings/Geolocation"; +import { watchPosition, unwatch, GeolocationResponse, LocationRequestOptions } from "react-native-nitro-geolocation"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -43,63 +36,50 @@ export async function GetCurrentLocationMinimumAccuracy( ): Promise { // BEGIN USER CODE - let reactNativeModule: { NativeModules: typeof NativeModules; Platform: typeof Platform } | undefined; - let geolocationModule: typeof import("@react-native-community/geolocation").default | Geolocation; - - if (navigator && navigator.product === "ReactNative") { - reactNativeModule = require("react-native"); - - if (!reactNativeModule) { - return Promise.reject(new Error("React Native module could not be found")); - } + const isReactNative = navigator && navigator.product === "ReactNative"; + const isWeb = navigator && navigator.geolocation; - if (reactNativeModule.NativeModules.RNFusedLocation) { - geolocationModule = (await import("@react-native-community/geolocation")).default; - } else if (reactNativeModule.NativeModules.RNCGeolocation) { - geolocationModule = Geolocation; - } else { - return Promise.reject(new Error("Geolocation module could not be found")); - } - } else if (navigator && navigator.geolocation) { - geolocationModule = navigator.geolocation; - } else { + if (!isReactNative && !isWeb) { return Promise.reject(new Error("Geolocation module could not be found")); } return new Promise((resolve, reject) => { - if (!geolocationModule) { - return reject(new Error("Geolocation module could not be found")); - } + const options = buildLocationOptions(timeout, maximumAge, highAccuracy); + let lastAccruedPosition: GeolocationResponse | undefined; + + // Derive the watchdog timeout from the same clamped value used for the location layer, + // so the two never disagree. `new Big(0)` is truthy, so we must not test `timeout` + // directly here or a configured `0` would fire the watchdog on the next tick. + const timeoutMs = options.timeout ?? 30000; + const timeoutId = setTimeout(onTimeout, timeoutMs); - const options = getOptions(); + let clearWatch: () => void; - // This action is only required while running in PWA or hybrid. - if (navigator && (!navigator.product || navigator.product !== "ReactNative")) { - // This ensures the browser will not ignore the maximumAge https://stackoverflow.com/questions/3397585/navigator-geolocation-getcurrentposition-sometimes-works-sometimes-doesnt/31916631#31916631 - geolocationModule.getCurrentPosition( - // eslint-disable-next-line @typescript-eslint/no-empty-function + if (isReactNative) { + const token = watchPosition(onSuccess, onError, options); + clearWatch = () => unwatch(token); + } else { + // Workaround: browsers may ignore maximumAge on watchPosition unless getCurrentPosition is called first. + // https://stackoverflow.com/questions/3397585/navigator-geolocation-getcurrentposition-sometimes-works-sometimes-doesnt + navigator.geolocation.getCurrentPosition( () => {}, - // eslint-disable-next-line @typescript-eslint/no-empty-function () => {}, {} ); - } - - const timeoutId = setTimeout(onTimeout, Number(timeout)); - const watchId: number = geolocationModule.watchPosition(onSuccess, onError, options); - let lastAccruedPosition: GeolocationResponse | GeoPosition; - - function createGeolocationObject(position: GeolocationResponse | GeoPosition): void { - mx.data.create({ - entity: "NanoflowCommons.Geolocation", - callback: mxObject => resolve(mapPositionToMxObject(mxObject, position)), - error: () => - reject(new Error("Could not create 'NanoflowCommons.Geolocation' object to store location")) - }); + const watchId = navigator.geolocation.watchPosition( + pos => onSuccess(normalizeWebPosition(pos)), + err => onError({ code: err.code, message: err.message }), + { + timeout: options.timeout, + maximumAge: options.maximumAge, + enableHighAccuracy: highAccuracy ?? false + } + ); + clearWatch = () => navigator.geolocation.clearWatch(watchId); } function onTimeout(): void { - geolocationModule?.clearWatch(watchId); + clearWatch(); if (lastAccruedPosition) { createGeolocationObject(lastAccruedPosition); @@ -108,10 +88,10 @@ export async function GetCurrentLocationMinimumAccuracy( } } - function onSuccess(position: GeolocationResponse | GeoPosition): void { + function onSuccess(position: GeolocationResponse): void { if (!minimumAccuracy || Number(minimumAccuracy) >= position.coords.accuracy) { clearTimeout(timeoutId); - geolocationModule?.clearWatch(watchId); + clearWatch(); createGeolocationObject(position); } else { if (!lastAccruedPosition || position.coords.accuracy < lastAccruedPosition.coords.accuracy) { @@ -120,55 +100,92 @@ export async function GetCurrentLocationMinimumAccuracy( } } - function onError(error: GeolocationError | GeoError): void { - return reject(new Error(error.message)); - } + function onError(error: { code: number; message: string }): void { + clearTimeout(timeoutId); + clearWatch(); - function getOptions(): GeolocationOptions | GeoOptions { - let timeoutNumber = timeout && Number(timeout.toString()); - const maximumAgeNumber = maximumAge && Number(maximumAge.toString()); - - // If the timeout is 0 or undefined (empty), it causes a crash on iOS. - // If the timeout is undefined (empty); we set timeout to 30 sec (default timeout) - // If the timeout is 0; we set timeout to 1 hour (no timeout) - if (reactNativeModule?.Platform.OS === "ios") { - if (timeoutNumber === undefined) { - timeoutNumber = 30000; - } else if (timeoutNumber === 0) { - timeoutNumber = 3600000; - } + // Best effort within a timeout: if we already captured a usable (though not yet + // minimum-accuracy) fix, return it instead of failing on a transient error such as + // POSITION_UNAVAILABLE. Mirrors the onTimeout fallback. + if (lastAccruedPosition) { + createGeolocationObject(lastAccruedPosition); + } else { + reject(new Error(error.message)); } - - return { - timeout: timeoutNumber, - maximumAge: maximumAgeNumber, - enableHighAccuracy: highAccuracy - }; } - function mapPositionToMxObject( - mxObject: mendix.lib.MxObject, - position: GeolocationResponse | GeoPosition - ): mendix.lib.MxObject { - mxObject.set("Timestamp", new Date(position.timestamp)); - mxObject.set("Latitude", new Big(position.coords.latitude.toFixed(8))); - mxObject.set("Longitude", new Big(position.coords.longitude.toFixed(8))); - mxObject.set("Accuracy", new Big(position.coords.accuracy.toFixed(8))); - if (position.coords.altitude != null) { - mxObject.set("Altitude", new Big(position.coords.altitude.toFixed(8))); - } - if (position.coords.altitudeAccuracy != null && position.coords.altitudeAccuracy !== -1) { - mxObject.set("AltitudeAccuracy", new Big(position.coords.altitudeAccuracy.toFixed(8))); - } - if (position.coords.heading != null && position.coords.heading !== -1) { - mxObject.set("Heading", new Big(position.coords.heading.toFixed(8))); - } - if (position.coords.speed != null && position.coords.speed !== -1) { - mxObject.set("Speed", new Big(position.coords.speed.toFixed(8))); - } - return mxObject; + function createGeolocationObject(position: GeolocationResponse): void { + mx.data.create({ + entity: "NanoflowCommons.Geolocation", + callback: mxObject => resolve(mapPositionToMxObject(mxObject, position)), + error: () => + reject(new Error("Could not create 'NanoflowCommons.Geolocation' object to store location")) + }); } }); + function buildLocationOptions( + timeout: Big | undefined, + maximumAge: Big | undefined, + highAccuracy: boolean | undefined + ): LocationRequestOptions { + let timeoutNumber = timeout ? timeout.toNumber() : undefined; + const maximumAgeNumber = maximumAge ? maximumAge.toNumber() : undefined; + + // Normalize the timeout so the watchdog and the location layer always agree, on every platform: + // - undefined (empty) -> 30 sec (default timeout) + // - 0 -> 1 hour (treated as "no timeout") + // A timeout of 0 or undefined also crashes on iOS, and on web `timeout: 0` means + // "fail immediately with TIMEOUT" on every update, so it must never reach the location layer. + if (timeoutNumber === undefined) { + timeoutNumber = 30000; + } else if (timeoutNumber === 0) { + timeoutNumber = 3600000; + } + + return { + timeout: timeoutNumber, + maximumAge: maximumAgeNumber, + accuracy: highAccuracy ? { android: "high", ios: "best" } : { android: "balanced", ios: "hundredMeters" } + }; + } + // NOTE: `normalizeWebPosition` is duplicated verbatim in `GetCurrentLocation.ts`. + // The Mendix action model does not allow sharing code across action files, so if you change this + // function, keep the copy in the other action in sync. + function normalizeWebPosition(pos: GeolocationPosition): GeolocationResponse { + return { + coords: { + latitude: pos.coords.latitude, + longitude: pos.coords.longitude, + altitude: pos.coords.altitude ?? null, + accuracy: pos.coords.accuracy, + altitudeAccuracy: pos.coords.altitudeAccuracy ?? null, + heading: pos.coords.heading ?? null, + speed: pos.coords.speed ?? null + }, + timestamp: pos.timestamp + }; + } + + function mapPositionToMxObject(mxObject: mendix.lib.MxObject, pos: GeolocationResponse): mendix.lib.MxObject { + mxObject.set("Timestamp", new Date(pos.timestamp)); + mxObject.set("Latitude", new Big(pos.coords.latitude.toFixed(8))); + mxObject.set("Longitude", new Big(pos.coords.longitude.toFixed(8))); + mxObject.set("Accuracy", new Big(pos.coords.accuracy.toFixed(8))); + if (pos.coords.altitude != null) { + mxObject.set("Altitude", new Big(pos.coords.altitude.toFixed(8))); + } + if (pos.coords.altitudeAccuracy != null && pos.coords.altitudeAccuracy !== -1) { + mxObject.set("AltitudeAccuracy", new Big(pos.coords.altitudeAccuracy.toFixed(8))); + } + if (pos.coords.heading != null && pos.coords.heading !== -1) { + mxObject.set("Heading", new Big(pos.coords.heading.toFixed(8))); + } + if (pos.coords.speed != null && pos.coords.speed !== -1) { + mxObject.set("Speed", new Big(pos.coords.speed.toFixed(8))); + } + return mxObject; + } + // END USER CODE } diff --git a/packages/jsActions/nanoflow-actions-native/src/geolocation/GetStraightLineDistance.ts b/packages/jsActions/nanoflow-actions-native/src/geolocation/GetStraightLineDistance.ts index a013cb54f..89477aa0b 100644 --- a/packages/jsActions/nanoflow-actions-native/src/geolocation/GetStraightLineDistance.ts +++ b/packages/jsActions/nanoflow-actions-native/src/geolocation/GetStraightLineDistance.ts @@ -7,11 +7,6 @@ // Other code you write will be lost the next time you deploy the project. import { Big } from "big.js"; -// BEGIN EXTRA CODE -// END EXTRA CODE - -type DistanceUnit = "KILOMETER" | "STATUTE_MILE" | "NAUTICAL_MILE"; - // BEGIN EXTRA CODE function deg2rad(deg: Big): Big { @@ -26,6 +21,8 @@ function kmToNauticalMile(km: Big): Big { return km.div(1.852); } +type DistanceUnit = "KILOMETER" | "STATUTE_MILE" | "NAUTICAL_MILE"; + // END EXTRA CODE /** diff --git a/packages/jsActions/nanoflow-actions-native/src/other/Base64DecodeToImage.ts b/packages/jsActions/nanoflow-actions-native/src/other/Base64DecodeToImage.ts index fbd420f40..ea6a789b7 100644 --- a/packages/jsActions/nanoflow-actions-native/src/other/Base64DecodeToImage.ts +++ b/packages/jsActions/nanoflow-actions-native/src/other/Base64DecodeToImage.ts @@ -6,7 +6,6 @@ // - the code between BEGIN EXTRA CODE and END EXTRA CODE // Other code you write will be lost the next time you deploy the project. import { Base64 } from "js-base64"; -import RNBlobUtil from "react-native-blob-util"; // BEGIN EXTRA CODE // END EXTRA CODE @@ -30,6 +29,9 @@ export async function Base64DecodeToImage(base64: string, image: mendix.lib.MxOb // Native platform if (navigator && navigator.product === "ReactNative") { try { + const { NativeFileSystem } = await import("mendix-native"); + const RNBlobUtil = (await import("react-native-blob-util")).default; + // Remove data URI prefix if present (e.g., "data:image/png;base64,") let cleanBase64 = base64; if (base64.includes(",")) { @@ -45,27 +47,48 @@ export async function Base64DecodeToImage(base64: string, image: mendix.lib.MxOb } // Create a temporary file path - const tempPath = `${RNBlobUtil.fs.dirs.CacheDir}/temp_image_${Date.now()}.png`; + const fileName = `image_${Date.now()}.png`; + const tempPath = `${RNBlobUtil.fs.dirs.CacheDir}/${fileName}`; // Write Base64 data to a temporary file await RNBlobUtil.fs.writeFile(tempPath, cleanBase64, "base64"); - // Fetch the file as a blob - const res = await fetch(`file://${tempPath}`); - const blob = await res.blob(); + // Read the file into the native blob store so offline mode works: + // NativeFileBackend.storeFile calls NativeFileSystem.save(blob.data, path) + // and blob.close() — a plain object has no .data getter or .close(), which + // crashes iOS via [NSInvocation invokeWithTarget:]. + const nativeBlob = await NativeFileSystem.read(tempPath.replace("file://", "")); + // Normalize: MxFileSystem.read may return 'length' instead of 'size'. + const blobData = { ...(nativeBlob as any) }; + if (blobData.size === undefined && blobData.length !== undefined) { + blobData.size = blobData.length; + } + const blob = new Blob(); + Object.assign(blob, { data: blobData }); + + // Set nativePayload so the patched FormData.prototype.append in NativeFileBackend + // replaces the blob value with { uri, name, type } for online uploads. The patch + // reads the third append() argument (fileName) and writes it onto nativePayload.name, + // which FormData.getParts() uses as the Content-Disposition filename. + (blob as any).nativePayload = { uri: `file://${tempPath}`, name: fileName, type: "image/png" }; + const fileBlob = blob as Blob; return new Promise((resolve, reject) => { mx.data.saveDocument( image.getGuid(), - "camera image", + fileName, {}, - blob, + fileBlob, () => { - RNBlobUtil.fs.unlink(tempPath).catch(e => console.info("Temp file cleanup failed:", e)); + RNBlobUtil.fs + .unlink(tempPath) + .catch((e: unknown) => console.info("Temp file cleanup failed:", e)); resolve(true); }, error => { - RNBlobUtil.fs.unlink(tempPath).catch(e => console.info("Temp file cleanup failed:", e)); + RNBlobUtil.fs + .unlink(tempPath) + .catch((e: unknown) => console.info("Temp file cleanup failed:", e)); reject(error); } ); diff --git a/packages/jsActions/nanoflow-actions-native/typings/Geolocation.d.ts b/packages/jsActions/nanoflow-actions-native/typings/Geolocation.d.ts deleted file mode 100644 index c92f243d4..000000000 --- a/packages/jsActions/nanoflow-actions-native/typings/Geolocation.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { - AuthorizationLevel, - AuthorizationResult, - GeoError, - GeoPosition, - GeoOptions, - getCurrentPosition, - requestAuthorization, - watchPosition, - clearWatch, - stopObserving -} from "@react-native-community/geolocation"; - -type GeolocationServiceStatic = { - getCurrentPosition: typeof getCurrentPosition; - requestAuthorization: typeof requestAuthorization; - watchPosition: typeof watchPosition; - clearWatch: typeof clearWatch; - stopObserving: typeof stopObserving; -}; - -export type { GeolocationServiceStatic, AuthorizationLevel, AuthorizationResult, GeoError, GeoPosition, GeoOptions }; diff --git a/packages/pluggableWidgets/accordion-native/CHANGELOG.md b/packages/pluggableWidgets/accordion-native/CHANGELOG.md index c9f3d6395..1e3f0d769 100644 --- a/packages/pluggableWidgets/accordion-native/CHANGELOG.md +++ b/packages/pluggableWidgets/accordion-native/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +- testing entry + ## [2.3.0] - 2024-12-3 ### Changed diff --git a/packages/pluggableWidgets/accordion-native/package.json b/packages/pluggableWidgets/accordion-native/package.json index a3ed76774..d89485e63 100644 --- a/packages/pluggableWidgets/accordion-native/package.json +++ b/packages/pluggableWidgets/accordion-native/package.json @@ -14,7 +14,7 @@ "build": "pluggable-widgets-tools build:native", "format": "pluggable-widgets-tools format", "release": "pluggable-widgets-tools release:native", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "test": "pluggable-widgets-tools test:unit:native", "version": "pnpm release" }, diff --git a/packages/pluggableWidgets/accordion-native/src/__tests__/__snapshots__/Accordion.spec.tsx.snap b/packages/pluggableWidgets/accordion-native/src/__tests__/__snapshots__/Accordion.spec.tsx.snap index 205ba4caa..8b57bcbaa 100644 --- a/packages/pluggableWidgets/accordion-native/src/__tests__/__snapshots__/Accordion.spec.tsx.snap +++ b/packages/pluggableWidgets/accordion-native/src/__tests__/__snapshots__/Accordion.spec.tsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Accordion in collapsible & single expanded group mode renders correctly 1`] = ` new Animated.Value(0)); + + const animatedRotation = useMemo( + () => + animatedValue.interpolate({ + inputRange: [0, 1], + outputRange: ["0deg", "180deg"] + }), + [animatedValue] + ); useEffect(() => { Animated.timing(animatedValue, { diff --git a/packages/pluggableWidgets/accordion-native/typings/AccordionProps.d.ts b/packages/pluggableWidgets/accordion-native/typings/AccordionProps.d.ts index 22c1e10c0..061ce5e12 100644 --- a/packages/pluggableWidgets/accordion-native/typings/AccordionProps.d.ts +++ b/packages/pluggableWidgets/accordion-native/typings/AccordionProps.d.ts @@ -3,8 +3,8 @@ * WARNING: All changes made to this file will be overwritten * @author Mendix Widgets Framework Team */ -import { ComponentType, CSSProperties, ReactNode } from "react"; import { ActionValue, DynamicValue, EditableValue, NativeIcon } from "mendix"; +import { ComponentType, CSSProperties, ReactNode } from "react"; export type HeaderRenderModeEnum = "text" | "custom"; diff --git a/packages/pluggableWidgets/activity-indicator-native/package.json b/packages/pluggableWidgets/activity-indicator-native/package.json index ad15afba4..87acc6f5e 100644 --- a/packages/pluggableWidgets/activity-indicator-native/package.json +++ b/packages/pluggableWidgets/activity-indicator-native/package.json @@ -14,7 +14,7 @@ "build": "pluggable-widgets-tools build:native", "format": "pluggable-widgets-tools format", "release": "pluggable-widgets-tools release:native", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "test": "pluggable-widgets-tools test:unit:native", "version": "pnpm release" }, diff --git a/packages/pluggableWidgets/activity-indicator-native/src/__tests__/__snapshots__/ActivityIndicator.spec.tsx.snap b/packages/pluggableWidgets/activity-indicator-native/src/__tests__/__snapshots__/ActivityIndicator.spec.tsx.snap index 94b2d4f00..bb5748620 100644 --- a/packages/pluggableWidgets/activity-indicator-native/src/__tests__/__snapshots__/ActivityIndicator.spec.tsx.snap +++ b/packages/pluggableWidgets/activity-indicator-native/src/__tests__/__snapshots__/ActivityIndicator.spec.tsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`ActivityIndicator renders with custom styles 1`] = ` { } private log(message: string): void { - // eslint-disable-next-line no-console console.warn(message); } diff --git a/packages/pluggableWidgets/animation-native/src/__tests__/__snapshots__/Animation.spec.tsx.snap b/packages/pluggableWidgets/animation-native/src/__tests__/__snapshots__/Animation.spec.tsx.snap index b302ad5e9..1450a9d95 100644 --- a/packages/pluggableWidgets/animation-native/src/__tests__/__snapshots__/Animation.spec.tsx.snap +++ b/packages/pluggableWidgets/animation-native/src/__tests__/__snapshots__/Animation.spec.tsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Animation renders 1`] = ` - + diff --git a/packages/pluggableWidgets/animation-native/typings/AnimationProps.d.ts b/packages/pluggableWidgets/animation-native/typings/AnimationProps.d.ts index d7bf7a6e9..709d9c926 100644 --- a/packages/pluggableWidgets/animation-native/typings/AnimationProps.d.ts +++ b/packages/pluggableWidgets/animation-native/typings/AnimationProps.d.ts @@ -3,8 +3,8 @@ * WARNING: All changes made to this file will be overwritten * @author Mendix Widgets Framework Team */ -import { ComponentType, CSSProperties, ReactNode } from "react"; import { ActionValue, DynamicValue } from "mendix"; +import { ComponentType, CSSProperties, ReactNode } from "react"; export type AnimationTypeEnum = "in" | "attention" | "out"; diff --git a/packages/pluggableWidgets/app-events-native/package.json b/packages/pluggableWidgets/app-events-native/package.json index 1532911cd..0dd3bcba4 100644 --- a/packages/pluggableWidgets/app-events-native/package.json +++ b/packages/pluggableWidgets/app-events-native/package.json @@ -14,7 +14,7 @@ "build": "pluggable-widgets-tools build:native", "format": "pluggable-widgets-tools format", "release": "pluggable-widgets-tools release:native", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "test": "pluggable-widgets-tools test:unit:native", "version": "pnpm release" }, diff --git a/packages/pluggableWidgets/app-events-native/typings/AppEventsProps.d.ts b/packages/pluggableWidgets/app-events-native/typings/AppEventsProps.d.ts index a78033807..16c9662f2 100644 --- a/packages/pluggableWidgets/app-events-native/typings/AppEventsProps.d.ts +++ b/packages/pluggableWidgets/app-events-native/typings/AppEventsProps.d.ts @@ -3,8 +3,8 @@ * WARNING: All changes made to this file will be overwritten * @author Mendix Widgets Framework Team */ -import { CSSProperties } from "react"; import { ActionValue } from "mendix"; +import { CSSProperties } from "react"; export type TimerTypeEnum = "once" | "interval"; diff --git a/packages/pluggableWidgets/background-gradient-native/CHANGELOG.md b/packages/pluggableWidgets/background-gradient-native/CHANGELOG.md index 125ead78b..21e5ceb64 100644 --- a/packages/pluggableWidgets/background-gradient-native/CHANGELOG.md +++ b/packages/pluggableWidgets/background-gradient-native/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [2.3.1] - 2026-9-24 + +### Changed + +- We removed the library of `react-native-linear-gradient` in favor of a react-native View with linear-gradient type background. + ## [2.2.1] - 2026-1-19 - We fixed an issue where the `background-gradient-native` widget would not render correctly with the new RN architecture upgrade. diff --git a/packages/pluggableWidgets/background-gradient-native/e2e/specs/maestro/BackgroundGradient.yaml b/packages/pluggableWidgets/background-gradient-native/e2e/specs/maestro/BackgroundGradient.yaml index a731fdba2..2051db02e 100644 --- a/packages/pluggableWidgets/background-gradient-native/e2e/specs/maestro/BackgroundGradient.yaml +++ b/packages/pluggableWidgets/background-gradient-native/e2e/specs/maestro/BackgroundGradient.yaml @@ -3,8 +3,14 @@ appId: "${APP_ID}" # Flow for background gradient - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background gradient" + timeout: 10000 - tapOn: text: "Background gradient" - extendedWaitUntil: diff --git a/packages/pluggableWidgets/background-gradient-native/package.json b/packages/pluggableWidgets/background-gradient-native/package.json index f7e8369dc..709b18b12 100644 --- a/packages/pluggableWidgets/background-gradient-native/package.json +++ b/packages/pluggableWidgets/background-gradient-native/package.json @@ -1,7 +1,7 @@ { "name": "background-gradient-native", "widgetName": "BackgroundGradient", - "version": "2.3.0", + "version": "2.3.1", "repository": { "type": "git", "url": "https://github.com/mendix/native-widgets.git" @@ -12,7 +12,7 @@ "scripts": { "start": "pluggable-widgets-tools start:native", "build": "pluggable-widgets-tools build:native", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "lint:fix": "pluggable-widgets-tools lint:fix", "prerelease": "pnpm lint", "release": "pluggable-widgets-tools release:native", @@ -22,7 +22,6 @@ "@mendix/pluggable-widgets-tools": "*" }, "dependencies": { - "@mendix/piw-utils-internal": "*", - "react-native-linear-gradient": "2.8.3" + "@mendix/piw-utils-internal": "*" } } diff --git a/packages/pluggableWidgets/background-gradient-native/src/BackgroundGradient.tsx b/packages/pluggableWidgets/background-gradient-native/src/BackgroundGradient.tsx index 1dee57607..1aa86366f 100644 --- a/packages/pluggableWidgets/background-gradient-native/src/BackgroundGradient.tsx +++ b/packages/pluggableWidgets/background-gradient-native/src/BackgroundGradient.tsx @@ -1,6 +1,5 @@ import { ReactElement } from "react"; -import { Pressable } from "react-native"; -import LinearGradient from "react-native-linear-gradient"; +import { Pressable, View } from "react-native"; import { all } from "deepmerge"; import { executeAction } from "@mendix/piw-utils-internal"; import defaultStyle, { CustomStyle } from "./ui/Styles"; @@ -40,7 +39,9 @@ export function BackgroundGradient({ name, colorList, content, onClick, style }: const angle = angleValidation(styles.angle); const opacity = opacityValidation(styles.opacity); - let sortedColorList = (styles.colorList && colorList.length === 0 ? styles.colorList : colorList).sort( + // Extracted before deepmerge to avoid corrupting Big instances in colorList offsets + const styleColorList = style.flatMap(s => s.colorList ?? []); + let sortedColorList = (styleColorList.length > 0 && colorList.length === 0 ? styleColorList : colorList).sort( (a, b) => Number(a.offset) - Number(b.offset) ); @@ -67,9 +68,25 @@ export function BackgroundGradient({ name, colorList, content, onClick, style }: opacity: onClick?.canExecute && pressed ? opacity * 0.3 : opacity })} > - + ({ + color, + positions: [`${offsets[index] * 100}%`] + })) + } + ] + } + ]} + > {content} - + ); } diff --git a/packages/pluggableWidgets/background-gradient-native/src/__tests__/__snapshots__/backgroundGradient.spec.tsx.snap b/packages/pluggableWidgets/background-gradient-native/src/__tests__/__snapshots__/backgroundGradient.spec.tsx.snap index 3f6267ef5..aaa4ed357 100644 --- a/packages/pluggableWidgets/background-gradient-native/src/__tests__/__snapshots__/backgroundGradient.spec.tsx.snap +++ b/packages/pluggableWidgets/background-gradient-native/src/__tests__/__snapshots__/backgroundGradient.spec.tsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Background gradient render background gradient with custom style 1`] = ` - + "experimental_backgroundImage": [ + { + "colorStops": [ + { + "color": "#fff", + "positions": [ + "0%", + ], + }, + { + "color": "#000", + "positions": [ + "100%", + ], + }, + ], + "direction": "0deg", + "type": "linear-gradient", + }, + ], + }, + ] + } + > Test @@ -138,57 +115,34 @@ exports[`Background gradient render background gradient with one color 1`] = ` testID="test" > - + "experimental_backgroundImage": [ + { + "colorStops": [ + { + "color": "#fff", + "positions": [ + "0%", + ], + }, + { + "color": "#fff", + "positions": [ + "0%", + ], + }, + ], + "direction": "0deg", + "type": "linear-gradient", + }, + ], + }, + ] + } + > Test @@ -236,57 +190,34 @@ exports[`Background gradient render correctly 1`] = ` testID="test" > - + "experimental_backgroundImage": [ + { + "colorStops": [ + { + "color": "#fff", + "positions": [ + "0%", + ], + }, + { + "color": "#000", + "positions": [ + "100%", + ], + }, + ], + "direction": "0deg", + "type": "linear-gradient", + }, + ], + }, + ] + } + > Test @@ -334,57 +265,34 @@ exports[`Background gradient render with undefined angle 1`] = ` testID="test" > - + "experimental_backgroundImage": [ + { + "colorStops": [ + { + "color": "#fff", + "positions": [ + "0%", + ], + }, + { + "color": "#000", + "positions": [ + "100%", + ], + }, + ], + "direction": "0deg", + "type": "linear-gradient", + }, + ], + }, + ] + } + > Test @@ -432,57 +340,34 @@ exports[`Background gradient render with undefined opacity 1`] = ` testID="test" > - + "experimental_backgroundImage": [ + { + "colorStops": [ + { + "color": "#fff", + "positions": [ + "0%", + ], + }, + { + "color": "#000", + "positions": [ + "100%", + ], + }, + ], + "direction": "0deg", + "type": "linear-gradient", + }, + ], + }, + ] + } + > Test diff --git a/packages/pluggableWidgets/background-gradient-native/src/__tests__/backgroundGradient.spec.tsx b/packages/pluggableWidgets/background-gradient-native/src/__tests__/backgroundGradient.spec.tsx index eef3e4035..7d55e2ac9 100644 --- a/packages/pluggableWidgets/background-gradient-native/src/__tests__/backgroundGradient.spec.tsx +++ b/packages/pluggableWidgets/background-gradient-native/src/__tests__/backgroundGradient.spec.tsx @@ -3,6 +3,7 @@ import { render, fireEvent } from "@testing-library/react-native"; import Big from "big.js"; import { ActionValue } from "mendix"; import { BackgroundGradient, props } from "../BackgroundGradient"; +import defaultStyle from "../ui/Styles"; describe("Background gradient", () => { let defaultProps: props; @@ -90,6 +91,28 @@ describe("Background gradient", () => { const component = render(); expect(component.toJSON()).toMatchSnapshot(); }); + it("correctly parses offsets from custom style colorList", () => { + defaultProps = { + ...defaultProps, + colorList: [], + style: [ + { + angle: 0, + opacity: 100, + container: {}, + colorList: [ + { color: "#ff0000", offset: Big(0) }, + { color: "#00ff00", offset: Big(0.5) }, + { color: "#0000ff", offset: Big(1) } + ] + } + ] + }; + const tree = render().toJSON() as any; + const gradientView = tree.children[0]; + const colorStops = gradientView.props.style[1].experimental_backgroundImage[0].colorStops; + expect(colorStops.map((s: any) => s.positions[0])).toEqual(["0%", "50%", "100%"]); + }); it("render background gradient with one color", () => { defaultProps = { ...defaultProps, @@ -110,4 +133,9 @@ describe("Background gradient", () => { fireEvent.press(pressable); expect(actionExecution).toHaveBeenCalled(); }); + + it("preserves expected style key set", () => { + const keys = Object.keys(defaultStyle).sort(); + expect(keys).toEqual(["angle", "colorList", "container", "opacity"]); + }); }); diff --git a/packages/pluggableWidgets/background-gradient-native/src/package.xml b/packages/pluggableWidgets/background-gradient-native/src/package.xml index 4a47c863d..8303c6d83 100644 --- a/packages/pluggableWidgets/background-gradient-native/src/package.xml +++ b/packages/pluggableWidgets/background-gradient-native/src/package.xml @@ -1,6 +1,6 @@ - + diff --git a/packages/pluggableWidgets/background-gradient-native/typings/BackgroundGradientProps.d.ts b/packages/pluggableWidgets/background-gradient-native/typings/BackgroundGradientProps.d.ts index 1154b0cbd..754078a72 100644 --- a/packages/pluggableWidgets/background-gradient-native/typings/BackgroundGradientProps.d.ts +++ b/packages/pluggableWidgets/background-gradient-native/typings/BackgroundGradientProps.d.ts @@ -4,8 +4,8 @@ * @author Mendix Widgets Framework Team */ import { ComponentType, CSSProperties, ReactNode } from "react"; -import { ActionValue } from "mendix"; import { Big } from "big.js"; +import { ActionValue } from "mendix"; export interface ColorListType { color: string; diff --git a/packages/pluggableWidgets/background-image-native/CHANGELOG.md b/packages/pluggableWidgets/background-image-native/CHANGELOG.md index a059e2ca9..ada292943 100644 --- a/packages/pluggableWidgets/background-image-native/CHANGELOG.md +++ b/packages/pluggableWidgets/background-image-native/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [2.3.1] - 2026-9-24 + +- Fixed background image widget not visible when there is no content inside it. + ## [2.2.0] - 2024-12-3 ### Changed diff --git a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_clickable_container.yaml b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_clickable_container.yaml index a3da372f7..88dd71b23 100644 --- a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_clickable_container.yaml +++ b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_clickable_container.yaml @@ -2,8 +2,14 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background image" + timeout: 10000 - tapOn: text: "Background image" - tapOn: diff --git a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_conditional_visibility.yaml b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_conditional_visibility.yaml index 07787c002..7d94a99e8 100644 --- a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_conditional_visibility.yaml +++ b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_conditional_visibility.yaml @@ -2,8 +2,14 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background image" + timeout: 10000 - tapOn: text: "Background image" - tapOn: diff --git a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_dynamic_image.yaml b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_dynamic_image.yaml index 3d1201d27..8717ac113 100644 --- a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_dynamic_image.yaml +++ b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_dynamic_image.yaml @@ -2,17 +2,23 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background image" + timeout: 10000 - tapOn: text: "Background image" - tapOn: text: "Dynamic image" -# Because the image loading can take some time due to resources on emulator, we need to wait for the image to be visible -- extendedWaitUntil: - visible: randText # Any random text that does not exist in the UI - optional: true # This should be true so that the test won't fail - timeout: 30000 # 15 seconds +# Wait for the screen to stop changing (image decode / sheet animation) +# rather than sleeping a fixed time: this returns as soon as the UI +# settles, and still caps at 30s. +- waitForAnimationToEnd: + timeout: 30000 - takeScreenshot: path: "maestro/images/actual/${PLATFORM}/bg_image_dynamic_image" - assertScreenshot: diff --git a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_dynamic_svg.yaml b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_dynamic_svg.yaml index 270bcd7c4..c0fe76057 100644 --- a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_dynamic_svg.yaml +++ b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_dynamic_svg.yaml @@ -2,17 +2,23 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background image" + timeout: 10000 - tapOn: text: "Background image" - tapOn: text: "Dynamic SVG image" -# Because the image loading can take some time due to resources on emulator, we need to wait for the image to be visible -- extendedWaitUntil: - visible: randText # Any random text that does not exist in the UI - optional: true # This should be true so that the test won't fail - timeout: 15000 # 15 seconds +# Wait for the screen to stop changing (image decode / sheet animation) +# rather than sleeping a fixed time: this returns as soon as the UI +# settles, and still caps at 15s. +- waitForAnimationToEnd: + timeout: 15000 - takeScreenshot: path: "maestro/images/actual/${PLATFORM}/bg_image_dynamic_svg" - assertScreenshot: diff --git a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_layout_grid.yaml b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_layout_grid.yaml index 2edf99791..8dcca4bbf 100644 --- a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_layout_grid.yaml +++ b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_layout_grid.yaml @@ -2,18 +2,24 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background image" + timeout: 10000 - tapOn: text: "Background image" - tapOn: text: "Layout grid" - assertVisible: "Layout grid" -# Because the image loading can take some time due to resources on emulator, we need to wait for the image to be visible -- extendedWaitUntil: - visible: randText # Any random text that does not exist in the UI - optional: true # This should be true so that the test won't fail - timeout: 15000 # 15 seconds +# Wait for the screen to stop changing (image decode / sheet animation) +# rather than sleeping a fixed time: this returns as soon as the UI +# settles, and still caps at 15s. +- waitForAnimationToEnd: + timeout: 15000 - takeScreenshot: path: "maestro/images/actual/${PLATFORM}/bg_image_layout_grid" - assertScreenshot: diff --git a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_nested.yaml b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_nested.yaml index 2939a3cbd..e0f627951 100644 --- a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_nested.yaml +++ b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_nested.yaml @@ -2,18 +2,24 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background image" + timeout: 10000 - tapOn: text: "Background image" - tapOn: text: "Nested" - assertVisible: "Nested" -# Because the image loading can take some time due to resources on emulator, we need to wait for the image to be visible -- extendedWaitUntil: - visible: randText # Any random text that does not exist in the UI - optional: true # This should be true so that the test won't fail - timeout: 15000 # 15 seconds +# Wait for the screen to stop changing (image decode / sheet animation) +# rather than sleeping a fixed time: this returns as soon as the UI +# settles, and still caps at 15s. +- waitForAnimationToEnd: + timeout: 15000 - takeScreenshot: path: "maestro/images/actual/${PLATFORM}/bg_image_nested" - assertScreenshot: diff --git a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_static_images.yaml b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_static_images.yaml index ead2fafdb..df819d961 100644 --- a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_static_images.yaml +++ b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_static_images.yaml @@ -2,19 +2,25 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background image" + timeout: 10000 - tapOn: text: "Background image" - tapOn: text: "Static images" - assertVisible: text: "Static images" -# Because the image loading can take some time due to resources on emulator, we need to wait for the image to be visible -- extendedWaitUntil: - visible: randText # Any random text that does not exist in the UI - optional: true # This should be true so that the test won't fail - timeout: 10000 # 10 seconds +# Wait for the screen to stop changing (image decode / sheet animation) +# rather than sleeping a fixed time: this returns as soon as the UI +# settles, and still caps at 10s. +- waitForAnimationToEnd: + timeout: 10000 - takeScreenshot: path: "maestro/images/actual/${PLATFORM}/bg_image_static_images" - assertScreenshot: diff --git a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_static_svg.yaml b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_static_svg.yaml index d87fd0cb2..a41a7945a 100644 --- a/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_static_svg.yaml +++ b/packages/pluggableWidgets/background-image-native/e2e/specs/maestro/BgImage_static_svg.yaml @@ -2,8 +2,14 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Background image" + timeout: 10000 - tapOn: text: "Background image" - tapOn: diff --git a/packages/pluggableWidgets/background-image-native/package.json b/packages/pluggableWidgets/background-image-native/package.json index 35cd3b7a1..1ba872cf9 100644 --- a/packages/pluggableWidgets/background-image-native/package.json +++ b/packages/pluggableWidgets/background-image-native/package.json @@ -1,7 +1,7 @@ { "name": "background-image-native", "widgetName": "BackgroundImage", - "version": "2.3.0", + "version": "2.3.1", "license": "Apache-2.0", "repository": { "type": "git", @@ -14,7 +14,7 @@ "build": "pluggable-widgets-tools build:native", "format": "pluggable-widgets-tools format", "release": "pluggable-widgets-tools release:native", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "test": "pluggable-widgets-tools test:unit:native", "version": "pnpm release" }, diff --git a/packages/pluggableWidgets/background-image-native/src/BackgroundImage.tsx b/packages/pluggableWidgets/background-image-native/src/BackgroundImage.tsx index 29056c279..99774514f 100644 --- a/packages/pluggableWidgets/background-image-native/src/BackgroundImage.tsx +++ b/packages/pluggableWidgets/background-image-native/src/BackgroundImage.tsx @@ -4,7 +4,7 @@ import { ValueStatus } from "mendix"; import { Image, SvgImageStyle } from "mendix/components/native/Image"; import { flattenStyles } from "@mendix/piw-native-utils-internal"; -import { BackgroundImageStyle, defaultBackgroundImageStyle } from "./ui/Styles"; +import { BackgroundImageStyle, defaultBackgroundImageStyle, NO_CONTENT_CONTAINER_STYLE } from "./ui/Styles"; import { BackgroundImageProps } from "../typings/BackgroundImageProps"; export function BackgroundImage(props: BackgroundImageProps): JSX.Element | null { @@ -33,8 +33,12 @@ export function BackgroundImage(props: BackgroundImageProps; + // When there's no content, allow container to grow to fill available space + // When there's content, size container to content + const containerStyle = props.content ? styles.container : [NO_CONTENT_CONTAINER_STYLE, styles.container]; + return ( - + {props.content} diff --git a/packages/pluggableWidgets/background-image-native/src/__tests__/__snapshots__/BackgroundImage.spec.tsx.snap b/packages/pluggableWidgets/background-image-native/src/__tests__/__snapshots__/BackgroundImage.spec.tsx.snap index e6703e7f2..09a569af3 100644 --- a/packages/pluggableWidgets/background-image-native/src/__tests__/__snapshots__/BackgroundImage.spec.tsx.snap +++ b/packages/pluggableWidgets/background-image-native/src/__tests__/__snapshots__/BackgroundImage.spec.tsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`BackgroundImage renders content only when image is unavailable 1`] = ` - + diff --git a/packages/pluggableWidgets/background-image-native/src/ui/Styles.ts b/packages/pluggableWidgets/background-image-native/src/ui/Styles.ts index 1df8e0744..988002cf3 100644 --- a/packages/pluggableWidgets/background-image-native/src/ui/Styles.ts +++ b/packages/pluggableWidgets/background-image-native/src/ui/Styles.ts @@ -14,3 +14,5 @@ export const defaultBackgroundImageStyle: BackgroundImageStyle = { container: {}, image: {} }; + +export const NO_CONTENT_CONTAINER_STYLE = { flexGrow: 1, flexShrink: 1, flexBasis: "auto" as const }; diff --git a/packages/pluggableWidgets/background-image-native/typings/BackgroundImageProps.d.ts b/packages/pluggableWidgets/background-image-native/typings/BackgroundImageProps.d.ts index a27ba5946..9b48427fd 100644 --- a/packages/pluggableWidgets/background-image-native/typings/BackgroundImageProps.d.ts +++ b/packages/pluggableWidgets/background-image-native/typings/BackgroundImageProps.d.ts @@ -3,8 +3,8 @@ * WARNING: All changes made to this file will be overwritten * @author Mendix Widgets Framework Team */ -import { ComponentType, CSSProperties, ReactNode } from "react"; import { DynamicValue, NativeImage } from "mendix"; +import { ComponentType, CSSProperties, ReactNode } from "react"; import { Big } from "big.js"; export type ResizeModeEnum = "cover" | "contain" | "stretch" | "center"; diff --git a/packages/pluggableWidgets/badge-native/e2e/specs/maestro/Badge_android.yaml b/packages/pluggableWidgets/badge-native/e2e/specs/maestro/Badge_android.yaml index 9593da840..3eaf5df34 100644 --- a/packages/pluggableWidgets/badge-native/e2e/specs/maestro/Badge_android.yaml +++ b/packages/pluggableWidgets/badge-native/e2e/specs/maestro/Badge_android.yaml @@ -2,8 +2,14 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Badge" + timeout: 10000 - tapOn: text: "Badge" - tapOn: diff --git a/packages/pluggableWidgets/badge-native/e2e/specs/maestro/Badge_ios.yaml b/packages/pluggableWidgets/badge-native/e2e/specs/maestro/Badge_ios.yaml index 395c52e37..639f2af86 100644 --- a/packages/pluggableWidgets/badge-native/e2e/specs/maestro/Badge_ios.yaml +++ b/packages/pluggableWidgets/badge-native/e2e/specs/maestro/Badge_ios.yaml @@ -2,8 +2,16 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +# Tapping the alphabet index re-renders the widget list; wait for the entry before tapping it, +# otherwise the tap races that render. +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Badge" + timeout: 10000 - tapOn: text: "Badge" - inputText: diff --git a/packages/pluggableWidgets/badge-native/package.json b/packages/pluggableWidgets/badge-native/package.json index 2914c258c..a57fe6c24 100644 --- a/packages/pluggableWidgets/badge-native/package.json +++ b/packages/pluggableWidgets/badge-native/package.json @@ -14,7 +14,7 @@ "build": "pluggable-widgets-tools build:native", "format": "pluggable-widgets-tools format", "release": "pluggable-widgets-tools release:native", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "test": "pluggable-widgets-tools test:unit:native", "version": "pnpm release" }, diff --git a/packages/pluggableWidgets/badge-native/src/__tests__/__snapshots__/Badge.spec.tsx.snap b/packages/pluggableWidgets/badge-native/src/__tests__/__snapshots__/Badge.spec.tsx.snap index 315cade86..1fe32d37a 100644 --- a/packages/pluggableWidgets/badge-native/src/__tests__/__snapshots__/Badge.spec.tsx.snap +++ b/packages/pluggableWidgets/badge-native/src/__tests__/__snapshots__/Badge.spec.tsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[` 1`] = ` { name: string; diff --git a/packages/pluggableWidgets/bar-chart-native/CHANGELOG.md b/packages/pluggableWidgets/bar-chart-native/CHANGELOG.md index 299c09786..5cd2a247c 100644 --- a/packages/pluggableWidgets/bar-chart-native/CHANGELOG.md +++ b/packages/pluggableWidgets/bar-chart-native/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [3.3.0] - 2026-9-2 + +### Changed + +- We updated victory-native to 36.9.2. + ## [3.2.1] - 2026-6-10 ### Fixed diff --git a/packages/pluggableWidgets/bar-chart-native/e2e/specs/maestro/Bar_Chart.yaml b/packages/pluggableWidgets/bar-chart-native/e2e/specs/maestro/Bar_Chart.yaml index 3648a1efa..0bafcc3ff 100644 --- a/packages/pluggableWidgets/bar-chart-native/e2e/specs/maestro/Bar_Chart.yaml +++ b/packages/pluggableWidgets/bar-chart-native/e2e/specs/maestro/Bar_Chart.yaml @@ -2,19 +2,25 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Bar chart" + timeout: 10000 - tapOn: text: "Bar chart" - assertVisible: text: "Bar chart" - assertVisible: id: "container1" -# Because the image loading can take some time due to resources on emulator, we need to wait for the image to be visible -- extendedWaitUntil: - visible: randText # Any random text that does not exist in the UI - optional: true # This should be true so that the test won't fail - timeout: 15000 # 15 seconds +# Wait for the screen to stop changing (image decode / sheet animation) +# rather than sleeping a fixed time: this returns as soon as the UI +# settles, and still caps at 15s. +- waitForAnimationToEnd: + timeout: 15000 - takeScreenshot: path: "maestro/images/actual/${PLATFORM}/bar_chart" - assertScreenshot: diff --git a/packages/pluggableWidgets/bar-chart-native/package.json b/packages/pluggableWidgets/bar-chart-native/package.json index 77e9a4005..7c9897378 100644 --- a/packages/pluggableWidgets/bar-chart-native/package.json +++ b/packages/pluggableWidgets/bar-chart-native/package.json @@ -1,7 +1,7 @@ { "name": "bar-chart-native", "widgetName": "BarChart", - "version": "3.2.1", + "version": "3.3.0", "license": "Apache-2.0", "copyright": "© Mendix Technology BV 2022. All rights reserved.", "repository": { @@ -15,13 +15,13 @@ "build": "pluggable-widgets-tools build:native", "format": "pluggable-widgets-tools format", "release": "pluggable-widgets-tools release:native", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "test": "pluggable-widgets-tools test:unit:native", "version": "pnpm release" }, "dependencies": { "@mendix/piw-utils-internal": "*", - "victory-native": "^36.6.8" + "victory-native": "36.9.2" }, "devDependencies": { "@mendix/pluggable-widgets-tools": "*" diff --git a/packages/pluggableWidgets/bar-chart-native/src/components/BarChart.tsx b/packages/pluggableWidgets/bar-chart-native/src/components/BarChart.tsx index 7fa8bb561..8b0860dfc 100644 --- a/packages/pluggableWidgets/bar-chart-native/src/components/BarChart.tsx +++ b/packages/pluggableWidgets/bar-chart-native/src/components/BarChart.tsx @@ -68,25 +68,34 @@ export function BarChart({ // fallback to a colour from the palette. const normalizedBarColors: string[] = useMemo(() => { const barColorPalette = style.bars?.barColorPalette?.split(";"); - let index = 0; - return series.map(_series => { - const configuredStyle = !_series.customBarStyle - ? null - : style.bars?.customBarStyles?.[_series.customBarStyle]?.bar?.barColor; - - if (typeof configuredStyle !== "string") { - const barColor = barColorPalette?.[index] || "black"; - - if (barColorPalette) { - index = index + 1 === barColorPalette.length ? 0 : index + 1; + const result = series.reduce<{ colors: string[]; paletteIndex: number }>( + (acc, _series) => { + const configuredStyle = !_series.customBarStyle + ? null + : style.bars?.customBarStyles?.[_series.customBarStyle]?.bar?.barColor; + + if (typeof configuredStyle !== "string") { + const barColor = barColorPalette?.[acc.paletteIndex] || "black"; + const nextIndex = barColorPalette + ? (acc.paletteIndex + 1) % barColorPalette.length + : acc.paletteIndex; + + return { + colors: [...acc.colors, barColor], + paletteIndex: nextIndex + }; } - return barColor; - } + return { + colors: [...acc.colors, configuredStyle], + paletteIndex: acc.paletteIndex + }; + }, + { colors: [], paletteIndex: 0 } + ); - return configuredStyle; - }); + return result.colors; }, [series, style]); const sortProps = useMemo(() => ({ sortOrder, sortKey: "x" }), [sortOrder]); diff --git a/packages/pluggableWidgets/bar-chart-native/src/components/__tests__/__snapshots__/Legend.spec.tsx.snap b/packages/pluggableWidgets/bar-chart-native/src/components/__tests__/__snapshots__/Legend.spec.tsx.snap index be9f62d37..5bec0aae5 100644 --- a/packages/pluggableWidgets/bar-chart-native/src/components/__tests__/__snapshots__/Legend.spec.tsx.snap +++ b/packages/pluggableWidgets/bar-chart-native/src/components/__tests__/__snapshots__/Legend.spec.tsx.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Legend doesn't render series when there is no series name 1`] = ` - + diff --git a/packages/pluggableWidgets/bar-chart-native/src/ui/Styles.ts b/packages/pluggableWidgets/bar-chart-native/src/ui/Styles.ts index 80c3c0f04..56826bbaf 100644 --- a/packages/pluggableWidgets/bar-chart-native/src/ui/Styles.ts +++ b/packages/pluggableWidgets/bar-chart-native/src/ui/Styles.ts @@ -93,6 +93,9 @@ export const defaultBarChartStyle: BarChartStyle = { alignSelf: "center" } }, + yAxis: {}, + domain: {}, + bars: {}, legend: { container: { flexDirection: "row", diff --git a/packages/pluggableWidgets/bar-chart-native/src/utils/SeriesLoader.ts b/packages/pluggableWidgets/bar-chart-native/src/utils/SeriesLoader.ts index 428cca133..b64a19dd3 100644 --- a/packages/pluggableWidgets/bar-chart-native/src/utils/SeriesLoader.ts +++ b/packages/pluggableWidgets/bar-chart-native/src/utils/SeriesLoader.ts @@ -1,4 +1,4 @@ -import { useEffect, useState } from "react"; +import { useMemo } from "react"; import { ensure } from "@mendix/pluggable-widgets-tools"; import { Big } from "big.js"; import { ObjectItem } from "mendix"; @@ -22,9 +22,7 @@ interface DataPointsExtraction { // todo: test this hook. // todo: make types generic as different chart will *hopefully* use this hook export function useSeries(series: BarSeriesType[]): BarChartSeries[] | null { - const [chartSeries, setChartSeries] = useState(null); - - useEffect(() => { + const chartSeries = useMemo(() => { const loadedSeries: BarChartSeries[] = []; for (const element of series) { @@ -32,8 +30,7 @@ export function useSeries(series: BarSeriesType[]): BarChartSeries[] | null { const result = loadStaticSeries(element); if (!result) { - setChartSeries(null); - return; + return null; } loadedSeries.push(result); @@ -41,15 +38,14 @@ export function useSeries(series: BarSeriesType[]): BarChartSeries[] | null { const result = loadDynamicSeries(element); if (!result) { - setChartSeries(null); - return; + return null; } loadedSeries.push(...result); } } - setChartSeries(loadedSeries); + return loadedSeries; }, [series]); return chartSeries; diff --git a/packages/pluggableWidgets/bar-chart-native/src/utils/__tests__/StyleUtils.spec.ts b/packages/pluggableWidgets/bar-chart-native/src/utils/__tests__/StyleUtils.spec.ts index 53fbaa648..1c63c65c9 100644 --- a/packages/pluggableWidgets/bar-chart-native/src/utils/__tests__/StyleUtils.spec.ts +++ b/packages/pluggableWidgets/bar-chart-native/src/utils/__tests__/StyleUtils.spec.ts @@ -1,5 +1,5 @@ import { aggregateGridPadding, mapToAxisStyle, mapToGridStyle, mapToBarStyles } from "../StyleUtils"; -import { BarChartAxisStyle, BarChartGridStyle, BarChartStyle } from "../../ui/Styles"; +import { BarChartAxisStyle, BarChartGridStyle, BarChartStyle, defaultBarChartStyle } from "../../ui/Styles"; describe("StyleMappers", () => { describe("mapToGridStyle", () => { @@ -210,3 +210,20 @@ describe("aggregateGridPadding", () => { expect(aggregateGridPadding(undefined)).toBeUndefined(); }); }); + +describe("Style schema guardrail", () => { + it("preserves expected style key set", () => { + const keys = Object.keys(defaultBarChartStyle).sort(); + expect(keys).toEqual([ + "bars", + "chart", + "container", + "domain", + "errorMessage", + "grid", + "legend", + "xAxis", + "yAxis" + ]); + }); +}); diff --git a/packages/pluggableWidgets/bar-chart-native/typings/BarChartProps.d.ts b/packages/pluggableWidgets/bar-chart-native/typings/BarChartProps.d.ts index 1edf0dc22..214828f60 100644 --- a/packages/pluggableWidgets/bar-chart-native/typings/BarChartProps.d.ts +++ b/packages/pluggableWidgets/bar-chart-native/typings/BarChartProps.d.ts @@ -3,9 +3,9 @@ * WARNING: All changes made to this file will be overwritten * @author Mendix Widgets Framework Team */ -import { CSSProperties } from "react"; -import { DynamicValue, ListValue, ListAttributeValue, ListExpressionValue } from "mendix"; +import { DynamicValue, ListAttributeValue, ListExpressionValue, ListValue } from "mendix"; import { Big } from "big.js"; +import { CSSProperties } from "react"; export type PresentationEnum = "grouped" | "stacked"; diff --git a/packages/pluggableWidgets/barcode-scanner-native/CHANGELOG.md b/packages/pluggableWidgets/barcode-scanner-native/CHANGELOG.md index 43436bf4f..80ec84676 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/CHANGELOG.md +++ b/packages/pluggableWidgets/barcode-scanner-native/CHANGELOG.md @@ -6,6 +6,29 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [4.6.0] - 2026-11-20 + +### BREAKING + +- We updated react-native-vision-camera from v4.7.3 to v5.2.3. On Android, barcodes are now scanned with react-native-vision-camera-barcode-scanner v5.2.3 (Google ML Kit). On iOS, barcodes are still scanned with Apple's built-in scanner, as before. This version requires Make It Native version 11.12.3 or above. Older versions of Make It Native cannot run this version of the widget. +- For Native Template builds, Native Template version 19.1.8 or above is required. + +### Added + +- We added a `scan delay` property that delays scanning by the specified number of seconds, giving the end user time to position the scanner over the code. + +### Fixed + +- We fixed barcodes with patterned backgrounds not being scanned correctly on Android. + +## [4.5.0] - 2026-9-2 + +- We fixed the barcode mask not visible issue and selection logic of QR code. + +## [4.4.0] - 2026-8-4 + +- We added support for QR of available remaining types including pdf417 in barcode scanner functinality. + ## [4.2.2] - 2025-12-23 - We expanded the barcode-scanner configuration in Vision Camera to support all available `CodeType` formats, including QR, Aztec, Data Matrix, PDF-417, EAN, UPC, GS1 DataBar, ITF, and Code barcodes. diff --git a/packages/pluggableWidgets/barcode-scanner-native/e2e/specs/maestro/Barcode_scanner.yaml b/packages/pluggableWidgets/barcode-scanner-native/e2e/specs/maestro/Barcode_scanner.yaml index d210dbc54..19e0b4937 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/e2e/specs/maestro/Barcode_scanner.yaml +++ b/packages/pluggableWidgets/barcode-scanner-native/e2e/specs/maestro/Barcode_scanner.yaml @@ -2,14 +2,27 @@ appId: "${APP_ID}" --- - runFlow: file: "../../../../../../maestro/Precondition.yaml" -- tapOn: - text: "B" +- retry: + maxRetries: 2 + commands: + - tapOn: + text: "B" + - extendedWaitUntil: + visible: "Barcode scanner" + timeout: 10000 - tapOn: text: "Barcode scanner" - assertVisible: id: "text2" # History: - tapOn: text: "Scan" +- extendedWaitUntil: + visible: "Allow" + timeout: 10000 + optional: true +- tapOn: + text: "Allow" + optional: true - extendedWaitUntil: visible: text: "Scan" diff --git a/packages/pluggableWidgets/barcode-scanner-native/package.json b/packages/pluggableWidgets/barcode-scanner-native/package.json index f88bd09b0..f8c252327 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/package.json +++ b/packages/pluggableWidgets/barcode-scanner-native/package.json @@ -1,7 +1,7 @@ { "name": "barcode-scanner-native", "widgetName": "BarcodeScanner", - "version": "4.3.0", + "version": "4.6.0", "license": "Apache-2.0", "repository": { "type": "git", @@ -14,15 +14,18 @@ "build": "pluggable-widgets-tools build:native", "format": "pluggable-widgets-tools format", "release": "pluggable-widgets-tools release:native", - "lint": "eslint --config ../../../.eslintrc.js --ext .jsx,.js,.ts,.tsx src/", + "lint": "eslint --ext .jsx,.js,.ts,.tsx src/", "test": "pluggable-widgets-tools test:unit:native", "version": "pnpm release" }, "dependencies": { "@mendix/piw-native-utils-internal": "*", "@mendix/piw-utils-internal": "*", - "react-native-barcode-mask": "^1.2.4", - "react-native-vision-camera": "4.7.3" + "react-native-svg": "15.15.4", + "react-native-vision-camera": "5.2.3", + "react-native-vision-camera-barcode-scanner": "5.2.3", + "react-native-nitro-modules": "0.37.0", + "react-native-nitro-image": "0.15.2" }, "devDependencies": { "@mendix/pluggable-widgets-tools": "*" diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/BarcodeScanner.tsx b/packages/pluggableWidgets/barcode-scanner-native/src/BarcodeScanner.tsx index 0a80a26b0..a83424eb3 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/src/BarcodeScanner.tsx +++ b/packages/pluggableWidgets/barcode-scanner-native/src/BarcodeScanner.tsx @@ -1,9 +1,11 @@ import { flattenStyles } from "@mendix/piw-native-utils-internal"; import { ValueStatus } from "mendix"; -import { ReactElement, useCallback, useMemo, useRef } from "react"; -import { View } from "react-native"; -import { Camera, useCodeScanner, Code, useCameraDevice } from "react-native-vision-camera"; -import BarcodeMask from "react-native-barcode-mask"; +import { ReactElement, useCallback, useMemo, useRef, useState, useEffect } from "react"; +import { View, LayoutChangeEvent, Platform } from "react-native"; +import { Camera, useCameraDevice, useCameraPermission, type CameraRef } from "react-native-vision-camera"; +import BarcodeMask from "./components/BarcodeMask"; +import { DetectedCode, Size, UseScannerOutput } from "./scanners/types"; +import { useIosScannerOutput } from "./scanners/useIosScannerOutput"; import { BarcodeScannerProps } from "../typings/BarcodeScannerProps"; import { BarcodeScannerStyle, defaultBarcodeScannerStyle } from "./ui/styles"; @@ -11,79 +13,306 @@ import { executeAction } from "@mendix/piw-utils-internal"; export type Props = BarcodeScannerProps; +// ML Kit on Android can misread 1D barcodes (e.g. Code 39) on busy backgrounds for a single frame, +// so a value is only accepted after it is detected on this many consecutive reads. +const REQUIRED_CONSECUTIVE_READS_ANDROID = 3; +const SCAN_LOCK_DURATION_MS = 2000; + +// iOS uses Apple's scanner from vision-camera core, Android uses Google ML Kit. The Android scanner package isn't +// linked on iOS and fails when loaded, so it is only required on Android. Keep this require directly behind the +// Platform.OS check: the widget build replaces Platform.OS per platform and drops the require from the iOS bundle. +const useScannerOutput: UseScannerOutput = + Platform.OS === "android" + ? require("./scanners/useAndroidScannerOutput").useAndroidScannerOutput + : useIosScannerOutput; + +type CodePositionInfo = { + isWithinMask: boolean; + distanceToMaskCenterSquared: number; + overlapArea: number; + overlapPercentage: number; +}; + +type OverlapInfo = { + overlapArea: number; + overlapPercentage: number; +}; + +type CandidateCode = { + code: DetectedCode; + isWithinMask: boolean; + distanceToMaskCenterSquared: number; + overlapArea: number; + overlapPercentage: number; +}; + +/** + * Calculates the overlap between a barcode and the mask region. + * Returns both the absolute overlap area and the percentage of the barcode that overlaps with the mask. + */ +function calculateOverlap( + codeX: number, + codeY: number, + codeWidth: number, + codeHeight: number, + maskX: number, + maskY: number, + maskWidth: number, + maskHeight: number +): OverlapInfo { + const overlapLeft = Math.max(codeX, maskX); + const overlapTop = Math.max(codeY, maskY); + const overlapRight = Math.min(codeX + codeWidth, maskX + maskWidth); + const overlapBottom = Math.min(codeY + codeHeight, maskY + maskHeight); + + const overlapWidth = Math.max(0, overlapRight - overlapLeft); + const overlapHeight = Math.max(0, overlapBottom - overlapTop); + + const overlapArea = overlapWidth * overlapHeight; + const barcodeArea = codeWidth * codeHeight; + const overlapPercentage = barcodeArea > 0 ? overlapArea / barcodeArea : 0; + + return { overlapArea, overlapPercentage }; +} + +/** + * Comparator function to select the best barcode when multiple codes are detected. + * Priority: overlap percentage > overlap area > distance to mask center (squared). + */ +function compareCodesByPriority(a: CandidateCode, b: CandidateCode): number { + if (b.overlapPercentage !== a.overlapPercentage) { + return b.overlapPercentage - a.overlapPercentage; + } + + if (b.overlapArea !== a.overlapArea) { + return b.overlapArea - a.overlapArea; + } + + return a.distanceToMaskCenterSquared - b.distanceToMaskCenterSquared; +} + export function BarcodeScanner(props: Props): ReactElement { const device = useCameraDevice("back"); + const [cameraViewDimensions, setCameraViewDimensions] = useState(null); + const cameraRef = useRef(null); + + const { hasPermission, canRequestPermission, requestPermission } = useCameraPermission(); + + // VisionCamera v5 no longer prompts implicitly when the session starts; it throws without permission + useEffect(() => { + if (!hasPermission && canRequestPermission) { + requestPermission(); + } + }, [canRequestPermission, requestPermission]); const styles = useMemo(() => flattenStyles(defaultBarcodeScannerStyle, props.style), [props.style]); // Ref to track the lock state const isLockedRef = useRef(false); + // Timer that releases the lock, kept so it can be cleared when the widget unmounts + const lockTimeoutRef = useRef | null>(null); + + // Time from which detected codes may be accepted, null until the camera is started + const scanStartTimeRef = useRef(null); + + // Last detected value and how many consecutive reads returned it + const lastReadValueRef = useRef(null); + const consecutiveReadsRef = useRef(0); + + // Resets the consecutive read counter (Android only) + const resetConsecutiveReads = useCallback(() => { + lastReadValueRef.current = null; + consecutiveReadsRef.current = 0; + }, []); + + // Starts a new scan: codes are accepted again after the configured scan delay, + // and the consecutive read count starts from zero + const resetScanState = useCallback(() => { + scanStartTimeRef.current = Date.now() + props.scanDelay * 1000; + resetConsecutiveReads(); + }, [props.scanDelay, resetConsecutiveReads]); + + // Clear a pending lock timer when the widget unmounts + useEffect(() => { + return () => { + if (lockTimeoutRef.current) { + clearTimeout(lockTimeoutRef.current); + } + }; + }, []); + + const maskWidth = styles.mask.width || 280; + const maskHeight = styles.mask.height || 260; + + const getCodePositionInfo = useCallback( + (code: DetectedCode): CodePositionInfo => { + if (!props.showMask) { + return { + isWithinMask: true, + distanceToMaskCenterSquared: 0, + overlapArea: Number.MAX_SAFE_INTEGER, + overlapPercentage: 1 + }; + } + + const bounds = cameraViewDimensions ? code.getViewBounds() : undefined; + if (!cameraViewDimensions || !bounds) { + return { + isWithinMask: false, + distanceToMaskCenterSquared: Number.MAX_SAFE_INTEGER, + overlapArea: 0, + overlapPercentage: 0 + }; + } - const onCodeScanned = useCallback( - (codes: Code[]) => { - // Block if still in cooldown - if (isLockedRef.current) { + const { width: viewWidth, height: viewHeight } = cameraViewDimensions; + + // Barcode mask coordinates in view space + const maskX = (viewWidth - maskWidth) / 2; + const maskY = (viewHeight - maskHeight) / 2; + const maskCenterX = maskX + maskWidth / 2; + const maskCenterY = maskY + maskHeight / 2; + + const { x: codeX, y: codeY, width: codeWidth, height: codeHeight } = bounds; + + const codeCenterX = codeX + codeWidth / 2; + const codeCenterY = codeY + codeHeight / 2; + + const distanceToMaskCenterSquared = + Math.pow(codeCenterX - maskCenterX, 2) + Math.pow(codeCenterY - maskCenterY, 2); + + const { overlapArea, overlapPercentage } = calculateOverlap( + codeX, + codeY, + codeWidth, + codeHeight, + maskX, + maskY, + maskWidth, + maskHeight + ); + + const isWithinMask = + codeCenterX >= maskX && + codeCenterX <= maskX + maskWidth && + codeCenterY >= maskY && + codeCenterY <= maskY + maskHeight; + + return { + isWithinMask, + distanceToMaskCenterSquared, + overlapArea, + overlapPercentage + }; + }, + [props.showMask, cameraViewDimensions, maskWidth, maskHeight] + ); + + const onCodesScanned = useCallback( + (codes: DetectedCode[]) => { + // Block if still in cooldown or the previous detection is still being handled + if (isLockedRef.current || props.onDetect?.isExecuting) { return; } - if (props.barcode.status !== ValueStatus.Available || codes.length === 0 || !codes[0].value) { + // Block until the camera is started and the scan delay has passed + if (scanStartTimeRef.current === null || Date.now() < scanStartTimeRef.current) { return; } - const { value } = codes[0]; + if (props.barcode.status !== ValueStatus.Available || codes.length === 0) { + resetConsecutiveReads(); + return; + } + + const candidates = codes + .map(code => ({ + code, + ...getCodePositionInfo(code) + })) + .filter(item => item.isWithinMask); + + if (candidates.length === 0) { + resetConsecutiveReads(); + return; + } + + const value = candidates.sort(compareCodesByPriority)[0].code.value; + + if (!value) { + resetConsecutiveReads(); + return; + } + + // Android only: accept the value after it was read on several consecutive reads, + // a different value restarts the count + if (Platform.OS === "android") { + if (value === lastReadValueRef.current) { + consecutiveReadsRef.current += 1; + } else { + lastReadValueRef.current = value; + consecutiveReadsRef.current = 1; + } + + if (consecutiveReadsRef.current < REQUIRED_CONSECUTIVE_READS_ANDROID) { + return; + } + } + if (value !== props.barcode.value) { props.barcode.setValue(value); } executeAction(props.onDetect); + // Reset consecutive reads counter after accepting a detection + resetConsecutiveReads(); + // Lock further scans for 2 seconds isLockedRef.current = true; - setTimeout(() => { + lockTimeoutRef.current = setTimeout(() => { isLockedRef.current = false; - }, 2000); + }, SCAN_LOCK_DURATION_MS); }, - [props.barcode, props.onDetect] + [props.barcode, props.onDetect, getCodePositionInfo, resetConsecutiveReads] ); - const codeScanner = useCodeScanner({ - codeTypes: [ - "qr", - "aztec", - "codabar", - "code-39", - "code-93", - "code-128", - "data-matrix", - "ean-13", - "ean-8", - "upc-a", - "upc-e" - ], - onCodeScanned - }); + const scannerOutput = useScannerOutput({ onCodesScanned, cameraRef, cameraViewDimensions }); + + // The camera is ready, start the scan delay from now + const handleCameraStarted = useCallback(() => { + resetScanState(); + }, [resetScanState]); + + const handleCameraLayout = useCallback((event: LayoutChangeEvent) => { + const { width, height } = event.nativeEvent.layout; + setCameraViewDimensions({ width, height }); + }, []); return ( - - {device && ( - + + {device && hasPermission && ( + <> + {props.showMask && ( )} - + )} ); diff --git a/packages/pluggableWidgets/barcode-scanner-native/src/BarcodeScanner.xml b/packages/pluggableWidgets/barcode-scanner-native/src/BarcodeScanner.xml index b8f87cf56..4850f262d 100644 --- a/packages/pluggableWidgets/barcode-scanner-native/src/BarcodeScanner.xml +++ b/packages/pluggableWidgets/barcode-scanner-native/src/BarcodeScanner.xml @@ -1,4 +1,4 @@ - + Barcode scanner Scan barcode and QR code values. @@ -11,7 +11,7 @@
Barcode Scan delay On detect