@snowplow/react-native-tracker 4.8.0 → 4.8.2

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.
Files changed (55) hide show
  1. package/dist/commonjs/event_store.js +47 -56
  2. package/dist/commonjs/event_store.js.map +1 -1
  3. package/dist/commonjs/package.json +1 -0
  4. package/dist/commonjs/plugins/app_install/index.js +12 -13
  5. package/dist/commonjs/plugins/app_install/index.js.map +1 -1
  6. package/dist/commonjs/plugins/app_lifecycle/index.js +11 -15
  7. package/dist/commonjs/plugins/app_lifecycle/index.js.map +1 -1
  8. package/dist/commonjs/plugins/platform_context/index.js +382 -387
  9. package/dist/commonjs/plugins/platform_context/index.js.map +1 -1
  10. package/dist/commonjs/plugins/session/index.js +34 -39
  11. package/dist/commonjs/plugins/session/index.js.map +1 -1
  12. package/dist/commonjs/tracker.js +32 -37
  13. package/dist/commonjs/tracker.js.map +1 -1
  14. package/dist/commonjs/types.js +76 -0
  15. package/dist/commonjs/types.js.map +1 -1
  16. package/dist/module/event_store.js +47 -56
  17. package/dist/module/event_store.js.map +1 -1
  18. package/dist/module/package.json +1 -0
  19. package/dist/module/plugins/app_install/index.js +12 -13
  20. package/dist/module/plugins/app_install/index.js.map +1 -1
  21. package/dist/module/plugins/app_lifecycle/index.js +11 -15
  22. package/dist/module/plugins/app_lifecycle/index.js.map +1 -1
  23. package/dist/module/plugins/platform_context/index.js +382 -387
  24. package/dist/module/plugins/platform_context/index.js.map +1 -1
  25. package/dist/module/plugins/session/index.js +33 -38
  26. package/dist/module/plugins/session/index.js.map +1 -1
  27. package/dist/module/tracker.js +32 -37
  28. package/dist/module/tracker.js.map +1 -1
  29. package/dist/module/types.js +76 -0
  30. package/dist/module/types.js.map +1 -1
  31. package/dist/typescript/module/src/event_store.d.ts +1 -1
  32. package/dist/typescript/module/src/event_store.d.ts.map +1 -1
  33. package/dist/typescript/module/src/events.d.ts +1 -1
  34. package/dist/typescript/module/src/events.d.ts.map +1 -1
  35. package/dist/typescript/module/src/index.d.ts +3 -3
  36. package/dist/typescript/module/src/index.d.ts.map +1 -1
  37. package/dist/typescript/module/src/plugins/app_context/index.d.ts +1 -1
  38. package/dist/typescript/module/src/plugins/app_context/index.d.ts.map +1 -1
  39. package/dist/typescript/module/src/plugins/app_install/index.d.ts +1 -1
  40. package/dist/typescript/module/src/plugins/app_install/index.d.ts.map +1 -1
  41. package/dist/typescript/module/src/plugins/app_lifecycle/index.d.ts +1 -1
  42. package/dist/typescript/module/src/plugins/app_lifecycle/index.d.ts.map +1 -1
  43. package/dist/typescript/module/src/plugins/deep_links/index.d.ts +1 -1
  44. package/dist/typescript/module/src/plugins/deep_links/index.d.ts.map +1 -1
  45. package/dist/typescript/module/src/plugins/platform_context/index.d.ts +1 -1
  46. package/dist/typescript/module/src/plugins/platform_context/index.d.ts.map +1 -1
  47. package/dist/typescript/module/src/plugins/session/index.d.ts +1 -1
  48. package/dist/typescript/module/src/plugins/session/index.d.ts.map +1 -1
  49. package/dist/typescript/module/src/subject.d.ts +1 -1
  50. package/dist/typescript/module/src/subject.d.ts.map +1 -1
  51. package/dist/typescript/module/src/tracker.d.ts +1 -1
  52. package/dist/typescript/module/src/tracker.d.ts.map +1 -1
  53. package/dist/typescript/module/src/web_view_interface.d.ts +1 -1
  54. package/dist/typescript/module/src/web_view_interface.d.ts.map +1 -1
  55. package/package.json +9 -10
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
4
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
5
5
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
6
6
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
7
7
  import { PlatformContextProperty } from "../../types.js";
@@ -84,7 +84,7 @@ export function newPlatformContextPlugin() {
84
84
  return _newPlatformContextPlugin.apply(this, arguments);
85
85
  }
