@@ -2,43 +2,43 @@ const {
22 createRunOncePlugin,
33 withGradleProperties,
44 withPodfileProperties,
5- } = require ( '@expo/config-plugins' )
5+ } = require ( '@expo/config-plugins' ) ;
66
7- const pkg = require ( './package.json' )
7+ const pkg = require ( './package.json' ) ;
88
99function ensureGradleProperty ( gradleProperties , name , value ) {
10- const property = gradleProperties . find ( ( item ) => item . name === name )
10+ const property = gradleProperties . find ( ( item ) => item . name === name ) ;
1111 if ( property ) {
12- property . value = value
12+ property . value = value ;
1313 } else {
14- gradleProperties . push ( { type : 'property' , name, value } )
14+ gradleProperties . push ( { type : 'property' , name, value } ) ;
1515 }
1616}
1717
1818function withAndroidNewArchitecture ( config ) {
1919 return withGradleProperties ( config , ( modConfig ) => {
20- ensureGradleProperty ( modConfig . modResults , 'newArchEnabled' , 'true' )
21- ensureGradleProperty ( modConfig . modResults , 'expo.jsEngine' , 'hermes' )
22- return modConfig
23- } )
20+ ensureGradleProperty ( modConfig . modResults , 'newArchEnabled' , 'true' ) ;
21+ ensureGradleProperty ( modConfig . modResults , 'expo.jsEngine' , 'hermes' ) ;
22+ return modConfig ;
23+ } ) ;
2424}
2525
2626function withIosNewArchitecture ( config ) {
2727 return withPodfileProperties ( config , ( modConfig ) => {
28- modConfig . modResults . new_arch_enabled = 'true'
29- modConfig . modResults . RCT_NEW_ARCH_ENABLED = '1'
30- return modConfig
31- } )
28+ modConfig . modResults . new_arch_enabled = 'true' ;
29+ modConfig . modResults . RCT_NEW_ARCH_ENABLED = '1' ;
30+ return modConfig ;
31+ } ) ;
3232}
3333
3434function withSensitiveInfoExpo ( config ) {
35- config = withAndroidNewArchitecture ( config )
36- config = withIosNewArchitecture ( config )
37- return config
35+ config = withAndroidNewArchitecture ( config ) ;
36+ config = withIosNewArchitecture ( config ) ;
37+ return config ;
3838}
3939
4040module . exports = createRunOncePlugin (
4141 withSensitiveInfoExpo ,
4242 pkg . name ,
4343 pkg . version
44- )
44+ ) ;
0 commit comments