1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | function getBranchApiKey(config) {
|
4 | var _a, _b, _c, _d;
|
5 | return _d = (_c = (_b = (_a = config.ios) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.branch) === null || _c === void 0 ? void 0 : _c.apiKey, (_d !== null && _d !== void 0 ? _d : null);
|
6 | }
|
7 | exports.getBranchApiKey = getBranchApiKey;
|
8 | function setBranchApiKey(config, infoPlist) {
|
9 | let apiKey = getBranchApiKey(config);
|
10 | if (apiKey === null) {
|
11 | return infoPlist;
|
12 | }
|
13 | return Object.assign(Object.assign({}, infoPlist), { branch_key: {
|
14 | live: apiKey,
|
15 | } });
|
16 | }
|
17 | exports.setBranchApiKey = setBranchApiKey;
|
18 |
|
\ | No newline at end of file |