86
86
  function _newPlatformContextPlugin() {
87
- _newPlatformContextPlugin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
87
+ _newPlatformContextPlugin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
88
88
  var _ref2,
89
89
  _ref2$platformContext,
90
90
  platformContext,
@@ -119,565 +119,564 @@ function _newPlatformContextPlugin() {
119
119
  disablePlatformContext,
120
120
  contexts,
121
121
  _args3 = arguments;
122
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
123
- while (1) switch (_context3.prev = _context3.next) {
122
+ return _regenerator().w(function (_context3) {
123
+ while (1) switch (_context3.n) {
124
124
  case 0:
125
125
  _ref2 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, _ref2$platformContext = _ref2.platformContext, platformContext = _ref2$platformContext === void 0 ? true : _ref2$platformContext, platformContextProperties = _ref2.platformContextProperties, platformContextRetriever = _ref2.platformContextRetriever;
126
126
  refreshPlatformContext = /*#__PURE__*/function () {
127
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
128
- var _platformContextPrope, _platformContextPrope2, _platformContextPrope3, _platformContextPrope4, _platformContextPrope5, _platformContextPrope6, _platformContextPrope7, _platformContextPrope8, _platformContextPrope9, _platformContextPrope10, _platformContextPrope11, _platformContextPrope12, _platformContextPrope13, _platformContextPrope14, _platformContextPrope15, _platformContextPrope16, _ref4, _platformContextPrope17, _platformContextPrope18, _platformContextPrope19;
129
- var constants;
130
- return _regeneratorRuntime().wrap(function _callee$(_context) {
131
- while (1) switch (_context.prev = _context.next) {
127
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
128
+ var _platformContextPrope, _platformContextPrope2, _platformContextPrope3, _platformContextPrope4, _platformContextPrope5, _platformContextPrope6, _platformContextPrope7, _platformContextPrope8, _platformContextPrope9, _platformContextPrope0, _platformContextPrope1, _platformContextPrope10, _platformContextPrope11, _platformContextPrope12, _platformContextPrope13, _platformContextPrope14, _ref4, _platformContextPrope15, _platformContextPrope16, _platformContextPrope17;
129
+ var constants, _t, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9, _t0, _t1, _t10, _t11, _t12, _t13, _t14, _t15, _t16, _t17, _t18, _t19, _t20, _t21, _t22, _t23, _t24, _t25, _t26, _t27, _t28, _t29, _t30, _t31, _t32, _t33, _t34, _t35, _t36, _t37, _t38, _t39, _t40, _t41, _t42, _t43, _t44;
130
+ return _regenerator().w(function (_context) {
131
+ while (1) switch (_context.n) {
132
132
  case 0:
133
133
  constants = Platform.OS === 'ios' ? getIOSConstants() : Platform.OS == 'android' ? getAndroidConstants() : undefined;
134
134
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getDeviceModel)) {
135
- _context.next = 7;
135
+ _context.n = 2;
136
136
  break;
137
137
  }
138
- _context.next = 4;
138
+ _context.n = 1;
139
139
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getDeviceModel();
140
- case 4:
141
- _context.t0 = _context.sent;
142
- _context.next = 8;
140
+ case 1:
141
+ _t = _context.v;
142
+ _context.n = 3;
143
143
  break;
144
- case 7:
145
- _context.t0 = constants === null || constants === void 0 ? void 0 : constants.deviceModel;
146
- case 8:
147
- deviceModel = _context.t0;
144
+ case 2:
145
+ _t = constants === null || constants === void 0 ? void 0 : constants.deviceModel;
146
+ case 3:
147
+ deviceModel = _t;
148
148
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getOsType)) {
149
- _context.next = 15;
149
+ _context.n = 5;
150
150
  break;
151
151
  }
152
- _context.next = 12;
152
+ _context.n = 4;
153
153
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getOsType();
154
- case 12:
155
- _context.t1 = _context.sent;
156
- _context.next = 16;
154
+ case 4:
155
+ _t2 = _context.v;
156
+ _context.n = 6;
157
157
  break;
158
- case 15:
159
- _context.t1 = constants === null || constants === void 0 ? void 0 : constants.osType;
160
- case 16:
161
- osType = _context.t1;
158
+ case 5:
159
+ _t2 = constants === null || constants === void 0 ? void 0 : constants.osType;
160
+ case 6:
161
+ osType = _t2;
162
162
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getDeviceManufacturer)) {
163
- _context.next = 23;
163
+ _context.n = 8;
164
164
  break;
165
165
  }
166
- _context.next = 20;
166
+ _context.n = 7;
167
167
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getDeviceManufacturer();
168
- case 20:
169
- _context.t2 = _context.sent;
170
- _context.next = 24;
168
+ case 7:
169
+ _t3 = _context.v;
170
+ _context.n = 9;
171
171
  break;
172
- case 23:
173
- _context.t2 = constants === null || constants === void 0 ? void 0 : constants.deviceManufacturer;
174
- case 24:
175
- deviceManufacturer = _context.t2;
172
+ case 8:
173
+ _t3 = constants === null || constants === void 0 ? void 0 : constants.deviceManufacturer;
174
+ case 9:
175
+ deviceManufacturer = _t3;
176
176
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getOsVersion)) {
177
- _context.next = 31;
177
+ _context.n = 11;
178
178
  break;
179
179
  }
180
- _context.next = 28;
180
+ _context.n = 10;
181
181
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getOsVersion();
182
- case 28:
183
- _context.t3 = _context.sent;
184
- _context.next = 32;
182
+ case 10:
183
+ _t4 = _context.v;
184
+ _context.n = 12;
185
185
  break;
186
- case 31:
187
- _context.t3 = constants === null || constants === void 0 ? void 0 : constants.osVersion;
188
- case 32:
189
- osVersion = _context.t3;
186
+ case 11:
187
+ _t4 = constants === null || constants === void 0 ? void 0 : constants.osVersion;
188
+ case 12:
189
+ osVersion = _t4;
190
190
  if (!((_platformContextPrope = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.Carrier)) !== null && _platformContextPrope !== void 0 ? _platformContextPrope : true)) {
191
- _context.next = 44;
191
+ _context.n = 16;
192
192
  break;
193
193
  }
194
194
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getCarrier)) {
195
- _context.next = 40;
195
+ _context.n = 14;
196
196
  break;
197
197
  }
198
- _context.next = 37;
198
+ _context.n = 13;
199
199
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getCarrier();
200
- case 37:
201
- _context.t5 = _context.sent;
202
- _context.next = 41;
200
+ case 13:
201
+ _t6 = _context.v;
202
+ _context.n = 15;
203
203
  break;
204
- case 40:
205
- _context.t5 = undefined;
206
- case 41:
207
- _context.t4 = _context.t5;
208
- _context.next = 45;
204
+ case 14:
205
+ _t6 = undefined;
206
+ case 15:
207
+ _t5 = _t6;
208
+ _context.n = 17;
209
209
  break;
210
- case 44:
211
- _context.t4 = undefined;
212
- case 45:
213
- carrier = _context.t4;
210
+ case 16:
211
+ _t5 = undefined;
212
+ case 17:
213
+ carrier = _t5;
214
214
  if (!((_platformContextPrope2 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.NetworkType)) !== null && _platformContextPrope2 !== void 0 ? _platformContextPrope2 : true)) {
215
- _context.next = 57;
215
+ _context.n = 21;
216
216
  break;
217
217
  }
218
218
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getNetworkType)) {
219
- _context.next = 53;
219
+ _context.n = 19;
220
220
  break;
221
221
  }
