Commit 8476a28c authored by Bertrand Presles's avatar Bertrand Presles

Using fork of cordova-ios that is wkwebview only

parent 2b6ceef3
{"plugins":["cordova-plugin-camera","cordova-plugin-compat","cordova-plugin-console","cordova-plugin-device","cordova-plugin-dialogs","cordova-plugin-secure-storage","cordova-plugin-splashscreen","cordova-plugin-statusbar","cordova-plugin-vibration","cordova-plugin-websocket","cordova-plugin-whitelist","cordova-plugin-x-toast","ionic-plugin-keyboard","cordova-plugin-minisodium","phonegap-plugin-barcodescanner","cordova-plugin-wkwebview-engine"]}
\ No newline at end of file
This diff is collapsed.
// Type definitions for Cordova Keyboard plugin
// Project: https://github.com/driftyco/ionic-plugins-keyboard
// Definitions by: Hendrik Maus <https://github.com/hendrikmaus>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module Ionic {
interface Keyboard {
/**
* Hide the keyboard accessory bar with the next, previous and done buttons.
*
* @param hide
*/
hideKeyboardAccessoryBar(hide:boolean): void;
/**
* Close the keyboard if it is open.
*/
close(): void;
/**
* Force keyboard to be shown on Android.
* This typically helps if autofocus on a text element does not pop up the keyboard automatically
*
* Supported Platforms: Android, Blackberry 10
*/
show(): void;
/**
* Disable native scrolling, useful if you are using JavaScript to scroll
*
* @param disbale
*/
disableScroll(disbale:boolean): void;
/**
* Whether or not the keyboard is currently visible.
*/
isVisible: boolean;
}
}
// Type definitions for Apache Cordova
// Project: http://cordova.apache.org
// Definitions by: Microsoft Open Technologies Inc. <http://msopentech.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
//
// Copyright (c) Microsoft Open Technologies, Inc.
// Licensed under the MIT license.
interface Cordova {
/** Invokes native functionality by specifying corresponding service name, action and optional parameters.
* @param success A success callback function.
* @param fail An error callback function.
* @param service The service name to call on the native side (corresponds to a native class).
* @param action The action name to call on the native side (generally corresponds to the native class method).
* @param args An array of arguments to pass into the native environment.
*/
exec(success: () => any, fail: () => any, service: string, action: string, args?: string[]): void;
/** Gets the operating system name. */
platformId: string;
/** Gets Cordova framework version */
version: string;
/** Defines custom logic as a Cordova module. Other modules can later access it using module name provided. */
define(moduleName: string, factory: (require: any, exports: any, module: any) => any): void;
/** Access a Cordova module by name. */
require(moduleName: string): any;
/** Namespace for Cordova plugin functionality */
plugins:CordovaPlugins;
}
interface CordovaPlugins {}
interface Document {
addEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "resume", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "backbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "menubutton", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "searchbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "startcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "endcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "volumedownbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "volumeupbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "resume", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "backbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "menubutton", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "searchbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "startcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "endcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "volumedownbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: "volumeupbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void;
removeEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void;
}
interface Window {
cordova:Cordova;
}
// cordova/argscheck module
interface ArgsCheck {
checkArgs(argsSpec: string, functionName: string, args: any[], callee?: any): void;
getValue(value?: any, defaultValue?: any): any;
enableChecks: boolean;
}
// cordova/urlutil module
interface UrlUtil {
makeAbsolute(url: string): string
}
/** Apache Cordova instance */
declare var cordova: Cordova;
declare module 'cordova' {
export = cordova;
}
// Type definitions for cordova-plugin-x-toast.
// Project: https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin
// Definitions by: Microsoft
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
interface Window {
plugins: CordovaPlugins;
}
interface CordovaPlugins {
/**
* This plugin provides API to show a native Toast (a little text popup) on iOS, Android and WP8
*/
toast: Toast;
}
/**
* Toast options
*/
interface ToastOptions {
/**
* message to pop up
*/
message: string,
/**
* how long to show the toast - 'short', 'long'
*/
duration: string,
/**
* where to show the toast - 'top', 'center', 'bottom'
*/
position: string,
/**
* Toast options
*/
addPixelsY?: number,
/**
* Toast options
*/
data?: any
}
/**
* Toast options
*/
interface ToastSuccessResult {
/**
* Toast event - ex, touch when it was tapped by the user
*/
event: string,
/**
* success message
*/
message: string,
/**
* optional data passed in toast options
*/
data?: any
}
/** This plugin provides access to some native dialog UI elements. */
interface Toast {
/**
* Returns an object upon which the methods withMessage, withDuration, withPosition, withAddPixelsY
* build can be invoked to build a ToastOptions object.
*/
optionsBuilder(): {
withMessage(string): ToastOptions;
withDuration(string): ToastOptions;
withPosition(string): ToastOptions;
withAddPixelsY(string): ToastOptions;
build(): ToastOptions;
};
/**
* Shows the toast message with specific options.
* @param options Options for displaying the toast message
* @param successCallback Success callback, that is called when showWithOptions succeeds.
* @param errorCallback Error callback, that is called when showWithOptions fails.
*/
showWithOptions(
options: ToastOptions,
successCallback?: (result: ToastSuccessResult) => void,
errorCallback?: (error: any) => void): void;
/**
* Shows the toast message.
* @param message Message to be displayed in te toast
* @param duration Duration for which the message should be displayed
* @param position Position where the message should be displayed
* @param successCallback Success callback, that is called when show succeeds.
* @param errorCallback Error callback, that is called when show fails.
*/
show(
message: string,
duration: string,
position: string,
successCallback?: (result: ToastSuccessResult) => void,
errorCallback?: (error: any) => void): void;
/**
* Shows a toast message for a short duration on the top.
* @param message Message to be displayed in te toast
* @param successCallback Success callback, that is called when showShortTop succeeds.
* @param errorCallback Error callback, that is called when showShortTop fails.
*/
showShortTop(
message: string,
successCallback?: (result: ToastSuccessResult) => void,
errorCallback?: (error: any) => void): void;
/**
* Shows a toast message for a short duration in the center.
* @param message Message to be displayed in te toast
* @param successCallback Success callback, that is called when showShortCenter succeeds.
* @param errorCallback Error callback, that is called when showShortCenter fails.
*/
showShortCenter(
message: string,
successCallback?: (result: ToastSuccessResult) => void,
errorCallback?: (error: any) => void): void;
/**
* Shows a toast message for a short duration on the bottom.
* @param message Message to be displayed in te toast
* @param successCallback Success callback, that is called when showShortBottom succeeds.
* @param errorCallback Error callback, that is called when showShortBottom fails.
*/
showShortBottom(
message: string,
successCallback?: (result: ToastSuccessResult) => void,
errorCallback?: (error: any) => void): void;
/**
* Shows a toast message for a long duration on the top.
* @param message Message to be displayed in te toast
* @param successCallback Success callback, that is called when showLongTop succeeds.
* @param errorCallback Error callback, that is called when showLongTop fails.
*/
showLongTop(
message: string,
successCallback?: (result: ToastSuccessResult) => void,
errorCallback?: (error: any) => void): void;
/**
* Shows a toast message for a long duration on the bottom.
* @param message Message to be displayed in te toast
* @param successCallback Success callback, that is called when showLongBottom succeeds.
* @param errorCallback Error callback, that is called when showLongBottom fails.
*/
showLongBottom(
message: string,
successCallback?: (result: ToastSuccessResult) => void,
errorCallback?: (error: any) => void): void;
/**
* Hides toasts.
* @param successCallback Success callback, that is called when hide succeeds.
* @param errorCallback Error callback, that is called when hide fails.
*/
hide(successCallback?: (result: ToastSuccessResult) => void,
errorCallback?: (error: any) => void): void;
}
This diff is collapsed.
This diff is collapsed.
<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="104006" id="fr.duniter.cesium" version="1.4.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget android-versionCode="104006" id="fr.duniter.cesium" ios-CFBundleIdentifier="org.duniter.cesium" version="1.4.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Cesium</name>
<description>
An simple App for Duniter wallet
......@@ -103,10 +103,12 @@
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>To choose a profile picture</string>
</edit-config>
<config-file mode="add" parent="ITSAppUsesNonExemptEncryption" target="*-Info.plist">
<false />
</config-file>
</platform>
<engine name="android" spec="^6.4.0" />
<engine name="ios" spec="^5.0.1" />
<plugin name="cordova-plugin-ionic-webview" spec="^4.1.1" />
<plugin name="cordova-plugin-camera" spec="^2.4.1" />
<plugin name="cordova-plugin-console" spec="^1.0.7" />
<plugin name="cordova-plugin-device" spec="^1.1.6" />
......@@ -120,8 +122,8 @@
<plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
<plugin name="cordova-plugin-x-toast" spec="^2.6.0" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<plugin name="cordova-plugin-minisodium" spec="git+https://github.com/E-IS/cordova-plugin-minisodium.git"/>
<plugin name="phonegap-plugin-barcodescanner" spec="git+https://github.com/phonegap/phonegap-plugin-barcodescanner.git">
<plugin name="cordova-plugin-minisodium" spec="https://github.com/E-IS/cordova-plugin-minisodium.git" />
<plugin name="phonegap-plugin-barcodescanner" spec="https://github.com/phonegap/phonegap-plugin-barcodescanner.git">
<variable name="CAMERA_USAGE_DESCRIPTION" value="Scan QRCode" />
</plugin>
</widget>
{}
\ No newline at end of file
......@@ -32,14 +32,13 @@
"dependencies": {
"cordova": "^9.0.0",
"cordova-android": "6.4.0",
"cordova-ios": "5.0.1",
"cordova-ios": "https://github.com/bpresles/cordova-ios.git",
"cordova-plugin-camera": "^2.4.1",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-console": "^1.0.7",
"cordova-plugin-crosswalk-webview": "^2.3.0",
"cordova-plugin-device": "^1.1.6",
"cordova-plugin-dialogs": "^1.3.3",
"cordova-plugin-ionic-webview": "4.1.1",
"cordova-plugin-minisodium": "https://github.com/E-IS/cordova-plugin-minisodium/archive/v1.0.1.tar.gz",
"cordova-plugin-secure-storage": "^2.6.8",
"cordova-plugin-splashscreen": "^3.2.2",
......@@ -51,7 +50,7 @@
"ionic-plugin-keyboard": "^2.2.1",
"moment": "~2.19.3",
"numeral": "1.5.3",
"phonegap-plugin-barcodescanner": "git+https://github.com/phonegap/phonegap-plugin-barcodescanner.git"
"phonegap-plugin-barcodescanner": "https://github.com/phonegap/phonegap-plugin-barcodescanner.git"
},
"devDependencies": {
"bower": "^1.8.0",
......@@ -124,7 +123,11 @@
}
],
"cordovaPlatforms": [
"ios",
{
"platform": "ios",
"version": "5.1.0",
"locator": "https://github.com/bpresles/cordova-ios.git"
},
{
"platform": "android",
"version": "6.4.0",
......@@ -155,4 +158,4 @@
"android"
]
}
}
}
\ No newline at end of file
{
"ios": "4.5.5"
}
\ No newline at end of file
/// <reference path="../.vscode/typings/cordova/cordova.d.ts"/>
/// <reference path="../.vscode/typings/cordova/plugins/Toast.d.ts"/>
/// <reference path="../.vscode/typings/cordova-ionic/plugins/keyboard.d.ts"/>
/// <reference path="../.vscode/typings/ionic/ionic.d.ts"/>
/// <reference path="../.vscode/typings/angularjs/angular.d.ts"/>
/// <reference path="../.vscode/typings/jquery/jquery.d.ts"/>
\ No newline at end of file
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