Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"[typescript]": {
"editor.codeActionsOnSave": {
"source.removeUnusedImports": "never"
}
},
}
1 change: 1 addition & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@proton/wharfkit-plugin-webauth": "^1.0.3",
"@wharfkit/session": "^1.1.1",
"@wharfkit/web-renderer": "^1.1.1",
"react": "^19.0.0",
Expand Down
1 change: 1 addition & 0 deletions examples/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import './App.css'
import WebRenderer from '@wharfkit/web-renderer';
import SessionKit, { Session } from '@wharfkit/session';
import { WalletPluginWebAuth } from "../../"
// import { WalletPluginWebAuth } from "@proton/wharfkit-plugin-webauth"

const webRenderer = new WebRenderer()

Expand Down
12 changes: 12 additions & 0 deletions examples/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": [
"vite.config.ts"
]
}
1,374 changes: 739 additions & 635 deletions examples/yarn.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ export function isAndroid(): boolean {
return /Android/.test(navigator.userAgent)
}

export function fixAndroidUrl(url: string): string {
export function fixAndroidUrl(url?: string): string {
if (!url) {
return ''
}
if (url === 'android-intent://webview') {
if (isAndroid() && isAndroidWebView()) {
return 'android-app://webview'
Expand Down
488 changes: 217 additions & 271 deletions yarn.lock

Large diffs are not rendered by default.