222
- _context.next = 50;
222
+ _context.n = 18;
223
223
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getNetworkType();
224
- case 50:
225
- _context.t7 = _context.sent;
226
- _context.next = 54;
224
+ case 18:
225
+ _t8 = _context.v;
226
+ _context.n = 20;
227
227
  break;
228
- case 53:
229
- _context.t7 = undefined;
230
- case 54:
231
- _context.t6 = _context.t7;
232
- _context.next = 58;
228
+ case 19:
229
+ _t8 = undefined;
230
+ case 20:
231
+ _t7 = _t8;
232
+ _context.n = 22;
233
233
  break;
234
- case 57:
235
- _context.t6 = undefined;
236
- case 58:
237
- networkType = _context.t6;
234
+ case 21:
235
+ _t7 = undefined;
236
+ case 22:
237
+ networkType = _t7;
238
238
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getNetworkTechnology)) {
239
- _context.next = 65;
239
+ _context.n = 24;
240
240
  break;
241
241
  }
242
- _context.next = 62;
242
+ _context.n = 23;
243
243
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getNetworkTechnology();
244
- case 62:
245
- _context.t8 = _context.sent;
246
- _context.next = 66;
244
+ case 23:
245
+ _t9 = _context.v;
246
+ _context.n = 25;
247
247
  break;
248
- case 65:
249
- _context.t8 = undefined;
250
- case 66:
251
- networkTechnology = _context.t8;
248
+ case 24:
249
+ _t9 = undefined;
250
+ case 25:
251
+ networkTechnology = _t9;
252
252
  if (!((_platformContextPrope3 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AppleIdfa)) !== null && _platformContextPrope3 !== void 0 ? _platformContextPrope3 : true)) {
253
- _context.next = 78;
253
+ _context.n = 29;
254
254
  break;
255
255
  }
256
256
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAppleIdfa)) {
257
- _context.next = 74;
257
+ _context.n = 27;
258
258
  break;
259
259
  }
260
- _context.next = 71;
260
+ _context.n = 26;
261
261
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppleIdfa();
262
- case 71:
263
- _context.t10 = _context.sent;
264
- _context.next = 75;
262
+ case 26:
263
+ _t1 = _context.v;
264
+ _context.n = 28;
265
265
  break;
266
- case 74:
267
- _context.t10 = undefined;
268
- case 75:
269
- _context.t9 = _context.t10;
270
- _context.next = 79;
266
+ case 27:
267
+ _t1 = undefined;
268
+ case 28:
269
+ _t0 = _t1;
270
+ _context.n = 30;
271
271
  break;
272
- case 78:
273
- _context.t9 = undefined;
274
- case 79:
275
- appleIdfa = _context.t9;
272
+ case 29:
273
+ _t0 = undefined;
274
+ case 30:
275
+ appleIdfa = _t0;
276
276
  if (!((_platformContextPrope4 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AppleIdfv)) !== null && _platformContextPrope4 !== void 0 ? _platformContextPrope4 : true)) {
277
- _context.next = 91;
277
+ _context.n = 34;
278
278
  break;
279
279
  }
280
280
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAppleIdfv)) {
281
- _context.next = 87;
281
+ _context.n = 32;
282
282
  break;
283
283
  }
