cordova-admob-tomitank 1.0.3 → 1.0.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,8 +1,8 @@
1
1
  # [Cordova AdMob tomitank]
2
2
 
3
3
  Based on AdMob Plus Cordova with updated SDK-s
4
- - Android: 22.0.0
5
- - iOS: 10.6.0
4
+ - Android: 24.4.0
5
+ - iOS: 11.13.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)
8
8
 
package/package.json CHANGED
@@ -1,73 +1,73 @@
1
- {
2
- "name": "cordova-admob-tomitank",
3
- "version": "1.0.3",
4
- "description": "Trustable Google AdMob Cordova Plugin",
5
- "main": "lib/index.js",
6
- "module": "esm/index.js",
7
- "typings": "esm/index.d.ts",
8
- "scripts": {
9
- "build": "nx build",
10
- "prepublishOnly": "nx build",
11
- "version": "npx cordova-plus plugin version",
12
- "test": "cordova-plus plugin test"
13
- },
14
- "dependencies": {
15
- "fast-glob": "^3.2.11",
16
- "fs-extra": "^10.1.0",
17
- "plist": "^3.0.6",
18
- "replace-in-file": "^6.3.5"
19
- },
20
- "devDependencies": {
21
- "@admob-tomitank-internal/rollup-config": "file:internal/rollup-config",
22
- "@tsconfig/node10": "^1.0.9",
23
- "@types/cordova": "^0.0.34",
24
- "@types/fs-extra": "^11.0.1",
25
- "@types/plist": "^3.0.2",
26
- "cordova": "11.0.0",
27
- "cordova-plus": "^0.7.0",
28
- "cordova-ts-hook": "^0.0.3",
29
- "nx": "16.1.4",
30
- "nx-cloud": "latest",
31
- "rollup": "^2.78.0",
32
- "typescript": "~4.7.4",
33
- "tslib": "^2.5.0"
34
- },
35
- "author": "tomitank",
36
- "license": "MIT",
37
- "repository": "tomitank/cordova-admob-tomitank",
38
- "homepage": "https://admob-plus.github.io/docs/cordova",
39
- "funding": "https://github.com/sponsors/tomitank",
40
- "files": [
41
- "*.ts",
42
- "*.md",
43
- "*.xml",
44
- "esm",
45
- "lib",
46
- "scripts",
47
- "src",
48
- "ts",
49
- "www",
50
- "!**/*.tsbuildinfo"
51
- ],
52
- "keywords": [
53
- "cordova",
54
- "admob",
55
- "plugin",
56
- "tomitank",
57
- "ecosystem:cordova",
58
- "cordova-android",
59
- "cordova-ios",
60
- "monetization",
61
- "typescript"
62
- ],
63
- "cordova": {
64
- "id": "cordova-admob-tomitank",
65
- "platforms": [
66
- "android",
67
- "ios"
68
- ]
69
- },
70
- "nx": {
71
- "targets": {}
72
- }
73
- }
1
+ {
2
+ "name": "cordova-admob-tomitank",
3
+ "version": "1.0.4",
4
+ "description": "Trustable Google AdMob Cordova Plugin",
5
+ "main": "lib/index.js",
6
+ "module": "esm/index.js",
7
+ "typings": "esm/index.d.ts",
8
+ "scripts": {
9
+ "build": "nx build",
10
+ "prepublishOnly": "nx build",
11
+ "version": "npx cordova-plus plugin version",
12
+ "test": "cordova-plus plugin test"
13
+ },
14
+ "dependencies": {
15
+ "fast-glob": "^3.2.11",
16
+ "fs-extra": "^10.1.0",
17
+ "plist": "^3.0.6",
18
+ "replace-in-file": "^6.3.5"
19
+ },
20
+ "devDependencies": {
21
+ "@admob-tomitank-internal/rollup-config": "file:internal/rollup-config",
22
+ "@tsconfig/node10": "^1.0.9",
23
+ "@types/cordova": "^0.0.34",
24
+ "@types/fs-extra": "^11.0.1",
25
+ "@types/plist": "^3.0.2",
26
+ "cordova": "11.0.0",
27
+ "cordova-plus": "^0.7.0",
28
+ "cordova-ts-hook": "^0.0.3",
29
+ "nx": "16.1.4",
30
+ "nx-cloud": "latest",
31
+ "rollup": "^2.78.0",
32
+ "typescript": "~4.7.4",
33
+ "tslib": "^2.5.0"
34
+ },
35
+ "author": "tomitank",
36
+ "license": "MIT",
37
+ "repository": "tomitank/cordova-admob-tomitank",
38
+ "homepage": "https://admob-plus.github.io/docs/cordova",
39
+ "funding": "https://github.com/sponsors/tomitank",
40
+ "files": [
41
+ "*.ts",
42
+ "*.md",
43
+ "*.xml",
44
+ "esm",
45
+ "lib",
46
+ "scripts",
47
+ "src",
48
+ "ts",
49
+ "www",
50
+ "!**/*.tsbuildinfo"
51
+ ],
52
+ "keywords": [
53
+ "cordova",
54
+ "admob",
55
+ "plugin",
56
+ "tomitank",
57
+ "ecosystem:cordova",
58
+ "cordova-android",
59
+ "cordova-ios",
60
+ "monetization",
61
+ "typescript"
62
+ ],
63
+ "cordova": {
64
+ "id": "cordova-admob-tomitank",
65
+ "platforms": [
66
+ "android",
67
+ "ios"
68
+ ]
69
+ },
70
+ "nx": {
71
+ "targets": {}
72
+ }
73
+ }
package/plugin.xml CHANGED
@@ -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="22.0.0" />
23
+ <preference name="PLAY_SERVICES_VERSION" default="24.4.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" />
@@ -314,7 +314,7 @@
314
314
  <source url="https://cdn.cocoapods.org/" />
