expo-build-properties 1.0.0-canary-20241008-90b13ad → 1.0.0-canary-20241018-f71b3e0

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/CHANGELOG.md CHANGED
@@ -13,6 +13,7 @@
13
13
  ### 💡 Others
14
14
 
15
15
  - Export missing types. ([#29401](https://github.com/expo/expo/pull/29401) by [@Simek](https://github.com/Simek))
16
+ - Deprecate `android.newArchEnabled` and `ios.newArchEnabled` in favor of app config `newArchEnabled`. ([#31963](https://github.com/expo/expo/pull/31963) by [@gabrieldonadel](https://github.com/gabrieldonadel))
16
17
 
17
18
  ## 0.12.5 - 2024-08-07
18
19
 
package/build/android.js CHANGED
@@ -13,7 +13,12 @@ const { createBuildGradlePropsConfigPlugin } = config_plugins_1.AndroidConfig.Bu
13
13
  exports.withAndroidBuildProperties = createBuildGradlePropsConfigPlugin([
14
14
  {
15
15
  propName: 'newArchEnabled',
16
- propValueGetter: (config) => config.android?.newArchEnabled?.toString(),
16
+ propValueGetter: (config) => {
17
+ if (config.android?.newArchEnabled !== undefined) {
18
+ config_plugins_1.WarningAggregator.addWarningAndroid('withAndroidBuildProperties', 'android.newArchEnabled is deprecated, use app config `newArchEnabled` instead.', 'https://docs.expo.dev/versions/latest/config/app/#newarchenabled');
19
+ }
20
+ return config.android?.newArchEnabled?.toString();
21
+ },
17
22
  },
18
23
  {
19
24
  propName: 'android.minSdkVersion',
package/build/ios.js CHANGED
@@ -6,7 +6,12 @@ const { createBuildPodfilePropsConfigPlugin } = config_plugins_1.IOSConfig.Build
6
6
  exports.withIosBuildProperties = createBuildPodfilePropsConfigPlugin([
7
7
  {
8
8
  propName: 'newArchEnabled',
9
- propValueGetter: (config) => config.ios?.newArchEnabled?.toString(),
9
+ propValueGetter: (config) => {
10
+ if (config.ios?.newArchEnabled !== undefined) {
11
+ config_plugins_1.WarningAggregator.addWarningIOS('withIosBuildProperties', 'ios.newArchEnabled is deprecated, use app config `newArchEnabled` instead.', 'https://docs.expo.dev/versions/latest/config/app/#newarchenabled');
12
+ }
13
+ return config.ios?.newArchEnabled?.toString();
14
+ },
10
15
  },
11
16
  {
12
17
  propName: 'ios.useFrameworks',
@@ -19,6 +19,7 @@ export interface PluginConfigType {
19
19
  */
20
20
  export interface PluginConfigTypeAndroid {
21
21
  /**
22
+ * @deprecated Use app config [`newArchEnabled`](https://docs.expo.dev/versions/latest/config/app/#newarchenabled) instead.
22
23
  * Enable React Native new architecture for Android platform.
23
24
  */
24
25
  newArchEnabled?: boolean;
@@ -185,6 +186,7 @@ export type AndroidMavenRepositoryCredentials = AndroidMavenRepositoryPasswordCr
185
186
  */
186
187
  export interface PluginConfigTypeIos {
187
188
  /**
189
+ * @deprecated Use app config [`newArchEnabled`](https://docs.expo.dev/versions/latest/config/app/#newarchenabled) instead.
188
190
  * Enable React Native new architecture for iOS platform.
189
191
  */
190
192
  newArchEnabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-build-properties",
3
- "version": "1.0.0-canary-20241008-90b13ad",
3
+ "version": "1.0.0-canary-20241018-f71b3e0",
4
4
  "description": "Config plugin to customize native build properties on prebuild",
5
5
  "main": "build/withBuildProperties.js",
6
6
  "types": "build/withBuildProperties.d.ts",
@@ -35,10 +35,10 @@
35
35
  "semver": "^7.6.0"
36
36
  },
37
37
  "devDependencies": {
38
- "expo-module-scripts": "3.6.0-canary-20241008-90b13ad"
38
+ "expo-module-scripts": "3.6.0-canary-20241018-f71b3e0"
39
39
  },
40
40
  "peerDependencies": {
41
- "expo": "52.0.0-canary-20241008-90b13ad"
41
+ "expo": "52.0.0-canary-20241018-f71b3e0"
42
42
  },
43
- "gitHead": "90b13ad9d0dd3469556ac776d8b74643375b1d97"
43
+ "gitHead": "f71b3e0228015809e7c8f578e3877c6b56a573bc"
44
44
  }
package/src/android.ts CHANGED
@@ -2,6 +2,7 @@ import {
2
2
  AndroidConfig,
3
3
  ConfigPlugin,
4
4
  History,
5
+ WarningAggregator,
5
6
  withAndroidManifest,
6
7
  withDangerousMod,
7
8
  } from 'expo/config-plugins';
@@ -18,7 +19,17 @@ export const withAndroidBuildProperties = createBuildGradlePropsConfigPlugin<Plu
18
19
  [
19
20
  {
20
21
  propName: 'newArchEnabled',
21
- propValueGetter: (config) => config.android?.newArchEnabled?.toString(),
22
+ propValueGetter: (config) => {
23
+ if (config.android?.newArchEnabled !== undefined) {
24
+ WarningAggregator.addWarningAndroid(
25
+ 'withAndroidBuildProperties',
26
+ 'android.newArchEnabled is deprecated, use app config `newArchEnabled` instead.',
27
+ 'https://docs.expo.dev/versions/latest/config/app/#newarchenabled'
28
+ );
29
+ }
30
+
31
+ return config.android?.newArchEnabled?.toString();
32
+ },
22
33
  },
23
34
  {
24
35
  propName: 'android.minSdkVersion',
package/src/ios.ts CHANGED
@@ -1,4 +1,10 @@
1
- import { IOSConfig, ConfigPlugin, withXcodeProject, XcodeProject } from 'expo/config-plugins';
1
+ import {
2
+ IOSConfig,
3
+ ConfigPlugin,
4
+ withXcodeProject,
5
+ XcodeProject,
6
+ WarningAggregator,
7
+ } from 'expo/config-plugins';
2
8
 
3
9
  import type { PluginConfigType } from './pluginConfig';
4
10
 
@@ -8,7 +14,16 @@ export const withIosBuildProperties = createBuildPodfilePropsConfigPlugin<Plugin
8
14
  [
9
15
  {
10
16
  propName: 'newArchEnabled',
11
- propValueGetter: (config) => config.ios?.newArchEnabled?.toString(),
17
+ propValueGetter: (config) => {
18
+ if (config.ios?.newArchEnabled !== undefined) {
19
+ WarningAggregator.addWarningIOS(
20
+ 'withIosBuildProperties',
21
+ 'ios.newArchEnabled is deprecated, use app config `newArchEnabled` instead.',
22
+ 'https://docs.expo.dev/versions/latest/config/app/#newarchenabled'
23
+ );
24
+ }
25
+ return config.ios?.newArchEnabled?.toString();
26
+ },
12
27
  },
13
28
  {
14
29
  propName: 'ios.useFrameworks',
@@ -39,6 +39,7 @@ export interface PluginConfigType {
39
39
  */
40
40
  export interface PluginConfigTypeAndroid {
41
41
  /**
42
+ * @deprecated Use app config [`newArchEnabled`](https://docs.expo.dev/versions/latest/config/app/#newarchenabled) instead.
42
43
  * Enable React Native new architecture for Android platform.
43
44
  */
44
45
  newArchEnabled?: boolean;
@@ -223,6 +224,7 @@ export type AndroidMavenRepositoryCredentials =
223
224
  */
224
225
  export interface PluginConfigTypeIos {
225
226
  /**
227
+ * @deprecated Use app config [`newArchEnabled`](https://docs.expo.dev/versions/latest/config/app/#newarchenabled) instead.
226
228
  * Enable React Native new architecture for iOS platform.
227
229
  */
228
230
  newArchEnabled?: boolean;