284
- _context.next = 84;
284
+ _context.n = 31;
285
285
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppleIdfv();
286
- case 84:
287
- _context.t12 = _context.sent;
288
- _context.next = 88;
289
- break;
290
- case 87:
291
- _context.t12 = undefined;
292
- case 88:
293
- _context.t11 = _context.t12;
294
- _context.next = 92;
286
+ case 31:
287
+ _t11 = _context.v;
288
+ _context.n = 33;
295
289
  break;
296
- case 91:
297
- _context.t11 = undefined;
298
- case 92:
299
- appleIdfv = _context.t11;
290
+ case 32:
291
+ _t11 = undefined;
292
+ case 33:
293
+ _t10 = _t11;
294
+ _context.n = 35;
295
+ break;
296
+ case 34:
297
+ _t10 = undefined;
298
+ case 35:
299
+ appleIdfv = _t10;
300
300
  if (!((_platformContextPrope5 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AndroidIdfa)) !== null && _platformContextPrope5 !== void 0 ? _platformContextPrope5 : true)) {
301
- _context.next = 104;
301
+ _context.n = 39;
302
302
  break;
303
303
  }
304
304
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAndroidIdfa)) {
305
- _context.next = 100;
305
+ _context.n = 37;
306
306
  break;
307
307
  }
308
- _context.next = 97;
308
+ _context.n = 36;
309
309
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAndroidIdfa();
310
- case 97:
311
- _context.t14 = _context.sent;
312
- _context.next = 101;
310
+ case 36:
311
+ _t13 = _context.v;
312
+ _context.n = 38;
313
313
  break;
314
- case 100:
315
- _context.t14 = undefined;
316
- case 101:
317
- _context.t13 = _context.t14;
318
- _context.next = 105;
314
+ case 37:
315
+ _t13 = undefined;
316
+ case 38:
317
+ _t12 = _t13;
318
+ _context.n = 40;
319
319
  break;
320
- case 104:
321
- _context.t13 = undefined;
322
- case 105:
323
- androidIdfa = _context.t13;
320
+ case 39:
321
+ _t12 = undefined;
322
+ case 40:
323
+ androidIdfa = _t12;
324
324
  if (!((_platformContextPrope6 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.PhysicalMemory)) !== null && _platformContextPrope6 !== void 0 ? _platformContextPrope6 : true)) {
325
- _context.next = 117;
325
+ _context.n = 44;
326
326
  break;
327
327
  }
328
328
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getPhysicalMemory)) {
329
- _context.next = 113;
329
+ _context.n = 42;
330
330
  break;
331
331
  }
332
- _context.next = 110;
332
+ _context.n = 41;
333
333
  return platformContextRetriever.getPhysicalMemory();
334
- case 110:
335
- _context.t16 = _context.sent;
336
- _context.next = 114;
334
+ case 41:
335
+ _t15 = _context.v;
336
+ _context.n = 43;
337
337
  break;
338
- case 113:
339
- _context.t16 = undefined;
340
- case 114:
341
- _context.t15 = _context.t16;
342
- _context.next = 118;
338
+ case 42:
339
+ _t15 = undefined;
340
+ case 43:
341
+ _t14 = _t15;
342
+ _context.n = 45;
343
343
  break;
344
- case 117:
345
- _context.t15 = undefined;
346
- case 118:
347
- physicalMemory = _context.t15;
344
+ case 44:
345
+ _t14 = undefined;
346
+ case 45:
347
+ physicalMemory = _t14;
348
348
  if (!((_platformContextPrope7 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.SystemAvailableMemory)) !== null && _platformContextPrope7 !== void 0 ? _platformContextPrope7 : true)) {
349
- _context.next = 130;
349
+ _context.n = 49;
350
350
  break;
351
351
  }
352
352
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getSystemAvailableMemory)) {
353
- _context.next = 126;
353
+ _context.n = 47;
354
354
  break;
355
355
  }
356
- _context.next = 123;
356
+ _context.n = 46;
357
357
  return platformContextRetriever.getSystemAvailableMemory();
358
- case 123:
359
- _context.t18 = _context.sent;
360
- _context.next = 127;
361
- break;
362
- case 126:
363
- _context.t18 = undefined;
364
- case 127:
365
- _context.t17 = _context.t18;
366
- _context.next = 131;
367
- break;
368
- case 130:
369
- _context.t17 = undefined;
370
- case 131:
371
- systemAvailableMemory = _context.t17;
358
+ case 46:
359
+ _t17 = _context.v;
360
+ _context.n = 48;
361
+ break;
362
+ case 47:
363
+ _t17 = undefined;
364
+ case 48:
365
+ _t16 = _t17;
366
+ _context.n = 50;
367
+ break;
368
+ case 49:
369
+ _t16 = undefined;
370
+ case 50:
371
+ systemAvailableMemory = _t16;
372
372
  if (!((_platformContextPrope8 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AppAvailableMemory)) !== null && _platformContextPrope8 !== void 0 ? _platformContextPrope8 : true)) {
373
- _context.next = 143;
373
+ _context.n = 54;
374
374
  break;
375
375
  }
