diff --git a/android/app/release/output-metadata.json b/android/app/release/output-metadata.json
new file mode 100644
index 0000000000..d7df8dfc05
--- /dev/null
+++ b/android/app/release/output-metadata.json
@@ -0,0 +1,20 @@
+{
+ "version": 3,
+ "artifactType": {
+ "type": "APK",
+ "kind": "Directory"
+ },
+ "applicationId": "org.cardanofoundation.idw",
+ "variantName": "release",
+ "elements": [
+ {
+ "type": "SINGLE",
+ "filters": [],
+ "attributes": [],
+ "versionCode": 1,
+ "versionName": "1.0",
+ "outputFile": "app-release.apk"
+ }
+ ],
+ "elementType": "File"
+}
\ No newline at end of file
diff --git a/services/cip45-sample-dapp/src/pages/Demo.tsx b/services/cip45-sample-dapp/src/pages/Demo.tsx
index 60420a49e4..06b1c73b58 100644
--- a/services/cip45-sample-dapp/src/pages/Demo.tsx
+++ b/services/cip45-sample-dapp/src/pages/Demo.tsx
@@ -101,13 +101,20 @@ const Demo: React.FC = () => {
}
}, []);
- const disconnectWallet = () => {
+ const disconnectWallet = async () => {
disconnect();
setPeerConnectWalletInfo(defautlWallet);
setShowAcceptButton(false);
setWalletIsConnected(false);
setError("");
+
+ const api =
+ window.cardano && window.cardano[peerConnectWalletInfo.name];
+ if (!api) return;
+ const enabledApi = await api.enable();
+ await enabledApi.experimental.disable();
}
+
const handleAcceptWallet = () => {
if (peerConnectWalletInfo) {
onPeerConnectAccept();
@@ -119,7 +126,6 @@ const Demo: React.FC = () => {
const checkApi = setInterval(async () => {
const api =
- // @ts-ignore
window.cardano && window.cardano[peerConnectWalletInfo.name];
if (api || Date.now() - start > timeout) {
clearInterval(checkApi);
@@ -201,7 +207,7 @@ const Demo: React.FC = () => {
showAcceptButton ? : walletIsConnected ?