cordova-admob-tomitank 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # [Cordova AdMob tomitank]
2
2
 
3
3
  Based on AdMob Plus Cordova with updated SDK-s
4
- - Android: 24.4.0
4
+ - Android: 23.6.0 (since 24.0.0 is bad for Android API level 21)
5
5
  - iOS: 12.7.0
6
6
 
7
7
  [![](https://img.shields.io/static/v1?label=Sponsor%20Me&style=for-the-badge&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/tomitank)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-admob-tomitank",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Trustable Google AdMob Cordova Plugin",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="cordova-admob-tomitank" version="1.1.2"
2
+ <plugin id="cordova-admob-tomitank" version="1.1.4"
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  xmlns:android="http://schemas.android.com/apk/res/android">
5
5
  <name>cordova-admob-tomitank</name>
@@ -20,7 +20,7 @@
20
20
 
21
21
  <platform name="android">
22
22
  <preference name="APP_ID_ANDROID" default="ca-app-pub-xxx~yyy" />
23
- <preference name="PLAY_SERVICES_VERSION" default="24.4.0" />
23
+ <preference name="PLAY_SERVICES_VERSION" default="23.6.0" />
24
24
 
25
25
  <config-file target="AndroidManifest.xml" parent="/manifest/application">
26
26
  <activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:excludeFromRecents="true" android:name="com.google.android.gms.ads.AdActivity" android:noHistory="true" />
@@ -59,7 +59,7 @@ class AMBPlugin: CDVPlugin {
59
59
  @objc func start(_ command: CDVInvokedUrlCommand) {
60
60
  let ctx = AMBContext(command)
61
61
  MobileAds.shared.start(completionHandler: { _ in
62
- ctx.resolve(["version": string(MobileAds.shared.versionNumber)])
62
+ ctx.resolve(["version": string(for: MobileAds.shared.versionNumber)])
63
63
  })
64
64
  }
65
65
 
package/www/admob.js CHANGED
@@ -7,122 +7,117 @@ var exec = require('cordova/exec');
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
9
9
  function _interopNamespace(e) {
10
- if (e && e.__esModule) return e;
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
19
21
  });
20
- }
21
- });
22
- }
23
- n["default"] = e;
24
- return Object.freeze(n);
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
25
  }
26
26
 
27
27
  var cordova__namespace = /*#__PURE__*/_interopNamespace(cordova$1);
28
28
  var channel__default = /*#__PURE__*/_interopDefaultLegacy(channel);
29
29
  var exec__default = /*#__PURE__*/_interopDefaultLegacy(exec);
30
30
 
31
- /******************************************************************************
32
- Copyright (c) Microsoft Corporation.
33
-
34
- Permission to use, copy, modify, and/or distribute this software for any
35
- purpose with or without fee is hereby granted.
36
-
37
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
- PERFORMANCE OF THIS SOFTWARE.
44
- ***************************************************************************** */
45
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
46
-
47
- var extendStatics = function(d, b) {
48
- extendStatics = Object.setPrototypeOf ||
49
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
51
- return extendStatics(d, b);
52
- };
53
-
54
- function __extends(d, b) {
55
- if (typeof b !== "function" && b !== null)
56
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57
- extendStatics(d, b);
58
- function __() { this.constructor = d; }
59
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60
- }
61
-
62
- var __assign = function() {
63
- __assign = Object.assign || function __assign(t) {
64
- for (var s, i = 1, n = arguments.length; i < n; i++) {
65
- s = arguments[i];
66
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
67
- }
68
- return t;
69
- };
70
- return __assign.apply(this, arguments);
71
- };
72
-
73
- function __awaiter(thisArg, _arguments, P, generator) {
74
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
75
- return new (P || (P = Promise))(function (resolve, reject) {
76
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
77
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
78
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
79
- step((generator = generator.apply(thisArg, _arguments || [])).next());
80
- });
81
- }
82
-
83
- function __generator(thisArg, body) {
84
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
85
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
86
- function verb(n) { return function (v) { return step([n, v]); }; }
87
- function step(op) {
88
- if (f) throw new TypeError("Generator is already executing.");
89
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
90
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
91
- if (y = 0, t) op = [op[0] & 2, t.value];
92
- switch (op[0]) {
93
- case 0: case 1: t = op; break;
94
- case 4: _.label++; return { value: op[1], done: false };
95
- case 5: _.label++; y = op[1]; op = [0]; continue;
96
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
97
- default:
98
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
99
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
100
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
101
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
102
- if (t[2]) _.ops.pop();
103
- _.trys.pop(); continue;
104
- }
105
- op = body.call(thisArg, _);
106
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
107
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
108
- }
109
- }
110
-
111
- function __spreadArray(to, from, pack) {
112
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
113
- if (ar || !(i in from)) {
114
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
115
- ar[i] = from[i];
116
- }
117
- }
118
- return to.concat(ar || Array.prototype.slice.call(from));
31
+ /******************************************************************************
32
+ Copyright (c) Microsoft Corporation.
33
+
34
+ Permission to use, copy, modify, and/or distribute this software for any
35
+ purpose with or without fee is hereby granted.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
+ PERFORMANCE OF THIS SOFTWARE.
44
+ ***************************************************************************** */
45
+ /* global Reflect, Promise */
46
+
47
+ var extendStatics = function(d, b) {
48
+ extendStatics = Object.setPrototypeOf ||
49
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
51
+ return extendStatics(d, b);
52
+ };
53
+
54
+ function __extends(d, b) {
55
+ if (typeof b !== "function" && b !== null)
56
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57
+ extendStatics(d, b);
58
+ function __() { this.constructor = d; }
59
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60
+ }
61
+
62
+ var __assign = function() {
63
+ __assign = Object.assign || function __assign(t) {
64
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
65
+ s = arguments[i];
66
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
67
+ }
68
+ return t;
69
+ };
70
+ return __assign.apply(this, arguments);
71
+ };
72
+
73
+ function __awaiter(thisArg, _arguments, P, generator) {
74
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
75
+ return new (P || (P = Promise))(function (resolve, reject) {
76
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
77
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
78
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
79
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
80
+ });
81
+ }
82
+
83
+ function __generator(thisArg, body) {
84
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
85
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
86
+ function verb(n) { return function (v) { return step([n, v]); }; }
87
+ function step(op) {
88
+ if (f) throw new TypeError("Generator is already executing.");
89
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
90
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
91
+ if (y = 0, t) op = [op[0] & 2, t.value];
92
+ switch (op[0]) {
93
+ case 0: case 1: t = op; break;
94
+ case 4: _.label++; return { value: op[1], done: false };
95
+ case 5: _.label++; y = op[1]; op = [0]; continue;
96
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
97
+ default:
98
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
99
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
100
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
101
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
102
+ if (t[2]) _.ops.pop();
103
+ _.trys.pop(); continue;
104
+ }
105
+ op = body.call(thisArg, _);
106
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
107
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
108
+ }
109
+ }
110
+
111
+ function __spreadArray(to, from, pack) {
112
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
113
+ if (ar || !(i in from)) {
114
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
115
+ ar[i] = from[i];
116
+ }
117
+ }
118
+ return to.concat(ar || Array.prototype.slice.call(from));
119
119
  }
120
120
 
121
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
122
- var e = new Error(message);
123
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
124
- };
125
-
126
121
  // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
127
122
  var NativeActions;
128
123
  (function (NativeActions) {