376
376
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAppAvailableMemory)) {
377
- _context.next = 139;
377
+ _context.n = 52;
378
378
  break;
379
379
  }
380
- _context.next = 136;
380
+ _context.n = 51;
381
381
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppAvailableMemory();
382
- case 136:
383
- _context.t20 = _context.sent;
384
- _context.next = 140;
385
- break;
386
- case 139:
387
- _context.t20 = undefined;
388
- case 140:
389
- _context.t19 = _context.t20;
390
- _context.next = 144;
391
- break;
392
- case 143:
393
- _context.t19 = undefined;
394
- case 144:
395
- appAvailableMemory = _context.t19;
382
+ case 51:
383
+ _t19 = _context.v;
384
+ _context.n = 53;
385
+ break;
386
+ case 52:
387
+ _t19 = undefined;
388
+ case 53:
389
+ _t18 = _t19;
390
+ _context.n = 55;
391
+ break;
392
+ case 54:
393
+ _t18 = undefined;
394
+ case 55:
395
+ appAvailableMemory = _t18;
396
396
  if (!((_platformContextPrope9 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.BatteryLevel)) !== null && _platformContextPrope9 !== void 0 ? _platformContextPrope9 : true)) {
397
- _context.next = 156;
397
+ _context.n = 59;
398
398
  break;
399
399
  }
400
400
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getBatteryLevel)) {
401
- _context.next = 152;
401
+ _context.n = 57;
402
402
  break;
403
403
  }
404
- _context.next = 149;
404
+ _context.n = 56;
405
405
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getBatteryLevel();
406
- case 149:
407
- _context.t22 = _context.sent;
408
- _context.next = 153;
406
+ case 56:
407
+ _t21 = _context.v;
408
+ _context.n = 58;
409
409
  break;
410
- case 152:
411
- _context.t22 = undefined;
412
- case 153:
413
- _context.t21 = _context.t22;
414
- _context.next = 157;
410
+ case 57:
411
+ _t21 = undefined;
412
+ case 58:
413
+ _t20 = _t21;
414
+ _context.n = 60;
415
415
  break;
416
- case 156:
417
- _context.t21 = undefined;
418
- case 157:
419
- batteryLevel = _context.t21;
420
- if (!((_platformContextPrope10 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.BatteryState)) !== null && _platformContextPrope10 !== void 0 ? _platformContextPrope10 : true)) {
421
- _context.next = 169;
416
+ case 59:
417
+ _t20 = undefined;
418
+ case 60:
419
+ batteryLevel = _t20;
420
+ if (!((_platformContextPrope0 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.BatteryState)) !== null && _platformContextPrope0 !== void 0 ? _platformContextPrope0 : true)) {
421
+ _context.n = 64;
422
422
  break;
423
423
  }
424
424
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getBatteryState)) {
425
- _context.next = 165;
425
+ _context.n = 62;
426
426
  break;
427
427
  }
428
- _context.next = 162;
428
+ _context.n = 61;
429
429
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getBatteryState();
430
- case 162:
431
- _context.t24 = _context.sent;
432
- _context.next = 166;
430
+ case 61:
431
+ _t23 = _context.v;
432
+ _context.n = 63;
433
433
  break;
434
- case 165:
435
- _context.t24 = undefined;
436
- case 166:
437
- _context.t23 = _context.t24;
438
- _context.next = 170;
434
+ case 62:
435
+ _t23 = undefined;
436
+ case 63:
437
+ _t22 = _t23;
438
+ _context.n = 65;
439
439
  break;
440
- case 169:
441
- _context.t23 = undefined;
442
- case 170:
443
- batteryState = _context.t23;
444
- if (!((_platformContextPrope11 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.LowPowerMode)) !== null && _platformContextPrope11 !== void 0 ? _platformContextPrope11 : true)) {
445
- _context.next = 182;
440
+ case 64:
441
+ _t22 = undefined;
442
+ case 65:
443
+ batteryState = _t22;
444
+ if (!((_platformContextPrope1 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.LowPowerMode)) !== null && _platformContextPrope1 !== void 0 ? _platformContextPrope1 : true)) {
445
+ _context.n = 69;
446
446
  break;
447
447
  }
448
448
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getLowPowerMode)) {
449
- _context.next = 178;
449
+ _context.n = 67;
450
450
  break;
451
451
  }
452
- _context.next = 175;
452
+ _context.n = 66;
453
453
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getLowPowerMode();
454
- case 175:
455
- _context.t26 = _context.sent;
456
- _context.next = 179;
454
+ case 66:
455
+ _t25 = _context.v;
456
+ _context.n = 68;
457
457
  break;
458
- case 178:
459
- _context.t26 = undefined;
460
- case 179:
461
- _context.t25 = _context.t26;
462
- _context.next = 183;
458
+ case 67:
459
+ _t25 = undefined;
460
+ case 68:
461
+ _t24 = _t25;
462
+ _context.n = 70;
463
463
  break;
