Skip to content

Commit

Permalink
Fix the breaking test by changing the path during activation
Browse files Browse the repository at this point in the history
  • Loading branch information
shankari committed Feb 10, 2023
1 parent cf5ee27 commit ae1e115
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup/activate_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ echo "Verifying $ANDROID_HOME or $ANDROID_SDK_ROOT is set"
if [ -z $ANDROID_HOME ] && [ -z $ANDROID_SDK_ROOT ];
then
echo "ANDROID_HOME and ANDROID_SDK_ROOT not set, android SDK not found"
exit 1
fi

echo "Activating sdkman, and by default, gradle"
source ~/.sdkman/bin/sdkman-init.sh

echo "Ensuring that we use the most recent version of the command line tools"
export PATH=$ANDROID_SDK_ROOT/sdk/cmdline-tools/bin:$ANDROID_SDK_ROOT/emulator:$PATH
export PATH=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/emulator:$PATH

echo "Configuring the repo for building native code"
./bin/configure_xml_and_json.js cordovabuild

0 comments on commit ae1e115

Please sign in to comment.