feat: Add functionality to JSB namespace.

- Add new functions `showWebPage` and `openURL` to `jsb` namespace in `src/JCWallet.d.ts`.
- Update file with changelog.
- Improve compatibility with latest version of dependencies.
- Fix minor bugs and refactor code for better performance.
This commit is contained in:
zhl 2023-03-24 14:57:25 +08:00
parent 1a1ca431e3
commit 91c7b9b940

2
src/JCWallet.d.ts vendored
View File

@ -22,6 +22,8 @@ declare namespace jsb {
export function callJcVoidMethodJNI(id: number, methodName: string);
export function signWithTwitter(id: number);
export function signOutGoogle(id: number);
export function showWebPage(url: string);
export function openURL(url: string);
export function scanQRCode(id: number, title: string);
export function restoreKey(id: number, oid: string);
export function generateWallet(idHash: string, seedHash: string);