464
- case 182:
465
- _context.t25 = undefined;
466
- case 183:
467
- lowPowerMode = _context.t25;
468
- if (!((_platformContextPrope12 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AvailableStorage)) !== null && _platformContextPrope12 !== void 0 ? _platformContextPrope12 : true)) {
469
- _context.next = 195;
464
+ case 69:
465
+ _t24 = undefined;
466
+ case 70:
467
+ lowPowerMode = _t24;
468
+ if (!((_platformContextPrope10 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AvailableStorage)) !== null && _platformContextPrope10 !== void 0 ? _platformContextPrope10 : true)) {
469
+ _context.n = 74;
470
470
  break;
471
471
  }
472
472
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAvailableStorage)) {
473
- _context.next = 191;
473
+ _context.n = 72;
474
474
  break;
475
475
  }
476
- _context.next = 188;
476
+ _context.n = 71;
477
477
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAvailableStorage();
478
- case 188:
479
- _context.t28 = _context.sent;
480
- _context.next = 192;
478
+ case 71:
479
+ _t27 = _context.v;
480
+ _context.n = 73;
481
481
  break;
482
- case 191:
483
- _context.t28 = undefined;
484
- case 192:
485
- _context.t27 = _context.t28;
486
- _context.next = 196;
482
+ case 72:
483
+ _t27 = undefined;
484
+ case 73:
485
+ _t26 = _t27;
486
+ _context.n = 75;
487
487
  break;
488
- case 195:
489
- _context.t27 = undefined;
490
- case 196:
491
- availableStorage = _context.t27;
492
- if (!((_platformContextPrope13 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.TotalStorage)) !== null && _platformContextPrope13 !== void 0 ? _platformContextPrope13 : true)) {
493
- _context.next = 208;
488
+ case 74:
489
+ _t26 = undefined;
490
+ case 75:
491
+ availableStorage = _t26;
492
+ if (!((_platformContextPrope11 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.TotalStorage)) !== null && _platformContextPrope11 !== void 0 ? _platformContextPrope11 : true)) {
493
+ _context.n = 79;
494
494
  break;
495
495
  }
496
496
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getTotalStorage)) {
497
- _context.next = 204;
497
+ _context.n = 77;
498
498
  break;
499
499
  }
500
- _context.next = 201;
500
+ _context.n = 76;
501
501
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getTotalStorage();
502
- case 201:
503
- _context.t30 = _context.sent;
504
- _context.next = 205;
502
+ case 76:
503
+ _t29 = _context.v;
504
+ _context.n = 78;
505
505
  break;
506
- case 204:
507
- _context.t30 = undefined;
508
- case 205:
509
- _context.t29 = _context.t30;
510
- _context.next = 209;
506
+ case 77:
507
+ _t29 = undefined;
508
+ case 78:
509
+ _t28 = _t29;
510
+ _context.n = 80;
511
511
  break;
512
- case 208:
513
- _context.t29 = undefined;
514
- case 209:
515
- totalStorage = _context.t29;
516
- if (!((_platformContextPrope14 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.IsPortrait)) !== null && _platformContextPrope14 !== void 0 ? _platformContextPrope14 : true)) {
517
- _context.next = 221;
512
+ case 79:
513
+ _t28 = undefined;
514
+ case 80:
515
+ totalStorage = _t28;
516
+ if (!((_platformContextPrope12 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.IsPortrait)) !== null && _platformContextPrope12 !== void 0 ? _platformContextPrope12 : true)) {
517
+ _context.n = 84;
518
518
  break;
519
519
  }
520
520
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.isPortrait)) {
521
- _context.next = 217;
521
+ _context.n = 82;
522
522
  break;
523
523
  }
524
- _context.next = 214;
524
+ _context.n = 81;
525
525
  return platformContextRetriever.isPortrait();
526
- case 214:
527
- _context.t32 = _context.sent;
528
- _context.next = 218;
526
+ case 81:
527
+ _t31 = _context.v;
528
+ _context.n = 83;
529
529
  break;
530
- case 217:
531
- _context.t32 = undefined;
532
- case 218:
533
- _context.t31 = _context.t32;
534
- _context.next = 222;
530
+ case 82:
531
+ _t31 = undefined;
532
+ case 83:
533
+ _t30 = _t31;
534
+ _context.n = 85;
535
535
  break;
536
- case 221:
537
- _context.t31 = undefined;
538
- case 222:
539
- isPortrait = _context.t31;
540
- if (!((_platformContextPrope15 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.Resolution)) !== null && _platformContextPrope15 !== void 0 ? _platformContextPrope15 : true)) {
541
- _context.next = 234;
536
+ case 84:
537
+ _t30 = undefined;
538
+ case 85:
539
+ isPortrait = _t30;
540
+ if (!((_platformContextPrope13 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.Resolution)) !== null && _platformContextPrope13 !== void 0 ? _platformContextPrope13 : true)) {
541
+ _context.n = 89;
542
542
  break;
543
543
  }
544
544
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getResolution)) {
545
- _context.next = 230;
545
+ _context.n = 87;
546
546
  break;
547
547
  }
