@@ -13,7 +13,7 @@ export class IOSEntitlementsService {
1313 private $logger : ILogger ,
1414 private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
1515 private $mobileHelper : Mobile . IMobileHelper ,
16- private $pluginsService : IPluginsService
16+ private $pluginsService : IPluginsService ,
1717 ) { }
1818
1919 public static readonly DefaultEntitlementsName : string = "app.entitlements" ;
@@ -23,28 +23,31 @@ export class IOSEntitlementsService {
2323 const entitlementsPath = path . join (
2424 projectData . appResourcesDirectoryPath ,
2525 this . $mobileHelper . normalizePlatformName (
26- this . $options . platformOverride ?? this . $devicePlatformsConstants . iOS
26+ this . $options . platformOverride ?? this . $devicePlatformsConstants . iOS ,
2727 ) ,
28- entitlementsName
28+ entitlementsName ,
2929 ) ;
3030 return entitlementsPath ;
3131 }
3232
3333 public getPlatformsEntitlementsPath ( projectData : IProjectData ) : string {
3434 return path . join (
3535 projectData . platformsDir ,
36- this . $options . platformOverride ??
37- this . $devicePlatformsConstants . iOS . toLowerCase ( ) ,
36+ this . $mobileHelper
37+ . normalizePlatformName (
38+ this . $options . platformOverride ?? this . $devicePlatformsConstants . iOS ,
39+ )
40+ . toLowerCase ( ) ,
3841 projectData . projectName ,
39- projectData . projectName + ".entitlements"
42+ projectData . projectName + ".entitlements" ,
4043 ) ;
4144 }
4245 public getPlatformsEntitlementsRelativePath (
43- projectData : IProjectData
46+ projectData : IProjectData ,
4447 ) : string {
4548 return path . join (
4649 projectData . projectName ,
47- projectData . projectName + ".entitlements"
50+ projectData . projectName + ".entitlements" ,
4851 ) ;
4952 }
5053
@@ -71,7 +74,7 @@ export class IOSEntitlementsService {
7174 for ( const plugin of allPlugins ) {
7275 const pluginInfoPlistPath = path . join (
7376 plugin . pluginPlatformsFolderPath ( this . $devicePlatformsConstants . iOS ) ,
74- IOSEntitlementsService . DefaultEntitlementsName
77+ IOSEntitlementsService . DefaultEntitlementsName ,
7578 ) ;
7679 makePatch ( pluginInfoPlistPath ) ;
7780 }
@@ -85,17 +88,17 @@ export class IOSEntitlementsService {
8588 const plistContent = session . build ( ) ;
8689 this . $logger . trace (
8790 "App.entitlements: Write to: " +
88- this . getPlatformsEntitlementsPath ( projectData )
91+ this . getPlatformsEntitlementsPath ( projectData ) ,
8992 ) ;
9093 this . $fs . writeFile (
9194 this . getPlatformsEntitlementsPath ( projectData ) ,
92- plistContent
95+ plistContent ,
9396 ) ;
9497 }
9598 }
9699
97100 private getAllInstalledPlugins (
98- projectData : IProjectData
101+ projectData : IProjectData ,
99102 ) : Promise < IPluginData [ ] > {
100103 return this . $pluginsService . getAllInstalledPlugins ( projectData ) ;
101104 }
0 commit comments