android: use akono module

This commit is contained in:
Florian Dold 2019-11-14 18:51:54 +01:00
parent 25c68d4487
commit 87aa0f65c3
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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";