@snowplow/react-native-tracker 4.8.1 → 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.
- package/dist/commonjs/event_store.js +47 -56
- package/dist/commonjs/event_store.js.map +1 -1
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/plugins/app_install/index.js +12 -13
- package/dist/commonjs/plugins/app_install/index.js.map +1 -1
- package/dist/commonjs/plugins/app_lifecycle/index.js +11 -15
- package/dist/commonjs/plugins/app_lifecycle/index.js.map +1 -1
- package/dist/commonjs/plugins/platform_context/index.js +382 -387
- package/dist/commonjs/plugins/platform_context/index.js.map +1 -1
- package/dist/commonjs/plugins/session/index.js +34 -39
- package/dist/commonjs/plugins/session/index.js.map +1 -1
- package/dist/commonjs/tracker.js +32 -37
- package/dist/commonjs/tracker.js.map +1 -1
- package/dist/commonjs/types.js +76 -0
- package/dist/commonjs/types.js.map +1 -1
- package/dist/module/event_store.js +47 -56
- package/dist/module/event_store.js.map +1 -1
- package/dist/module/package.json +1 -0
- package/dist/module/plugins/app_install/index.js +12 -13
- package/dist/module/plugins/app_install/index.js.map +1 -1
- package/dist/module/plugins/app_lifecycle/index.js +11 -15
- package/dist/module/plugins/app_lifecycle/index.js.map +1 -1
- package/dist/module/plugins/platform_context/index.js +382 -387
- package/dist/module/plugins/platform_context/index.js.map +1 -1
- package/dist/module/plugins/session/index.js +33 -38
- package/dist/module/plugins/session/index.js.map +1 -1
- package/dist/module/tracker.js +32 -37
- package/dist/module/tracker.js.map +1 -1
- package/dist/module/types.js +76 -0
- package/dist/module/types.js.map +1 -1
- package/dist/typescript/module/src/event_store.d.ts +1 -1
- package/dist/typescript/module/src/event_store.d.ts.map +1 -1
- package/dist/typescript/module/src/events.d.ts +1 -1
- package/dist/typescript/module/src/events.d.ts.map +1 -1
- package/dist/typescript/module/src/index.d.ts +3 -3
- package/dist/typescript/module/src/index.d.ts.map +1 -1
- package/dist/typescript/module/src/plugins/app_context/index.d.ts +1 -1
- package/dist/typescript/module/src/plugins/app_context/index.d.ts.map +1 -1
- package/dist/typescript/module/src/plugins/app_install/index.d.ts +1 -1
- package/dist/typescript/module/src/plugins/app_install/index.d.ts.map +1 -1
- package/dist/typescript/module/src/plugins/app_lifecycle/index.d.ts +1 -1
- package/dist/typescript/module/src/plugins/app_lifecycle/index.d.ts.map +1 -1
- package/dist/typescript/module/src/plugins/deep_links/index.d.ts +1 -1
- package/dist/typescript/module/src/plugins/deep_links/index.d.ts.map +1 -1
- package/dist/typescript/module/src/plugins/platform_context/index.d.ts +1 -1
- package/dist/typescript/module/src/plugins/platform_context/index.d.ts.map +1 -1
- package/dist/typescript/module/src/plugins/session/index.d.ts +1 -1
- package/dist/typescript/module/src/plugins/session/index.d.ts.map +1 -1
- package/dist/typescript/module/src/subject.d.ts +1 -1
- package/dist/typescript/module/src/subject.d.ts.map +1 -1
- package/dist/typescript/module/src/tracker.d.ts +1 -1
- package/dist/typescript/module/src/tracker.d.ts.map +1 -1
- package/dist/typescript/module/src/web_view_interface.d.ts +1 -1
- package/dist/typescript/module/src/web_view_interface.d.ts.map +1 -1
- package/package.json +7 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
function
|
|
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__*/
|
|
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
|
|
123
|
-
while (1) switch (_context3.
|
|
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__*/
|
|
128
|
-
var _platformContextPrope, _platformContextPrope2, _platformContextPrope3, _platformContextPrope4, _platformContextPrope5, _platformContextPrope6, _platformContextPrope7, _platformContextPrope8, _platformContextPrope9, _platformContextPrope10, _platformContextPrope11, _platformContextPrope12, _platformContextPrope13, _platformContextPrope14, _platformContextPrope15, _platformContextPrope16,
|
|
129
|
-
var constants;
|
|
130
|
-
return
|
|
131
|
-
while (1) switch (_context.
|
|
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.
|
|
135
|
+
_context.n = 2;
|
|
136
136
|
break;
|
|
137
137
|
}
|
|
138
|
-
_context.
|
|
138
|
+
_context.n = 1;
|
|
139
139
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getDeviceModel();
|
|
140
|
-
case
|
|
141
|
-
|
|
142
|
-
_context.
|
|
140
|
+
case 1:
|
|
141
|
+
_t = _context.v;
|
|
142
|
+
_context.n = 3;
|
|
143
143
|
break;
|
|
144
|
-
case
|
|
145
|
-
|
|
146
|
-
case
|
|
147
|
-
deviceModel =
|
|
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.
|
|
149
|
+
_context.n = 5;
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
|
-
_context.
|
|
152
|
+
_context.n = 4;
|
|
153
153
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getOsType();
|
|
154
|
-
case
|
|
155
|
-
|
|
156
|
-
_context.
|
|
154
|
+
case 4:
|
|
155
|
+
_t2 = _context.v;
|
|
156
|
+
_context.n = 6;
|
|
157
157
|
break;
|
|
158
|
-
case
|
|
159
|
-
|
|
160
|
-
case
|
|
161
|
-
osType =
|
|
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.
|
|
163
|
+
_context.n = 8;
|
|
164
164
|
break;
|
|
165
165
|
}
|
|
166
|
-
_context.
|
|
166
|
+
_context.n = 7;
|
|
167
167
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getDeviceManufacturer();
|
|
168
|
-
case
|
|
169
|
-
|
|
170
|
-
_context.
|
|
168
|
+
case 7:
|
|
169
|
+
_t3 = _context.v;
|
|
170
|
+
_context.n = 9;
|
|
171
171
|
break;
|
|
172
|
-
case
|
|
173
|
-
|
|
174
|
-
case
|
|
175
|
-
deviceManufacturer =
|
|
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.
|
|
177
|
+
_context.n = 11;
|
|
178
178
|
break;
|
|
179
179
|
}
|
|
180
|
-
_context.
|
|
180
|
+
_context.n = 10;
|
|
181
181
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getOsVersion();
|
|
182
|
-
case
|
|
183
|
-
|
|
184
|
-
_context.
|
|
182
|
+
case 10:
|
|
183
|
+
_t4 = _context.v;
|
|
184
|
+
_context.n = 12;
|
|
185
185
|
break;
|
|
186
|
-
case
|
|
187
|
-
|
|
188
|
-
case
|
|
189
|
-
osVersion =
|
|
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.
|
|
191
|
+
_context.n = 16;
|
|
192
192
|
break;
|
|
193
193
|
}
|
|
194
194
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getCarrier)) {
|
|
195
|
-
_context.
|
|
195
|
+
_context.n = 14;
|
|
196
196
|
break;
|
|
197
197
|
}
|
|
198
|
-
_context.
|
|
198
|
+
_context.n = 13;
|
|
199
199
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getCarrier();
|
|
200
|
-
case
|
|
201
|
-
|
|
202
|
-
_context.
|
|
200
|
+
case 13:
|
|
201
|
+
_t6 = _context.v;
|
|
202
|
+
_context.n = 15;
|
|
203
203
|
break;
|
|
204
|
-
case
|
|
205
|
-
|
|
206
|
-
case
|
|
207
|
-
|
|
208
|
-
_context.
|
|
204
|
+
case 14:
|
|
205
|
+
_t6 = undefined;
|
|
206
|
+
case 15:
|
|
207
|
+
_t5 = _t6;
|
|
208
|
+
_context.n = 17;
|
|
209
209
|
break;
|
|
210
|
-
case
|
|
211
|
-
|
|
212
|
-
case
|
|
213
|
-
carrier =
|
|
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.
|
|
215
|
+
_context.n = 21;
|
|
216
216
|
break;
|
|
217
217
|
}
|
|
218
218
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getNetworkType)) {
|
|
219
|
-
_context.
|
|
219
|
+
_context.n = 19;
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
|
-
_context.
|
|
222
|
+
_context.n = 18;
|
|
223
223
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getNetworkType();
|
|
224
|
-
case
|
|
225
|
-
|
|
226
|
-
_context.
|
|
224
|
+
case 18:
|
|
225
|
+
_t8 = _context.v;
|
|
226
|
+
_context.n = 20;
|
|
227
227
|
break;
|
|
228
|
-
case
|
|
229
|
-
|
|
230
|
-
case
|
|
231
|
-
|
|
232
|
-
_context.
|
|
228
|
+
case 19:
|
|
229
|
+
_t8 = undefined;
|
|
230
|
+
case 20:
|
|
231
|
+
_t7 = _t8;
|
|
232
|
+
_context.n = 22;
|
|
233
233
|
break;
|
|
234
|
-
case
|
|
235
|
-
|
|
236
|
-
case
|
|
237
|
-
networkType =
|
|
234
|
+
case 21:
|
|
235
|
+
_t7 = undefined;
|
|
236
|
+
case 22:
|
|
237
|
+
networkType = _t7;
|
|
238
238
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getNetworkTechnology)) {
|
|
239
|
-
_context.
|
|
239
|
+
_context.n = 24;
|
|
240
240
|
break;
|
|
241
241
|
}
|
|
242
|
-
_context.
|
|
242
|
+
_context.n = 23;
|
|
243
243
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getNetworkTechnology();
|
|
244
|
-
case
|
|
245
|
-
|
|
246
|
-
_context.
|
|
244
|
+
case 23:
|
|
245
|
+
_t9 = _context.v;
|
|
246
|
+
_context.n = 25;
|
|
247
247
|
break;
|
|
248
|
-
case
|
|
249
|
-
|
|
250
|
-
case
|
|
251
|
-
networkTechnology =
|
|
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.
|
|
253
|
+
_context.n = 29;
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAppleIdfa)) {
|
|
257
|
-
_context.
|
|
257
|
+
_context.n = 27;
|
|
258
258
|
break;
|
|
259
259
|
}
|
|
260
|
-
_context.
|
|
260
|
+
_context.n = 26;
|
|
261
261
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppleIdfa();
|
|
262
|
-
case
|
|
263
|
-
|
|
264
|
-
_context.
|
|
262
|
+
case 26:
|
|
263
|
+
_t1 = _context.v;
|
|
264
|
+
_context.n = 28;
|
|
265
265
|
break;
|
|
266
|
-
case
|
|
267
|
-
|
|
268
|
-
case
|
|
269
|
-
|
|
270
|
-
_context.
|
|
266
|
+
case 27:
|
|
267
|
+
_t1 = undefined;
|
|
268
|
+
case 28:
|
|
269
|
+
_t0 = _t1;
|
|
270
|
+
_context.n = 30;
|
|
271
271
|
break;
|
|
272
|
-
case
|
|
273
|
-
|
|
274
|
-
case
|
|
275
|
-
appleIdfa =
|
|
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.
|
|
277
|
+
_context.n = 34;
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAppleIdfv)) {
|
|
281
|
-
_context.
|
|
281
|
+
_context.n = 32;
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
|
-
_context.
|
|
284
|
+
_context.n = 31;
|
|
285
285
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppleIdfv();
|
|
286
|
-
case
|
|
287
|
-
|
|
288
|
-
_context.
|
|
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
|
|
297
|
-
|
|
298
|
-
case
|
|
299
|
-
|
|
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.
|
|
301
|
+
_context.n = 39;
|
|
302
302
|
break;
|
|
303
303
|
}
|
|
304
304
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAndroidIdfa)) {
|
|
305
|
-
_context.
|
|
305
|
+
_context.n = 37;
|
|
306
306
|
break;
|
|
307
307
|
}
|
|
308
|
-
_context.
|
|
308
|
+
_context.n = 36;
|
|
309
309
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAndroidIdfa();
|
|
310
|
-
case
|
|
311
|
-
|
|
312
|
-
_context.
|
|
310
|
+
case 36:
|
|
311
|
+
_t13 = _context.v;
|
|
312
|
+
_context.n = 38;
|
|
313
313
|
break;
|
|
314
|
-
case
|
|
315
|
-
|
|
316
|
-
case
|
|
317
|
-
|
|
318
|
-
_context.
|
|
314
|
+
case 37:
|
|
315
|
+
_t13 = undefined;
|
|
316
|
+
case 38:
|
|
317
|
+
_t12 = _t13;
|
|
318
|
+
_context.n = 40;
|
|
319
319
|
break;
|
|
320
|
-
case
|
|
321
|
-
|
|
322
|
-
case
|
|
323
|
-
androidIdfa =
|
|
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.
|
|
325
|
+
_context.n = 44;
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
328
328
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getPhysicalMemory)) {
|
|
329
|
-
_context.
|
|
329
|
+
_context.n = 42;
|
|
330
330
|
break;
|
|
331
331
|
}
|
|
332
|
-
_context.
|
|
332
|
+
_context.n = 41;
|
|
333
333
|
return platformContextRetriever.getPhysicalMemory();
|
|
334
|
-
case
|
|
335
|
-
|
|
336
|
-
_context.
|
|
334
|
+
case 41:
|
|
335
|
+
_t15 = _context.v;
|
|
336
|
+
_context.n = 43;
|
|
337
337
|
break;
|
|
338
|
-
case
|
|
339
|
-
|
|
340
|
-
case
|
|
341
|
-
|
|
342
|
-
_context.
|
|
338
|
+
case 42:
|
|
339
|
+
_t15 = undefined;
|
|
340
|
+
case 43:
|
|
341
|
+
_t14 = _t15;
|
|
342
|
+
_context.n = 45;
|
|
343
343
|
break;
|
|
344
|
-
case
|
|
345
|
-
|
|
346
|
-
case
|
|
347
|
-
physicalMemory =
|
|
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.
|
|
349
|
+
_context.n = 49;
|
|
350
350
|
break;
|
|
351
351
|
}
|
|
352
352
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getSystemAvailableMemory)) {
|
|
353
|
-
_context.
|
|
353
|
+
_context.n = 47;
|
|
354
354
|
break;
|
|
355
355
|
}
|
|
356
|
-
_context.
|
|
356
|
+
_context.n = 46;
|
|
357
357
|
return platformContextRetriever.getSystemAvailableMemory();
|
|
358
|
-
case
|
|
359
|
-
|
|
360
|
-
_context.
|
|
361
|
-
break;
|
|
362
|
-
case
|
|
363
|
-
|
|
364
|
-
case
|
|
365
|
-
|
|
366
|
-
_context.
|
|
367
|
-
break;
|
|
368
|
-
case
|
|
369
|
-
|
|
370
|
-
case
|
|
371
|
-
systemAvailableMemory =
|
|
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.
|
|
373
|
+
_context.n = 54;
|
|
374
374
|
break;
|
|
375
375
|
}
|
|
376
376
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getAppAvailableMemory)) {
|
|
377
|
-
_context.
|
|
377
|
+
_context.n = 52;
|
|
378
378
|
break;
|
|
379
379
|
}
|
|
380
|
-
_context.
|
|
380
|
+
_context.n = 51;
|
|
381
381
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppAvailableMemory();
|
|
382
|
-
case
|
|
383
|
-
|
|
384
|
-
_context.
|
|
385
|
-
break;
|
|
386
|
-
case
|
|
387
|
-
|
|
388
|
-
case
|
|
389
|
-
|
|
390
|
-
_context.
|
|
391
|
-
break;
|
|
392
|
-
case
|
|
393
|
-
|
|
394
|
-
case
|
|
395
|
-
appAvailableMemory =
|
|
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.
|
|
397
|
+
_context.n = 59;
|
|
398
398
|
break;
|
|
399
399
|
}
|
|
400
400
|
if (!(platformContextRetriever !== null && platformContextRetriever !== void 0 && platformContextRetriever.getBatteryLevel)) {
|
|
401
|
-
_context.
|
|
401
|
+
_context.n = 57;
|
|
402
402
|
break;
|
|
403
403
|
}
|
|
404
|
-
_context.
|
|
404
|
+
_context.n = 56;
|
|
405
405
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getBatteryLevel();
|
|
406
|
-
case
|
|
407
|
-
|
|
408
|
-
_context.
|
|
406
|
+
case 56:
|
|
407
|
+
_t21 = _context.v;
|
|
408
|
+
_context.n = 58;
|
|
409
409
|
break;
|
|
410
|
-
case
|
|
411
|
-
|
|
412
|
-
case
|
|
413
|
-
|
|
414
|
-
_context.
|
|
410
|
+
case 57:
|
|
411
|
+
_t21 = undefined;
|
|
412
|
+
case 58:
|
|
413
|
+
_t20 = _t21;
|
|
414
|
+
_context.n = 60;
|
|
415
415
|
break;
|
|
416
|
-
case
|
|
417
|
-
|
|
418
|
-
case
|
|
419
|
-
batteryLevel =
|
|
420
|
-
if (!((
|
|
421
|
-
_context.
|
|
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.
|
|
425
|
+
_context.n = 62;
|
|
426
426
|
break;
|
|
427
427
|
}
|
|
428
|
-
_context.
|
|
428
|
+
_context.n = 61;
|
|
429
429
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getBatteryState();
|
|
430
|
-
case
|
|
431
|
-
|
|
432
|
-
_context.
|
|
430
|
+
case 61:
|
|
431
|
+
_t23 = _context.v;
|
|
432
|
+
_context.n = 63;
|
|
433
433
|
break;
|
|
434
|
-
case
|
|
435
|
-
|
|
436
|
-
case
|
|
437
|
-
|
|
438
|
-
_context.
|
|
434
|
+
case 62:
|
|
435
|
+
_t23 = undefined;
|
|
436
|
+
case 63:
|
|
437
|
+
_t22 = _t23;
|
|
438
|
+
_context.n = 65;
|
|
439
439
|
break;
|
|
440
|
-
case
|
|
441
|
-
|
|
442
|
-
case
|
|
443
|
-
batteryState =
|
|
444
|
-
if (!((
|
|
445
|
-
_context.
|
|
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.
|
|
449
|
+
_context.n = 67;
|
|
450
450
|
break;
|
|
451
451
|
}
|
|
452
|
-
_context.
|
|
452
|
+
_context.n = 66;
|
|
453
453
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getLowPowerMode();
|
|
454
|
-
case
|
|
455
|
-
|
|
456
|
-
_context.
|
|
454
|
+
case 66:
|
|
455
|
+
_t25 = _context.v;
|
|
456
|
+
_context.n = 68;
|
|
457
457
|
break;
|
|
458
|
-
case
|
|
459
|
-
|
|
460
|
-
case
|
|
461
|
-
|
|
462
|
-
_context.
|
|
458
|
+
case 67:
|
|
459
|
+
_t25 = undefined;
|
|
460
|
+
case 68:
|
|
461
|
+
_t24 = _t25;
|
|
462
|
+
_context.n = 70;
|
|
463
463
|
break;
|
|
464
|
-
case
|
|
465
|
-
|
|
466
|
-
case
|
|
467
|
-
lowPowerMode =
|
|
468
|
-
if (!((
|
|
469
|
-
_context.
|
|
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.
|
|
473
|
+
_context.n = 72;
|
|
474
474
|
break;
|
|
475
475
|
}
|
|
476
|
-
_context.
|
|
476
|
+
_context.n = 71;
|
|
477
477
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAvailableStorage();
|
|
478
|
-
case
|
|
479
|
-
|
|
480
|
-
_context.
|
|
478
|
+
case 71:
|
|
479
|
+
_t27 = _context.v;
|
|
480
|
+
_context.n = 73;
|
|
481
481
|
break;
|
|
482
|
-
case
|
|
483
|
-
|
|
484
|
-
case
|
|
485
|
-
|
|
486
|
-
_context.
|
|
482
|
+
case 72:
|
|
483
|
+
_t27 = undefined;
|
|
484
|
+
case 73:
|
|
485
|
+
_t26 = _t27;
|
|
486
|
+
_context.n = 75;
|
|
487
487
|
break;
|
|
488
|
-
case
|
|
489
|
-
|
|
490
|
-
case
|
|
491
|
-
availableStorage =
|
|
492
|
-
if (!((
|
|
493
|
-
_context.
|
|
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.
|
|
497
|
+
_context.n = 77;
|
|
498
498
|
break;
|
|
499
499
|
}
|
|
500
|
-
_context.
|
|
500
|
+
_context.n = 76;
|
|
501
501
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getTotalStorage();
|
|
502
|
-
case
|
|
503
|
-
|
|
504
|
-
_context.
|
|
502
|
+
case 76:
|
|
503
|
+
_t29 = _context.v;
|
|
504
|
+
_context.n = 78;
|
|
505
505
|
break;
|
|
506
|
-
case
|
|
507
|
-
|
|
508
|
-
case
|
|
509
|
-
|
|
510
|
-
_context.
|
|
506
|
+
case 77:
|
|
507
|
+
_t29 = undefined;
|
|
508
|
+
case 78:
|
|
509
|
+
_t28 = _t29;
|
|
510
|
+
_context.n = 80;
|
|
511
511
|
break;
|
|
512
|
-
case
|
|
513
|
-
|
|
514
|
-
case
|
|
515
|
-
totalStorage =
|
|
516
|
-
if (!((
|
|
517
|
-
_context.
|
|
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.
|
|
521
|
+
_context.n = 82;
|
|
522
522
|
break;
|
|
523
523
|
}
|
|
524
|
-
_context.
|
|
524
|
+
_context.n = 81;
|
|
525
525
|
return platformContextRetriever.isPortrait();
|
|
526
|
-
case
|
|
527
|
-
|
|
528
|
-
_context.
|
|
526
|
+
case 81:
|
|
527
|
+
_t31 = _context.v;
|
|
528
|
+
_context.n = 83;
|
|
529
529
|
break;
|
|
530
|
-
case
|
|
531
|
-
|
|
532
|
-
case
|
|
533
|
-
|
|
534
|
-
_context.
|
|
530
|
+
case 82:
|
|
531
|
+
_t31 = undefined;
|
|
532
|
+
case 83:
|
|
533
|
+
_t30 = _t31;
|
|
534
|
+
_context.n = 85;
|
|
535
535
|
break;
|
|
536
|
-
case
|
|
537
|
-
|
|
538
|
-
case
|
|
539
|
-
isPortrait =
|
|
540
|
-
if (!((
|
|
541
|
-
_context.
|
|
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.
|
|
545
|
+
_context.n = 87;
|
|
546
546
|
break;
|
|
547
547
|
}
|
|
548
|
-
_context.
|
|
548
|
+
_context.n = 86;
|
|
549
549
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getResolution();
|
|
550
|
-
case
|
|
551
|
-
|
|
552
|
-
_context.
|
|
550
|
+
case 86:
|
|
551
|
+
_t33 = _context.v;
|
|
552
|
+
_context.n = 88;
|
|
553
553
|
break;
|
|
554
|
-
case
|
|
555
|
-
|
|
556
|
-
case
|
|
557
|
-
|
|
558
|
-
_context.
|
|
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
|
|
561
|
-
|
|
562
|
-
case
|
|
563
|
-
resolution =
|
|
564
|
-
if (!((
|
|
565
|
-
_context.
|
|
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.
|
|
569
|
+
_context.n = 92;
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
|
-
_context.
|
|
572
|
+
_context.n = 91;
|
|
573
573
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getScale();
|
|
574
|
-
case
|
|
575
|
-
|
|
576
|
-
_context.
|
|
574
|
+
case 91:
|
|
575
|
+
_t35 = _context.v;
|
|
576
|
+
_context.n = 93;
|
|
577
577
|
break;
|
|
578
|
-
case
|
|
579
|
-
|
|
580
|
-
case
|
|
581
|
-
|
|
582
|
-
_context.
|
|
578
|
+
case 92:
|
|
579
|
+
_t35 = PixelRatio.get();
|
|
580
|
+
case 93:
|
|
581
|
+
_t34 = _t35;
|
|
582
|
+
_context.n = 95;
|
|
583
583
|
break;
|
|
584
|
-
case
|
|
585
|
-
|
|
586
|
-
case
|
|
587
|
-
scale =
|
|
588
|
-
if (!((
|
|
589
|
-
_context.
|
|
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.
|
|
593
|
+
_context.n = 97;
|
|
594
594
|
break;
|
|
595
595
|
}
|
|
596
|
-
_context.
|
|
596
|
+
_context.n = 96;
|
|
597
597
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getLanguage();
|
|
598
|
-
case
|
|
599
|
-
|
|
600
|
-
_context.
|
|
598
|
+
case 96:
|
|
599
|
+
_t38 = _context.v;
|
|
600
|
+
_context.n = 98;
|
|
601
601
|
break;
|
|
602
|
-
case
|
|
603
|
-
|
|
604
|
-
case
|
|
605
|
-
|
|
606
|
-
_context.
|
|
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
|
|
609
|
-
|
|
610
|
-
case
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
if (
|
|
614
|
-
_context.
|
|
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
|
-
|
|
618
|
-
case
|
|
619
|
-
if (!
|
|
620
|
-
_context.
|
|
617
|
+
_t36 = _ref4 === void 0;
|
|
618
|
+
case 101:
|
|
619
|
+
if (!_t36) {
|
|
620
|
+
_context.n = 102;
|
|
621
621
|
break;
|
|
622
622
|
}
|
|
623
|
-
|
|
624
|
-
_context.
|
|
623
|
+
_t40 = void 0;
|
|
624
|
+
_context.n = 103;
|
|
625
625
|
break;
|
|
626
|
-
case
|
|
627
|
-
|
|
628
|
-
case
|
|
629
|
-
language =
|
|
630
|
-
if (!((
|
|
631
|
-
_context.
|
|
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.
|
|
635
|
+
_context.n = 105;
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
|
-
_context.
|
|
638
|
+
_context.n = 104;
|
|
639
639
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppSetId();
|
|
640
|
-
case
|
|
641
|
-
|
|
642
|
-
_context.
|
|
640
|
+
case 104:
|
|
641
|
+
_t42 = _context.v;
|
|
642
|
+
_context.n = 106;
|
|
643
643
|
break;
|
|
644
|
-
case
|
|
645
|
-
|
|
646
|
-
case
|
|
647
|
-
|
|
648
|
-
_context.
|
|
644
|
+
case 105:
|
|
645
|
+
_t42 = undefined;
|
|
646
|
+
case 106:
|
|
647
|
+
_t41 = _t42;
|
|
648
|
+
_context.n = 108;
|
|
649
649
|
break;
|
|
650
|
-
case
|
|
651
|
-
|
|
652
|
-
case
|
|
653
|
-
appSetId =
|
|
654
|
-
if (!((
|
|
655
|
-
_context.
|
|
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.
|
|
659
|
+
_context.n = 110;
|
|
660
660
|
break;
|
|
661
661
|
}
|
|
662
|
-
_context.
|
|
662
|
+
_context.n = 109;
|
|
663
663
|
return platformContextRetriever === null || platformContextRetriever === void 0 ? void 0 : platformContextRetriever.getAppSetIdScope();
|
|
664
|
-
case
|
|
665
|
-
|
|
666
|
-
_context.
|
|
667
|
-
break;
|
|
668
|
-
case
|
|
669
|
-
|
|
670
|
-
case
|
|
671
|
-
|
|
672
|
-
_context.
|
|
673
|
-
break;
|
|
674
|
-
case
|
|
675
|
-
|
|
676
|
-
case
|
|
677
|
-
appSetIdScope =
|
|
678
|
-
case
|
|
679
|
-
|
|
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__*/
|
|
690
|
-
return
|
|
691
|
-
while (1) switch (_context2.
|
|
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.
|
|
693
|
+
_context2.n = 1;
|
|
695
694
|
return refreshPlatformContext();
|
|
696
|
-
case
|
|
697
|
-
|
|
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.
|
|
708
|
+
_context3.n = 1;
|
|
711
709
|
break;
|
|
712
710
|
}
|
|
713
|
-
_context3.
|
|
711
|
+
_context3.n = 1;
|
|
714
712
|
return refreshPlatformContext();
|
|
715
|
-
case
|
|
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.
|
|
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
|
}));
|