Skip to content

Commit 6ac1561

Browse files
authored
Merge pull request #880 from ricardodalarme/fix/remove-ndk-path-from-build-gradle
Remove ndkPath from generated build.gradle. (for Unity 2022.3 and up)
2 parents 6fc738c + c2a2318 commit 6ac1561

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ private static void ModifyAndroidGradle(bool isPlugin)
330330
buildText = buildText.Replace("enableSplit = true", "enable true");
331331
buildText = buildText.Replace("implementation fileTree(dir: 'libs', include: ['*.jar'])", "implementation(name: 'unity-classes', ext:'jar')");
332332
buildText = buildText.Replace(" + unityStreamingAssets.tokenize(', ')", "");
333+
buildText = Regex.Replace(buildText, "ndkPath \".*\"", "");
333334

334335
if(isPlugin)
335336
{

0 commit comments

Comments
 (0)