AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

Able to override settings for workspace through .androidide/settings.json inside project

Open BanDroid opened this issue 1 year ago • 2 comments

Issue Checklist

  • [X] I confirm that this feature request has not been previously suggested.
  • [X] I agree to follow the project's code of conduct.
  • [X] I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.

Additional terms

  • [X] I understand that feature requests are subject to evaluation and may not be implemented immediately.
  • [X] I agree to provide additional details if needed for a clearer understanding of the requested feature.

Feature description

able to override any settings and customization through json file like vscode.

Use Case

for example i want a project to use 2 space for tabs but only for this project/workspace, but my default in settings for other project keep 4.

{
  "editor.tabSpace": 2
}

not just settings, but also customize the action for the app, for example override the task in quick run menu:

{
  "action.quickRun": "bash gradlew run"
}

Benefits

the benefits is self explanatory i belief 😅

BanDroid avatar Jan 23 '24 10:01 BanDroid

This would take some time to be implemented.

Also, should users really be able to change the action.quickRun action to a shell command? It could be a huge security vulnerability in my opinion. It would be better if we just let the user add "configurations" for that action. A configuration could let the user provide custom Gradle properties, environment variables and tasks to the Gradle daemon.

itsaky avatar Jan 23 '24 13:01 itsaky

i guess that's fine, but it needs to be workspace-only settings

BanDroid avatar Jan 23 '24 13:01 BanDroid