Fix for newest android versions

parent ac0613b2
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version='1.0' encoding='utf-8'?>
<widget id="com.ionicframework.ceitificator385220" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="com.ionicframework.ceitificator385220" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>ceitificator</name> <name>ceitificator</name>
<description> <description>
An Ionic Framework and Cordova project. An Ionic Framework and Cordova project.
</description> </description>
<author email="you@example.com" href="http://example.com.com/"> <author email="you@example.com" href="http://example.com.com/">
Your Name Here Your Name Here
</author> </author>
<content src="index.html"/> <content src="index.html" />
<access origin="*"/> <access origin="*" />
<preference name="webviewbounce" value="false"/> <preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false"/> <preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true"/> <preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="16"/> <preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none"/> <preference name="BackupWebStorage" value="none" />
<preference name="SplashScreen" value="screen"/> <preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000"/> <preference name="SplashScreenDelay" value="3000" />
<feature name="StatusBar"> <feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/> <param name="ios-package" onload="true" value="CDVStatusBar" />
</feature> </feature>
<platform name="android"> <platform name="android">
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/> <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/> <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/> <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/> <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/> <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/> <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/> <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/> <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash src="resources/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi"/> <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash src="resources/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi"/> <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/> <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/> <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/> <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/> <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/> <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/> <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/> <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/> <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform> </platform>
</widget> <preference name="AndroidPersistentFileLocation" value="Compatibility" />
\ No newline at end of file <engine name="android" spec="6.3.0" />
<plugin name="cordova-sqlite-storage" spec="git+https://github.com/litehelpers/Cordova-sqlite-storage.git#storage-master" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<plugin name="phonegap-plugin-barcodescanner" spec="https://github.com/phonegap/phonegap-plugin-barcodescanner.git" />
<plugin name="cordova-plugin-file" spec="^4.3.3" />
</widget>
{
"name": "ceitificator",
"app_id": "",
"integrations": {
"cordova": {}
},
"type": "ionic1",
"watchPatterns": [
"scss/**/*",
"www/**/*",
"!www/lib/**/*",
"!www/**/*.map"
]
}
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -3,11 +3,18 @@ ...@@ -3,11 +3,18 @@
"version": "1.1.1", "version": "1.1.1",
"description": "ceitificator: An Ionic project", "description": "ceitificator: An Ionic project",
"dependencies": { "dependencies": {
"android-versions": "^1.2.1",
"cordova-android": "6.3.0",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-file": "^4.3.3",
"cordova-sqlite-storage": "git+https://github.com/litehelpers/Cordova-sqlite-storage.git#storage-master",
"gulp": "^3.5.6", "gulp": "^3.5.6",
"gulp-sass": "^2.0.4",
"gulp-concat": "^2.2.0", "gulp-concat": "^2.2.0",
"gulp-minify-css": "^0.3.0", "gulp-minify-css": "^0.3.0",
"gulp-rename": "^1.2.0" "gulp-rename": "^1.2.0",
"gulp-sass": "latest",
"ionic-plugin-keyboard": "^2.2.1",
"phonegap-plugin-barcodescanner": "git+https://github.com/phonegap/phonegap-plugin-barcodescanner.git"
}, },
"devDependencies": { "devDependencies": {
"bower": "^1.3.3", "bower": "^1.3.3",
...@@ -25,5 +32,16 @@ ...@@ -25,5 +32,16 @@
], ],
"cordovaPlatforms": [ "cordovaPlatforms": [
"android" "android"
] ],
} "cordova": {
"platforms": [
"android"
],
"plugins": {
"cordova-sqlite-storage": {},
"ionic-plugin-keyboard": {},
"phonegap-plugin-barcodescanner": {},
"cordova-plugin-file": {}
}
}
}
\ No newline at end of file
...@@ -18,7 +18,8 @@ angular.module('app', ['ionic', 'app.controllers', 'app.routes', 'app.services', ...@@ -18,7 +18,8 @@ angular.module('app', ['ionic', 'app.controllers', 'app.routes', 'app.services',
// org.apache.cordova.statusbar required // org.apache.cordova.statusbar required
StatusBar.styleDefault(); StatusBar.styleDefault();
} }
console.log("here");
console.log($cordovaSQLite);
// se o banco não existe, cria ele aqui // se o banco não existe, cria ele aqui
var db = $cordovaSQLite.openDB({name: 'ceitificator.db', iosDatabaseLocation: 'default'}); var db = $cordovaSQLite.openDB({name: 'ceitificator.db', iosDatabaseLocation: 'default'});
$cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS people(id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, grr TEXT NOT NULL, email TEXT NOT NULL, UNIQUE (name, grr, email))"); $cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS people(id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, grr TEXT NOT NULL, email TEXT NOT NULL, UNIQUE (name, grr, email))");
......
{ {
"name": "ngCordova", "name": "ngCordova",
"version": "0.1.24-alpha", "version": "0.1.27-alpha",
"homepage": "http://ngCordova.com/", "homepage": "http://ngCordova.com/",
"authors": [ "authors": [
"Max Lynch <max@drifty.com>", "Max Lynch <max@drifty.com>",
...@@ -43,14 +43,14 @@ ...@@ -43,14 +43,14 @@
"angular-mocks": ">= 1.2.23", "angular-mocks": ">= 1.2.23",
"jquery": "~2.1.1" "jquery": "~2.1.1"
}, },
"_release": "0.1.24-alpha", "_release": "0.1.27-alpha",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v0.1.24-alpha", "tag": "v0.1.27-alpha",
"commit": "9de37ab18b41cc5d03b74148306372d408bfcbb0" "commit": "5d0450d887275c70ec227ef9b30e3e3f15646cb9"
}, },
"_source": "git://github.com/driftyco/ng-cordova.git", "_source": "https://github.com/driftyco/ng-cordova.git",
"_target": "^0.1.24-alpha", "_target": "^0.1.27-alpha",
"_originalSource": "ngCordova", "_originalSource": "ngCordova",
"_direct": true "_direct": true
} }
\ No newline at end of file
### 0.1.27-alpha (2016-07-06)
### 0.1.27-alpha (2016-07-06)
Please refer to the [Github ngCordova Releases file](https://github.com/driftyco/ng-cordova/releases) for detailed information. Please refer to the [Github ngCordova Releases file](https://github.com/driftyco/ng-cordova/releases) for detailed information.
...@@ -92,6 +92,7 @@ $ bower install ngCordova ...@@ -92,6 +92,7 @@ $ bower install ngCordova
- [Push Notifications](https://github.com/phonegap-build/PushPlugin) (**deprecated** - Will be removed in future release) - [Push Notifications](https://github.com/phonegap-build/PushPlugin) (**deprecated** - Will be removed in future release)
- [Push Notifications - V5] (https://github.com/phonegap/phonegap-plugin-push) - [Push Notifications - V5] (https://github.com/phonegap/phonegap-plugin-push)
- [Screenshots](https://github.com/gitawego/cordova-screenshot) - [Screenshots](https://github.com/gitawego/cordova-screenshot)
- [Serial](https://github.com/xseignard/cordovarduino)
- [SMS](https://github.com/aharris88/phonegap-sms-plugin) - [SMS](https://github.com/aharris88/phonegap-sms-plugin)
- [Social Sharing](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin) - [Social Sharing](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin)
- [Spinner Dialog](https://github.com/Paldom/SpinnerDialog) - [Spinner Dialog](https://github.com/Paldom/SpinnerDialog)
......
{ {
"name": "ngCordova", "name": "ngCordova",
"version": "0.1.24-alpha", "version": "0.1.27-alpha",
"homepage": "http://ngCordova.com/", "homepage": "http://ngCordova.com/",
"authors": [ "authors": [
"Max Lynch <max@drifty.com>", "Max Lynch <max@drifty.com>",
......
/*! /*!
* ngCordova * ngCordova
* v0.1.23-alpha * v0.1.27-alpha
* Copyright 2015 Drifty Co. http://drifty.com/ * Copyright 2015 Drifty Co. http://drifty.com/
* See LICENSE in this repository for license information * See LICENSE in this repository for license information
*/ */
(function(){ (function(){
var ngCordovaMocks = angular.module('ngCordovaMocks', []); var ngCordovaMocks = angular.module('ngCordovaMocks', []);
/**
* @ngdoc service
* @name ngCordovaMocks.cordovaActionSheet
*
* @description
* A service for testing action sheet
* in an app build with ngCordova.
**/
ngCordovaMocks.factory('$cordovaActionSheet', ['$q', function ($q) {
var throwsError = false;
return {
/**
* @ngdoc property
* @name throwsError
* @propertyOf ngCordovaMocks.cordovaActionSheet
* @type Boolean
*
* @description
* A flag that signals whether a promise should be rejected.
* This property should only be used in automated tests
*/
throwsError: throwsError,
show: function () {
var defer = $q.defer();
if (this.throwsError) {
defer.reject('There was an error on showing action sheet');
} else {
defer.resolve();
}
return defer.promise;
}
};
}]);
ngCordovaMocks.factory('$cordovaAppVersion', ['$q', function ($q) { ngCordovaMocks.factory('$cordovaAppVersion', ['$q', function ($q) {
var throwsError = false; var throwsError = false;
return { return {
throwsError: throwsError, throwsError: throwsError,
getAppVersion: function () {
var defer = $q.defer(); getAppName: function () {
defer.resolve('mock v'); var q = $q.defer();
return defer.promise; q.resolve('mock app name');
return q.promise;
},
getPackageName: function () {
var q = $q.defer();
q.resolve('com.package.mock');
return q.promise;
},
getVersionNumber: function () {
var q = $q.defer();
q.resolve('1.2.3');
return q.promise;
},
getVersionCode: function () {
var q = $q.defer();
q.resolve('4.5.6');
return q.promise;
} }
}; };
}]); }]);
...@@ -2460,7 +2517,7 @@ ngCordovaMocks.factory('$cordovaLocalNotification', ['$q', function ($q) { ...@@ -2460,7 +2517,7 @@ ngCordovaMocks.factory('$cordovaLocalNotification', ['$q', function ($q) {
* A service for testing networked fetures * A service for testing networked fetures
* in an app build with ngCordova. * in an app build with ngCordova.
*/ */
ngCordovaMocks.factory('$cordovaNetwork', function () { ngCordovaMocks.factory('$cordovaNetwork', ['$rootScope',function ($rootScope) {
var connectionType = 'WiFi connection'; var connectionType = 'WiFi connection';
var isConnected = true; var isConnected = true;
...@@ -2488,6 +2545,16 @@ ngCordovaMocks.factory('$cordovaNetwork', function () { ...@@ -2488,6 +2545,16 @@ ngCordovaMocks.factory('$cordovaNetwork', function () {
**/ **/
isConnected: isConnected, isConnected: isConnected,
switchToOnline: function (){
this.isConnected = true;
$rootScope.$broadcast('$cordovaNetwork:online');
},
switchToOffline: function (){
this.isConnected = false;
$rootScope.$broadcast('$cordovaNetwork:offline');
},
getNetwork: function () { getNetwork: function () {
return this.connectionType; return this.connectionType;
}, },
...@@ -2500,7 +2567,160 @@ ngCordovaMocks.factory('$cordovaNetwork', function () { ...@@ -2500,7 +2567,160 @@ ngCordovaMocks.factory('$cordovaNetwork', function () {
return !this.isConnected; return !this.isConnected;
} }
}; };
}); }]);
/**
* @ngdoc service
* @name ngCordovaMocks.cordovaProgress
*
* @description
* A service for testing Progress Indicator
* in an app build with ngCordova.
*/
ngCordovaMocks.factory('$cordovaProgress', [
'$timeout', function ($timeout) {
return {
show: function (_message) {
var message = _message || 'Please wait...';
console.info('$cordovaProgress.message', message);
},
showSimple: function (_dim) {
var dim = _dim || false;
console.info('$cordovaProgress.dim', dim);
},
showSimpleWithLabel: function (_dim, _label) {
var dim = _dim || false;
var label = _label || 'Loading...';
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.label', label);
console.groupEnd();
},
showSimpleWithLabelDetail: function (_dim, _label, _detail) {
var dim = _dim || false;
var label = _label || 'Loading...';
var detail = _detail || 'Please wait';
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.label', label);
console.info('$cordovaProgress.detail', detail);
console.groupEnd();
},
showDeterminate: function (_dim, _timeout) {
var dim = _dim || false;
var timeout = _timeout || 50000;
console.group();
console.info('$cordovaProgress.dim show', dim);
console.info('$cordovaProgress.timeout', timeout);
console.groupEnd();
$timeout(function () {
console.info('$cordovaProgress.dim timeout', dim);
}, timeout);
},
showDeterminateWithLabel: function (_dim, _timeout, _label) {
var dim = _dim || false;
var timeout = _timeout || 50000;
var label = _label || 'Loading...';
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.timeout', timeout);
console.info('$cordovaProgress.label', label);
console.groupEnd();
$timeout(function () {
console.info('$cordovaProgress[dim, label] timeout', [dim, label]);
}, timeout);
},
showAnnular: function (_dim, _timeout) {
var dim = _dim || false;
var timeout = _timeout || 50000;
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.timeout', timeout);
console.groupEnd();
$timeout(function () {
console.info('$cordovaProgress.dim timeout', dim);
}, timeout);
},
showAnnularWithLabel: function (_dim, _timeout, _label) {
var dim = _dim || false;
var timeout = _timeout || 50000;
var label = _label || 'Loading...';
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.timeout', timeout);
console.info('$cordovaProgress.label', label);
console.groupEnd();
$timeout(function () {
console.info('$cordovaProgress[dim, label] timeout', [dim, label]);
}, timeout);
},
showBar: function (_dim, _timeout) {
var dim = _dim || false;
var timeout = _timeout || 50000;
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.timeout', timeout);
console.groupEnd();
$timeout(function () {
console.info('$cordovaProgress.dim timeout', dim);
}, timeout);
},
showBarWithLabel: function (_dim, _timeout, _label) {
var dim = _dim || false;
var timeout = _timeout || 50000;
var label = _label || 'Loading...';
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.label', label);
console.info('$cordovaProgress.timeout', timeout);
console.groupEnd();
$timeout(function () {
console.info('$cordovaProgress[dim, label] timeout', [dim, label]);
}, timeout);
},
showSuccess: function (_dim, _label) {
var dim = _dim || false;
var label = _label || 'Success';
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.label', label);
console.groupEnd();
},
showText: function (_dim, _text, _position) {
var dim = _dim || false;
var text = _text || 'Warning';
var position = _position || 'center';
console.group();
console.info('$cordovaProgress.dim', dim);
console.info('$cordovaProgress.text', text);
console.info('$cordovaProgress.position', position);
console.groupEnd();
},
hide: function () {
console.info('$cordovaProgress.hide');
}
};
}
]);
'use strict'; 'use strict';
...@@ -2890,6 +3110,21 @@ ngCordovaMocks.factory('$cordovaSocialSharing', ['$q', function ($q) { ...@@ -2890,6 +3110,21 @@ ngCordovaMocks.factory('$cordovaSocialSharing', ['$q', function ($q) {
defer.resolve(); defer.resolve();
} }
return defer.promise; return defer.promise;
},
shareWithOptions: function (options) {
var defer = $q.defer();
if (this.throwsError) {
defer.reject('There was an error sharing via SMS.');
} else {
this.message = options.message;
this.subject = options.subject;
this.attachments = options.files;
this.link = options.url;
defer.resolve();
}
return defer.promise;
} }
}; };
}]); }]);
...@@ -3138,6 +3373,15 @@ ngCordovaMocks.factory('$cordovaToast', ['$q', function ($q) { ...@@ -3138,6 +3373,15 @@ ngCordovaMocks.factory('$cordovaToast', ['$q', function ($q) {
} }
return defer.promise; return defer.promise;
}, },
showWithOptions: function (options) {
var defer = $q.defer();
if (this.throwsError) {
defer.reject('There was an error showing the toast.');
} else {
defer.resolve();
}
return defer.promise;
},
show: function (message, duration, position) { show: function (message, duration, position) {
var defer = $q.defer(); var defer = $q.defer();
if (this.throwsError) { if (this.throwsError) {
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "ng-cordova", "name": "ng-cordova",
"private": false, "private": false,
"main": "dist/ng-cordova", "main": "dist/ng-cordova",
"version": "0.1.24-alpha", "version": "0.1.27-alpha",
"repository": { "repository": {
"url": "git://github.com/driftyco/ng-cordova.git" "url": "git://github.com/driftyco/ng-cordova.git"
}, },
...@@ -17,13 +17,15 @@ ...@@ -17,13 +17,15 @@
"gulp-rename": "^1.2.0", "gulp-rename": "^1.2.0",
"gulp-shell": "^0.2.10", "gulp-shell": "^0.2.10",
"gulp-uglify": "^0.2.1", "gulp-uglify": "^0.2.1",
"jasmine-core": "^2.4.1",
"jshint-stylish": "^0.4.0", "jshint-stylish": "^0.4.0",
"karma": "^0.12.16", "karma": "^0.13.21",
"karma-chrome-launcher": "~0.1.2", "karma-chrome-launcher": "~0.2.2",
"karma-coverage": "~0.2.6", "karma-coverage": "~0.5.3",
"karma-jasmine": "~0.1.5", "karma-jasmine": "~0.3.7",
"karma-phantomjs-launcher": "~0.1.2", "karma-phantomjs-launcher": "~1.0.0",
"minimist": "^0.1.0" "minimist": "^0.1.0",
"phantomjs-prebuilt": "^2.1.4"
}, },
"licenses": [ "licenses": [
{ {
......
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