Skip to content

Commit

Permalink
keep platform dir from zip unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
codeanticode committed Jun 10, 2024
1 parent 749405c commit 363521a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,11 @@ protected Object doInBackground() throws Exception {
for (File f: tempFolder.listFiles()) f.delete();
tempFolder.delete();

// Normalize built-tools and platform folders to android-<API LEVEL>
String actualName = platformsFolder.listFiles()[0].getName();
renameFolder(platformsFolder, "android-" + AndroidBuild.TARGET_SDK, actualName);
actualName = buildToolsFolder.listFiles()[0].getName();

// String actualName = platformsFolder.listFiles()[0].getName();
// renameFolder(platformsFolder, "android-" + AndroidBuild.TARGET_SDK, actualName);
// Rename build-tools folder to the expected name if it's not that already
String actualName = buildToolsFolder.listFiles()[0].getName();
renameFolder(buildToolsFolder, downloadUrls.buildToolsVersion, actualName);

// Done, let's set the environment and load the new SDK!
Expand Down

0 comments on commit 363521a

Please sign in to comment.