Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit b0d0bc4

Browse files
committed
Fix aar directory specified in build script
1 parent 5048725 commit b0d0bc4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

build.cake

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,15 @@ Task ("externals")
215215

216216
// Copy the .aar's to a better location
217217
foreach (var aar in AAR_INFOS) {
218-
CopyFile (string.Format (path + "m2repository/com/android/support/{0}/{1}/{2}-{3}.aar", aar.Dir, AAR_VERSION, aar.Dir, AAR_VERSION),
219-
string.Format (path + "{0}.aar", aar));
220-
Unzip (string.Format (path + "{0}.aar", aar), path + aar);
218+
var aarDir = aar.Dir;
219+
CopyFile (string.Format (path + "m2repository/com/android/support/{0}/{1}/{2}-{3}.aar", aarDir, AAR_VERSION, aarDir, AAR_VERSION),
220+
string.Format (path + "{0}.aar", aarDir));
221+
Unzip (string.Format (path + "{0}.aar", aarDir), path + aarDir);
221222

222-
var implFile = path + aar + "/libs/internal_impl-" + AAR_VERSION + ".jar";
223+
var implFile = path + aarDir + "/libs/internal_impl-" + AAR_VERSION + ".jar";
223224

224225
if (FileExists (implFile))
225-
MoveFile (implFile, path + aar + "/libs/internal_impl.jar");
226+
MoveFile (implFile, path + aarDir + "/libs/internal_impl.jar");
226227
}
227228

228229
// Get android docs

0 commit comments

Comments
 (0)