[deps] Stop moving NDK folder inside Android SDK (flutter/engine#47454)

One step in the direction of addressing

* https://github.com/flutter/flutter/issues/136666

I can't actually upload the packages: ` Instance registration failed: "user:dacoharkes@google.com" has no required WRITER role in prefix`. I have verified locally that the directory structure is as expected by preventing the tmp folder from being deleted and browsing inside it.

Old structure:

* `sdk/`
* `ndk/`

New structure

* `sdk/ndk/22.xxxx/`

This PR does not yet update any of the DEPS anywhere yet, so we will need to do that after uploading new packages.

Edit: new CIPD packages uploaded with: `~/flt/engine/src/flutter/tools/android_sdk$ ./create_cipd_packages.sh 33v6transitional2` (The script does now allow underscores in the tag.)

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
Daco Harkes
2023-10-30 20:07:05 +01:00
committed by GitHub
parent b4efc3450e
commit 0ecf21bb19

View File

@@ -115,13 +115,6 @@ for platform in "${platforms[@]}"; do
done
done
# Special treatment for NDK to move to expected directory.
mv $upload_dir/sdk/ndk $upload_dir/ndk-bundle
ndk_sub_paths=`find $upload_dir/ndk-bundle -maxdepth 1 -type d`
ndk_sub_paths_arr=($ndk_sub_paths)
mv ${ndk_sub_paths_arr[1]} $upload_dir/ndk
rm -rf $upload_dir/ndk-bundle
# Accept all licenses to ensure they are generated and uploaded.
yes "y" | $sdkmanager_path --licenses --sdk_root=$sdk_root
cp -r "$sdk_root/licenses" "$upload_dir/sdk"