315
315
  </config>
316
316
  <pods use-frameworks="true">
317
- <pod name="Google-Mobile-Ads-SDK" spec="~> 10.6.0" />
317
+ <pod name="Google-Mobile-Ads-SDK" spec="~> 11.13.0" />
318
318
  </pods>
319
319
  </podspec>
320
320
  </platform>
@@ -69,4 +69,4 @@ class AMBAdBase: AMBCoreAd {
69
69
  func emit(_ eventName: String, _ nativeAd: GADNativeAd) {
70
70
  plugin.emit(eventName, data: ["adId": nativeAd.hashValue])
71
71
  }
72
- }
72
+ }
@@ -3,30 +3,17 @@ import GoogleMobileAds
3
3
 
4
4
  class AMBAppOpenAd: AMBAdBase, GADFullScreenContentDelegate {
5
5
 
6
- let orientation: UIInterfaceOrientation
7
-
8
6
  var mAd: GADAppOpenAd?
9
7
 
10
- init(id: Int, adUnitId: String, adRequest: GADRequest, orientation: UIInterfaceOrientation) {
11
- self.orientation = orientation
12
-
13
- super.init(id: id, adUnitId: adUnitId, adRequest: adRequest)
14
- }
15
-
16
8
  convenience init?(_ ctx: AMBContext) {
17
9
  guard let id = ctx.optId(),
18
10
  let adUnitId = ctx.optAdUnitID()
19
11
  else {
20
12
  return nil
21
13
  }
22
- var orientation = UIInterfaceOrientation.portrait
23
- if let v = ctx.opts?.value(forKey: "orientation") as? Int {
24
- orientation = UIInterfaceOrientation(rawValue: v)!
25
- }
26
14
  self.init(id: id,
27
15
  adUnitId: adUnitId,
28
- adRequest: ctx.optGADRequest(),
29
- orientation: orientation)
16
+ adRequest: ctx.optGADRequest())
30
17
  }
31
18
 
