UNPKG

752 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3function 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}
7exports.getBranchApiKey = getBranchApiKey;
8function 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}
17exports.setBranchApiKey = setBranchApiKey;
18//# sourceMappingURL=Branch.js.map
\No newline at end of file