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

Commit b0a043d

Browse files
committed
Build
1 parent b9ec3fa commit b0a043d

File tree

5 files changed

+97
-7
lines changed

5 files changed

+97
-7
lines changed

demo/package.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,36 @@
1717
"cordovaPlugins": [
1818
"org.apache.cordova.camera",
1919
"org.apache.cordova.console",
20-
"org.apache.cordova.contacts"
20+
"org.apache.cordova.contacts",
21+
"org.apache.cordova.device",
22+
"org.apache.cordova.dialogs",
23+
"org.apache.cordova.device-motion",
24+
"org.apache.cordova.device-orientation",
25+
"org.apache.cordova.network-information",
26+
"org.apache.cordova.geolocation",
27+
"org.apache.cordova.globalization",
28+
"org.apache.cordova.file",
29+
"org.apache.cordova.file-transfer",
30+
"org.apache.cordova.splashscreen",
31+
"org.apache.cordova.statusbar",
32+
"org.apache.cordova.vibration",
33+
"org.apache.cordova.media",
34+
"org.apache.cordova.inappbrowser",
35+
"org.apache.cordova.battery-status",
36+
"https://github.com/Wizcorp/phonegap-facebook-plugin.git",
37+
"https://github.com/driftyco/ionic-plugins-keyboard",
38+
"https://github.com/VitaliiBlagodir/cordova-plugin-datepicker.git",
39+
"https://github.com/wildabeast/BarcodeScanner.git",
40+
"https://github.com/chrisekelley/AppPreferences",
41+
"https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin.git",
42+
"https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git",
43+
"uk.co.ilee.touchid",
44+
"https://github.com/pushandplay/cordova-plugin-apprate.git",
45+
"https://github.com/katzer/cordova-plugin-local-notifications.git",
46+
"https://github.com/katzer/cordova-plugin-email-composer.git",
47+
"https://github.com/phonegap-build/PushPlugin.git",
48+
"https://github.com/EddyVerbruggen/cordova-plugin-actionsheet.git",
49+
"https://github.com/Telerik-Verified-Plugins/HealthKit",
50+
"de.appplant.cordova.plugin.badge"
2151
]
2252
}

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3846,6 +3846,35 @@ angular.module('ngCordova.plugins.insomnia', [])
38463846
}
38473847

38483848
}]);
3849+
// install : cordova plugins add https://github.com/vstirbu/InstagramPlugin
3850+
// link : https://github.com/vstirbu/InstagramPlugin
3851+
3852+
angular.module('ngCordova.plugins.instagram', [])
3853+
3854+
.factory('$cordovaInstagram', ['$q', function ($q) {
3855+
3856+
return {
3857+
share: function (options) {
3858+
var q = $q.defer();
3859+
3860+
if (!window.Instagram) {
3861+
console.error('Tried to call Instagram.share but the Instagram plugin isn\'t installed!');
3862+
q.resolve(null);
3863+
return q.promise;
3864+
}
3865+
3866+
Instagram.share(options.image, options.caption, function(err) {
3867+
if(err) {
3868+
q.reject(err);
3869+
} else {
3870+
q.resolve(true);
3871+
}
3872+
});
3873+
return q.promise;
3874+
}
3875+
};
3876+
}]);
3877+
38493878
// install : cordova plugin add https://github.com/driftyco/ionic-plugins-keyboard.git
38503879
// link : https://github.com/driftyco/ionic-plugins-keyboard
38513880

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

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

dist/ng-cordova.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3846,6 +3846,35 @@ angular.module('ngCordova.plugins.insomnia', [])
38463846
}
38473847

38483848
}]);
3849+
// install : cordova plugins add https://github.com/vstirbu/InstagramPlugin
3850+
// link : https://github.com/vstirbu/InstagramPlugin
3851+
3852+
angular.module('ngCordova.plugins.instagram', [])
3853+
3854+
.factory('$cordovaInstagram', ['$q', function ($q) {
3855+
3856+
return {
3857+
share: function (options) {
3858+
var q = $q.defer();
3859+
3860+
if (!window.Instagram) {
3861+
console.error('Tried to call Instagram.share but the Instagram plugin isn\'t installed!');
3862+
q.resolve(null);
3863+
return q.promise;
3864+
}
3865+
3866+
Instagram.share(options.image, options.caption, function(err) {
3867+
if(err) {
3868+
q.reject(err);
3869+
} else {
3870+
q.resolve(true);
3871+
}
3872+
});
3873+
return q.promise;
3874+
}
3875+
};
3876+
}]);
3877+
38493878
// install : cordova plugin add https://github.com/driftyco/ionic-plugins-keyboard.git
38503879
// link : https://github.com/driftyco/ionic-plugins-keyboard
38513880

dist/ng-cordova.min.js

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

0 commit comments

Comments
 (0)