@@ -120,7 +120,10 @@ function createTestInjector(
120
120
testInjector . register ( "staticConfig" , ConfigLib . StaticConfig ) ;
121
121
testInjector . register ( "projectDataService" , ProjectDataServiceStub ) ;
122
122
testInjector . register ( "prompter" , { } ) ;
123
- testInjector . register ( "devicePlatformsConstants" , { iOS : "iOS" } ) ;
123
+ testInjector . register ( "devicePlatformsConstants" , {
124
+ iOS : "iOS" ,
125
+ visionOS : "visionOS" ,
126
+ } ) ;
124
127
testInjector . register ( "devicesService" , DevicesService ) ;
125
128
testInjector . register ( "iOSDeviceDiscovery" , IOSDeviceDiscovery ) ;
126
129
testInjector . register ( "iOSSimulatorDiscovery" , IOSSimulatorDiscoveryMock ) ;
@@ -1159,9 +1162,8 @@ describe("Merge Project XCConfig files", () => {
1159
1162
for ( const release in [ true , false ] ) {
1160
1163
await ( < any > iOSProjectService ) . mergeProjectXcconfigFiles ( projectData ) ;
1161
1164
1162
- const destinationFilePaths = xcconfigService . getPluginsXcconfigFilePaths (
1163
- projectRoot
1164
- ) ;
1165
+ const destinationFilePaths =
1166
+ xcconfigService . getPluginsXcconfigFilePaths ( projectRoot ) ;
1165
1167
1166
1168
_ . each ( destinationFilePaths , ( destinationFilePath ) => {
1167
1169
assert . isTrue (
@@ -1197,19 +1199,19 @@ describe("Merge Project XCConfig files", () => {
1197
1199
release,
1198
1200
} ) ;
1199
1201
1200
- const destinationFilePaths = xcconfigService . getPluginsXcconfigFilePaths (
1201
- projectRoot
1202
- ) ;
1202
+ const destinationFilePaths =
1203
+ xcconfigService . getPluginsXcconfigFilePaths ( projectRoot ) ;
1203
1204
1204
1205
_ . each ( destinationFilePaths , ( destinationFilePath ) => {
1205
1206
assert . isTrue (
1206
1207
fs . exists ( destinationFilePath ) ,
1207
1208
"Target build xcconfig is missing for release: " + release
1208
1209
) ;
1209
1210
const expected = {
1210
- CODE_SIGN_ENTITLEMENTS : iOSEntitlementsService . getPlatformsEntitlementsRelativePath (
1211
- projectData
1212
- ) ,
1211
+ CODE_SIGN_ENTITLEMENTS :
1212
+ iOSEntitlementsService . getPlatformsEntitlementsRelativePath (
1213
+ projectData
1214
+ ) ,
1213
1215
} ;
1214
1216
assertPropertyValues ( expected , destinationFilePath , testInjector ) ;
1215
1217
} ) ;
@@ -1226,9 +1228,8 @@ describe("Merge Project XCConfig files", () => {
1226
1228
1227
1229
await ( < any > iOSProjectService ) . mergeProjectXcconfigFiles ( projectData ) ;
1228
1230
1229
- const destinationFilePaths = xcconfigService . getPluginsXcconfigFilePaths (
1230
- projectRoot
1231
- ) ;
1231
+ const destinationFilePaths =
1232
+ xcconfigService . getPluginsXcconfigFilePaths ( projectRoot ) ;
1232
1233
1233
1234
_ . each ( destinationFilePaths , ( destinationFilePath ) => {
1234
1235
assert . isTrue (
@@ -1248,9 +1249,8 @@ describe("Merge Project XCConfig files", () => {
1248
1249
it ( "creates empty plugins-<config>.xcconfig in case there are no build.xcconfig in App_Resources and in plugins" , async ( ) => {
1249
1250
await ( < any > iOSProjectService ) . mergeProjectXcconfigFiles ( projectData ) ;
1250
1251
1251
- const destinationFilePaths = xcconfigService . getPluginsXcconfigFilePaths (
1252
- projectRoot
1253
- ) ;
1252
+ const destinationFilePaths =
1253
+ xcconfigService . getPluginsXcconfigFilePaths ( projectRoot ) ;
1254
1254
1255
1255
_ . each ( destinationFilePaths , ( destinationFilePath ) => {
1256
1256
assert . isTrue (
@@ -1279,7 +1279,8 @@ describe("handleNativeDependenciesChange", () => {
1279
1279
cocoapodsService . mergePodXcconfigFile = async ( ) =>
1280
1280
executedCocoapodsMethods . push ( "podMerge" ) ;
1281
1281
cocoapodsService . applyPodfileFromAppResources = async ( ) => ( { } ) ;
1282
- cocoapodsService . removeDuplicatedPlatfomsFromProjectPodFile = async ( ) => ( { } ) ;
1282
+ cocoapodsService . removeDuplicatedPlatfomsFromProjectPodFile =
1283
+ async ( ) => ( { } ) ;
1283
1284
cocoapodsService . getProjectPodfilePath = ( ) => projectPodfilePath ;
1284
1285
1285
1286
const fs = testInjector . resolve ( "fs" ) ;
0 commit comments