Commit b64176f7 authored by David Burke's avatar David Burke

Removed need for tns native declarations in consuming projects

parent 43c4b587
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
export declare type JavaBytes = native.Array<number>;
export interface IKeyPair {
keyType?: string;
privateKey: Uint8Array;
......@@ -7,7 +6,7 @@ export interface IKeyPair {
export declare class Common {
static BASE64_FLAGS: number;
private static javaByteArrayToUint8Array(javaBytes);
static Uint8ArrayToJavaByteArray(inBytes: Uint8Array): JavaBytes;
private static Uint8ArrayToJavaByteArray(inBytes);
static to_base64(aBytes: Uint8Array): string;
static from_base64(sBase64: string): Uint8Array;
static randombytes_buf(length: number): Uint8Array;
......
......@@ -14,7 +14,7 @@ NaCl.sodium();
let Base64 = android.util.Base64;
export type JavaBytes = native.Array<number>;
type JavaBytes = native.Array<number>;
export interface IKeyPair {
keyType?: string;
......
{
"name": "nativescript-libsodium",
"version": "1.0.0",
"description": "Your awesome NativeScript plugin.",
"version": "1.0.1",
"description": "Use libsodium in Nativescript with libsodium.js like wrappers.",
"main": "libsodium",
"typings": "index.d.ts",
"nativescript": {
......@@ -51,7 +51,7 @@
"typescript": "~2.3.1"
},
"dependencies": {
"text-encoding": "~0.6.3"
"text-encoding": "^0.6.3"
},
"bootstrapper": "nativescript-plugin-seed"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment