File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ public static void DoBuildAndroid(String buildPath)
58
58
var build_file = Path . Combine ( androidExportPath , "build.gradle" ) ;
59
59
var build_text = File . ReadAllText ( build_file ) ;
60
60
build_text = build_text . Replace ( "com.android.application" , "com.android.library" ) ;
61
+ build_text = build_text . Replace ( "bundle {" , "splits {" ) ;
62
+ build_text = build_text . Replace ( "enableSplit = false" , "enable false" ) ;
63
+ build_text = build_text . Replace ( "enableSplit = true" , "enable true" ) ;
61
64
build_text = build_text . Replace ( "implementation fileTree(dir: 'libs', include: ['*.jar'])" , "implementation project(':unity-classes')" ) ;
62
65
build_text = Regex . Replace ( build_text , @"\n.*applicationId '.+'.*\n" , "\n " ) ;
63
66
File . WriteAllText ( build_file , build_text ) ;
@@ -116,4 +119,4 @@ static string[] GetEnabledScenes()
116
119
117
120
return scenes ;
118
121
}
119
- }
122
+ }
You can’t perform that action at this time.
0 commit comments