548
- _context.next = 227;
548
+ _context.n = 86;
549
549
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getResolution();
550
- case 227:
551
- _context.t34 = _context.sent;
552
- _context.next = 231;
550
+ case 86:
551
+ _t33 = _context.v;
552
+ _context.n = 88;
553
553
  break;
554
- case 230:
555
- _context.t34 = Math.floor(Dimensions.get('window').width) + 'x' + Math.floor(Dimensions.get('window').height);
556
- case 231:
557
- _context.t33 = _context.t34;
558
- _context.next = 235;
554
+ case 87:
555
+ _t33 = Math.floor(Dimensions.get('window').width) + 'x' + Math.floor(Dimensions.get('window').height);
556
+ case 88:
557
+ _t32 = _t33;
558
+ _context.n = 90;
559
559
  break;
560
- case 234:
561
- _context.t33 = undefined;
562
- case 235:
563
- resolution = _context.t33;
564
- if (!((_platformContextPrope16 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.Scale)) !== null && _platformContextPrope16 !== void 0 ? _platformContextPrope16 : true)) {
565
- _context.next = 247;
560
+ case 89:
561
+ _t32 = undefined;
562
+ case 90:
563
+ resolution = _t32;
564
+ if (!((_platformContextPrope14 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.Scale)) !== null && _platformContextPrope14 !== void 0 ? _platformContextPrope14 : true)) {
565
+ _context.n = 94;
566
566
  break;
567
567
  }
568
568
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getScale)) {
569
- _context.next = 243;
569
+ _context.n = 92;
570
570
  break;
571
571
  }
572
- _context.next = 240;
572
+ _context.n = 91;
573
573
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getScale();
574
- case 240:
575
- _context.t36 = _context.sent;
576
- _context.next = 244;
574
+ case 91:
575
+ _t35 = _context.v;
576
+ _context.n = 93;
577
577
  break;
578
- case 243:
579
- _context.t36 = PixelRatio.get();
580
- case 244:
581
- _context.t35 = _context.t36;
582
- _context.next = 248;
578
+ case 92:
579
+ _t35 = PixelRatio.get();
580
+ case 93:
581
+ _t34 = _t35;
582
+ _context.n = 95;
583
583
  break;
584
- case 247:
585
- _context.t35 = undefined;
586
- case 248:
587
- scale = _context.t35;
588
- if (!((_platformContextPrope17 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.Language)) !== null && _platformContextPrope17 !== void 0 ? _platformContextPrope17 : true)) {
589
- _context.next = 260;
584
+ case 94:
585
+ _t34 = undefined;
586
+ case 95:
587
+ scale = _t34;
588
+ if (!((_platformContextPrope15 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.Language)) !== null && _platformContextPrope15 !== void 0 ? _platformContextPrope15 : true)) {
589
+ _context.n = 99;
590
590
  break;
591
591
  }
592
592
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getLanguage)) {
593
- _context.next = 256;
593
+ _context.n = 97;
594
594
  break;
595
595
  }
596
- _context.next = 253;
596
+ _context.n = 96;
597
597
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getLanguage();
598
- case 253:
599
- _context.t39 = _context.sent;
600
- _context.next = 257;
598
+ case 96:
599
+ _t38 = _context.v;
600
+ _context.n = 98;
601
601
  break;
602
- case 256:
603
- _context.t39 = constants === null || constants === void 0 ? void 0 : constants.language;
604
- case 257:
605
- _context.t38 = _context.t39;
606
- _context.next = 261;
602
+ case 97:
603
+ _t38 = constants === null || constants === void 0 ? void 0 : constants.language;
604
+ case 98:
605
+ _t37 = _t38;
606
+ _context.n = 100;
607
607
  break;
608
- case 260:
609
- _context.t38 = undefined;
610
- case 261:
611
- _context.t40 = _ref4 = _context.t38;
612
- _context.t37 = _context.t40 === null;
613
- if (_context.t37) {
614
- _context.next = 265;
608
+ case 99:
609
+ _t37 = undefined;
610
+ case 100:
611
+ _t39 = _ref4 = _t37;
612
+ _t36 = _t39 === null;
613
+ if (_t36) {
614
+ _context.n = 101;
615
615
  break;
616
616
  }
617
- _context.t37 = _ref4 === void 0;
618
- case 265:
619
- if (!_context.t37) {
620
- _context.next = 269;
617
+ _t36 = _ref4 === void 0;
618
+ case 101:
619
+ if (!_t36) {
620
+ _context.n = 102;
621
621
  break;
622
622
  }
623
- _context.t41 = void 0;
624
- _context.next = 270;
623
+ _t40 = void 0;
624
+ _context.n = 103;
625
625
  break;
626
- case 269:
627
- _context.t41 = _ref4.substring(0, 8);
628
- case 270:
629
- language = _context.t41;
630
- if (!((_platformContextPrope18 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AppSetId)) !== null && _platformContextPrope18 !== void 0 ? _platformContextPrope18 : true)) {
631
- _context.next = 282;
626
+ case 102:
627
+ _t40 = _ref4.substring(0, 8);
628
+ case 103:
629
+ language = _t40;
630
+ if (!((_platformContextPrope16 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AppSetId)) !== null && _platformContextPrope16 !== void 0 ? _platformContextPrope16 : true)) {
631
+ _context.n = 107;
632
632
  break;
633
633
  }
634
634
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAppSetId)) {
635
- _context.next = 278;
635
+ _context.n = 105;
636
636
  break;
637
637
  }
