Skip to content

Silence the deprecated databaseEnabled warning in the webview lockdown - #49

Merged
shanerbaner82 merged 1 commit into
mainfrom
fix/webview-database-deprecation
Aug 11, 2026
Merged

Silence the deprecated databaseEnabled warning in the webview lockdown#49
shanerbaner82 merged 1 commit into
mainfrom
fix/webview-database-deprecation

Conversation

@shanerbaner82

Copy link
Copy Markdown
Contributor

WebSettings.databaseEnabled was deprecated in API 33 — the Web SQL Database API it gates has since been removed from WebView entirely — so it warns on every compileDebugKotlin:

w: WebviewRenderer.kt:276:14 'var databaseEnabled: Boolean' is deprecated. Deprecated in Java.

Suppressed rather than deleted. minSdk is 26, and on an older device carrying an older WebView the setting still does something — dropping it would quietly weaken this lockdown on exactly the devices that need it most. Deleting would also have been almost safe for a different reason (the platform default is already false), but this block deliberately asserts each setting rather than relying on defaults, and I'd rather not erode that.

allowFileAccessFromFileURLs and allowUniversalAccessFromFileURLs two lines above are suppressed for exactly the same reason, so this keeps the block internally consistent too.

Independent of #47 and #48 — different file, merges in any order.

🤖 Generated with Claude Code

`WebSettings.databaseEnabled` was deprecated in API 33 — the Web SQL Database
API it gates has since been removed from WebView entirely — so it warns on
every compileDebugKotlin.

Suppressed rather than deleted. `minSdk` is 26, and on an older device
carrying an older WebView the setting still does something; dropping it would
quietly weaken this lockdown on exactly the devices that need it most.
`allowFileAccessFromFileURLs` and `allowUniversalAccessFromFileURLs` two lines
above are suppressed for the same reason, so this also keeps the block
internally consistent.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@shanerbaner82
shanerbaner82 merged commit 0699b3c into main Aug 11, 2026
3 checks passed
@shanerbaner82
shanerbaner82 deleted the fix/webview-database-deprecation branch August 11, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant