Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 712fe8d

Browse files
committed
chore(rebuild): + update files to latest version
1 parent 11213f3 commit 712fe8d

File tree

8 files changed

+214
-195
lines changed

8 files changed

+214
-195
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngCordova",
3-
"version": "0.1.15-alpha",
3+
"version": "0.1.17-alpha",
44
"homepage": "http://ngCordova.com/",
55
"authors": [
66
"Max Lynch <[email protected]>",

demo/www/lib/ngCordova/dist/ng-cordova.js

Lines changed: 87 additions & 89 deletions
Large diffs are not rendered by default.

demo/www/lib/ngCordova/dist/ng-cordova.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-cordova-mocks.js

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* ngCordova
3-
* v0.1.15-alpha
3+
* v0.1.17-alpha
44
* Copyright 2014 Drifty Co. http://drifty.com/
55
* See LICENSE in this repository for license information
66
*/
@@ -243,6 +243,30 @@ ngCordovaMocks.factory('$cordovaBLE', ['$q', '$timeout', function ($q, $timeout)
243243
};
244244
}]);
245245

246+
ngCordovaMocks.factory('$cordovaBrightness', ['$q', function ($q) {
247+
var currentBrightness = 100;
248+
249+
return {
250+
get: function () {
251+
var q = $q.defer();
252+
q.resolve(currentBrightness);
253+
return q.promise;
254+
},
255+
256+
set: function (data) {
257+
var q = $q.defer();
258+
currentBrightness = data;
259+
q.resolve('OK');
260+
return q.promise;
261+
},
262+
263+
setKeepScreenOn: function (bool) {
264+
var q = $q.defer();
265+
q.resolve('OK');
266+
return q.promise;
267+
}
268+
};
269+
}]);
246270
/**
247271
* @ngdoc service
248272
* @name ngCordovaMocks.cordovaCamera
@@ -685,7 +709,7 @@ ngCordovaMocks.factory('$cordovaDeviceMotion', ['$interval', '$q', function ($in
685709
if (this.throwsError) {
686710
defer.reject('There was an error watching the current acceleration.');
687711
} else {
688-
var delay = 10000; // The default based on https://github.com/apache/cordova-plugin-device-motion/blob/master/doc/index.md
712+
var delay = 10000; // The default based on https://github.com/apache/cordova-plugin-device-motion
689713
if (options && options.frequency) {
690714
delay = options.frequency;
691715
}
@@ -823,7 +847,7 @@ ngCordovaMocks.factory('$cordovaDeviceOrientation', ['$interval', '$q', function
823847
if (self.throwsError) {
824848
defer.reject('There was an error getting the compass heading.');
825849
} else {
826-
var delay = 100; // The default based on https://github.com/apache/cordova-plugin-device-orientation/blob/master/doc/index.md
850+
var delay = 100; // The default based on https://github.com/apache/cordova-plugin-device-orientation
827851
if (options && options.frequency) {
828852
delay = options.frequency;
829853
}
@@ -2170,7 +2194,7 @@ ngCordovaMocks.factory('$cordovaNetwork', function () {
21702194
*
21712195
* @description
21722196
* They type of connection. Values should match those found at
2173-
* https://github.com/apache/cordova-plugin-network-information/blob/master/doc/index.md
2197+
* https://github.com/apache/cordova-plugin-network-information
21742198
* This property should only be used in automated tests.
21752199
**/
21762200
connectionType: connectionType,
@@ -2802,7 +2826,7 @@ ngCordovaMocks.factory('$cordovaVibration', ['$timeout', function ($timeout) {
28022826

28032827
/* jshint ignore:start */
28042828
vibrateWithPattern: function (pattern, repeat) {
2805-
// Based on the documentation (https://github.com/apache/cordova-plugin-vibration/blob/master/doc/index.md)
2829+
// Based on the documentation (https://github.com/apache/cordova-plugin-vibration)
28062830
// This method is deprecated. For that reason, this isn't implemented at this time.
28072831
},
28082832
/* jshint ignore:end */

dist/ng-cordova-mocks.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)