android: use akono module
This commit is contained in:
parent
25c68d4487
commit
87aa0f65c3
@ -30,6 +30,9 @@ import axios from "axios";
|
||||
import { HttpRequestLibrary, HttpResponse } from "../http";
|
||||
import querystring = require("querystring");
|
||||
|
||||
// @ts-ignore: special built-in module
|
||||
import akono = require("akono");
|
||||
|
||||
export class AndroidHttpLib implements HttpRequestLibrary {
|
||||
useNfcTunnel: boolean = false;
|
||||
|
||||
@ -99,7 +102,7 @@ export class AndroidHttpLib implements HttpRequestLibrary {
|
||||
|
||||
export function installAndroidWalletListener() {
|
||||
// @ts-ignore
|
||||
const sendMessage: (m: string) => void = global.__akono_sendMessage;
|
||||
const sendMessage: (m: string) => void = akono.sendMessage;
|
||||
if (typeof sendMessage !== "function") {
|
||||
const errMsg =
|
||||
"FATAL: cannot install android wallet listener: akono functions missing";
|
||||
|
Loading…
Reference in New Issue
Block a user