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