cordova-admob-tomitank 1.1.5 → 1.1.7

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/esm/api.d.ts CHANGED
@@ -21,7 +21,7 @@ export declare class MobileAd<T extends MobileAdOptions = MobileAdOptions> {
21
21
  private _created;
22
22
  private _init;
23
23
  constructor(opts: T);
24
- static getAdById(id: string): any;
24
+ static getAdById(id: string): MobileAd<MobileAdOptions>;
25
25
  get adUnitId(): string;
26
26
  on(...args: Parameters<typeof document.addEventListener>): () => void;
27
27
  protected isLoaded(): Promise<boolean>;
package/esm/app-open.d.ts CHANGED
@@ -1,17 +1,7 @@
1
1
  import { MobileAd, MobileAdOptions } from './shared';
2
- declare enum AppOpenAdOrientation {
3
- Portrait = 1,
4
- PortraitUpsideDown = 2,
5
- LandscapeRight = 3,
6
- LandscapeLeft = 4
7
- }
8
- export default class AppOpenAd extends MobileAd<MobileAdOptions & {
9
- orientation: AppOpenAdOrientation;
10
- }> {
2
+ export default class AppOpenAd extends MobileAd<MobileAdOptions> {
11
3
  static cls: string;
12
- static readonly Orientation: typeof AppOpenAdOrientation;
13
4
  isLoaded(): Promise<boolean>;
14
5
  load(): Promise<void>;
15
6
  show(): Promise<boolean>;
16
7
  }
17
- export {};
package/esm/app-open.js CHANGED
@@ -50,13 +50,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50
50
  }
51
51
  };
52
52
  import { MobileAd } from './shared';
53
- var AppOpenAdOrientation;
54
- (function (AppOpenAdOrientation) {
55
- AppOpenAdOrientation[AppOpenAdOrientation["Portrait"] = 1] = "Portrait";
56
- AppOpenAdOrientation[AppOpenAdOrientation["PortraitUpsideDown"] = 2] = "PortraitUpsideDown";
57
- AppOpenAdOrientation[AppOpenAdOrientation["LandscapeRight"] = 3] = "LandscapeRight";
58
- AppOpenAdOrientation[AppOpenAdOrientation["LandscapeLeft"] = 4] = "LandscapeLeft";
59
- })(AppOpenAdOrientation || (AppOpenAdOrientation = {}));
60
53
  var AppOpenAd = /** @class */ (function (_super) {
61
54
  __extends(AppOpenAd, _super);
62
55
  function AppOpenAd() {
@@ -76,7 +69,6 @@ var AppOpenAd = /** @class */ (function (_super) {
76
69
  });
77
70
  };
78
71
  AppOpenAd.cls = 'AppOpenAd';
79
- AppOpenAd.Orientation = AppOpenAdOrientation;
80
72
  return AppOpenAd;
81
73
  }(MobileAd));
82
74
  export default AppOpenAd;
