build-rust-sdk: print the command we run

It's helpful to know what exactly is being run.

Also some tweaks to reduce the amount of directory changing that needs to
happen.
This commit is contained in:
Richard van der Hoff
2026-08-12 09:24:59 +01:00
committed by Jorge Martin Espinosa
parent 999ee9737e
commit 6badc9634c
+10 -9
View File
@@ -215,25 +215,26 @@ if [ "$update_components" == "1" ]; then
printf "\n## Resetting ${kotlinComponentsPath} to the latest main...\n\n" printf "\n## Resetting ${kotlinComponentsPath} to the latest main...\n\n"
cd "${kotlinComponentsPath}" (
git reset --hard cd "${kotlinComponentsPath}"
git checkout main git reset --hard
git pull git checkout main
else git pull
cd "${kotlinComponentsPath}" )
fi fi
## Build the SDK ## Build the SDK
printf "\n## Building the SDK for ${target_arch}...\n\n" printf "\n## Building the SDK for ${target_arch}...\n\n"
./scripts/build.sh \ cmd=("${kotlinComponentsPath}/scripts/build.sh" \
-p "${rustSdkPath}" \ -p "${rustSdkPath}" \
-m sdk \ -m sdk \
-t "${target_arch}" \ -t "${target_arch}" \
-o "${elementPwd}/libraries/rustsdk" -o "${elementPwd}/libraries/rustsdk")
cd "${elementPwd}" echo "$ ${cmd[@]}"
"${cmd[@]}"
mv \ mv \
./libraries/rustsdk/sdk-android-debug.aar \ ./libraries/rustsdk/sdk-android-debug.aar \