3838namespace App . Editor . iOS
3939{
4040 /// <summary>
41- /// Adds the ExampleWidgetExtension to the iOS project frameworks to the iOS project and enables the main target
41+ /// Adds the OneSignalWidgetExtension to the iOS project and enables the main target
4242 /// for Live Activities.
4343 /// </summary>
4444 public class BuildPostProcessor : IPostprocessBuildWithReport
4545 {
46- private static readonly string WdigetExtensionTargetRelativePath = "ExampleWidget " ;
47- private static readonly string WidgetExtensionTargetName = "ExampleWidgetExtension " ;
48- private static readonly string WidgetExtensionPath = Path . Combine ( "iOS" , "ExampleWidget " ) ;
46+ private static readonly string WidgetExtensionTargetRelativePath = "OneSignalWidget " ;
47+ private static readonly string WidgetExtensionTargetName = "OneSignalWidgetExtension " ;
48+ private static readonly string WidgetExtensionPath = Path . Combine ( "iOS" , "OneSignalWidget " ) ;
4949 private static readonly string [ ] WidgetExtensionFiles = new string [ ]
5050 {
5151 "Assets.xcassets" ,
52- "ExampleWidgetBundle .swift" ,
53- "ExampleWidgetLiveActivity .swift" ,
52+ "OneSignalWidgetBundle .swift" ,
53+ "OneSignalWidgetLiveActivity .swift" ,
5454 } ;
5555
5656 /// <summary>
@@ -114,7 +114,7 @@ static void AddWidgetExtensionToProject(string outputPath)
114114 if ( ! string . IsNullOrEmpty ( extensionGuid ) )
115115 return ;
116116
117- var widgetDestPath = Path . Combine ( outputPath , WdigetExtensionTargetRelativePath ) ;
117+ var widgetDestPath = Path . Combine ( outputPath , WidgetExtensionTargetRelativePath ) ;
118118
119119 Directory . CreateDirectory ( widgetDestPath ) ;
120120 CopyFileOrDirectory (
@@ -126,14 +126,14 @@ static void AddWidgetExtensionToProject(string outputPath)
126126 project . GetUnityMainTargetGuid ( ) ,
127127 WidgetExtensionTargetName ,
128128 $ "{ PlayerSettings . GetApplicationIdentifier ( BuildTargetGroup . iOS ) } .{ WidgetExtensionTargetName } ",
129- $ "{ WdigetExtensionTargetRelativePath } /Info.plist"
129+ $ "{ WidgetExtensionTargetRelativePath } /Info.plist"
130130 ) ;
131131
132132 var buildPhaseID = project . AddSourcesBuildPhase ( extensionGuid ) ;
133133
134134 foreach ( var file in WidgetExtensionFiles )
135135 {
136- var destPathRelative = Path . Combine ( WdigetExtensionTargetRelativePath , file ) ;
136+ var destPathRelative = Path . Combine ( WidgetExtensionTargetRelativePath , file ) ;
137137 var sourceFileGuid = project . AddFile ( destPathRelative , destPathRelative ) ;
138138 project . AddFileToBuildSection ( extensionGuid , buildPhaseID , sourceFileGuid ) ;
139139 CopyFileOrDirectory (
0 commit comments