Skip to content

Commit d784b69

Browse files
committed
Fix regex that handles settings.gradle.kts.
1 parent ef10630 commit d784b69

File tree

1 file changed

+3
-3
lines changed
  • example/unity/DemoApp/Assets/FlutterUnityIntegration/Editor

1 file changed

+3
-3
lines changed

example/unity/DemoApp/Assets/FlutterUnityIntegration/Editor/Build.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,8 @@ private static void SetupAndroidProjectKotlin()
653653
File.WriteAllText(projBuildPath, projBuildScript);
654654
}
655655

656-
// Sets up the project settings.gradle files correctly
657-
if (!Regex.IsMatch(settingsScript, @"include("":unityLibrary"")"))
656+
// Sets up the project settings.gradle.kts files correctly
657+
if (!Regex.IsMatch(settingsScript, @"include\("":unityLibrary""\)"))
658658
{
659659
settingsScript += @"
660660
@@ -665,7 +665,7 @@ private static void SetupAndroidProjectKotlin()
665665
}
666666

667667

668-
// Sets up the project app build.gradle files correctly
668+
// Sets up the project app build.gradle.kts files correctly
669669
if (!Regex.IsMatch(appBuildScript, @"dependencies \{"))
670670
{
671671
appBuildScript += @"

0 commit comments

Comments
 (0)