32
19
  deinit {
@@ -43,7 +30,6 @@ class AMBAppOpenAd: AMBAdBase, GADFullScreenContentDelegate {
43
30
  GADAppOpenAd.load(
44
31
  withAdUnitID: self.adUnitId,
45
32
  request: adRequest,
46
- orientation: self.orientation,
47
33
  completionHandler: { (ad, error) in
48
34
  if error != nil {
49
35
  self.emit(AMBEvents.adLoadFail, error!)
@@ -84,4 +70,4 @@ class AMBAppOpenAd: AMBAdBase, GADFullScreenContentDelegate {
84
70
  mAd?.fullScreenContentDelegate = nil
85
71
  mAd = nil
86
72
  }
87
- }
73
+ }
@@ -127,7 +127,7 @@ class AMBBanner: AMBAdBase, GADBannerViewDelegate, GADAdSizeDelegate {
127
127
  var bannerView: GADBannerView!
128
128
  let placeholder = AMBBannerPlaceholder()
129
129
 
130
- init(id: Int, adUnitId: String, adSize: GADAdSize, adRequest: GADRequest, position: String, offset: CGFloat?) {
130
+ init(id: String, adUnitId: String, adSize: GADAdSize, adRequest: GADRequest, position: String, offset: CGFloat?) {
131
131
  self.adSize = adSize
132
132
  self.position = position
133
133
  self.offset = offset
@@ -160,7 +160,11 @@ class AMBContext: AMBCoreContext {
160
160
  return options
161
161
  }
162
162
 
163
+ func optWebviewGoto() -> String {
164
+ return command.argument(at: 0) as! String
165
+ }
166
+
163
167
  func sendResult(_ message: CDVPluginResult?) {
164
168
  self.commandDelegate.send(message, callbackId: command.callbackId)
165
169
  }
166
- }
170
+ }
@@ -14,7 +14,7 @@ extension AMBHelperAdapter {
14
14
  }
15
15
 
16
16
  class AMBHelper {
17
- static let window = UIApplication.shared.keyWindow!
17
+ static let window = UIApplication.shared.windows.first(where: { $0.isKeyWindow })!
18
18
 
19
19
  static var topAnchor: NSLayoutYAxisAnchor {
20
20
  if #available(iOS 11.0, *) {
@@ -77,8 +77,8 @@ extension AMBCoreContext {
77
77
  return optFloat("appVolume")
78
78
  }
79
79
 
80
- func optId() -> Int? {
81
- return optInt("id")
80
+ func optId() -> String? {
81
+ return optString("id")
82
82
  }
83
83
 
84
84
  func optPosition() -> String {
@@ -102,7 +102,7 @@ extension AMBCoreContext {
102
102
  if let ad = optAd() {
103
103
  return ad
104
104
  } else {
105
- reject("Ad not found: \(optId() ?? -1)")
105
+ reject("Ad not found: \(optId() ?? "-")")
106
106
  return nil
107
107
  }
108
108
  }
@@ -179,16 +179,20 @@ extension AMBCoreContext {
179
179
  requestConfiguration.maxAdContentRating = maxAdContentRating
180
180
  }
181
181
  if let tag = optChildDirectedTreatmentTag() {
182
- requestConfiguration.tag(forChildDirectedTreatment: tag)
182
+ requestConfiguration.tagForChildDirectedTreatment = NSNumber(value: tag)
183
183
  }
184
184
  if let tag = optUnderAgeOfConsentTag() {
185
- requestConfiguration.tagForUnderAge(ofConsent: tag)
185
+ requestConfiguration.tagForUnderAgeOfConsent = NSNumber(value: tag)
186
186
  }
187
187
  if let testDevices = optTestDeviceIds() {
188
188
  requestConfiguration.testDeviceIdentifiers = testDevices
189
189
  }
190
190
  if let sameAppKey = optBool("sameAppKey") {
191
- requestConfiguration.setSameAppKeyEnabled(sameAppKey)
191
+ requestConfiguration.setPublisherFirstPartyIDEnabled(sameAppKey)
192
+ }
193
+ if let
194
+ publisherFirstPartyIDEnabled = optBool("publisherFirstPartyIDEnabled") {
195
+ requestConfiguration.setPublisherFirstPartyIDEnabled(publisherFirstPartyIDEnabled)
192
196
  }
193
197
 
194
198
  resolve()
@@ -196,13 +200,13 @@ extension AMBCoreContext {
196
200
  }
197
201
 
198
202
  class AMBCoreAd: NSObject {
199
- static var ads = [Int: AMBCoreAd]()
203
+ static var ads = [String: AMBCoreAd]()
200
204
 
201
- let id: Int
205
+ let id: String
202
206
  let adUnitId: String
203
207
  let adRequest: GADRequest
204
208
 
205
- init(id: Int, adUnitId: String, adRequest: GADRequest) {
209
+ init(id: String, adUnitId: String, adRequest: GADRequest) {
206
210
  self.id = id
207
211
  self.adUnitId = adUnitId
208
212
  self.adRequest = adRequest
@@ -229,4 +233,4 @@ class AMBCoreAd: NSObject {
229
233
  }
230
234
  }
231
235
 
232
- class AMBBannerPlaceholder: UIView {}
236
+ class AMBBannerPlaceholder: UIView {}
@@ -25,7 +25,7 @@ class AMBNativeAd: AMBAdBase, GADNativeAdLoaderDelegate, GADNativeAdDelegate {
25
25
  return viewProvider.createView(mAd!)
26
26
  }()
27
27
 
28
- init(id: Int, adUnitId: String, adRequest: GADRequest, viewProvider: AMBNativeAdViewProvider) {
28
+ init(id: String, adUnitId: String, adRequest: GADRequest, viewProvider: AMBNativeAdViewProvider) {
29
29
  self.viewProvider = viewProvider
30
30
 
31
31
  super.init(id: id, adUnitId: adUnitId, adRequest: adRequest)
@@ -125,4 +125,4 @@ class AMBNativeAd: AMBAdBase, GADNativeAdLoaderDelegate, GADNativeAdDelegate {
125
125
  // The native ad will cause the application to become inactive and
126
126
  // open a new application.
127
127
  }
128
- }
128
+ }
@@ -41,25 +41,7 @@ class AMBPlugin: CDVPlugin {
41
41
 
42
42
  @objc func configRequest(_ command: CDVInvokedUrlCommand) {
43
43
  let ctx = AMBContext(command)
44
- let requestConfiguration = GADMobileAds.sharedInstance().requestConfiguration
45
-
46
- if let maxAdContentRating = ctx.optMaxAdContentRating() {
47
- requestConfiguration.maxAdContentRating = maxAdContentRating
48
- }
49
-
50
- if let tag = ctx.optChildDirectedTreatmentTag() {
51
- requestConfiguration.tag(forChildDirectedTreatment: tag)
52
- }
53
-
54
- if let tag = ctx.optUnderAgeOfConsentTag() {
55
- requestConfiguration.tagForUnderAge(ofConsent: tag)
56
- }
57
-
58
- if let testDevices = ctx.optTestDeviceIds() {
59
- requestConfiguration.testDeviceIdentifiers = testDevices
60
- }
61
-
62
- ctx.resolve()
44
+ ctx.configure()
63
45
  }
64
46
 
65
47
  @objc func requestTrackingAuthorization(_ command: CDVInvokedUrlCommand) {
@@ -76,9 +58,8 @@ class AMBPlugin: CDVPlugin {
76
58
 
77
59
  @objc func start(_ command: CDVInvokedUrlCommand) {
78
60
  let ctx = AMBContext(command)
79
-
80
61
  GADMobileAds.sharedInstance().start(completionHandler: { _ in
81
- ctx.resolve(["version": GADMobileAds.sharedInstance().sdkVersion])
62
+ ctx.resolve(["version": GADGetStringFromVersionNumber(GADMobileAds.sharedInstance().versionNumber)])
82
63
  })
83
64
  }
84
65
 
@@ -129,7 +110,7 @@ class AMBPlugin: CDVPlugin {
129
110
  if ad != nil {
130
111
  ctx.resolve()
131
112
  } else {
132
- ctx.reject("fail to create ad: \(ctx.optId() ?? -1)")
113
+ ctx.reject("fail to create ad: \(ctx.optId() ?? "-")")
133
114
  }
134
115
  } else {
135
116
  ctx.reject()
@@ -190,9 +171,21 @@ class AMBPlugin: CDVPlugin {
190
171
  }
191
172
  }
192
173
 
174
+ @objc func webviewGoto(_ command: CDVInvokedUrlCommand) {
175
+ let ctx = AMBContext(command)
176
+
177
+ DispatchQueue.main.async {
178
+ if let url = URL(string: ctx.optWebviewGoto()+"#from_webview_goto") {
179
+ let webView = self.webViewEngine.engineWebView as! WKWebView
180
+ webView.load(URLRequest(url: url))
181
+ }
182
+ }
183
+ }
184
+
193
185
  func emit(_ eventName: String, data: Any = NSNull()) {
194
186
  let result = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: ["type": eventName, "data": data])
195
187
  result?.setKeepCallbackAs(true)
196
188
  self.commandDelegate.send(result, callbackId: readyCallbackId)
197
189
  }
198
- }
190
+
191
+ }
package/www/admob.js CHANGED
@@ -7,117 +7,122 @@ 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]; }
19
- });
20
- }
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]; }
21
19
  });
22
- }
23
- n["default"] = e;
24
- return Object.freeze(n);
20
+ }
21
+ });
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 */
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));
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
+ });
119
81
  }
120
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));
119
+ }
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
+
121
126
  // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
122
127
  var NativeActions;
123
128
  (function (NativeActions) {