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">
<name>ceitificator</name>
<description>
<name>ceitificator</name>
<description>
An Ionic Framework and Cordova project.
</description>
<author email="you@example.com" href="http://example.com.com/">
<author email="you@example.com" href="http://example.com.com/">
Your Name Here
</author>
<content src="index.html"/>
<access origin="*"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="android-minSdkVersion" value="16"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
<platform name="android">
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
<splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/>
<splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/>
<splash src="resources/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi"/>
<splash src="resources/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi"/>
<splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
<splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>
<splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/>
<splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/>
<splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/>
<splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
</platform>
</widget>
\ No newline at end of file
<content src="index.html" />
<access origin="*" />
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
<platform name="android">
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<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 @@
"version": "1.1.1",
"description": "ceitificator: An Ionic project",
"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-sass": "^2.0.4",
"gulp-concat": "^2.2.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": {
"bower": "^1.3.3",
......@@ -25,5 +32,16 @@
],
"cordovaPlatforms": [
"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',
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}
console.log("here");
console.log($cordovaSQLite);
// se o banco não existe, cria ele aqui
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))");
......
{
"name": "ngCordova",
"version": "0.1.24-alpha",
"version": "0.1.27-alpha",
"homepage": "http://ngCordova.com/",
"authors": [
"Max Lynch <max@drifty.com>",
......@@ -43,14 +43,14 @@
"angular-mocks": ">= 1.2.23",
"jquery": "~2.1.1"
},
"_release": "0.1.24-alpha",
"_release": "0.1.27-alpha",
"_resolution": {
"type": "version",
"tag": "v0.1.24-alpha",
"commit": "9de37ab18b41cc5d03b74148306372d408bfcbb0"
"tag": "v0.1.27-alpha",
"commit": "5d0450d887275c70ec227ef9b30e3e3f15646cb9"
},
"_source": "git://github.com/driftyco/ng-cordova.git",
"_target": "^0.1.24-alpha",
"_source": "https://github.com/driftyco/ng-cordova.git",
"_target": "^0.1.27-alpha",
"_originalSource": "ngCordova",
"_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.
......@@ -92,6 +92,7 @@ $ bower install ngCordova
- [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)
- [Screenshots](https://github.com/gitawego/cordova-screenshot)
- [Serial](https://github.com/xseignard/cordovarduino)
- [SMS](https://github.com/aharris88/phonegap-sms-plugin)
- [Social Sharing](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin)
- [Spinner Dialog](https://github.com/Paldom/SpinnerDialog)
......
{
"name": "ngCordova",
"version": "0.1.24-alpha",
"version": "0.1.27-alpha",
"homepage": "http://ngCordova.com/",
"authors": [
"Max Lynch <max@drifty.com>",
......
/*!
* ngCordova
* v0.1.23-alpha
* v0.1.27-alpha
* Copyright 2015 Drifty Co. http://drifty.com/
* See LICENSE in this repository for license information
*/
(function(){
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) {
var throwsError = false;
return {
throwsError: throwsError,
getAppVersion: function () {
var defer = $q.defer();
defer.resolve('mock v');
return defer.promise;
getAppName: function () {
var q = $q.defer();
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) {
* A service for testing networked fetures
* in an app build with ngCordova.
*/
ngCordovaMocks.factory('$cordovaNetwork', function () {
ngCordovaMocks.factory('$cordovaNetwork', ['$rootScope',function ($rootScope) {
var connectionType = 'WiFi connection';
var isConnected = true;
......@@ -2488,6 +2545,16 @@ ngCordovaMocks.factory('$cordovaNetwork', function () {
**/
isConnected: isConnected,
switchToOnline: function (){
this.isConnected = true;
$rootScope.$broadcast('$cordovaNetwork:online');
},
switchToOffline: function (){
this.isConnected = false;
$rootScope.$broadcast('$cordovaNetwork:offline');
},
getNetwork: function () {
return this.connectionType;
},
......@@ -2500,7 +2567,160 @@ ngCordovaMocks.factory('$cordovaNetwork', function () {
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';
......@@ -2890,6 +3110,21 @@ ngCordovaMocks.factory('$cordovaSocialSharing', ['$q', function ($q) {
defer.resolve();
}
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) {
}
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) {
var defer = $q.defer();
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 @@
"name": "ng-cordova",
"private": false,
"main": "dist/ng-cordova",
"version": "0.1.24-alpha",
"version": "0.1.27-alpha",
"repository": {
"url": "git://github.com/driftyco/ng-cordova.git"
},
......@@ -17,13 +17,15 @@
"gulp-rename": "^1.2.0",
"gulp-shell": "^0.2.10",
"gulp-uglify": "^0.2.1",
"jasmine-core": "^2.4.1",
"jshint-stylish": "^0.4.0",
"karma": "^0.12.16",
"karma-chrome-launcher": "~0.1.2",
"karma-coverage": "~0.2.6",
"karma-jasmine": "~0.1.5",
"karma-phantomjs-launcher": "~0.1.2",
"minimist": "^0.1.0"
"karma": "^0.13.21",
"karma-chrome-launcher": "~0.2.2",
"karma-coverage": "~0.5.3",
"karma-jasmine": "~0.3.7",
"karma-phantomjs-launcher": "~1.0.0",
"minimist": "^0.1.0",
"phantomjs-prebuilt": "^2.1.4"
},
"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