@expo/prebuild-config 5.0.7 → 6.0.0
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/build/getAutolinkedPackages.js +3 -13
- package/build/getAutolinkedPackages.js.map +1 -1
- package/build/getPrebuildConfig.js +9 -24
- package/build/getPrebuildConfig.js.map +1 -1
- package/build/importExpoModulesAutolinking.d.ts +3 -3
- package/build/importExpoModulesAutolinking.js +0 -5
- package/build/importExpoModulesAutolinking.js.map +1 -1
- package/build/index.js +0 -5
- package/build/index.js.map +1 -1
- package/build/plugins/icons/AssetContents.d.ts +3 -3
- package/build/plugins/icons/AssetContents.js +1 -10
- package/build/plugins/icons/AssetContents.js.map +1 -1
- package/build/plugins/icons/withAndroidIcons.d.ts +7 -5
- package/build/plugins/icons/withAndroidIcons.js +52 -71
- package/build/plugins/icons/withAndroidIcons.js.map +1 -1
- package/build/plugins/icons/withAndroidManifestIcons.js +0 -10
- package/build/plugins/icons/withAndroidManifestIcons.js.map +1 -1
- package/build/plugins/icons/withIosIcons.js +24 -48
- package/build/plugins/icons/withIosIcons.js.map +1 -1
- package/build/plugins/unversioned/createLegacyPlugin.js +0 -11
- package/build/plugins/unversioned/createLegacyPlugin.js.map +1 -1
- package/build/plugins/unversioned/expo-ads-admob/expo-ads-admob.js +0 -11
- package/build/plugins/unversioned/expo-ads-admob/expo-ads-admob.js.map +1 -1
- package/build/plugins/unversioned/expo-ads-admob/withAndroidAdMob.js +0 -14
- package/build/plugins/unversioned/expo-ads-admob/withAndroidAdMob.js.map +1 -1
- package/build/plugins/unversioned/expo-ads-admob/withIosAdMob.js +5 -14
- package/build/plugins/unversioned/expo-ads-admob/withIosAdMob.js.map +1 -1
- package/build/plugins/unversioned/expo-apple-authentication.js +0 -11
- package/build/plugins/unversioned/expo-apple-authentication.js.map +1 -1
- package/build/plugins/unversioned/expo-branch/expo-branch.js +4 -13
- package/build/plugins/unversioned/expo-branch/expo-branch.js.map +1 -1
- package/build/plugins/unversioned/expo-branch/withAndroidBranch.js +0 -12
- package/build/plugins/unversioned/expo-branch/withAndroidBranch.js.map +1 -1
- package/build/plugins/unversioned/expo-branch/withIosBranch.js +2 -11
- package/build/plugins/unversioned/expo-branch/withIosBranch.js.map +1 -1
- package/build/plugins/unversioned/expo-contacts.js +2 -13
- package/build/plugins/unversioned/expo-contacts.js.map +1 -1
- package/build/plugins/unversioned/expo-document-picker.js +2 -12
- package/build/plugins/unversioned/expo-document-picker.js.map +1 -1
- package/build/plugins/unversioned/expo-navigation-bar/expo-navigation-bar.js +2 -9
- package/build/plugins/unversioned/expo-navigation-bar/expo-navigation-bar.js.map +1 -1
- package/build/plugins/unversioned/expo-navigation-bar/withAndroidNavigationBar.js +0 -20
- package/build/plugins/unversioned/expo-navigation-bar/withAndroidNavigationBar.js.map +1 -1
- package/build/plugins/unversioned/expo-notifications/expo-notifications.js +4 -14
- package/build/plugins/unversioned/expo-notifications/expo-notifications.js.map +1 -1
- package/build/plugins/unversioned/expo-notifications/withAndroidNotifications.d.ts +1 -1
- package/build/plugins/unversioned/expo-notifications/withAndroidNotifications.js +1 -44
- package/build/plugins/unversioned/expo-notifications/withAndroidNotifications.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/InterfaceBuilder.d.ts +20 -20
- package/build/plugins/unversioned/expo-splash-screen/InterfaceBuilder.js +14 -33
- package/build/plugins/unversioned/expo-splash-screen/InterfaceBuilder.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/expo-splash-screen.js +0 -11
- package/build/plugins/unversioned/expo-splash-screen/expo-splash-screen.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/getAndroidSplashConfig.d.ts +1 -1
- package/build/plugins/unversioned/expo-splash-screen/getAndroidSplashConfig.js +2 -11
- package/build/plugins/unversioned/expo-splash-screen/getAndroidSplashConfig.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/getIosSplashConfig.d.ts +1 -2
- package/build/plugins/unversioned/expo-splash-screen/getIosSplashConfig.js +0 -26
- package/build/plugins/unversioned/expo-splash-screen/getIosSplashConfig.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashDrawables.js +4 -9
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashDrawables.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashImages.js +9 -36
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashImages.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashLegacyMainActivity.js +13 -34
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashLegacyMainActivity.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen.js +4 -46
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashStrings.js +0 -13
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashStrings.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashStyles.js +2 -23
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashStyles.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashAssets.js +16 -54
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashAssets.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashInfoPlist.js +6 -22
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashInfoPlist.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen.js +7 -35
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashScreenStoryboard.js +9 -33
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashScreenStoryboard.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashXcodeProject.js +1 -18
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashXcodeProject.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/wtihIosSplashScreenStoryboardImage.js +2 -15
- package/build/plugins/unversioned/expo-splash-screen/wtihIosSplashScreenStoryboardImage.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/expo-system-ui.js +0 -17
- package/build/plugins/unversioned/expo-system-ui/expo-system-ui.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/withAndroidRootViewBackgroundColor.js +0 -14
- package/build/plugins/unversioned/expo-system-ui/withAndroidRootViewBackgroundColor.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/withAndroidUserInterfaceStyle.js +2 -9
- package/build/plugins/unversioned/expo-system-ui/withAndroidUserInterfaceStyle.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/withIosRootViewBackgroundColor.js +2 -27
- package/build/plugins/unversioned/expo-system-ui/withIosRootViewBackgroundColor.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/withIosUserInterfaceStyle.js +2 -14
- package/build/plugins/unversioned/expo-system-ui/withIosUserInterfaceStyle.js.map +1 -1
- package/build/plugins/unversioned/expo-updates.js +1 -8
- package/build/plugins/unversioned/expo-updates.js.map +1 -1
- package/build/plugins/unversioned/react-native-maps.js +4 -19
- package/build/plugins/unversioned/react-native-maps.js.map +1 -1
- package/build/plugins/withDefaultPlugins.d.ts +2 -2
- package/build/plugins/withDefaultPlugins.js +41 -94
- package/build/plugins/withDefaultPlugins.js.map +1 -1
- package/package.json +6 -6
- package/build/plugins/unversioned/expo-facebook/expo-facebook.d.ts +0 -2
- package/build/plugins/unversioned/expo-facebook/expo-facebook.js +0 -57
- package/build/plugins/unversioned/expo-facebook/expo-facebook.js.map +0 -1
- package/build/plugins/unversioned/expo-facebook/withAndroidFacebook.d.ts +0 -13
- package/build/plugins/unversioned/expo-facebook/withAndroidFacebook.js +0 -235
- package/build/plugins/unversioned/expo-facebook/withAndroidFacebook.js.map +0 -1
- package/build/plugins/unversioned/expo-facebook/withIosFacebook.d.ts +0 -26
- package/build/plugins/unversioned/expo-facebook/withIosFacebook.js +0 -233
- package/build/plugins/unversioned/expo-facebook/withIosFacebook.js.map +0 -1
- package/build/plugins/unversioned/expo-facebook/withSKAdNetworkIdentifiers.d.ts +0 -9
- package/build/plugins/unversioned/expo-facebook/withSKAdNetworkIdentifiers.js +0 -69
- package/build/plugins/unversioned/expo-facebook/withSKAdNetworkIdentifiers.js.map +0 -1
|
@@ -4,43 +4,34 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
function _createLegacyPlugin() {
|
|
9
8
|
const data = require("../createLegacyPlugin");
|
|
10
|
-
|
|
11
9
|
_createLegacyPlugin = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _withAndroidBranch() {
|
|
19
15
|
const data = require("./withAndroidBranch");
|
|
20
|
-
|
|
21
16
|
_withAndroidBranch = function () {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function _withIosBranch() {
|
|
29
22
|
const data = require("./withIosBranch");
|
|
30
|
-
|
|
31
23
|
_withIosBranch = function () {
|
|
32
24
|
return data;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
return data;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
var _default = (0, _createLegacyPlugin().createLegacyPlugin)({
|
|
39
29
|
packageName: 'expo-branch',
|
|
40
|
-
fallback: [
|
|
41
|
-
|
|
30
|
+
fallback: [
|
|
31
|
+
// Android
|
|
32
|
+
_withAndroidBranch().withAndroidBranch,
|
|
33
|
+
// iOS
|
|
42
34
|
_withIosBranch().withIosBranch]
|
|
43
35
|
});
|
|
44
|
-
|
|
45
36
|
exports.default = _default;
|
|
46
37
|
//# sourceMappingURL=expo-branch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo-branch.js","names":["createLegacyPlugin","packageName","fallback","withAndroidBranch","withIosBranch"],"sources":["../../../../src/plugins/unversioned/expo-branch/expo-branch.ts"],"sourcesContent":["import { createLegacyPlugin } from '../createLegacyPlugin';\nimport { withAndroidBranch } from './withAndroidBranch';\nimport { withIosBranch } from './withIosBranch';\n\nexport default createLegacyPlugin({\n packageName: 'expo-branch',\n fallback: [\n // Android\n withAndroidBranch,\n // iOS\n withIosBranch,\n ],\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"expo-branch.js","names":["createLegacyPlugin","packageName","fallback","withAndroidBranch","withIosBranch"],"sources":["../../../../src/plugins/unversioned/expo-branch/expo-branch.ts"],"sourcesContent":["import { createLegacyPlugin } from '../createLegacyPlugin';\nimport { withAndroidBranch } from './withAndroidBranch';\nimport { withIosBranch } from './withIosBranch';\n\nexport default createLegacyPlugin({\n packageName: 'expo-branch',\n fallback: [\n // Android\n withAndroidBranch,\n // iOS\n withIosBranch,\n ],\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAgD,eAEjC,IAAAA,wCAAkB,EAAC;EAChCC,WAAW,EAAE,aAAa;EAC1BC,QAAQ,EAAE;EACR;EACAC,sCAAiB;EACjB;EACAC,8BAAa;AAEjB,CAAC,CAAC;AAAA"}
|
|
@@ -6,44 +6,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getBranchApiKey = getBranchApiKey;
|
|
7
7
|
exports.setBranchApiKey = setBranchApiKey;
|
|
8
8
|
exports.withAndroidBranch = void 0;
|
|
9
|
-
|
|
10
9
|
function _configPlugins() {
|
|
11
10
|
const data = require("@expo/config-plugins");
|
|
12
|
-
|
|
13
11
|
_configPlugins = function () {
|
|
14
12
|
return data;
|
|
15
13
|
};
|
|
16
|
-
|
|
17
14
|
return data;
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
const {
|
|
21
17
|
addMetaDataItemToMainApplication,
|
|
22
18
|
getMainApplicationOrThrow,
|
|
23
19
|
removeMetaDataItemFromMainApplication
|
|
24
20
|
} = _configPlugins().AndroidConfig.Manifest;
|
|
25
|
-
|
|
26
21
|
const META_BRANCH_KEY = 'io.branch.sdk.BranchKey';
|
|
27
|
-
|
|
28
22
|
const withAndroidBranch = config => {
|
|
29
23
|
return (0, _configPlugins().withAndroidManifest)(config, config => {
|
|
30
24
|
config.modResults = setBranchApiKey(config, config.modResults);
|
|
31
25
|
return config;
|
|
32
26
|
});
|
|
33
27
|
};
|
|
34
|
-
|
|
35
28
|
exports.withAndroidBranch = withAndroidBranch;
|
|
36
|
-
|
|
37
29
|
function getBranchApiKey(config) {
|
|
38
30
|
var _config$android$confi, _config$android, _config$android$confi2, _config$android$confi3;
|
|
39
|
-
|
|
40
31
|
return (_config$android$confi = (_config$android = config.android) === null || _config$android === void 0 ? void 0 : (_config$android$confi2 = _config$android.config) === null || _config$android$confi2 === void 0 ? void 0 : (_config$android$confi3 = _config$android$confi2.branch) === null || _config$android$confi3 === void 0 ? void 0 : _config$android$confi3.apiKey) !== null && _config$android$confi !== void 0 ? _config$android$confi : null;
|
|
41
32
|
}
|
|
42
|
-
|
|
43
33
|
function setBranchApiKey(config, androidManifest) {
|
|
44
34
|
const apiKey = getBranchApiKey(config);
|
|
45
35
|
const mainApplication = getMainApplicationOrThrow(androidManifest);
|
|
46
|
-
|
|
47
36
|
if (apiKey) {
|
|
48
37
|
// If the item exists, add it back
|
|
49
38
|
addMetaDataItemToMainApplication(mainApplication, META_BRANCH_KEY, apiKey);
|
|
@@ -51,7 +40,6 @@ function setBranchApiKey(config, androidManifest) {
|
|
|
51
40
|
// Remove any existing item
|
|
52
41
|
removeMetaDataItemFromMainApplication(mainApplication, META_BRANCH_KEY);
|
|
53
42
|
}
|
|
54
|
-
|
|
55
43
|
return androidManifest;
|
|
56
44
|
}
|
|
57
45
|
//# sourceMappingURL=withAndroidBranch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withAndroidBranch.js","names":["addMetaDataItemToMainApplication","getMainApplicationOrThrow","removeMetaDataItemFromMainApplication","AndroidConfig","Manifest","META_BRANCH_KEY","withAndroidBranch","config","withAndroidManifest","modResults","setBranchApiKey","getBranchApiKey","android","branch","apiKey","androidManifest","mainApplication"],"sources":["../../../../src/plugins/unversioned/expo-branch/withAndroidBranch.ts"],"sourcesContent":["import { AndroidConfig, ConfigPlugin, withAndroidManifest } from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nconst {\n addMetaDataItemToMainApplication,\n getMainApplicationOrThrow,\n removeMetaDataItemFromMainApplication,\n} = AndroidConfig.Manifest;\n\nconst META_BRANCH_KEY = 'io.branch.sdk.BranchKey';\n\nexport const withAndroidBranch: ConfigPlugin = (config) => {\n return withAndroidManifest(config, (config) => {\n config.modResults = setBranchApiKey(config, config.modResults);\n return config;\n });\n};\n\nexport function getBranchApiKey(config: ExpoConfig) {\n return config.android?.config?.branch?.apiKey ?? null;\n}\n\nexport function setBranchApiKey(\n config: ExpoConfig,\n androidManifest: AndroidConfig.Manifest.AndroidManifest\n) {\n const apiKey = getBranchApiKey(config);\n\n const mainApplication = getMainApplicationOrThrow(androidManifest);\n\n if (apiKey) {\n // If the item exists, add it back\n addMetaDataItemToMainApplication(mainApplication, META_BRANCH_KEY, apiKey);\n } else {\n // Remove any existing item\n removeMetaDataItemFromMainApplication(mainApplication, META_BRANCH_KEY);\n }\n return androidManifest;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withAndroidBranch.js","names":["addMetaDataItemToMainApplication","getMainApplicationOrThrow","removeMetaDataItemFromMainApplication","AndroidConfig","Manifest","META_BRANCH_KEY","withAndroidBranch","config","withAndroidManifest","modResults","setBranchApiKey","getBranchApiKey","android","branch","apiKey","androidManifest","mainApplication"],"sources":["../../../../src/plugins/unversioned/expo-branch/withAndroidBranch.ts"],"sourcesContent":["import { AndroidConfig, ConfigPlugin, withAndroidManifest } from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nconst {\n addMetaDataItemToMainApplication,\n getMainApplicationOrThrow,\n removeMetaDataItemFromMainApplication,\n} = AndroidConfig.Manifest;\n\nconst META_BRANCH_KEY = 'io.branch.sdk.BranchKey';\n\nexport const withAndroidBranch: ConfigPlugin = (config) => {\n return withAndroidManifest(config, (config) => {\n config.modResults = setBranchApiKey(config, config.modResults);\n return config;\n });\n};\n\nexport function getBranchApiKey(config: ExpoConfig) {\n return config.android?.config?.branch?.apiKey ?? null;\n}\n\nexport function setBranchApiKey(\n config: ExpoConfig,\n androidManifest: AndroidConfig.Manifest.AndroidManifest\n) {\n const apiKey = getBranchApiKey(config);\n\n const mainApplication = getMainApplicationOrThrow(androidManifest);\n\n if (apiKey) {\n // If the item exists, add it back\n addMetaDataItemToMainApplication(mainApplication, META_BRANCH_KEY, apiKey);\n } else {\n // Remove any existing item\n removeMetaDataItemFromMainApplication(mainApplication, META_BRANCH_KEY);\n }\n return androidManifest;\n}\n"],"mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA,MAAM;EACJA,gCAAgC;EAChCC,yBAAyB;EACzBC;AACF,CAAC,GAAGC,8BAAa,CAACC,QAAQ;AAE1B,MAAMC,eAAe,GAAG,yBAAyB;AAE1C,MAAMC,iBAA+B,GAAIC,MAAM,IAAK;EACzD,OAAO,IAAAC,oCAAmB,EAACD,MAAM,EAAGA,MAAM,IAAK;IAC7CA,MAAM,CAACE,UAAU,GAAGC,eAAe,CAACH,MAAM,EAAEA,MAAM,CAACE,UAAU,CAAC;IAC9D,OAAOF,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAAC;AAEK,SAASI,eAAe,CAACJ,MAAkB,EAAE;EAAA;EAClD,mDAAOA,MAAM,CAACK,OAAO,8EAAd,gBAAgBL,MAAM,qFAAtB,uBAAwBM,MAAM,2DAA9B,uBAAgCC,MAAM,yEAAI,IAAI;AACvD;AAEO,SAASJ,eAAe,CAC7BH,MAAkB,EAClBQ,eAAuD,EACvD;EACA,MAAMD,MAAM,GAAGH,eAAe,CAACJ,MAAM,CAAC;EAEtC,MAAMS,eAAe,GAAGf,yBAAyB,CAACc,eAAe,CAAC;EAElE,IAAID,MAAM,EAAE;IACV;IACAd,gCAAgC,CAACgB,eAAe,EAAEX,eAAe,EAAES,MAAM,CAAC;EAC5E,CAAC,MAAM;IACL;IACAZ,qCAAqC,CAACc,eAAe,EAAEX,eAAe,CAAC;EACzE;EACA,OAAOU,eAAe;AACxB"}
|
|
@@ -6,40 +6,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getBranchApiKey = getBranchApiKey;
|
|
7
7
|
exports.setBranchApiKey = setBranchApiKey;
|
|
8
8
|
exports.withIosBranch = void 0;
|
|
9
|
-
|
|
10
9
|
function _configPlugins() {
|
|
11
10
|
const data = require("@expo/config-plugins");
|
|
12
|
-
|
|
13
11
|
_configPlugins = function () {
|
|
14
12
|
return data;
|
|
15
13
|
};
|
|
16
|
-
|
|
17
14
|
return data;
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
const withIosBranch = config => {
|
|
21
17
|
return (0, _configPlugins().withInfoPlist)(config, config => {
|
|
22
18
|
config.modResults = setBranchApiKey(config, config.modResults);
|
|
23
19
|
return config;
|
|
24
20
|
});
|
|
25
21
|
};
|
|
26
|
-
|
|
27
22
|
exports.withIosBranch = withIosBranch;
|
|
28
|
-
|
|
29
23
|
function getBranchApiKey(config) {
|
|
30
24
|
var _config$ios$config$br, _config$ios, _config$ios$config, _config$ios$config$br2;
|
|
31
|
-
|
|
32
25
|
return (_config$ios$config$br = (_config$ios = config.ios) === null || _config$ios === void 0 ? void 0 : (_config$ios$config = _config$ios.config) === null || _config$ios$config === void 0 ? void 0 : (_config$ios$config$br2 = _config$ios$config.branch) === null || _config$ios$config$br2 === void 0 ? void 0 : _config$ios$config$br2.apiKey) !== null && _config$ios$config$br !== void 0 ? _config$ios$config$br : null;
|
|
33
26
|
}
|
|
34
|
-
|
|
35
27
|
function setBranchApiKey(config, infoPlist) {
|
|
36
28
|
const apiKey = getBranchApiKey(config);
|
|
37
|
-
|
|
38
29
|
if (apiKey === null) {
|
|
39
30
|
return infoPlist;
|
|
40
31
|
}
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
return {
|
|
33
|
+
...infoPlist,
|
|
43
34
|
branch_key: {
|
|
44
35
|
live: apiKey
|
|
45
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withIosBranch.js","names":["withIosBranch","config","withInfoPlist","modResults","setBranchApiKey","getBranchApiKey","ios","branch","apiKey","infoPlist","branch_key","live"],"sources":["../../../../src/plugins/unversioned/expo-branch/withIosBranch.ts"],"sourcesContent":["import { ConfigPlugin, InfoPlist, withInfoPlist } from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nexport const withIosBranch: ConfigPlugin = (config) => {\n return withInfoPlist(config, (config) => {\n config.modResults = setBranchApiKey(config, config.modResults);\n return config;\n });\n};\n\nexport function getBranchApiKey(config: Pick<ExpoConfig, 'ios'>) {\n return config.ios?.config?.branch?.apiKey ?? null;\n}\n\nexport function setBranchApiKey(config: Pick<ExpoConfig, 'ios'>, infoPlist: InfoPlist): InfoPlist {\n const apiKey = getBranchApiKey(config);\n\n if (apiKey === null) {\n return infoPlist;\n }\n\n return {\n ...infoPlist,\n branch_key: {\n live: apiKey,\n },\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withIosBranch.js","names":["withIosBranch","config","withInfoPlist","modResults","setBranchApiKey","getBranchApiKey","ios","branch","apiKey","infoPlist","branch_key","live"],"sources":["../../../../src/plugins/unversioned/expo-branch/withIosBranch.ts"],"sourcesContent":["import { ConfigPlugin, InfoPlist, withInfoPlist } from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nexport const withIosBranch: ConfigPlugin = (config) => {\n return withInfoPlist(config, (config) => {\n config.modResults = setBranchApiKey(config, config.modResults);\n return config;\n });\n};\n\nexport function getBranchApiKey(config: Pick<ExpoConfig, 'ios'>) {\n return config.ios?.config?.branch?.apiKey ?? null;\n}\n\nexport function setBranchApiKey(config: Pick<ExpoConfig, 'ios'>, infoPlist: InfoPlist): InfoPlist {\n const apiKey = getBranchApiKey(config);\n\n if (apiKey === null) {\n return infoPlist;\n }\n\n return {\n ...infoPlist,\n branch_key: {\n live: apiKey,\n },\n };\n}\n"],"mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,aAA2B,GAAIC,MAAM,IAAK;EACrD,OAAO,IAAAC,8BAAa,EAACD,MAAM,EAAGA,MAAM,IAAK;IACvCA,MAAM,CAACE,UAAU,GAAGC,eAAe,CAACH,MAAM,EAAEA,MAAM,CAACE,UAAU,CAAC;IAC9D,OAAOF,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAAC;AAEK,SAASI,eAAe,CAACJ,MAA+B,EAAE;EAAA;EAC/D,+CAAOA,MAAM,CAACK,GAAG,sEAAV,YAAYL,MAAM,iFAAlB,mBAAoBM,MAAM,2DAA1B,uBAA4BC,MAAM,yEAAI,IAAI;AACnD;AAEO,SAASJ,eAAe,CAACH,MAA+B,EAAEQ,SAAoB,EAAa;EAChG,MAAMD,MAAM,GAAGH,eAAe,CAACJ,MAAM,CAAC;EAEtC,IAAIO,MAAM,KAAK,IAAI,EAAE;IACnB,OAAOC,SAAS;EAClB;EAEA,OAAO;IACL,GAAGA,SAAS;IACZC,UAAU,EAAE;MACVC,IAAI,EAAEH;IACR;EACF,CAAC;AACH"}
|
|
@@ -4,50 +4,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
function _configPlugins() {
|
|
9
8
|
const data = require("@expo/config-plugins");
|
|
10
|
-
|
|
11
9
|
_configPlugins = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _createLegacyPlugin() {
|
|
19
15
|
const data = require("./createLegacyPlugin");
|
|
20
|
-
|
|
21
16
|
_createLegacyPlugin = function () {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
const withAccessesContactNotes = config => {
|
|
29
22
|
return (0, _configPlugins().withEntitlementsPlist)(config, config => {
|
|
30
23
|
config.modResults = setAccessesContactNotes(config, config.modResults);
|
|
31
24
|
return config;
|
|
32
25
|
});
|
|
33
26
|
};
|
|
34
|
-
|
|
35
27
|
function setAccessesContactNotes(config, entitlementsPlist) {
|
|
36
28
|
var _config$ios;
|
|
37
|
-
|
|
38
29
|
if ((_config$ios = config.ios) !== null && _config$ios !== void 0 && _config$ios.accessesContactNotes) {
|
|
39
|
-
return {
|
|
30
|
+
return {
|
|
31
|
+
...entitlementsPlist,
|
|
40
32
|
'com.apple.developer.contacts.notes': true
|
|
41
33
|
};
|
|
42
34
|
}
|
|
43
|
-
|
|
44
35
|
return entitlementsPlist;
|
|
45
36
|
}
|
|
46
|
-
|
|
47
37
|
var _default = (0, _createLegacyPlugin().createLegacyPlugin)({
|
|
48
38
|
packageName: 'expo-contacts',
|
|
49
39
|
fallback: withAccessesContactNotes
|
|
50
40
|
});
|
|
51
|
-
|
|
52
41
|
exports.default = _default;
|
|
53
42
|
//# sourceMappingURL=expo-contacts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo-contacts.js","names":["withAccessesContactNotes","config","withEntitlementsPlist","modResults","setAccessesContactNotes","entitlementsPlist","ios","accessesContactNotes","createLegacyPlugin","packageName","fallback"],"sources":["../../../src/plugins/unversioned/expo-contacts.ts"],"sourcesContent":["import { ConfigPlugin, withEntitlementsPlist } from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\nimport { JSONObject } from '@expo/json-file';\n\nimport { createLegacyPlugin } from './createLegacyPlugin';\n\nconst withAccessesContactNotes: ConfigPlugin = (config) => {\n return withEntitlementsPlist(config, (config) => {\n config.modResults = setAccessesContactNotes(config, config.modResults);\n return config;\n });\n};\n\nfunction setAccessesContactNotes(config: ExpoConfig, entitlementsPlist: JSONObject): JSONObject {\n if (config.ios?.accessesContactNotes) {\n return {\n ...entitlementsPlist,\n 'com.apple.developer.contacts.notes': true,\n };\n }\n\n return entitlementsPlist;\n}\n\nexport default createLegacyPlugin({\n packageName: 'expo-contacts',\n fallback: withAccessesContactNotes,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"expo-contacts.js","names":["withAccessesContactNotes","config","withEntitlementsPlist","modResults","setAccessesContactNotes","entitlementsPlist","ios","accessesContactNotes","createLegacyPlugin","packageName","fallback"],"sources":["../../../src/plugins/unversioned/expo-contacts.ts"],"sourcesContent":["import { ConfigPlugin, withEntitlementsPlist } from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\nimport { JSONObject } from '@expo/json-file';\n\nimport { createLegacyPlugin } from './createLegacyPlugin';\n\nconst withAccessesContactNotes: ConfigPlugin = (config) => {\n return withEntitlementsPlist(config, (config) => {\n config.modResults = setAccessesContactNotes(config, config.modResults);\n return config;\n });\n};\n\nfunction setAccessesContactNotes(config: ExpoConfig, entitlementsPlist: JSONObject): JSONObject {\n if (config.ios?.accessesContactNotes) {\n return {\n ...entitlementsPlist,\n 'com.apple.developer.contacts.notes': true,\n };\n }\n\n return entitlementsPlist;\n}\n\nexport default createLegacyPlugin({\n packageName: 'expo-contacts',\n fallback: withAccessesContactNotes,\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA,MAAMA,wBAAsC,GAAIC,MAAM,IAAK;EACzD,OAAO,IAAAC,sCAAqB,EAACD,MAAM,EAAGA,MAAM,IAAK;IAC/CA,MAAM,CAACE,UAAU,GAAGC,uBAAuB,CAACH,MAAM,EAAEA,MAAM,CAACE,UAAU,CAAC;IACtE,OAAOF,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAED,SAASG,uBAAuB,CAACH,MAAkB,EAAEI,iBAA6B,EAAc;EAAA;EAC9F,mBAAIJ,MAAM,CAACK,GAAG,wCAAV,YAAYC,oBAAoB,EAAE;IACpC,OAAO;MACL,GAAGF,iBAAiB;MACpB,oCAAoC,EAAE;IACxC,CAAC;EACH;EAEA,OAAOA,iBAAiB;AAC1B;AAAC,eAEc,IAAAG,wCAAkB,EAAC;EAChCC,WAAW,EAAE,eAAe;EAC5BC,QAAQ,EAAEV;AACZ,CAAC,CAAC;AAAA"}
|
|
@@ -4,42 +4,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
function _configPlugins() {
|
|
9
8
|
const data = require("@expo/config-plugins");
|
|
10
|
-
|
|
11
9
|
_configPlugins = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _createLegacyPlugin() {
|
|
19
15
|
const data = require("./createLegacyPlugin");
|
|
20
|
-
|
|
21
16
|
_createLegacyPlugin = function () {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
var _default = (0, _createLegacyPlugin().createLegacyPlugin)({
|
|
29
22
|
packageName: 'expo-document-picker',
|
|
30
|
-
|
|
31
23
|
fallback(config) {
|
|
32
24
|
var _config$ios;
|
|
33
|
-
|
|
34
25
|
if ((_config$ios = config.ios) !== null && _config$ios !== void 0 && _config$ios.usesIcloudStorage) {
|
|
35
|
-
_configPlugins().WarningAggregator.addWarningIOS('ios.usesIcloudStorage', 'Install expo-document-picker to enable the ios.usesIcloudStorage feature'
|
|
26
|
+
_configPlugins().WarningAggregator.addWarningIOS('ios.usesIcloudStorage', 'Install expo-document-picker to enable the ios.usesIcloudStorage feature'
|
|
27
|
+
// TODO: add a link to a docs page with more information on how to do this
|
|
36
28
|
);
|
|
37
29
|
}
|
|
38
30
|
|
|
39
31
|
return config;
|
|
40
32
|
}
|
|
41
|
-
|
|
42
33
|
});
|
|
43
|
-
|
|
44
34
|
exports.default = _default;
|
|
45
35
|
//# sourceMappingURL=expo-document-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo-document-picker.js","names":["createLegacyPlugin","packageName","fallback","config","ios","usesIcloudStorage","WarningAggregator","addWarningIOS"],"sources":["../../../src/plugins/unversioned/expo-document-picker.ts"],"sourcesContent":["import { WarningAggregator } from '@expo/config-plugins';\n\nimport { createLegacyPlugin } from './createLegacyPlugin';\n\nexport default createLegacyPlugin({\n packageName: 'expo-document-picker',\n fallback(config) {\n if (config.ios?.usesIcloudStorage) {\n WarningAggregator.addWarningIOS(\n 'ios.usesIcloudStorage',\n 'Install expo-document-picker to enable the ios.usesIcloudStorage feature'\n // TODO: add a link to a docs page with more information on how to do this\n );\n }\n return config;\n },\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"expo-document-picker.js","names":["createLegacyPlugin","packageName","fallback","config","ios","usesIcloudStorage","WarningAggregator","addWarningIOS"],"sources":["../../../src/plugins/unversioned/expo-document-picker.ts"],"sourcesContent":["import { WarningAggregator } from '@expo/config-plugins';\n\nimport { createLegacyPlugin } from './createLegacyPlugin';\n\nexport default createLegacyPlugin({\n packageName: 'expo-document-picker',\n fallback(config) {\n if (config.ios?.usesIcloudStorage) {\n WarningAggregator.addWarningIOS(\n 'ios.usesIcloudStorage',\n 'Install expo-document-picker to enable the ios.usesIcloudStorage feature'\n // TODO: add a link to a docs page with more information on how to do this\n );\n }\n return config;\n },\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA0D,eAE3C,IAAAA,wCAAkB,EAAC;EAChCC,WAAW,EAAE,sBAAsB;EACnCC,QAAQ,CAACC,MAAM,EAAE;IAAA;IACf,mBAAIA,MAAM,CAACC,GAAG,wCAAV,YAAYC,iBAAiB,EAAE;MACjCC,kCAAiB,CAACC,aAAa,CAC7B,uBAAuB,EACvB;MACA;MAAA,CACD;IACH;;IACA,OAAOJ,MAAM;EACf;AACF,CAAC,CAAC;AAAA"}
|
|
@@ -4,32 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
function _createLegacyPlugin() {
|
|
9
8
|
const data = require("../createLegacyPlugin");
|
|
10
|
-
|
|
11
9
|
_createLegacyPlugin = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _withAndroidNavigationBar() {
|
|
19
15
|
const data = require("./withAndroidNavigationBar");
|
|
20
|
-
|
|
21
16
|
_withAndroidNavigationBar = function () {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
var _default = (0, _createLegacyPlugin().createLegacyPlugin)({
|
|
29
22
|
packageName: 'expo-navigation-bar',
|
|
30
|
-
fallback: [
|
|
23
|
+
fallback: [
|
|
24
|
+
// Android
|
|
31
25
|
_withAndroidNavigationBar().withNavigationBar]
|
|
32
26
|
});
|
|
33
|
-
|
|
34
27
|
exports.default = _default;
|
|
35
28
|
//# sourceMappingURL=expo-navigation-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo-navigation-bar.js","names":["createLegacyPlugin","packageName","fallback","withNavigationBar"],"sources":["../../../../src/plugins/unversioned/expo-navigation-bar/expo-navigation-bar.ts"],"sourcesContent":["import { createLegacyPlugin } from '../createLegacyPlugin';\nimport { withNavigationBar } from './withAndroidNavigationBar';\n\nexport default createLegacyPlugin({\n packageName: 'expo-navigation-bar',\n fallback: [\n // Android\n withNavigationBar,\n ],\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"expo-navigation-bar.js","names":["createLegacyPlugin","packageName","fallback","withNavigationBar"],"sources":["../../../../src/plugins/unversioned/expo-navigation-bar/expo-navigation-bar.ts"],"sourcesContent":["import { createLegacyPlugin } from '../createLegacyPlugin';\nimport { withNavigationBar } from './withAndroidNavigationBar';\n\nexport default createLegacyPlugin({\n packageName: 'expo-navigation-bar',\n fallback: [\n // Android\n withNavigationBar,\n ],\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA+D,eAEhD,IAAAA,wCAAkB,EAAC;EAChCC,WAAW,EAAE,qBAAqB;EAClCC,QAAQ,EAAE;EACR;EACAC,6CAAiB;AAErB,CAAC,CAAC;AAAA"}
|
|
@@ -9,61 +9,47 @@ exports.getNavigationBarStyle = getNavigationBarStyle;
|
|
|
9
9
|
exports.setNavigationBarColors = setNavigationBarColors;
|
|
10
10
|
exports.setNavigationBarStyles = setNavigationBarStyles;
|
|
11
11
|
exports.withNavigationBar = void 0;
|
|
12
|
-
|
|
13
12
|
function _configPlugins() {
|
|
14
13
|
const data = require("@expo/config-plugins");
|
|
15
|
-
|
|
16
14
|
_configPlugins = function () {
|
|
17
15
|
return data;
|
|
18
16
|
};
|
|
19
|
-
|
|
20
17
|
return data;
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
const NAVIGATION_BAR_COLOR = 'navigationBarColor';
|
|
24
|
-
|
|
25
20
|
const withNavigationBar = config => {
|
|
26
21
|
const immersiveMode = getNavigationBarImmersiveMode(config);
|
|
27
|
-
|
|
28
22
|
if (immersiveMode) {
|
|
29
23
|
// Immersive mode needs to be set programmatically
|
|
30
24
|
_configPlugins().WarningAggregator.addWarningAndroid('androidNavigationBar.visible', 'Property is deprecated in Android 11 (API 30) and will be removed from Expo SDK.', 'https://expo.fyi/android-navigation-bar-visible-deprecated');
|
|
31
25
|
}
|
|
32
|
-
|
|
33
26
|
config = withNavigationBarColors(config);
|
|
34
27
|
config = withNavigationBarStyles(config);
|
|
35
28
|
return config;
|
|
36
29
|
};
|
|
37
|
-
|
|
38
30
|
exports.withNavigationBar = withNavigationBar;
|
|
39
|
-
|
|
40
31
|
const withNavigationBarColors = config => {
|
|
41
32
|
return (0, _configPlugins().withAndroidColors)(config, config => {
|
|
42
33
|
config.modResults = setNavigationBarColors(config, config.modResults);
|
|
43
34
|
return config;
|
|
44
35
|
});
|
|
45
36
|
};
|
|
46
|
-
|
|
47
37
|
const withNavigationBarStyles = config => {
|
|
48
38
|
return (0, _configPlugins().withAndroidStyles)(config, config => {
|
|
49
39
|
config.modResults = setNavigationBarStyles(config, config.modResults);
|
|
50
40
|
return config;
|
|
51
41
|
});
|
|
52
42
|
};
|
|
53
|
-
|
|
54
43
|
function setNavigationBarColors(config, colors) {
|
|
55
44
|
const hexString = getNavigationBarColor(config);
|
|
56
|
-
|
|
57
45
|
if (hexString) {
|
|
58
46
|
colors = _configPlugins().AndroidConfig.Colors.setColorItem(_configPlugins().AndroidConfig.Resources.buildResourceItem({
|
|
59
47
|
name: NAVIGATION_BAR_COLOR,
|
|
60
48
|
value: hexString
|
|
61
49
|
}), colors);
|
|
62
50
|
}
|
|
63
|
-
|
|
64
51
|
return colors;
|
|
65
52
|
}
|
|
66
|
-
|
|
67
53
|
function setNavigationBarStyles(config, styles) {
|
|
68
54
|
styles = _configPlugins().AndroidConfig.Styles.assignStylesValue(styles, {
|
|
69
55
|
add: getNavigationBarStyle(config) === 'dark-content',
|
|
@@ -79,22 +65,16 @@ function setNavigationBarStyles(config, styles) {
|
|
|
79
65
|
});
|
|
80
66
|
return styles;
|
|
81
67
|
}
|
|
82
|
-
|
|
83
68
|
function getNavigationBarImmersiveMode(config) {
|
|
84
69
|
var _config$androidNaviga;
|
|
85
|
-
|
|
86
70
|
return ((_config$androidNaviga = config.androidNavigationBar) === null || _config$androidNaviga === void 0 ? void 0 : _config$androidNaviga.visible) || null;
|
|
87
71
|
}
|
|
88
|
-
|
|
89
72
|
function getNavigationBarColor(config) {
|
|
90
73
|
var _config$androidNaviga2;
|
|
91
|
-
|
|
92
74
|
return ((_config$androidNaviga2 = config.androidNavigationBar) === null || _config$androidNaviga2 === void 0 ? void 0 : _config$androidNaviga2.backgroundColor) || null;
|
|
93
75
|
}
|
|
94
|
-
|
|
95
76
|
function getNavigationBarStyle(config) {
|
|
96
77
|
var _config$androidNaviga3;
|
|
97
|
-
|
|
98
78
|
return ((_config$androidNaviga3 = config.androidNavigationBar) === null || _config$androidNaviga3 === void 0 ? void 0 : _config$androidNaviga3.barStyle) || 'light-content';
|
|
99
79
|
}
|
|
100
80
|
//# sourceMappingURL=withAndroidNavigationBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withAndroidNavigationBar.js","names":["NAVIGATION_BAR_COLOR","withNavigationBar","config","immersiveMode","getNavigationBarImmersiveMode","WarningAggregator","addWarningAndroid","withNavigationBarColors","withNavigationBarStyles","withAndroidColors","modResults","setNavigationBarColors","withAndroidStyles","setNavigationBarStyles","colors","hexString","getNavigationBarColor","AndroidConfig","Colors","setColorItem","Resources","buildResourceItem","name","value","styles","Styles","assignStylesValue","add","getNavigationBarStyle","parent","getAppThemeLightNoActionBarGroup","androidNavigationBar","visible","backgroundColor","barStyle"],"sources":["../../../../src/plugins/unversioned/expo-navigation-bar/withAndroidNavigationBar.ts"],"sourcesContent":["import {\n AndroidConfig,\n ConfigPlugin,\n WarningAggregator,\n withAndroidColors,\n withAndroidStyles,\n} from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nconst NAVIGATION_BAR_COLOR = 'navigationBarColor';\n\nexport const withNavigationBar: ConfigPlugin = (config) => {\n const immersiveMode = getNavigationBarImmersiveMode(config);\n if (immersiveMode) {\n // Immersive mode needs to be set programmatically\n WarningAggregator.addWarningAndroid(\n 'androidNavigationBar.visible',\n 'Property is deprecated in Android 11 (API 30) and will be removed from Expo SDK.',\n 'https://expo.fyi/android-navigation-bar-visible-deprecated'\n );\n }\n\n config = withNavigationBarColors(config);\n config = withNavigationBarStyles(config);\n return config;\n};\n\nconst withNavigationBarColors: ConfigPlugin = (config) => {\n return withAndroidColors(config, (config) => {\n config.modResults = setNavigationBarColors(config, config.modResults);\n return config;\n });\n};\n\nconst withNavigationBarStyles: ConfigPlugin = (config) => {\n return withAndroidStyles(config, (config) => {\n config.modResults = setNavigationBarStyles(config, config.modResults);\n return config;\n });\n};\n\nexport function setNavigationBarColors(\n config: Pick<ExpoConfig, 'androidNavigationBar'>,\n colors: AndroidConfig.Resources.ResourceXML\n): AndroidConfig.Resources.ResourceXML {\n const hexString = getNavigationBarColor(config);\n if (hexString) {\n colors = AndroidConfig.Colors.setColorItem(\n AndroidConfig.Resources.buildResourceItem({\n name: NAVIGATION_BAR_COLOR,\n value: hexString,\n }),\n colors\n );\n }\n return colors;\n}\n\nexport function setNavigationBarStyles(\n config: Pick<ExpoConfig, 'androidNavigationBar'>,\n styles: AndroidConfig.Resources.ResourceXML\n): AndroidConfig.Resources.ResourceXML {\n styles = AndroidConfig.Styles.assignStylesValue(styles, {\n add: getNavigationBarStyle(config) === 'dark-content',\n parent: AndroidConfig.Styles.getAppThemeLightNoActionBarGroup(),\n name: 'android:windowLightNavigationBar',\n value: 'true',\n });\n styles = AndroidConfig.Styles.assignStylesValue(styles, {\n add: !!getNavigationBarColor(config),\n parent: AndroidConfig.Styles.getAppThemeLightNoActionBarGroup(),\n name: `android:${NAVIGATION_BAR_COLOR}`,\n value: `@color/${NAVIGATION_BAR_COLOR}`,\n });\n\n return styles;\n}\n\nexport function getNavigationBarImmersiveMode(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.visible || null;\n}\n\nexport function getNavigationBarColor(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.backgroundColor || null;\n}\n\nexport function getNavigationBarStyle(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.barStyle || 'light-content';\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withAndroidNavigationBar.js","names":["NAVIGATION_BAR_COLOR","withNavigationBar","config","immersiveMode","getNavigationBarImmersiveMode","WarningAggregator","addWarningAndroid","withNavigationBarColors","withNavigationBarStyles","withAndroidColors","modResults","setNavigationBarColors","withAndroidStyles","setNavigationBarStyles","colors","hexString","getNavigationBarColor","AndroidConfig","Colors","setColorItem","Resources","buildResourceItem","name","value","styles","Styles","assignStylesValue","add","getNavigationBarStyle","parent","getAppThemeLightNoActionBarGroup","androidNavigationBar","visible","backgroundColor","barStyle"],"sources":["../../../../src/plugins/unversioned/expo-navigation-bar/withAndroidNavigationBar.ts"],"sourcesContent":["import {\n AndroidConfig,\n ConfigPlugin,\n WarningAggregator,\n withAndroidColors,\n withAndroidStyles,\n} from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nconst NAVIGATION_BAR_COLOR = 'navigationBarColor';\n\nexport const withNavigationBar: ConfigPlugin = (config) => {\n const immersiveMode = getNavigationBarImmersiveMode(config);\n if (immersiveMode) {\n // Immersive mode needs to be set programmatically\n WarningAggregator.addWarningAndroid(\n 'androidNavigationBar.visible',\n 'Property is deprecated in Android 11 (API 30) and will be removed from Expo SDK.',\n 'https://expo.fyi/android-navigation-bar-visible-deprecated'\n );\n }\n\n config = withNavigationBarColors(config);\n config = withNavigationBarStyles(config);\n return config;\n};\n\nconst withNavigationBarColors: ConfigPlugin = (config) => {\n return withAndroidColors(config, (config) => {\n config.modResults = setNavigationBarColors(config, config.modResults);\n return config;\n });\n};\n\nconst withNavigationBarStyles: ConfigPlugin = (config) => {\n return withAndroidStyles(config, (config) => {\n config.modResults = setNavigationBarStyles(config, config.modResults);\n return config;\n });\n};\n\nexport function setNavigationBarColors(\n config: Pick<ExpoConfig, 'androidNavigationBar'>,\n colors: AndroidConfig.Resources.ResourceXML\n): AndroidConfig.Resources.ResourceXML {\n const hexString = getNavigationBarColor(config);\n if (hexString) {\n colors = AndroidConfig.Colors.setColorItem(\n AndroidConfig.Resources.buildResourceItem({\n name: NAVIGATION_BAR_COLOR,\n value: hexString,\n }),\n colors\n );\n }\n return colors;\n}\n\nexport function setNavigationBarStyles(\n config: Pick<ExpoConfig, 'androidNavigationBar'>,\n styles: AndroidConfig.Resources.ResourceXML\n): AndroidConfig.Resources.ResourceXML {\n styles = AndroidConfig.Styles.assignStylesValue(styles, {\n add: getNavigationBarStyle(config) === 'dark-content',\n parent: AndroidConfig.Styles.getAppThemeLightNoActionBarGroup(),\n name: 'android:windowLightNavigationBar',\n value: 'true',\n });\n styles = AndroidConfig.Styles.assignStylesValue(styles, {\n add: !!getNavigationBarColor(config),\n parent: AndroidConfig.Styles.getAppThemeLightNoActionBarGroup(),\n name: `android:${NAVIGATION_BAR_COLOR}`,\n value: `@color/${NAVIGATION_BAR_COLOR}`,\n });\n\n return styles;\n}\n\nexport function getNavigationBarImmersiveMode(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.visible || null;\n}\n\nexport function getNavigationBarColor(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.backgroundColor || null;\n}\n\nexport function getNavigationBarStyle(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.barStyle || 'light-content';\n}\n"],"mappings":";;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AASA,MAAMA,oBAAoB,GAAG,oBAAoB;AAE1C,MAAMC,iBAA+B,GAAIC,MAAM,IAAK;EACzD,MAAMC,aAAa,GAAGC,6BAA6B,CAACF,MAAM,CAAC;EAC3D,IAAIC,aAAa,EAAE;IACjB;IACAE,kCAAiB,CAACC,iBAAiB,CACjC,8BAA8B,EAC9B,kFAAkF,EAClF,4DAA4D,CAC7D;EACH;EAEAJ,MAAM,GAAGK,uBAAuB,CAACL,MAAM,CAAC;EACxCA,MAAM,GAAGM,uBAAuB,CAACN,MAAM,CAAC;EACxC,OAAOA,MAAM;AACf,CAAC;AAAC;AAEF,MAAMK,uBAAqC,GAAIL,MAAM,IAAK;EACxD,OAAO,IAAAO,kCAAiB,EAACP,MAAM,EAAGA,MAAM,IAAK;IAC3CA,MAAM,CAACQ,UAAU,GAAGC,sBAAsB,CAACT,MAAM,EAAEA,MAAM,CAACQ,UAAU,CAAC;IACrE,OAAOR,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAED,MAAMM,uBAAqC,GAAIN,MAAM,IAAK;EACxD,OAAO,IAAAU,kCAAiB,EAACV,MAAM,EAAGA,MAAM,IAAK;IAC3CA,MAAM,CAACQ,UAAU,GAAGG,sBAAsB,CAACX,MAAM,EAAEA,MAAM,CAACQ,UAAU,CAAC;IACrE,OAAOR,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAEM,SAASS,sBAAsB,CACpCT,MAAgD,EAChDY,MAA2C,EACN;EACrC,MAAMC,SAAS,GAAGC,qBAAqB,CAACd,MAAM,CAAC;EAC/C,IAAIa,SAAS,EAAE;IACbD,MAAM,GAAGG,8BAAa,CAACC,MAAM,CAACC,YAAY,CACxCF,8BAAa,CAACG,SAAS,CAACC,iBAAiB,CAAC;MACxCC,IAAI,EAAEtB,oBAAoB;MAC1BuB,KAAK,EAAER;IACT,CAAC,CAAC,EACFD,MAAM,CACP;EACH;EACA,OAAOA,MAAM;AACf;AAEO,SAASD,sBAAsB,CACpCX,MAAgD,EAChDsB,MAA2C,EACN;EACrCA,MAAM,GAAGP,8BAAa,CAACQ,MAAM,CAACC,iBAAiB,CAACF,MAAM,EAAE;IACtDG,GAAG,EAAEC,qBAAqB,CAAC1B,MAAM,CAAC,KAAK,cAAc;IACrD2B,MAAM,EAAEZ,8BAAa,CAACQ,MAAM,CAACK,gCAAgC,EAAE;IAC/DR,IAAI,EAAE,kCAAkC;IACxCC,KAAK,EAAE;EACT,CAAC,CAAC;EACFC,MAAM,GAAGP,8BAAa,CAACQ,MAAM,CAACC,iBAAiB,CAACF,MAAM,EAAE;IACtDG,GAAG,EAAE,CAAC,CAACX,qBAAqB,CAACd,MAAM,CAAC;IACpC2B,MAAM,EAAEZ,8BAAa,CAACQ,MAAM,CAACK,gCAAgC,EAAE;IAC/DR,IAAI,EAAG,WAAUtB,oBAAqB,EAAC;IACvCuB,KAAK,EAAG,UAASvB,oBAAqB;EACxC,CAAC,CAAC;EAEF,OAAOwB,MAAM;AACf;AAEO,SAASpB,6BAA6B,CAACF,MAAgD,EAAE;EAAA;EAC9F,OAAO,0BAAAA,MAAM,CAAC6B,oBAAoB,0DAA3B,sBAA6BC,OAAO,KAAI,IAAI;AACrD;AAEO,SAAShB,qBAAqB,CAACd,MAAgD,EAAE;EAAA;EACtF,OAAO,2BAAAA,MAAM,CAAC6B,oBAAoB,2DAA3B,uBAA6BE,eAAe,KAAI,IAAI;AAC7D;AAEO,SAASL,qBAAqB,CAAC1B,MAAgD,EAAE;EAAA;EACtF,OAAO,2BAAAA,MAAM,CAAC6B,oBAAoB,2DAA3B,uBAA6BG,QAAQ,KAAI,eAAe;AACjE"}
|
|
@@ -4,50 +4,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
function _configPlugins() {
|
|
9
8
|
const data = require("@expo/config-plugins");
|
|
10
|
-
|
|
11
9
|
_configPlugins = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _createLegacyPlugin() {
|
|
19
15
|
const data = require("../createLegacyPlugin");
|
|
20
|
-
|
|
21
16
|
_createLegacyPlugin = function () {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function _withAndroidNotifications() {
|
|
29
22
|
const data = require("./withAndroidNotifications");
|
|
30
|
-
|
|
31
23
|
_withAndroidNotifications = function () {
|
|
32
24
|
return data;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
return data;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
const withNotificationsEntitlement = (config, mode) => {
|
|
39
29
|
return (0, _configPlugins().withEntitlementsPlist)(config, config => {
|
|
40
30
|
config.modResults['aps-environment'] = mode;
|
|
41
31
|
return config;
|
|
42
32
|
});
|
|
43
33
|
};
|
|
44
|
-
|
|
45
34
|
var _default = (0, _createLegacyPlugin().createLegacyPlugin)({
|
|
46
35
|
packageName: 'expo-notifications',
|
|
47
|
-
fallback: [
|
|
48
|
-
|
|
36
|
+
fallback: [
|
|
37
|
+
// Android
|
|
38
|
+
_withAndroidNotifications().withNotificationManifest, _withAndroidNotifications().withNotificationIconColor, _withAndroidNotifications().withNotificationIcons,
|
|
39
|
+
// iOS
|
|
49
40
|
[withNotificationsEntitlement, 'development']]
|
|
50
41
|
});
|
|
51
|
-
|
|
52
42
|
exports.default = _default;
|
|
53
43
|
//# sourceMappingURL=expo-notifications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo-notifications.js","names":["withNotificationsEntitlement","config","mode","withEntitlementsPlist","modResults","createLegacyPlugin","packageName","fallback","withNotificationManifest","withNotificationIconColor","withNotificationIcons"],"sources":["../../../../src/plugins/unversioned/expo-notifications/expo-notifications.ts"],"sourcesContent":["import { ConfigPlugin, withEntitlementsPlist } from '@expo/config-plugins';\n\nimport { createLegacyPlugin } from '../createLegacyPlugin';\nimport {\n withNotificationIconColor,\n withNotificationIcons,\n withNotificationManifest,\n} from './withAndroidNotifications';\n\nconst withNotificationsEntitlement: ConfigPlugin<'production' | 'development'> = (config, mode) => {\n return withEntitlementsPlist(config, (config) => {\n config.modResults['aps-environment'] = mode;\n return config;\n });\n};\n\nexport default createLegacyPlugin({\n packageName: 'expo-notifications',\n fallback: [\n // Android\n withNotificationManifest,\n withNotificationIconColor,\n withNotificationIcons,\n // iOS\n [withNotificationsEntitlement, 'development'],\n ],\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"expo-notifications.js","names":["withNotificationsEntitlement","config","mode","withEntitlementsPlist","modResults","createLegacyPlugin","packageName","fallback","withNotificationManifest","withNotificationIconColor","withNotificationIcons"],"sources":["../../../../src/plugins/unversioned/expo-notifications/expo-notifications.ts"],"sourcesContent":["import { ConfigPlugin, withEntitlementsPlist } from '@expo/config-plugins';\n\nimport { createLegacyPlugin } from '../createLegacyPlugin';\nimport {\n withNotificationIconColor,\n withNotificationIcons,\n withNotificationManifest,\n} from './withAndroidNotifications';\n\nconst withNotificationsEntitlement: ConfigPlugin<'production' | 'development'> = (config, mode) => {\n return withEntitlementsPlist(config, (config) => {\n config.modResults['aps-environment'] = mode;\n return config;\n });\n};\n\nexport default createLegacyPlugin({\n packageName: 'expo-notifications',\n fallback: [\n // Android\n withNotificationManifest,\n withNotificationIconColor,\n withNotificationIcons,\n // iOS\n [withNotificationsEntitlement, 'development'],\n ],\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAMA,MAAMA,4BAAwE,GAAG,CAACC,MAAM,EAAEC,IAAI,KAAK;EACjG,OAAO,IAAAC,sCAAqB,EAACF,MAAM,EAAGA,MAAM,IAAK;IAC/CA,MAAM,CAACG,UAAU,CAAC,iBAAiB,CAAC,GAAGF,IAAI;IAC3C,OAAOD,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAAC,eAEa,IAAAI,wCAAkB,EAAC;EAChCC,WAAW,EAAE,oBAAoB;EACjCC,QAAQ,EAAE;EACR;EACAC,oDAAwB,EACxBC,qDAAyB,EACzBC,iDAAqB;EACrB;EACA,CAACV,4BAA4B,EAAE,aAAa,CAAC;AAEjD,CAAC,CAAC;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AndroidConfig, ConfigPlugin } from '@expo/config-plugins';
|
|
2
2
|
import { ExpoConfig } from '@expo/config-types';
|
|
3
|
-
|
|
3
|
+
type AndroidManifest = AndroidConfig.Manifest.AndroidManifest;
|
|
4
4
|
export declare const META_DATA_NOTIFICATION_ICON = "expo.modules.notifications.default_notification_icon";
|
|
5
5
|
export declare const META_DATA_NOTIFICATION_ICON_COLOR = "expo.modules.notifications.default_notification_color";
|
|
6
6
|
export declare const NOTIFICATION_ICON = "notification_icon";
|