File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ const appJson = require ( './app.json' ) ;
2+
3+ const WINDOWS_CMAKE_PLUGIN = './plugins/withWindowsCmakeObjectPath' ;
4+
5+ /** @returns {import('expo/config').ExpoConfig } */
6+ module . exports = ( ) => {
7+ const expo = { ...appJson . expo , plugins : [ ...appJson . expo . plugins ] } ;
8+
9+ // CMake 3.31.6 + short object paths are only needed for local Windows native builds.
10+ // EAS/Linux agents do not ship that CMake version ([CXX1300] if forced globally).
11+ if ( process . platform === 'win32' ) {
12+ expo . plugins . push (
13+ [
14+ 'expo-build-properties' ,
15+ {
16+ android : {
17+ cmakeVersion : '3.31.6' ,
18+ } ,
19+ } ,
20+ ] ,
21+ WINDOWS_CMAKE_PLUGIN ,
22+ ) ;
23+ }
24+
25+ return { expo } ;
26+ } ;
Original file line number Diff line number Diff line change 5252 "enforceContrast" : true
5353 }
5454 ],
55- [
56- " expo-build-properties" ,
57- {
58- "android" : {
59- "cmakeVersion" : " 3.31.6"
60- }
61- }
62- ],
63- " ./plugins/withWindowsCmakeObjectPath" ,
6455 " @react-native-google-signin/google-signin" ,
6556 " expo-asset"
6657 ],
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ const { withAppBuildGradle } = require('expo/config-plugins');
55 * Complements android.cmakeVersion=3.31.6 (Ninja 1.12+) from expo-build-properties.
66 */
77function withWindowsCmakeObjectPath ( config ) {
8+ if ( process . platform !== 'win32' ) {
9+ return config ;
10+ }
11+
812 return withAppBuildGradle ( config , ( config ) => {
913 if ( config . modResults . language !== 'groovy' ) {
1014 return config ;
You can’t perform that action at this time.
0 commit comments