@@ -1 +1 @@
1
- {"version":3,"file":"app-open.js","sourceRoot":"","sources":["../src/www/app-open.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAmB,MAAM,UAAU,CAAA;AAEpD,IAAK,oBAKJ;AALD,WAAK,oBAAoB;IACvB,uEAAY,CAAA;IACZ,2FAAsB,CAAA;IACtB,mFAAkB,CAAA;IAClB,iFAAiB,CAAA;AACnB,CAAC,EALI,oBAAoB,KAApB,oBAAoB,QAKxB;AAED;IAAuC,6BAEtC;IAFD;;IAiBA,CAAC;IAXQ,4BAAQ,GAAf;QACE,OAAO,iBAAM,QAAQ,WAAE,CAAA;IACzB,CAAC;IAEM,wBAAI,GAAX;QACE,OAAO,iBAAM,IAAI,WAAE,CAAA;IACrB,CAAC;IAEK,wBAAI,GAAV;;;gBACE,sBAAO,iBAAM,IAAI,WAAsB,EAAA;;;KACxC;IAbM,aAAG,GAAG,WAAW,CAAA;IACR,qBAAW,GAAG,oBAAoB,CAAA;IAapD,gBAAC;CAAA,AAjBD,CAAuC,QAAQ,GAiB9C;eAjBoB,SAAS"}
1
+ {"version":3,"file":"app-open.js","sourceRoot":"","sources":["../src/www/app-open.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAmB,MAAM,UAAU,CAAA;AAEpD;IAAuC,6BAEtC;IAFD;;IAgBA,CAAC;IAXQ,4BAAQ,GAAf;QACE,OAAO,iBAAM,QAAQ,WAAE,CAAA;IACzB,CAAC;IAEM,wBAAI,GAAX;QACE,OAAO,iBAAM,IAAI,WAAE,CAAA;IACrB,CAAC;IAEK,wBAAI,GAAV;;;gBACE,sBAAO,iBAAM,IAAI,WAAsB,EAAA;;;KACxC;IAZM,aAAG,GAAG,WAAW,CAAA;IAa1B,gBAAC;CAAA,AAhBD,CAAuC,QAAQ,GAgB9C;eAhBoB,SAAS"}
package/lib/api.d.ts CHANGED
@@ -21,7 +21,7 @@ export declare class MobileAd<T extends MobileAdOptions = MobileAdOptions> {
21
21
  private _created;
22
22
  private _init;
23
23
  constructor(opts: T);
24
- static getAdById(id: string): any;
24
+ static getAdById(id: string): MobileAd<MobileAdOptions>;
25
25
  get adUnitId(): string;
26
26
  on(...args: Parameters<typeof document.addEventListener>): () => void;
27
27
  protected isLoaded(): Promise<boolean>;
package/lib/app-open.d.ts CHANGED
@@ -1,17 +1,7 @@
1
1
  import { MobileAd, MobileAdOptions } from './shared';
2
- declare enum AppOpenAdOrientation {
3
- Portrait = 1,
4
- PortraitUpsideDown = 2,
5
- LandscapeRight = 3,
6
- LandscapeLeft = 4
7
- }
8
- export default class AppOpenAd extends MobileAd<MobileAdOptions & {
9
- orientation: AppOpenAdOrientation;
10
- }> {
2
+ export default class AppOpenAd extends MobileAd<MobileAdOptions> {
11
3
  static cls: string;
12
- static readonly Orientation: typeof AppOpenAdOrientation;
13
4
  isLoaded(): Promise<boolean>;
14
5
  load(): Promise<void>;
15
6
  show(): Promise<boolean>;
16
7
  }
17
- export {};
package/lib/app-open.js CHANGED
@@ -52,13 +52,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
52
52
  };
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  var shared_1 = require("./shared");
55
- var AppOpenAdOrientation;
56
- (function (AppOpenAdOrientation) {
57
- AppOpenAdOrientation[AppOpenAdOrientation["Portrait"] = 1] = "Portrait";
58
- AppOpenAdOrientation[AppOpenAdOrientation["PortraitUpsideDown"] = 2] = "PortraitUpsideDown";
59
- AppOpenAdOrientation[AppOpenAdOrientation["LandscapeRight"] = 3] = "LandscapeRight";
60
- AppOpenAdOrientation[AppOpenAdOrientation["LandscapeLeft"] = 4] = "LandscapeLeft";
61
- })(AppOpenAdOrientation || (AppOpenAdOrientation = {}));
62
55
  var AppOpenAd = /** @class */ (function (_super) {
63
56
  __extends(AppOpenAd, _super);
64
57
  function AppOpenAd() {
@@ -78,7 +71,6 @@ var AppOpenAd = /** @class */ (function (_super) {
78
71
  });
79
72
  };
80
73
  AppOpenAd.cls = 'AppOpenAd';
81
- AppOpenAd.Orientation = AppOpenAdOrientation;
82
74
  return AppOpenAd;
83
75
  }(shared_1.MobileAd));
84
76
  exports.default = AppOpenAd;
@@ -1 +1 @@
1
- {"version":3,"file":"app-open.js","sourceRoot":"","sources":["../src/www/app-open.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAoD;AAEpD,IAAK,oBAKJ;AALD,WAAK,oBAAoB;IACvB,uEAAY,CAAA;IACZ,2FAAsB,CAAA;IACtB,mFAAkB,CAAA;IAClB,iFAAiB,CAAA;AACnB,CAAC,EALI,oBAAoB,KAApB,oBAAoB,QAKxB;AAED;IAAuC,6BAEtC;IAFD;;IAiBA,CAAC;IAXQ,4BAAQ,GAAf;QACE,OAAO,iBAAM,QAAQ,WAAE,CAAA;IACzB,CAAC;IAEM,wBAAI,GAAX;QACE,OAAO,iBAAM,IAAI,WAAE,CAAA;IACrB,CAAC;IAEK,wBAAI,GAAV;;;gBACE,sBAAO,iBAAM,IAAI,WAAsB,EAAA;;;KACxC;IAbM,aAAG,GAAG,WAAW,CAAA;IACR,qBAAW,GAAG,oBAAoB,CAAA;IAapD,gBAAC;CAAA,AAjBD,CAAuC,iBAAQ,GAiB9C;kBAjBoB,SAAS"}
1
+ {"version":3,"file":"app-open.js","sourceRoot":"","sources":["../src/www/app-open.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAoD;AAEpD;IAAuC,6BAEtC;IAFD;;IAgBA,CAAC;IAXQ,4BAAQ,GAAf;QACE,OAAO,iBAAM,QAAQ,WAAE,CAAA;IACzB,CAAC;IAEM,wBAAI,GAAX;QACE,OAAO,iBAAM,IAAI,WAAE,CAAA;IACrB,CAAC;IAEK,wBAAI,GAAV;;;gBACE,sBAAO,iBAAM,IAAI,WAAsB,EAAA;;;KACxC;IAZM,aAAG,GAAG,WAAW,CAAA;IAa1B,gBAAC;CAAA,AAhBD,CAAuC,iBAAQ,GAgB9C;kBAhBoB,SAAS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-admob-tomitank",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
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.5"
2
+ <plugin id="cordova-admob-tomitank" version="1.1.7"
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>
@@ -27,6 +27,7 @@ import admob.plus.cordova.ads.Rewarded;
27
27
  import admob.plus.cordova.ads.RewardedInterstitial;
28
28
  import admob.plus.core.GenericAd;
29
29
  import admob.plus.core.Helper;
30
+ import admob.plus.core.Ad;
30
31
 
31
32
  import static admob.plus.core.Helper.ads;
32
33
 
@@ -195,16 +196,16 @@ public class AdMob extends CordovaPlugin implements Helper.Adapter {
195
196
  public void onConfigurationChanged(Configuration newConfig) {
196
197
  super.onConfigurationChanged(newConfig);
197
198
 
198
- for (int i = 0; i < ads.size(); i++) {
199
- AdBase ad = (AdBase) ads.valueAt(i);
199
+ for (Map.Entry<String, Ad> entry : ads.entrySet()) {
200
+ AdBase ad = (AdBase) entry.getValue();
200
201
  ad.onConfigurationChanged(newConfig);
201
202
  }
202
203
  }
203
204
 
204
205
  @Override
205
206
  public void onPause(boolean multitasking) {
206
- for (int i = 0; i < ads.size(); i++) {
207
- AdBase ad = (AdBase) ads.valueAt(i);
207
+ for (Map.Entry<String, Ad> entry : ads.entrySet()) {
208
+ AdBase ad = (AdBase) entry.getValue();
208
209
  ad.onPause(multitasking);
209
210
  }
210
211
  super.onPause(multitasking);
@@ -213,8 +214,8 @@ public class AdMob extends CordovaPlugin implements Helper.Adapter {
213
214
  @Override
214
215
  public void onResume(boolean multitasking) {
215
216
  super.onResume(multitasking);
216
- for (int i = 0; i < ads.size(); i++) {
217
- AdBase ad = (AdBase) ads.valueAt(i);
217
+ for (Map.Entry<String, Ad> entry : ads.entrySet()) {
218
+ AdBase ad = (AdBase) entry.getValue();
218
219
  ad.onResume(multitasking);
219
220
  }
220
221
  }
@@ -223,8 +224,8 @@ public class AdMob extends CordovaPlugin implements Helper.Adapter {
223
224
  public void onDestroy() {
224
225
  readyCallbackContext = null;
225
226
 
226
- for (int i = 0; i < ads.size(); i++) {
227
- AdBase ad = (AdBase) ads.valueAt(i);
227
+ for (Map.Entry<String, Ad> entry : ads.entrySet()) {
228
+ AdBase ad = (AdBase) entry.getValue();
228
229
  ad.onDestroy();
229
230
  }
230
231
 
@@ -12,16 +12,12 @@ import admob.plus.core.Context;
12
12
 
13
13
  public class AppOpen extends AdBase {
14
14
  private final AdRequest mAdRequest;
15
- private final int mOrientation;
16
15
  private AppOpenAd mAd = null;
17
16
 
18
17
  public AppOpen(ExecuteContext ctx) {
19
18
  super(ctx);
20
19
 
21
20
  mAdRequest = ctx.optAdRequest();
22
-
23
- Integer o = ctx.optInt("orientation");
24
- mOrientation = o == null || o == 1 || o == 2 ? AppOpenAd.APP_OPEN_AD_ORIENTATION_PORTRAIT : AppOpenAd.APP_OPEN_AD_ORIENTATION_LANDSCAPE;
25
21
  }
26
22
 
27
23
  @Override
@@ -38,7 +34,7 @@ public class AppOpen extends AdBase {
38
34
  AppOpenAd.load(getActivity(),
39
35
  adUnitId,
40
36
  mAdRequest,
41
- mOrientation, new AppOpenAd.AppOpenAdLoadCallback() {
37
+ new AppOpenAd.AppOpenAdLoadCallback() {
42
38
  @Override
43
39
  public void onAdLoaded(AppOpenAd ad) {
44
40
  mAd = ad;
@@ -16,10 +16,10 @@ import java.util.Objects;
16
16
  import static admob.plus.core.Helper.ads;
17
17
 
18
18
  public abstract class Ad {
19
- public final int id;
19
+ public final String id;
20
20
  public final String adUnitId;
21
21
 
22
- public Ad(int id, @NonNull String adUnitId) {
22
+ public Ad(String id, @NonNull String adUnitId) {
23
23
  this.id = id;
24
24
  this.adUnitId = adUnitId;
25
25
  ads.put(id, this);
@@ -77,8 +77,8 @@ public interface Context {
77
77
  }
78
78
 
79
79
  @Nullable
80
- default Integer optId() {
81
- return this.optInt("id");
80
+ default String optId() {
81
+ return this.optString("id");
82
82
  }
83
83
 
84
84
  @Nullable
@@ -26,14 +26,14 @@ import java.util.List;
26
26
  import java.util.Map;
27
27
 
28
28
  public class Helper {
29
- public static final SparseArray<Ad> ads = new SparseArray<Ad>();
29
+ public static final Map<String, Ad> ads = new HashMap<>();
30
30
  private final Adapter adapter;
31
31
 
32
32
  public Helper(Adapter adapter) {
33
33
  this.adapter = adapter;
34
34
  }
35
35
 
36
- public static Ad getAd(Integer id) {
36
+ public static Ad getAd(String id) {
37
37
  return ads.get(id);
38
38
  }
39
39
 
package/src/www/api.ts CHANGED
@@ -26,7 +26,7 @@ export async function start() {
26
26
  export class MobileAd<T extends MobileAdOptions = MobileAdOptions> {
27
27
  public static readonly type: string = ''
28
28
 
29
- private static allAds: { [s: number]: MobileAd } = {}
29
+ private static allAds: { [s: string]: MobileAd } = {}
30
30
  private static idCounter = 0
31
31
 
32
32
  public readonly id: string
@@ -1,17 +1,9 @@
1
1
  import { MobileAd, MobileAdOptions } from './shared'
2
2
 
3
- enum AppOpenAdOrientation {
4
- Portrait = 1,
5
- PortraitUpsideDown = 2,
6
- LandscapeRight = 3,
7
- LandscapeLeft = 4,
8
- }
9
-
10
3
  export default class AppOpenAd extends MobileAd<
11
- MobileAdOptions & { orientation: AppOpenAdOrientation }
4
+ MobileAdOptions
12
5
  > {
13
6
  static cls = 'AppOpenAd'
14
- static readonly Orientation = AppOpenAdOrientation
15
7
 
16
8
  public isLoaded() {
17
9
  return super.isLoaded()
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) {
@@ -364,13 +369,6 @@ var TrackingAuthorizationStatus;
364
369
  TrackingAuthorizationStatus[TrackingAuthorizationStatus["authorized"] = 3] = "authorized";
365
370
  })(TrackingAuthorizationStatus || (TrackingAuthorizationStatus = {}));
366
371
 
367
- var AppOpenAdOrientation;
368
- (function (AppOpenAdOrientation) {
369
- AppOpenAdOrientation[AppOpenAdOrientation["Portrait"] = 1] = "Portrait";
370
- AppOpenAdOrientation[AppOpenAdOrientation["PortraitUpsideDown"] = 2] = "PortraitUpsideDown";
371
- AppOpenAdOrientation[AppOpenAdOrientation["LandscapeRight"] = 3] = "LandscapeRight";
372
- AppOpenAdOrientation[AppOpenAdOrientation["LandscapeLeft"] = 4] = "LandscapeLeft";
373
- })(AppOpenAdOrientation || (AppOpenAdOrientation = {}));
374
372
  var AppOpenAd = /** @class */ (function (_super) {
375
373
  __extends(AppOpenAd, _super);
376
374
  function AppOpenAd() {
@@ -390,7 +388,6 @@ var AppOpenAd = /** @class */ (function (_super) {
390
388
  });
391
389
  };
392
390
  AppOpenAd.cls = 'AppOpenAd';
393
- AppOpenAd.Orientation = AppOpenAdOrientation;
394
391
  return AppOpenAd;
395
392
  }(MobileAd));
396
393