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 { HttpRequestLibrary, HttpResponse } from "../http";
|
||||||
import querystring = require("querystring");
|
import querystring = require("querystring");
|
||||||
|
|
||||||
|
// @ts-ignore: special built-in module
|
||||||
|
import akono = require("akono");
|
||||||
|
|
||||||
export class AndroidHttpLib implements HttpRequestLibrary {
|
export class AndroidHttpLib implements HttpRequestLibrary {
|
||||||
useNfcTunnel: boolean = false;
|
useNfcTunnel: boolean = false;
|
||||||
|
|
||||||
@ -99,7 +102,7 @@ export class AndroidHttpLib implements HttpRequestLibrary {
|
|||||||
|
|
||||||
export function installAndroidWalletListener() {
|
export function installAndroidWalletListener() {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const sendMessage: (m: string) => void = global.__akono_sendMessage;
|
const sendMessage: (m: string) => void = akono.sendMessage;
|
||||||
if (typeof sendMessage !== "function") {
|
if (typeof sendMessage !== "function") {
|
||||||
const errMsg =
|
const errMsg =
|
||||||
"FATAL: cannot install android wallet listener: akono functions missing";
|
"FATAL: cannot install android wallet listener: akono functions missing";
|
||||||
|
Loading…
Reference in New Issue
Block a user