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

added commonjs package manager support #1369

Open
wants to merge 1 commit into
base: dev-next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
217 changes: 111 additions & 106 deletions demo/www/lib/ngCordova/dist/ng-cordova.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
*/
(function(){

/* commonjs package manager support (eg componentjs) */
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
module.exports = 'ngCordova';
}

angular.module('ngCordova', [
'ngCordova.plugins'
]);
Expand Down Expand Up @@ -5314,112 +5319,6 @@ angular.module('ngCordova.plugins.localNotification', [])
};
}]);

// install : cordova plugin add https://github.com/floatinghotpot/cordova-plugin-mmedia.git
// link : https://github.com/floatinghotpot/cordova-plugin-mmedia

angular.module('ngCordova.plugins.mMediaAds', [])

.factory('$cordovaMMediaAds', ['$q', '$window', function ($q, $window) {

return {
setOptions: function (options) {
var d = $q.defer();

$window.mMedia.setOptions(options, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

createBanner: function (options) {
var d = $q.defer();

$window.mMedia.createBanner(options, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

removeBanner: function () {
var d = $q.defer();

$window.mMedia.removeBanner(function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

showBanner: function (position) {
var d = $q.defer();

$window.mMedia.showBanner(position, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

showBannerAtXY: function (x, y) {
var d = $q.defer();

$window.mMedia.showBannerAtXY(x, y, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

hideBanner: function () {
var d = $q.defer();

$window.mMedia.hideBanner(function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

prepareInterstitial: function (options) {
var d = $q.defer();

$window.mMedia.prepareInterstitial(options, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

showInterstitial: function () {
var d = $q.defer();

$window.mMedia.showInterstitial(function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
}
};
}]);

// install : cordova plugin add cordova-plugin-media
// link : https://github.com/apache/cordova-plugin-media

Expand Down Expand Up @@ -5563,6 +5462,112 @@ angular.module('ngCordova.plugins.media', [])
};
}]);

// install : cordova plugin add https://github.com/floatinghotpot/cordova-plugin-mmedia.git
// link : https://github.com/floatinghotpot/cordova-plugin-mmedia

angular.module('ngCordova.plugins.mMediaAds', [])

.factory('$cordovaMMediaAds', ['$q', '$window', function ($q, $window) {

return {
setOptions: function (options) {
var d = $q.defer();

$window.mMedia.setOptions(options, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

createBanner: function (options) {
var d = $q.defer();

$window.mMedia.createBanner(options, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

removeBanner: function () {
var d = $q.defer();

$window.mMedia.removeBanner(function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

showBanner: function (position) {
var d = $q.defer();

$window.mMedia.showBanner(position, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

showBannerAtXY: function (x, y) {
var d = $q.defer();

$window.mMedia.showBannerAtXY(x, y, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

hideBanner: function () {
var d = $q.defer();

$window.mMedia.hideBanner(function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

prepareInterstitial: function (options) {
var d = $q.defer();

$window.mMedia.prepareInterstitial(options, function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
},

showInterstitial: function () {
var d = $q.defer();

$window.mMedia.showInterstitial(function () {
d.resolve();
}, function () {
d.reject();
});

return d.promise;
}
};
}]);

// install : cordova plugin add https://github.com/floatinghotpot/cordova-mobfox-pro.git
// link : https://github.com/floatinghotpot/cordova-mobfox-pro

Expand Down
6 changes: 3 additions & 3 deletions demo/www/lib/ngCordova/dist/ng-cordova.min.js

Large diffs are not rendered by default.

Loading