@@ -70,17 +70,17 @@ project.ext.react = [
7070project. ext. signingConfigs = getSigningConfigs()
7171
7272android {
73- namespace " com.microsoft.reacttestapp"
73+ namespace = " com.microsoft.reacttestapp"
7474
75- compileSdkVersion project. ext. compileSdkVersion
75+ compileSdkVersion = project. ext. compileSdkVersion
7676
7777 if (project. hasProperty(" ndkVersion" )) {
78- ndkVersion project. ext. ndkVersion
78+ ndkVersion = project. ext. ndkVersion
7979 }
8080
8181 if (usePrefabs) {
8282 buildFeatures {
83- prefab true
83+ prefab = true
8484 }
8585 }
8686
@@ -89,34 +89,34 @@ android {
8989 }
9090
9191 defaultConfig {
92- applicationId project. ext. react. applicationId
93- minSdkVersion project. ext. minSdkVersion
94- targetSdkVersion project. ext. targetSdkVersion
95- versionCode project. ext. getVersionCode()
96- versionName project. ext. getVersionName()
92+ applicationId = project. ext. react. applicationId
93+ minSdkVersion = project. ext. minSdkVersion
94+ targetSdkVersion = project. ext. targetSdkVersion
95+ versionCode = project. ext. getVersionCode()
96+ versionName = project. ext. getVersionName()
9797
9898 def singleApp = getSingleAppMode()
99- buildConfigField " String" , " REACTAPP_SINGLE_APP" , singleApp ? " \" ${ singleApp} \" " : " null"
99+ buildConfigField( " String" , " REACTAPP_SINGLE_APP" , singleApp ? " \" ${ singleApp} \" " : " null" )
100100
101- buildConfigField " boolean" , " REACTAPP_USE_FABRIC" , enableNewArchitecture. toString()
102- buildConfigField " boolean" , " REACTAPP_USE_BRIDGELESS" , enableBridgeless. toString()
101+ buildConfigField( " boolean" , " REACTAPP_USE_FABRIC" , enableNewArchitecture. toString() )
102+ buildConfigField( " boolean" , " REACTAPP_USE_BRIDGELESS" , enableBridgeless. toString() )
103103
104104 manifestPlaceholders = [
105105 rntaEnableCamera : project. ext. react. enableCamera ? " 1000000" : " 1"
106106 ]
107107
108- resValue " string" , " app_name" , project. ext. react. appName
108+ resValue( " string" , " app_name" , project. ext. react. appName)
109109
110110 def cppStd = reactNativeVersion >= v(0 , 74 , 0 ) ? " -std=c++20" : " -std=c++17"
111111 if (enableNewArchitecture) {
112112 externalNativeBuild {
113113 cmake {
114- arguments " -DANDROID_STL=c++_shared" ,
114+ arguments( " -DANDROID_STL=c++_shared" ,
115115 " -DNODE_MODULES_DIR=${ reactNativePath} /.." ,
116116 " -DPROJECT_BUILD_DIR=${ buildDir} " ,
117117 " -DREACT_ANDROID_BUILD_DIR=${ reactNativePath} /ReactAndroid/build" ,
118- " -DREACT_ANDROID_DIR=${ reactNativePath} /ReactAndroid"
119- cppFlags cppStd, " -frtti" , " -fexceptions" , " -DWITH_INSPECTOR=1"
118+ " -DREACT_ANDROID_DIR=${ reactNativePath} /ReactAndroid" )
119+ cppFlags( cppStd, " -frtti" , " -fexceptions" , " -DWITH_INSPECTOR=1" )
120120 }
121121 }
122122 if (! project. ext. react. abiSplit) {
@@ -127,18 +127,18 @@ android {
127127 } else {
128128 externalNativeBuild {
129129 cmake {
130- arguments " -DANDROID_STL=c++_shared" ,
130+ arguments( " -DANDROID_STL=c++_shared" ,
131131 " -DREACT_COMMON_DIR=${ reactNativePath} /ReactCommon" ,
132- " -DREACT_JNILIBS_DIR=${ buildDir} /outputs/jniLibs"
133- cppFlags cppStd, " -Wall" , " -Werror" , " -frtti" , " -fexceptions" , " -DWITH_INSPECTOR=1"
132+ " -DREACT_JNILIBS_DIR=${ buildDir} /outputs/jniLibs" )
133+ cppFlags( cppStd, " -Wall" , " -Werror" , " -frtti" , " -fexceptions" , " -DWITH_INSPECTOR=1" )
134134 }
135135 }
136136 }
137137 }
138138
139139 externalNativeBuild {
140140 cmake {
141- path " ${ projectDir} /src/main/jni/CMakeLists.txt"
141+ path = " ${ projectDir} /src/main/jni/CMakeLists.txt"
142142 }
143143 }
144144
@@ -165,14 +165,14 @@ android {
165165 }
166166
167167 lintOptions {
168- lintConfig file(" lint.xml" )
168+ lintConfig = file(" lint.xml" )
169169 }
170170
171171 packagingOptions {
172- pickFirst " lib/armeabi-v7a/libc++_shared.so"
173- pickFirst " lib/arm64-v8a/libc++_shared.so"
174- pickFirst " lib/x86_64/libc++_shared.so"
175- pickFirst " lib/x86/libc++_shared.so"
172+ pickFirst( " lib/armeabi-v7a/libc++_shared.so" )
173+ pickFirst( " lib/arm64-v8a/libc++_shared.so" )
174+ pickFirst( " lib/x86_64/libc++_shared.so" )
175+ pickFirst( " lib/x86/libc++_shared.so" )
176176 }
177177
178178 project. ext. signingConfigs. each { name , config ->
@@ -244,8 +244,8 @@ android {
244244 splits {
245245 abi {
246246 reset()
247- enable( project. ext. react. abiSplit)
248- universalApk( false )
247+ enable = project. ext. react. abiSplit
248+ universalApk = false
249249 include(* project. ext. react. architectures)
250250 }
251251 }
@@ -271,15 +271,15 @@ dependencies {
271271 implementation(" com.facebook.react:react-native:${ version} " )
272272 }
273273
274- implementation libraries. androidAppCompat
275- implementation libraries. androidCoreKotlinExtensions
276- implementation libraries. androidRecyclerView
277- implementation libraries. materialComponents
274+ implementation( libraries. androidAppCompat)
275+ implementation( libraries. androidCoreKotlinExtensions)
276+ implementation( libraries. androidRecyclerView)
277+ implementation( libraries. materialComponents)
278278
279279 if (project. ext. react. enableCamera) {
280- implementation libraries. androidCamera
281- implementation libraries. androidCameraMlKitVision
282- implementation libraries. mlKitBarcodeScanning
280+ implementation( libraries. androidCamera)
281+ implementation( libraries. androidCameraMlKitVision)
282+ implementation( libraries. mlKitBarcodeScanning)
283283 }
284284
285285 if (reactNativeVersion == 0 || reactNativeVersion >= v(0 , 75 , 0 )) {
0 commit comments