@expo/config-plugins 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/build/android/BuildProperties.d.ts +28 -0
  2. package/build/android/BuildProperties.js +96 -0
  3. package/build/android/BuildProperties.js.map +1 -0
  4. package/build/android/Package.js +1 -1
  5. package/build/android/Package.js.map +1 -1
  6. package/build/android/index.d.ts +2 -2
  7. package/build/android/index.js +18 -18
  8. package/build/android/index.js.map +1 -1
  9. package/build/ios/BuildProperties.d.ts +27 -0
  10. package/build/ios/BuildProperties.js +83 -0
  11. package/build/ios/BuildProperties.js.map +1 -0
  12. package/build/ios/BuildScheme.js +6 -3
  13. package/build/ios/BuildScheme.js.map +1 -1
  14. package/build/ios/Entitlements.d.ts +5 -1
  15. package/build/ios/Entitlements.js +57 -58
  16. package/build/ios/Entitlements.js.map +1 -1
  17. package/build/ios/Locales.js +1 -1
  18. package/build/ios/Locales.js.map +1 -1
  19. package/build/ios/Paths.d.ts +1 -3
  20. package/build/ios/Paths.js +12 -16
  21. package/build/ios/Paths.js.map +1 -1
  22. package/build/ios/Target.d.ts +1 -0
  23. package/build/ios/Target.js +11 -1
  24. package/build/ios/Target.js.map +1 -1
  25. package/build/ios/index.d.ts +2 -2
  26. package/build/ios/index.js +19 -19
  27. package/build/ios/index.js.map +1 -1
  28. package/build/ios/utils/Xcodeproj.d.ts +2 -1
  29. package/build/ios/utils/Xcodeproj.js +4 -1
  30. package/build/ios/utils/Xcodeproj.js.map +1 -1
  31. package/build/plugins/ios-plugins.d.ts +2 -2
  32. package/build/plugins/ios-plugins.js.map +1 -1
  33. package/build/plugins/withIosBaseMods.js +27 -7
  34. package/build/plugins/withIosBaseMods.js.map +1 -1
  35. package/build/utils/BuildProperties.types.d.ts +25 -0
  36. package/build/utils/BuildProperties.types.js +2 -0
  37. package/build/utils/BuildProperties.types.js.map +1 -0
  38. package/build/utils/modules.js +1 -1
  39. package/build/utils/modules.js.map +1 -1
  40. package/build/utils/versions.js +2 -2
  41. package/build/utils/versions.js.map +1 -1
  42. package/package.json +2 -2
  43. package/build/android/JsEngine.d.ts +0 -8
  44. package/build/android/JsEngine.js +0 -59
  45. package/build/android/JsEngine.js.map +0 -1
  46. package/build/ios/JsEngine.d.ts +0 -8
  47. package/build/ios/JsEngine.js +0 -47
  48. package/build/ios/JsEngine.js.map +0 -1
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.JS_ENGINE_PROP_KEY = exports.DEFAULT_JS_ENGINE = void 0;
7
- exports.getJsEngine = getJsEngine;
8
- exports.setJsEngine = setJsEngine;
9
- exports.withJsEnginePodfileProps = void 0;
10
-
11
- function _iosPlugins() {
12
- const data = require("../plugins/ios-plugins");
13
-
14
- _iosPlugins = function () {
15
- return data;
16
- };
17
-
18
- return data;
19
- }
20
-
21
- const JS_ENGINE_PROP_KEY = 'expo.jsEngine';
22
- exports.JS_ENGINE_PROP_KEY = JS_ENGINE_PROP_KEY;
23
- const DEFAULT_JS_ENGINE = 'jsc';
24
- exports.DEFAULT_JS_ENGINE = DEFAULT_JS_ENGINE;
25
-
26
- const withJsEnginePodfileProps = config => {
27
- return (0, _iosPlugins().withPodfileProperties)(config, config => {
28
- config.modResults = setJsEngine(config, config.modResults);
29
- return config;
30
- });
31
- };
32
-
33
- exports.withJsEnginePodfileProps = withJsEnginePodfileProps;
34
-
35
- function getJsEngine(config) {
36
- var _ref, _config$ios$jsEngine, _config$ios;
37
-
38
- return (_ref = (_config$ios$jsEngine = (_config$ios = config.ios) === null || _config$ios === void 0 ? void 0 : _config$ios.jsEngine) !== null && _config$ios$jsEngine !== void 0 ? _config$ios$jsEngine : config.jsEngine) !== null && _ref !== void 0 ? _ref : DEFAULT_JS_ENGINE;
39
- }
40
-
41
- function setJsEngine(config, podfileProperties) {
42
- var _ref2, _config$ios$jsEngine2, _config$ios2;
43
-
44
- podfileProperties[JS_ENGINE_PROP_KEY] = (_ref2 = (_config$ios$jsEngine2 = (_config$ios2 = config.ios) === null || _config$ios2 === void 0 ? void 0 : _config$ios2.jsEngine) !== null && _config$ios$jsEngine2 !== void 0 ? _config$ios$jsEngine2 : config.jsEngine) !== null && _ref2 !== void 0 ? _ref2 : DEFAULT_JS_ENGINE;
45
- return podfileProperties;
46
- }
47
- //# sourceMappingURL=JsEngine.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ios/JsEngine.ts"],"names":["JS_ENGINE_PROP_KEY","DEFAULT_JS_ENGINE","withJsEnginePodfileProps","config","modResults","setJsEngine","getJsEngine","ios","jsEngine","podfileProperties"],"mappings":";;;;;;;;;;AAIA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,kBAAkB,GAAG,eAA3B;;AACA,MAAMC,iBAAiB,GAAG,KAA1B;;;AAEA,MAAMC,wBAAsC,GAAGC,MAAM,IAAI;AAC9D,SAAO,yCAAsBA,MAAtB,EAA8BA,MAAM,IAAI;AAC7CA,IAAAA,MAAM,CAACC,UAAP,GAAoBC,WAAW,CAACF,MAAD,EAASA,MAAM,CAACC,UAAhB,CAA/B;AACA,WAAOD,MAAP;AACD,GAHM,CAAP;AAID,CALM;;;;AAOA,SAASG,WAAT,CAAqBH,MAArB,EAAmE;AAAA;;AACxE,wDAAOA,MAAM,CAACI,GAAd,gDAAO,YAAYC,QAAnB,uEAA+BL,MAAM,CAACK,QAAtC,uCAAkDP,iBAAlD;AACD;;AAEM,SAASI,WAAT,CACLF,MADK,EAELM,iBAFK,EAGsB;AAAA;;AAC3BA,EAAAA,iBAAiB,CAACT,kBAAD,CAAjB,qDACEG,MAAM,CAACI,GADT,iDACE,aAAYC,QADd,yEAC0BL,MAAM,CAACK,QADjC,yCAC6CP,iBAD7C;AAEA,SAAOQ,iBAAP;AACD","sourcesContent":["import type { ExpoConfig } from '@expo/config-types';\nimport { JSONValue } from '@expo/json-file';\n\nimport type { ConfigPlugin } from '../Plugin.types';\nimport { withPodfileProperties } from '../plugins/ios-plugins';\n\nexport const JS_ENGINE_PROP_KEY = 'expo.jsEngine';\nexport const DEFAULT_JS_ENGINE = 'jsc';\n\nexport const withJsEnginePodfileProps: ConfigPlugin = config => {\n return withPodfileProperties(config, config => {\n config.modResults = setJsEngine(config, config.modResults);\n return config;\n });\n};\n\nexport function getJsEngine(config: Pick<ExpoConfig, 'ios' | 'jsEngine'>) {\n return config.ios?.jsEngine ?? config.jsEngine ?? DEFAULT_JS_ENGINE;\n}\n\nexport function setJsEngine(\n config: Pick<ExpoConfig, 'ios' | 'jsEngine'>,\n podfileProperties: Record<string, JSONValue>\n): Record<string, JSONValue> {\n podfileProperties[JS_ENGINE_PROP_KEY] =\n config.ios?.jsEngine ?? config.jsEngine ?? DEFAULT_JS_ENGINE;\n return podfileProperties;\n}\n"],"file":"JsEngine.js"}