Skip to content

Commit fb3fe26

Browse files
author
Stewart Miles
committed
Fixed mainTemplate.gradle patching regression.
Fixed Android Resolver mainTemplate.gradle patcher regression on Windows introduced by I3208790dcd8a515982654ccb56ad0ccbcf1ed4f8. Maven paths are file URIs which require POSIX directory separators rather than the Windows native directory separators. For example... Invalid - 'file:///Assets/GeneratedLocalRepo\Firebase/m2repository' Valid - 'file:///Assets/GeneratedLocalRepo/Firebase/m2repository' Fixes #361 Change-Id: I2ece2cbd6bff3a3eade6360e9234b6ecaec19376
1 parent 1b7a9a5 commit fb3fe26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/AndroidResolver/src/PlayServicesResolver.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,8 +1958,9 @@ internal static IList<string> GradleMavenReposLines(ICollection<Dependency> depe
19581958
string repoUri;
19591959
if (repoAndSources.Key.StartsWith(projectFileUri) && !exportEnabled) {
19601960
var repoPath = repoAndSources.Key.Substring(projectFileUri.Length + 1);
1961-
repoPath = FileUtils.ReplaceBaseAssetsOrPackagesFolder(
1962-
repoPath, GooglePlayServices.SettingsDialog.LocalMavenRepoDir);
1961+
repoPath = FileUtils.PosixPathSeparators(
1962+
FileUtils.ReplaceBaseAssetsOrPackagesFolder(
1963+
repoPath, GooglePlayServices.SettingsDialog.LocalMavenRepoDir));
19631964
repoUri = String.Format("(unityProjectPath + \"/{0}\")", repoPath);
19641965
} else {
19651966
repoUri = String.Format("\"{0}\"", repoAndSources.Key);

0 commit comments

Comments
 (0)