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