Project: appceleratorstudio
Issue TISTUD-929: Dashboard SDK install use case should allow users to specify desired installation directory
The way the Dashboard installs Titanium/Mobile SDKs, it requires the SDK paths to be set in the preferences. In the case where the default SDK paths don't exist or invalid (ie, the user doesn't have permission), you will not be able to change the SDK paths to a desired location. To reproduce: 1. Have a valid Ti SDK setup 2. Export the all the preferences via File->Export->General->Preferences 3. Edit the exported preference entry: /instance/com.appcelerator.titanium.core/TITANIUM_SDK_PATH with an invalid path. I used a path that the user does not have permissions, /Users/invalidUser/xxx Save the file 4. Launch Ti Studio 5. Import the preferences via File->Import>General->Preferences 6. Restart Ti Studio Expected: Ti SDK installation starts and prompts for a new location for installation Actual: Ti SDK installation starts and fails The same issue is exhibited with the Android SDK as well. The preferences for them are: /instance/com.appcelerator.titanium.mobile/ANDROID_SDK_PATH The installation is triggered via the configuration in the Dashboard The installation should validate the SDK location to ensure it is valid (exists/write permission), if it is not the user is prompted for a new location
Story points: 5