@@ -177,7 +177,7 @@ public string PodFilePodLine {
177
177
/// reference.</param>
178
178
public Pod ( string name , string version , bool bitcodeEnabled , string minTargetSdk ,
179
179
bool addToAllTargets , IEnumerable < string > sources ,
180
- Dictionary < string , string > propertiesByName ) , {
180
+ Dictionary < string , string > propertiesByName ) {
181
181
this . name = name ;
182
182
this . version = version ;
183
183
if ( propertiesByName != null ) {
@@ -542,7 +542,7 @@ protected override bool Read(string filename, Logger logger) {
542
542
private const int DEFAULT_TARGET_SDK = 82 ;
543
543
544
544
// Default tvOS target SDK if the selected version is invalid.
545
- private const string DEFAULT_TVOS_TARGET_SDK = "12.0"
545
+ private const string DEFAULT_TVOS_TARGET_SDK = "12.0" ;
546
546
547
547
// Valid iOS / tvOS target SDK version.
548
548
private static Regex TARGET_SDK_REGEX = new Regex ( "^[0-9]+\\ .[0-9]$" ) ;
@@ -1507,8 +1507,7 @@ static string TargetSdk {
1507
1507
string name = null ;
1508
1508
if ( EditorUserBuildSettings . activeBuildTarget == BuildTarget . tvOS ) {
1509
1509
var tvosSettingsType = typeof ( UnityEditor . PlayerSettings . tvOs ) ;
1510
- var osVersionProperty = iosSettingsType . GetProperty (
1511
- "targetOSVersionString" ) ;
1510
+ var osVersionProperty = iosSettingsType . GetProperty ( "targetOSVersionString" ) ;
1512
1511
if ( osVersionProperty != null ) {
1513
1512
name = ( string ) osVersionProperty . GetValue ( null , null ) ;
1514
1513
}
@@ -1518,8 +1517,7 @@ static string TargetSdk {
1518
1517
return name . Trim ( ) . Replace ( "tvOS_" , "" ) . Replace ( "_" , "." ) ;
1519
1518
} else {
1520
1519
var iosSettingsType = typeof ( UnityEditor . PlayerSettings . iOS ) ;
1521
- var osVersionProperty = iosSettingsType . GetProperty (
1522
- "targetOSVersionString" ) ;
1520
+ var osVersionProperty = iosSettingsType . GetProperty ( "targetOSVersionString" ) ;
1523
1521
if ( osVersionProperty != null ) {
1524
1522
name = ( string ) osVersionProperty . GetValue ( null , null ) ;
1525
1523
}
@@ -2204,7 +2202,7 @@ public static void GenPodfile(BuildTarget buildTarget,
2204
2202
2205
2203
using ( StreamWriter file = new StreamWriter ( podfilePath ) ) {
2206
2204
file . WriteLine ( GeneratePodfileSourcesSection ( ) ) ;
2207
- String platform_name = ( EditorUserBuildSettings . activeBuildTarget == BuildTarget . tvOS ) ?
2205
+ String platform_name = EditorUserBuildSettings . activeBuildTarget == BuildTarget . tvOS ?
2208
2206
"tvos" : "ios" ;
2209
2207
file . WriteLine ( String . Format ( "platform :{0}}, '{1}'\n " , platform_name , TargetSdk ) ) ;
2210
2208
0 commit comments