638
- _context.next = 275;
638
+ _context.n = 104;
639
639
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppSetId();
640
- case 275:
641
- _context.t43 = _context.sent;
642
- _context.next = 279;
640
+ case 104:
641
+ _t42 = _context.v;
642
+ _context.n = 106;
643
643
  break;
644
- case 278:
645
- _context.t43 = undefined;
646
- case 279:
647
- _context.t42 = _context.t43;
648
- _context.next = 283;
644
+ case 105:
645
+ _t42 = undefined;
646
+ case 106:
647
+ _t41 = _t42;
648
+ _context.n = 108;
649
649
  break;
650
- case 282:
651
- _context.t42 = undefined;
652
- case 283:
653
- appSetId = _context.t42;
654
- if (!((_platformContextPrope19 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AppSetIdScope)) !== null && _platformContextPrope19 !== void 0 ? _platformContextPrope19 : true)) {
655
- _context.next = 295;
650
+ case 107:
651
+ _t41 = undefined;
652
+ case 108:
653
+ appSetId = _t41;
654
+ if (!((_platformContextPrope17 = platformContextProperties === null || platformContextProperties === void 0 ? void 0 : platformContextProperties.includes(PlatformContextProperty.AppSetIdScope)) !== null && _platformContextPrope17 !== void 0 ? _platformContextPrope17 : true)) {
655
+ _context.n = 112;
656
656
  break;
657
657
  }
658
658
  if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAppSetIdScope)) {
659
- _context.next = 291;
659
+ _context.n = 110;
660
660
  break;
661
661
  }
662
- _context.next = 288;
662
+ _context.n = 109;
663
663
  return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppSetIdScope();
664
- case 288:
665
- _context.t45 = _context.sent;
666
- _context.next = 292;
667
- break;
668
- case 291:
669
- _context.t45 = undefined;
670
- case 292:
671
- _context.t44 = _context.t45;
672
- _context.next = 296;
673
- break;
674
- case 295:
675
- _context.t44 = undefined;
676
- case 296:
677
- appSetIdScope = _context.t44;
678
- case 297:
679
- case "end":
680
- return _context.stop();
664
+ case 109:
665
+ _t44 = _context.v;
666
+ _context.n = 111;
667
+ break;
668
+ case 110:
669
+ _t44 = undefined;
670
+ case 111:
671
+ _t43 = _t44;
672
+ _context.n = 113;
673
+ break;
674
+ case 112:
675
+ _t43 = undefined;
676
+ case 113:
677
+ appSetIdScope = _t43;
678
+ case 114:
679
+ return _context.a(2);
681
680
  }
682
681
  }, _callee);
683
682
  }));
@@ -686,16 +685,15 @@ function _newPlatformContextPlugin() {
686
685
  };
687
686
  }();
688
687
  enablePlatformContext = /*#__PURE__*/function () {
689
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
690
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
691
- while (1) switch (_context2.prev = _context2.next) {
688
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
689
+ return _regenerator().w(function (_context2) {
690
+ while (1) switch (_context2.n) {
692
691
  case 0:
693
692
  platformContext = true;
694
- _context2.next = 3;
693
+ _context2.n = 1;
695
694
  return refreshPlatformContext();
696
- case 3:
697
- case "end":
698
- return _context2.stop();
695
+ case 1:
696
+ return _context2.a(2);
699
697
  }
700
698
  }, _callee2);
701
699
  }));
@@ -707,12 +705,12 @@ function _newPlatformContextPlugin() {
707
705
  platformContext = false;
708
706
  };
709
707
  if (!platformContext) {
710
- _context3.next = 7;
708
+ _context3.n = 1;
711
709
  break;
712
710
  }
713
- _context3.next = 7;
711
+ _context3.n = 1;
714
712
  return refreshPlatformContext();
715
- case 7:
713
+ case 1:
716
714
  contexts = function contexts() {
717
715
  // check required properties
718
716
  if (platformContext && osType !== undefined && osVersion !== undefined && deviceManufacturer !== undefined && deviceModel !== undefined) {
@@ -749,7 +747,7 @@ function _newPlatformContextPlugin() {
749
747
  return [];
750
748
  }
751
749
  };
752
- return _context3.abrupt("return", {
750
+ return _context3.a(2, {
753
751
  enablePlatformContext: enablePlatformContext,
754
752
  disablePlatformContext: disablePlatformContext,
755
753
  refreshPlatformContext: refreshPlatformContext,
@@ -757,9 +755,6 @@ function _newPlatformContextPlugin() {
757
755
  contexts: contexts
758
756
  }
759
757
  });
760
- case 9:
761
- case "end":
762
- return _context3.stop();
763
758
  }
764
759
  }, _callee3);
765
760
  }));