Skip to content

v0.1.0-canary.5

Choose a tag to compare

@mayankmahavar1mg mayankmahavar1mg released this 27 Feb 14:47
· 16 commits to main since this release

Summary

URL Whitelisting Refactor — Fixes a bug where patterns like .1mg.com failed to match URLs containing ports. Replaces fragile
regex-based logic with simple glob-style pattern matching, adds thread-safety mechanisms, and includes URL decoding for security hardening.
Comprehensive Test Suite — Adds 366 unit tests across both platforms (184 Android, 182 iOS) covering URL whitelist management, native bridge, config mapping, cache, file utils,
notifications, and more.
iOS Build Fix — Reads accessControl config from webview_config correctly in buildAppIos.js.
npm Package Cleanup — Excludes iOS and Android test files from the published npm package via .npmignore.
What Changed

Android

New URLWhitelistManager.kt — thread-safe, glob-style URL pattern matching with URL decoding
CustomWebview.kt — uses new URLWhitelistManager
DownloadUtils.kt, Utils.kt — updated to use new whitelist manager
184 new unit tests across 10 test files
iOS

URLWhitelistManager.swift — refactored with the same glob-style matching and thread safety
buildAppIos.js — fixed accessControl config read path
ConfigConstants.swift stub updated with all required default fields (GoogleSignIn, EdgeToEdge, Notifications, splash screen CGFloat fields)
182 new unit tests across 10 test files
Added iosnativeWebView.xctestplan for running the full test suite