@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
|
@@ -8,45 +8,33 @@ exports.setRootViewBackgroundColor = setRootViewBackgroundColor;
|
|
|
8
8
|
exports.shouldUseLegacyBehavior = shouldUseLegacyBehavior;
|
|
9
9
|
exports.warnSystemUIMissing = warnSystemUIMissing;
|
|
10
10
|
exports.withIosRootViewBackgroundColor = void 0;
|
|
11
|
-
|
|
12
11
|
function _configPlugins() {
|
|
13
12
|
const data = require("@expo/config-plugins");
|
|
14
|
-
|
|
15
13
|
_configPlugins = function () {
|
|
16
14
|
return data;
|
|
17
15
|
};
|
|
18
|
-
|
|
19
16
|
return data;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
function _normalizeColor() {
|
|
23
19
|
const data = _interopRequireDefault(require("@react-native/normalize-color"));
|
|
24
|
-
|
|
25
20
|
_normalizeColor = function () {
|
|
26
21
|
return data;
|
|
27
22
|
};
|
|
28
|
-
|
|
29
23
|
return data;
|
|
30
24
|
}
|
|
31
|
-
|
|
32
25
|
function _semver() {
|
|
33
26
|
const data = _interopRequireDefault(require("semver"));
|
|
34
|
-
|
|
35
27
|
_semver = function () {
|
|
36
28
|
return data;
|
|
37
29
|
};
|
|
38
|
-
|
|
39
30
|
return data;
|
|
40
31
|
}
|
|
41
|
-
|
|
42
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
|
-
|
|
44
33
|
// @ts-ignore: uses flow
|
|
34
|
+
|
|
45
35
|
// Maps to the template AppDelegate.m
|
|
46
36
|
const BACKGROUND_COLOR_KEY = 'RCTRootViewBackgroundColor';
|
|
47
|
-
|
|
48
37
|
const debug = require('debug')('expo:system-ui:plugin:ios');
|
|
49
|
-
|
|
50
38
|
const withIosRootViewBackgroundColor = config => {
|
|
51
39
|
config = (0, _configPlugins().withInfoPlist)(config, config => {
|
|
52
40
|
if (shouldUseLegacyBehavior(config)) {
|
|
@@ -54,56 +42,43 @@ const withIosRootViewBackgroundColor = config => {
|
|
|
54
42
|
} else {
|
|
55
43
|
warnSystemUIMissing(config);
|
|
56
44
|
}
|
|
57
|
-
|
|
58
45
|
return config;
|
|
59
46
|
});
|
|
60
47
|
return config;
|
|
61
48
|
};
|
|
62
|
-
/** The template was changed in SDK 43 to move the background color logic to the `expo-system-ui` module */
|
|
63
|
-
|
|
64
49
|
|
|
50
|
+
/** The template was changed in SDK 43 to move the background color logic to the `expo-system-ui` module */
|
|
65
51
|
exports.withIosRootViewBackgroundColor = withIosRootViewBackgroundColor;
|
|
66
|
-
|
|
67
52
|
function shouldUseLegacyBehavior(config) {
|
|
68
53
|
try {
|
|
69
54
|
return !!(config.sdkVersion && _semver().default.lt(config.sdkVersion, '44.0.0'));
|
|
70
55
|
} catch {}
|
|
71
|
-
|
|
72
56
|
return false;
|
|
73
57
|
}
|
|
74
|
-
|
|
75
58
|
function warnSystemUIMissing(config) {
|
|
76
59
|
const backgroundColor = getRootViewBackgroundColor(config);
|
|
77
|
-
|
|
78
60
|
if (backgroundColor) {
|
|
79
61
|
// Background color needs to be set programmatically
|
|
80
62
|
_configPlugins().WarningAggregator.addWarningIOS('ios.backgroundColor', 'Install expo-system-ui to enable this feature', 'https://docs.expo.dev/build-reference/migrating/#expo-config--backgroundcolor--depends-on');
|
|
81
63
|
}
|
|
82
64
|
}
|
|
83
|
-
|
|
84
65
|
function setRootViewBackgroundColor(config, infoPlist) {
|
|
85
66
|
const backgroundColor = getRootViewBackgroundColor(config);
|
|
86
|
-
|
|
87
67
|
if (!backgroundColor) {
|
|
88
68
|
delete infoPlist[BACKGROUND_COLOR_KEY];
|
|
89
69
|
} else {
|
|
90
70
|
let color = (0, _normalizeColor().default)(backgroundColor);
|
|
91
|
-
|
|
92
71
|
if (!color) {
|
|
93
72
|
throw new Error('Invalid background color on iOS');
|
|
94
73
|
}
|
|
95
|
-
|
|
96
74
|
color = (color << 24 | color >>> 8) >>> 0;
|
|
97
75
|
infoPlist[BACKGROUND_COLOR_KEY] = color;
|
|
98
76
|
debug(`Convert color: ${backgroundColor} -> ${color}`);
|
|
99
77
|
}
|
|
100
|
-
|
|
101
78
|
return infoPlist;
|
|
102
79
|
}
|
|
103
|
-
|
|
104
80
|
function getRootViewBackgroundColor(config) {
|
|
105
81
|
var _config$ios;
|
|
106
|
-
|
|
107
82
|
return ((_config$ios = config.ios) === null || _config$ios === void 0 ? void 0 : _config$ios.backgroundColor) || config.backgroundColor || null;
|
|
108
83
|
}
|
|
109
84
|
//# sourceMappingURL=withIosRootViewBackgroundColor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withIosRootViewBackgroundColor.js","names":["BACKGROUND_COLOR_KEY","debug","require","withIosRootViewBackgroundColor","config","withInfoPlist","shouldUseLegacyBehavior","modResults","setRootViewBackgroundColor","warnSystemUIMissing","sdkVersion","semver","lt","backgroundColor","getRootViewBackgroundColor","WarningAggregator","addWarningIOS","infoPlist","color","normalizeColor","Error","ios"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/withIosRootViewBackgroundColor.ts"],"sourcesContent":["import { ConfigPlugin, InfoPlist, WarningAggregator, withInfoPlist } from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n// @ts-ignore: uses flow\nimport normalizeColor from '@react-native/normalize-color';\nimport semver from 'semver';\n\n// Maps to the template AppDelegate.m\nconst BACKGROUND_COLOR_KEY = 'RCTRootViewBackgroundColor';\n\nconst debug = require('debug')('expo:system-ui:plugin:ios');\n\nexport const withIosRootViewBackgroundColor: ConfigPlugin = (config) => {\n config = withInfoPlist(config, (config) => {\n if (shouldUseLegacyBehavior(config)) {\n config.modResults = setRootViewBackgroundColor(config, config.modResults);\n } else {\n warnSystemUIMissing(config);\n }\n return config;\n });\n return config;\n};\n\n/** The template was changed in SDK 43 to move the background color logic to the `expo-system-ui` module */\nexport function shouldUseLegacyBehavior(config: Pick<ExpoConfig, 'sdkVersion'>): boolean {\n try {\n return !!(config.sdkVersion && semver.lt(config.sdkVersion, '44.0.0'));\n } catch {}\n return false;\n}\n\nexport function warnSystemUIMissing(\n config: Pick<ExpoConfig, 'sdkVersion' | 'backgroundColor' | 'ios'>\n) {\n const backgroundColor = getRootViewBackgroundColor(config);\n\n if (backgroundColor) {\n // Background color needs to be set programmatically\n WarningAggregator.addWarningIOS(\n 'ios.backgroundColor',\n 'Install expo-system-ui to enable this feature',\n 'https://docs.expo.dev/build-reference/migrating/#expo-config--backgroundcolor--depends-on'\n );\n }\n}\n\nexport function setRootViewBackgroundColor(\n config: Pick<ExpoConfig, 'backgroundColor' | 'ios'>,\n infoPlist: InfoPlist\n): InfoPlist {\n const backgroundColor = getRootViewBackgroundColor(config);\n if (!backgroundColor) {\n delete infoPlist[BACKGROUND_COLOR_KEY];\n } else {\n let color = normalizeColor(backgroundColor);\n if (!color) {\n throw new Error('Invalid background color on iOS');\n }\n color = ((color << 24) | (color >>> 8)) >>> 0;\n infoPlist[BACKGROUND_COLOR_KEY] = color;\n\n debug(`Convert color: ${backgroundColor} -> ${color}`);\n }\n return infoPlist;\n}\n\nexport function getRootViewBackgroundColor(config: Pick<ExpoConfig, 'ios' | 'backgroundColor'>) {\n return config.ios?.backgroundColor || config.backgroundColor || null;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withIosRootViewBackgroundColor.js","names":["BACKGROUND_COLOR_KEY","debug","require","withIosRootViewBackgroundColor","config","withInfoPlist","shouldUseLegacyBehavior","modResults","setRootViewBackgroundColor","warnSystemUIMissing","sdkVersion","semver","lt","backgroundColor","getRootViewBackgroundColor","WarningAggregator","addWarningIOS","infoPlist","color","normalizeColor","Error","ios"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/withIosRootViewBackgroundColor.ts"],"sourcesContent":["import { ConfigPlugin, InfoPlist, WarningAggregator, withInfoPlist } from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n// @ts-ignore: uses flow\nimport normalizeColor from '@react-native/normalize-color';\nimport semver from 'semver';\n\n// Maps to the template AppDelegate.m\nconst BACKGROUND_COLOR_KEY = 'RCTRootViewBackgroundColor';\n\nconst debug = require('debug')('expo:system-ui:plugin:ios');\n\nexport const withIosRootViewBackgroundColor: ConfigPlugin = (config) => {\n config = withInfoPlist(config, (config) => {\n if (shouldUseLegacyBehavior(config)) {\n config.modResults = setRootViewBackgroundColor(config, config.modResults);\n } else {\n warnSystemUIMissing(config);\n }\n return config;\n });\n return config;\n};\n\n/** The template was changed in SDK 43 to move the background color logic to the `expo-system-ui` module */\nexport function shouldUseLegacyBehavior(config: Pick<ExpoConfig, 'sdkVersion'>): boolean {\n try {\n return !!(config.sdkVersion && semver.lt(config.sdkVersion, '44.0.0'));\n } catch {}\n return false;\n}\n\nexport function warnSystemUIMissing(\n config: Pick<ExpoConfig, 'sdkVersion' | 'backgroundColor' | 'ios'>\n) {\n const backgroundColor = getRootViewBackgroundColor(config);\n\n if (backgroundColor) {\n // Background color needs to be set programmatically\n WarningAggregator.addWarningIOS(\n 'ios.backgroundColor',\n 'Install expo-system-ui to enable this feature',\n 'https://docs.expo.dev/build-reference/migrating/#expo-config--backgroundcolor--depends-on'\n );\n }\n}\n\nexport function setRootViewBackgroundColor(\n config: Pick<ExpoConfig, 'backgroundColor' | 'ios'>,\n infoPlist: InfoPlist\n): InfoPlist {\n const backgroundColor = getRootViewBackgroundColor(config);\n if (!backgroundColor) {\n delete infoPlist[BACKGROUND_COLOR_KEY];\n } else {\n let color = normalizeColor(backgroundColor);\n if (!color) {\n throw new Error('Invalid background color on iOS');\n }\n color = ((color << 24) | (color >>> 8)) >>> 0;\n infoPlist[BACKGROUND_COLOR_KEY] = color;\n\n debug(`Convert color: ${backgroundColor} -> ${color}`);\n }\n return infoPlist;\n}\n\nexport function getRootViewBackgroundColor(config: Pick<ExpoConfig, 'ios' | 'backgroundColor'>) {\n return config.ios?.backgroundColor || config.backgroundColor || null;\n}\n"],"mappings":";;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA4B;AAF5B;;AAIA;AACA,MAAMA,oBAAoB,GAAG,4BAA4B;AAEzD,MAAMC,KAAK,GAAGC,OAAO,CAAC,OAAO,CAAC,CAAC,2BAA2B,CAAC;AAEpD,MAAMC,8BAA4C,GAAIC,MAAM,IAAK;EACtEA,MAAM,GAAG,IAAAC,8BAAa,EAACD,MAAM,EAAGA,MAAM,IAAK;IACzC,IAAIE,uBAAuB,CAACF,MAAM,CAAC,EAAE;MACnCA,MAAM,CAACG,UAAU,GAAGC,0BAA0B,CAACJ,MAAM,EAAEA,MAAM,CAACG,UAAU,CAAC;IAC3E,CAAC,MAAM;MACLE,mBAAmB,CAACL,MAAM,CAAC;IAC7B;IACA,OAAOA,MAAM;EACf,CAAC,CAAC;EACF,OAAOA,MAAM;AACf,CAAC;;AAED;AAAA;AACO,SAASE,uBAAuB,CAACF,MAAsC,EAAW;EACvF,IAAI;IACF,OAAO,CAAC,EAAEA,MAAM,CAACM,UAAU,IAAIC,iBAAM,CAACC,EAAE,CAACR,MAAM,CAACM,UAAU,EAAE,QAAQ,CAAC,CAAC;EACxE,CAAC,CAAC,MAAM,CAAC;EACT,OAAO,KAAK;AACd;AAEO,SAASD,mBAAmB,CACjCL,MAAkE,EAClE;EACA,MAAMS,eAAe,GAAGC,0BAA0B,CAACV,MAAM,CAAC;EAE1D,IAAIS,eAAe,EAAE;IACnB;IACAE,kCAAiB,CAACC,aAAa,CAC7B,qBAAqB,EACrB,+CAA+C,EAC/C,2FAA2F,CAC5F;EACH;AACF;AAEO,SAASR,0BAA0B,CACxCJ,MAAmD,EACnDa,SAAoB,EACT;EACX,MAAMJ,eAAe,GAAGC,0BAA0B,CAACV,MAAM,CAAC;EAC1D,IAAI,CAACS,eAAe,EAAE;IACpB,OAAOI,SAAS,CAACjB,oBAAoB,CAAC;EACxC,CAAC,MAAM;IACL,IAAIkB,KAAK,GAAG,IAAAC,yBAAc,EAACN,eAAe,CAAC;IAC3C,IAAI,CAACK,KAAK,EAAE;MACV,MAAM,IAAIE,KAAK,CAAC,iCAAiC,CAAC;IACpD;IACAF,KAAK,GAAG,CAAEA,KAAK,IAAI,EAAE,GAAKA,KAAK,KAAK,CAAE,MAAM,CAAC;IAC7CD,SAAS,CAACjB,oBAAoB,CAAC,GAAGkB,KAAK;IAEvCjB,KAAK,CAAE,kBAAiBY,eAAgB,OAAMK,KAAM,EAAC,CAAC;EACxD;EACA,OAAOD,SAAS;AAClB;AAEO,SAASH,0BAA0B,CAACV,MAAmD,EAAE;EAAA;EAC9F,OAAO,gBAAAA,MAAM,CAACiB,GAAG,gDAAV,YAAYR,eAAe,KAAIT,MAAM,CAACS,eAAe,IAAI,IAAI;AACtE"}
|
|
@@ -6,58 +6,46 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getUserInterfaceStyle = getUserInterfaceStyle;
|
|
7
7
|
exports.setUserInterfaceStyle = setUserInterfaceStyle;
|
|
8
8
|
exports.withIosUserInterfaceStyle = void 0;
|
|
9
|
-
|
|
10
9
|
function _iosPlugins() {
|
|
11
10
|
const data = require("@expo/config-plugins/build/plugins/ios-plugins");
|
|
12
|
-
|
|
13
11
|
_iosPlugins = function () {
|
|
14
12
|
return data;
|
|
15
13
|
};
|
|
16
|
-
|
|
17
14
|
return data;
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
const withIosUserInterfaceStyle = (0, _iosPlugins().createInfoPlistPluginWithPropertyGuard)(setUserInterfaceStyle, {
|
|
21
17
|
infoPlistProperty: 'UIUserInterfaceStyle',
|
|
22
18
|
expoConfigProperty: 'userInterfaceStyle | ios.userInterfaceStyle',
|
|
23
19
|
expoPropertyGetter: getUserInterfaceStyle
|
|
24
20
|
}, 'withIosUserInterfaceStyle');
|
|
25
21
|
exports.withIosUserInterfaceStyle = withIosUserInterfaceStyle;
|
|
26
|
-
|
|
27
22
|
function getUserInterfaceStyle(config) {
|
|
28
23
|
var _ref, _config$ios$userInter, _config$ios;
|
|
29
|
-
|
|
30
24
|
return (_ref = (_config$ios$userInter = (_config$ios = config.ios) === null || _config$ios === void 0 ? void 0 : _config$ios.userInterfaceStyle) !== null && _config$ios$userInter !== void 0 ? _config$ios$userInter : config.userInterfaceStyle) !== null && _ref !== void 0 ? _ref : 'light';
|
|
31
25
|
}
|
|
32
|
-
|
|
33
26
|
function setUserInterfaceStyle(config, {
|
|
34
27
|
UIUserInterfaceStyle,
|
|
35
28
|
...infoPlist
|
|
36
29
|
}) {
|
|
37
30
|
const userInterfaceStyle = getUserInterfaceStyle(config);
|
|
38
31
|
const style = mapUserInterfaceStyleForInfoPlist(userInterfaceStyle);
|
|
39
|
-
|
|
40
32
|
if (!style) {
|
|
41
33
|
return infoPlist;
|
|
42
34
|
}
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
return {
|
|
36
|
+
...infoPlist,
|
|
45
37
|
UIUserInterfaceStyle: style
|
|
46
38
|
};
|
|
47
39
|
}
|
|
48
|
-
|
|
49
40
|
function mapUserInterfaceStyleForInfoPlist(userInterfaceStyle) {
|
|
50
41
|
switch (userInterfaceStyle) {
|
|
51
42
|
case 'light':
|
|
52
43
|
return 'Light';
|
|
53
|
-
|
|
54
44
|
case 'dark':
|
|
55
45
|
return 'Dark';
|
|
56
|
-
|
|
57
46
|
case 'automatic':
|
|
58
47
|
return 'Automatic';
|
|
59
48
|
}
|
|
60
|
-
|
|
61
49
|
return null;
|
|
62
50
|
}
|
|
63
51
|
//# sourceMappingURL=withIosUserInterfaceStyle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withIosUserInterfaceStyle.js","names":["withIosUserInterfaceStyle","createInfoPlistPluginWithPropertyGuard","setUserInterfaceStyle","infoPlistProperty","expoConfigProperty","expoPropertyGetter","getUserInterfaceStyle","config","ios","userInterfaceStyle","UIUserInterfaceStyle","infoPlist","style","mapUserInterfaceStyleForInfoPlist"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/withIosUserInterfaceStyle.ts"],"sourcesContent":["import { InfoPlist } from '@expo/config-plugins';\nimport { createInfoPlistPluginWithPropertyGuard } from '@expo/config-plugins/build/plugins/ios-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nexport const withIosUserInterfaceStyle = createInfoPlistPluginWithPropertyGuard(\n setUserInterfaceStyle,\n {\n infoPlistProperty: 'UIUserInterfaceStyle',\n expoConfigProperty: 'userInterfaceStyle | ios.userInterfaceStyle',\n expoPropertyGetter: getUserInterfaceStyle,\n },\n 'withIosUserInterfaceStyle'\n);\n\nexport function getUserInterfaceStyle(\n config: Pick<ExpoConfig, 'ios' | 'userInterfaceStyle'>\n): string {\n return config.ios?.userInterfaceStyle ?? config.userInterfaceStyle ?? 'light';\n}\n\nexport function setUserInterfaceStyle(\n config: Pick<ExpoConfig, 'ios' | 'userInterfaceStyle'>,\n { UIUserInterfaceStyle, ...infoPlist }: InfoPlist\n): InfoPlist {\n const userInterfaceStyle = getUserInterfaceStyle(config);\n const style = mapUserInterfaceStyleForInfoPlist(userInterfaceStyle);\n\n if (!style) {\n return infoPlist;\n }\n\n return {\n ...infoPlist,\n UIUserInterfaceStyle: style,\n };\n}\n\nfunction mapUserInterfaceStyleForInfoPlist(\n userInterfaceStyle: string\n): NonNullable<InfoPlist['UIUserInterfaceStyle']> | null {\n switch (userInterfaceStyle) {\n case 'light':\n return 'Light';\n case 'dark':\n return 'Dark';\n case 'automatic':\n return 'Automatic';\n }\n\n return null;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withIosUserInterfaceStyle.js","names":["withIosUserInterfaceStyle","createInfoPlistPluginWithPropertyGuard","setUserInterfaceStyle","infoPlistProperty","expoConfigProperty","expoPropertyGetter","getUserInterfaceStyle","config","ios","userInterfaceStyle","UIUserInterfaceStyle","infoPlist","style","mapUserInterfaceStyleForInfoPlist"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/withIosUserInterfaceStyle.ts"],"sourcesContent":["import { InfoPlist } from '@expo/config-plugins';\nimport { createInfoPlistPluginWithPropertyGuard } from '@expo/config-plugins/build/plugins/ios-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nexport const withIosUserInterfaceStyle = createInfoPlistPluginWithPropertyGuard(\n setUserInterfaceStyle,\n {\n infoPlistProperty: 'UIUserInterfaceStyle',\n expoConfigProperty: 'userInterfaceStyle | ios.userInterfaceStyle',\n expoPropertyGetter: getUserInterfaceStyle,\n },\n 'withIosUserInterfaceStyle'\n);\n\nexport function getUserInterfaceStyle(\n config: Pick<ExpoConfig, 'ios' | 'userInterfaceStyle'>\n): string {\n return config.ios?.userInterfaceStyle ?? config.userInterfaceStyle ?? 'light';\n}\n\nexport function setUserInterfaceStyle(\n config: Pick<ExpoConfig, 'ios' | 'userInterfaceStyle'>,\n { UIUserInterfaceStyle, ...infoPlist }: InfoPlist\n): InfoPlist {\n const userInterfaceStyle = getUserInterfaceStyle(config);\n const style = mapUserInterfaceStyleForInfoPlist(userInterfaceStyle);\n\n if (!style) {\n return infoPlist;\n }\n\n return {\n ...infoPlist,\n UIUserInterfaceStyle: style,\n };\n}\n\nfunction mapUserInterfaceStyleForInfoPlist(\n userInterfaceStyle: string\n): NonNullable<InfoPlist['UIUserInterfaceStyle']> | null {\n switch (userInterfaceStyle) {\n case 'light':\n return 'Light';\n case 'dark':\n return 'Dark';\n case 'automatic':\n return 'Automatic';\n }\n\n return null;\n}\n"],"mappings":";;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,yBAAyB,GAAG,IAAAC,oDAAsC,EAC7EC,qBAAqB,EACrB;EACEC,iBAAiB,EAAE,sBAAsB;EACzCC,kBAAkB,EAAE,6CAA6C;EACjEC,kBAAkB,EAAEC;AACtB,CAAC,EACD,2BAA2B,CAC5B;AAAC;AAEK,SAASA,qBAAqB,CACnCC,MAAsD,EAC9C;EAAA;EACR,uDAAOA,MAAM,CAACC,GAAG,gDAAV,YAAYC,kBAAkB,yEAAIF,MAAM,CAACE,kBAAkB,uCAAI,OAAO;AAC/E;AAEO,SAASP,qBAAqB,CACnCK,MAAsD,EACtD;EAAEG,oBAAoB;EAAE,GAAGC;AAAqB,CAAC,EACtC;EACX,MAAMF,kBAAkB,GAAGH,qBAAqB,CAACC,MAAM,CAAC;EACxD,MAAMK,KAAK,GAAGC,iCAAiC,CAACJ,kBAAkB,CAAC;EAEnE,IAAI,CAACG,KAAK,EAAE;IACV,OAAOD,SAAS;EAClB;EAEA,OAAO;IACL,GAAGA,SAAS;IACZD,oBAAoB,EAAEE;EACxB,CAAC;AACH;AAEA,SAASC,iCAAiC,CACxCJ,kBAA0B,EAC6B;EACvD,QAAQA,kBAAkB;IACxB,KAAK,OAAO;MACV,OAAO,OAAO;IAChB,KAAK,MAAM;MACT,OAAO,MAAM;IACf,KAAK,WAAW;MACd,OAAO,WAAW;EAAC;EAGvB,OAAO,IAAI;AACb"}
|
|
@@ -4,20 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.withExpoUpdates = 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
|
// Local unversioned updates plugin
|
|
19
|
-
const packageName = 'expo-updates';
|
|
20
15
|
|
|
16
|
+
const packageName = 'expo-updates';
|
|
21
17
|
const withExpoUpdates = (config, props) => {
|
|
22
18
|
return (0, _configPlugins().withStaticPlugin)(config, {
|
|
23
19
|
_isLegacyPlugin: true,
|
|
@@ -27,15 +23,12 @@ const withExpoUpdates = (config, props) => {
|
|
|
27
23
|
fallback: (0, _configPlugins().createRunOncePlugin)(config => withUnversionedUpdates(config, props), packageName)
|
|
28
24
|
});
|
|
29
25
|
};
|
|
30
|
-
|
|
31
26
|
exports.withExpoUpdates = withExpoUpdates;
|
|
32
|
-
|
|
33
27
|
const withUnversionedUpdates = (config, props) => {
|
|
34
28
|
config = _configPlugins().AndroidConfig.Updates.withUpdates(config, props);
|
|
35
29
|
config = _configPlugins().IOSConfig.Updates.withUpdates(config, props);
|
|
36
30
|
return config;
|
|
37
31
|
};
|
|
38
|
-
|
|
39
32
|
var _default = withExpoUpdates;
|
|
40
33
|
exports.default = _default;
|
|
41
34
|
//# sourceMappingURL=expo-updates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo-updates.js","names":["packageName","withExpoUpdates","config","props","withStaticPlugin","_isLegacyPlugin","plugin","fallback","createRunOncePlugin","withUnversionedUpdates","AndroidConfig","Updates","withUpdates","IOSConfig"],"sources":["../../../src/plugins/unversioned/expo-updates.ts"],"sourcesContent":["import {\n AndroidConfig,\n ConfigPlugin,\n createRunOncePlugin,\n IOSConfig,\n withStaticPlugin,\n} from '@expo/config-plugins';\n\n// Local unversioned updates plugin\n\nconst packageName = 'expo-updates';\n\nexport const withExpoUpdates: ConfigPlugin<{ expoUsername: string }> = (config, props) => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n // Pass props to the static plugin if it exists.\n plugin: [packageName, props],\n // If the static plugin isn't found, use the unversioned one.\n fallback: createRunOncePlugin((config) => withUnversionedUpdates(config, props), packageName),\n });\n};\n\nconst withUnversionedUpdates: ConfigPlugin<{ expoUsername: string }> = (config, props) => {\n config = AndroidConfig.Updates.withUpdates(config, props);\n config = IOSConfig.Updates.withUpdates(config, props);\n return config;\n};\n\nexport default withExpoUpdates;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"expo-updates.js","names":["packageName","withExpoUpdates","config","props","withStaticPlugin","_isLegacyPlugin","plugin","fallback","createRunOncePlugin","withUnversionedUpdates","AndroidConfig","Updates","withUpdates","IOSConfig"],"sources":["../../../src/plugins/unversioned/expo-updates.ts"],"sourcesContent":["import {\n AndroidConfig,\n ConfigPlugin,\n createRunOncePlugin,\n IOSConfig,\n withStaticPlugin,\n} from '@expo/config-plugins';\n\n// Local unversioned updates plugin\n\nconst packageName = 'expo-updates';\n\nexport const withExpoUpdates: ConfigPlugin<{ expoUsername: string }> = (config, props) => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n // Pass props to the static plugin if it exists.\n plugin: [packageName, props],\n // If the static plugin isn't found, use the unversioned one.\n fallback: createRunOncePlugin((config) => withUnversionedUpdates(config, props), packageName),\n });\n};\n\nconst withUnversionedUpdates: ConfigPlugin<{ expoUsername: string }> = (config, props) => {\n config = AndroidConfig.Updates.withUpdates(config, props);\n config = IOSConfig.Updates.withUpdates(config, props);\n return config;\n};\n\nexport default withExpoUpdates;\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAQA;;AAEA,MAAMA,WAAW,GAAG,cAAc;AAE3B,MAAMC,eAAuD,GAAG,CAACC,MAAM,EAAEC,KAAK,KAAK;EACxF,OAAO,IAAAC,iCAAgB,EAACF,MAAM,EAAE;IAC9BG,eAAe,EAAE,IAAI;IACrB;IACAC,MAAM,EAAE,CAACN,WAAW,EAAEG,KAAK,CAAC;IAC5B;IACAI,QAAQ,EAAE,IAAAC,oCAAmB,EAAEN,MAAM,IAAKO,sBAAsB,CAACP,MAAM,EAAEC,KAAK,CAAC,EAAEH,WAAW;EAC9F,CAAC,CAAC;AACJ,CAAC;AAAC;AAEF,MAAMS,sBAA8D,GAAG,CAACP,MAAM,EAAEC,KAAK,KAAK;EACxFD,MAAM,GAAGQ,8BAAa,CAACC,OAAO,CAACC,WAAW,CAACV,MAAM,EAAEC,KAAK,CAAC;EACzDD,MAAM,GAAGW,0BAAS,CAACF,OAAO,CAACC,WAAW,CAACV,MAAM,EAAEC,KAAK,CAAC;EACrD,OAAOD,MAAM;AACf,CAAC;AAAC,eAEaD,eAAe;AAAA"}
|
|
@@ -4,48 +4,36 @@ 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 _resolveFrom() {
|
|
19
15
|
const data = _interopRequireDefault(require("resolve-from"));
|
|
20
|
-
|
|
21
16
|
_resolveFrom = function () {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function _createLegacyPlugin() {
|
|
29
22
|
const data = require("./createLegacyPlugin");
|
|
30
|
-
|
|
31
23
|
_createLegacyPlugin = function () {
|
|
32
24
|
return data;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
return data;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
+
const LOCATION_USAGE = 'Allow $(PRODUCT_NAME) to access your location';
|
|
39
30
|
|
|
40
|
-
|
|
31
|
+
// Copied from expo-location package, this gets used when the
|
|
41
32
|
// user has react-native-maps installed but not expo-location.
|
|
42
|
-
|
|
43
33
|
const withDefaultLocationPermissions = config => {
|
|
44
34
|
var _config$_internal, _config$_internal2;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
const isLinked = !((_config$_internal = config._internal) !== null && _config$_internal !== void 0 && _config$_internal.autolinkedModules) || config._internal.autolinkedModules.includes('react-native-maps');
|
|
36
|
+
// Only add location permissions if react-native-maps is installed.
|
|
49
37
|
if ((_config$_internal2 = config._internal) !== null && _config$_internal2 !== void 0 && _config$_internal2.projectRoot && _resolveFrom().default.silent(config._internal.projectRoot, 'react-native-maps') && isLinked) {
|
|
50
38
|
config = (0, _configPlugins().withInfoPlist)(config, config => {
|
|
51
39
|
config.modResults.NSLocationWhenInUseUsageDescription = config.modResults.NSLocationWhenInUseUsageDescription || LOCATION_USAGE;
|
|
@@ -53,14 +41,11 @@ const withDefaultLocationPermissions = config => {
|
|
|
53
41
|
});
|
|
54
42
|
return _configPlugins().AndroidConfig.Permissions.withPermissions(config, ['android.permission.ACCESS_COARSE_LOCATION', 'android.permission.ACCESS_FINE_LOCATION']);
|
|
55
43
|
}
|
|
56
|
-
|
|
57
44
|
return config;
|
|
58
45
|
};
|
|
59
|
-
|
|
60
46
|
var _default = (0, _createLegacyPlugin().createLegacyPlugin)({
|
|
61
47
|
packageName: 'react-native-maps',
|
|
62
48
|
fallback: [_configPlugins().AndroidConfig.GoogleMapsApiKey.withGoogleMapsApiKey, _configPlugins().IOSConfig.Maps.withMaps, withDefaultLocationPermissions]
|
|
63
49
|
});
|
|
64
|
-
|
|
65
50
|
exports.default = _default;
|
|
66
51
|
//# sourceMappingURL=react-native-maps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-native-maps.js","names":["LOCATION_USAGE","withDefaultLocationPermissions","config","isLinked","_internal","autolinkedModules","includes","projectRoot","resolveFrom","silent","withInfoPlist","modResults","NSLocationWhenInUseUsageDescription","AndroidConfig","Permissions","withPermissions","createLegacyPlugin","packageName","fallback","GoogleMapsApiKey","withGoogleMapsApiKey","IOSConfig","Maps","withMaps"],"sources":["../../../src/plugins/unversioned/react-native-maps.ts"],"sourcesContent":["import { AndroidConfig, ConfigPlugin, IOSConfig, withInfoPlist } from '@expo/config-plugins';\nimport resolveFrom from 'resolve-from';\n\nimport { createLegacyPlugin } from './createLegacyPlugin';\n\nconst LOCATION_USAGE = 'Allow $(PRODUCT_NAME) to access your location';\n\n// Copied from expo-location package, this gets used when the\n// user has react-native-maps installed but not expo-location.\nconst withDefaultLocationPermissions: ConfigPlugin = (config) => {\n const isLinked =\n !config._internal?.autolinkedModules ||\n config._internal.autolinkedModules.includes('react-native-maps');\n // Only add location permissions if react-native-maps is installed.\n if (\n config._internal?.projectRoot &&\n resolveFrom.silent(config._internal.projectRoot, 'react-native-maps') &&\n isLinked\n ) {\n config = withInfoPlist(config, (config) => {\n config.modResults.NSLocationWhenInUseUsageDescription =\n config.modResults.NSLocationWhenInUseUsageDescription || LOCATION_USAGE;\n return config;\n });\n\n return AndroidConfig.Permissions.withPermissions(config, [\n 'android.permission.ACCESS_COARSE_LOCATION',\n 'android.permission.ACCESS_FINE_LOCATION',\n ]);\n }\n return config;\n};\n\nexport default createLegacyPlugin({\n packageName: 'react-native-maps',\n fallback: [\n AndroidConfig.GoogleMapsApiKey.withGoogleMapsApiKey,\n IOSConfig.Maps.withMaps,\n withDefaultLocationPermissions,\n ],\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-native-maps.js","names":["LOCATION_USAGE","withDefaultLocationPermissions","config","isLinked","_internal","autolinkedModules","includes","projectRoot","resolveFrom","silent","withInfoPlist","modResults","NSLocationWhenInUseUsageDescription","AndroidConfig","Permissions","withPermissions","createLegacyPlugin","packageName","fallback","GoogleMapsApiKey","withGoogleMapsApiKey","IOSConfig","Maps","withMaps"],"sources":["../../../src/plugins/unversioned/react-native-maps.ts"],"sourcesContent":["import { AndroidConfig, ConfigPlugin, IOSConfig, withInfoPlist } from '@expo/config-plugins';\nimport resolveFrom from 'resolve-from';\n\nimport { createLegacyPlugin } from './createLegacyPlugin';\n\nconst LOCATION_USAGE = 'Allow $(PRODUCT_NAME) to access your location';\n\n// Copied from expo-location package, this gets used when the\n// user has react-native-maps installed but not expo-location.\nconst withDefaultLocationPermissions: ConfigPlugin = (config) => {\n const isLinked =\n !config._internal?.autolinkedModules ||\n config._internal.autolinkedModules.includes('react-native-maps');\n // Only add location permissions if react-native-maps is installed.\n if (\n config._internal?.projectRoot &&\n resolveFrom.silent(config._internal.projectRoot, 'react-native-maps') &&\n isLinked\n ) {\n config = withInfoPlist(config, (config) => {\n config.modResults.NSLocationWhenInUseUsageDescription =\n config.modResults.NSLocationWhenInUseUsageDescription || LOCATION_USAGE;\n return config;\n });\n\n return AndroidConfig.Permissions.withPermissions(config, [\n 'android.permission.ACCESS_COARSE_LOCATION',\n 'android.permission.ACCESS_FINE_LOCATION',\n ]);\n }\n return config;\n};\n\nexport default createLegacyPlugin({\n packageName: 'react-native-maps',\n fallback: [\n AndroidConfig.GoogleMapsApiKey.withGoogleMapsApiKey,\n IOSConfig.Maps.withMaps,\n withDefaultLocationPermissions,\n ],\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA0D;AAE1D,MAAMA,cAAc,GAAG,+CAA+C;;AAEtE;AACA;AACA,MAAMC,8BAA4C,GAAIC,MAAM,IAAK;EAAA;EAC/D,MAAMC,QAAQ,GACZ,uBAACD,MAAM,CAACE,SAAS,8CAAhB,kBAAkBC,iBAAiB,KACpCH,MAAM,CAACE,SAAS,CAACC,iBAAiB,CAACC,QAAQ,CAAC,mBAAmB,CAAC;EAClE;EACA,IACE,sBAAAJ,MAAM,CAACE,SAAS,+CAAhB,mBAAkBG,WAAW,IAC7BC,sBAAW,CAACC,MAAM,CAACP,MAAM,CAACE,SAAS,CAACG,WAAW,EAAE,mBAAmB,CAAC,IACrEJ,QAAQ,EACR;IACAD,MAAM,GAAG,IAAAQ,8BAAa,EAACR,MAAM,EAAGA,MAAM,IAAK;MACzCA,MAAM,CAACS,UAAU,CAACC,mCAAmC,GACnDV,MAAM,CAACS,UAAU,CAACC,mCAAmC,IAAIZ,cAAc;MACzE,OAAOE,MAAM;IACf,CAAC,CAAC;IAEF,OAAOW,8BAAa,CAACC,WAAW,CAACC,eAAe,CAACb,MAAM,EAAE,CACvD,2CAA2C,EAC3C,yCAAyC,CAC1C,CAAC;EACJ;EACA,OAAOA,MAAM;AACf,CAAC;AAAC,eAEa,IAAAc,wCAAkB,EAAC;EAChCC,WAAW,EAAE,mBAAmB;EAChCC,QAAQ,EAAE,CACRL,8BAAa,CAACM,gBAAgB,CAACC,oBAAoB,EACnDC,0BAAS,CAACC,IAAI,CAACC,QAAQ,EACvBtB,8BAA8B;AAElC,CAAC,CAAC;AAAA"}
|
|
@@ -5,14 +5,14 @@ import { ConfigPlugin } from '@expo/config-plugins';
|
|
|
5
5
|
import { ExpoConfig } from '@expo/config-types';
|
|
6
6
|
/**
|
|
7
7
|
* Config plugin to apply all of the custom Expo iOS config plugins we support by default.
|
|
8
|
-
* TODO: In the future most of this should go into versioned packages like expo-
|
|
8
|
+
* TODO: In the future most of this should go into versioned packages like expo-updates, etc...
|
|
9
9
|
*/
|
|
10
10
|
export declare const withIosExpoPlugins: ConfigPlugin<{
|
|
11
11
|
bundleIdentifier: string;
|
|
12
12
|
}>;
|
|
13
13
|
/**
|
|
14
14
|
* Config plugin to apply all of the custom Expo Android config plugins we support by default.
|
|
15
|
-
* TODO: In the future most of this should go into versioned packages like expo-
|
|
15
|
+
* TODO: In the future most of this should go into versioned packages like expo-updates, etc...
|
|
16
16
|
*/
|
|
17
17
|
export declare const withAndroidExpoPlugins: ConfigPlugin<{
|
|
18
18
|
package: string;
|