tat_flutter icon indicating copy to clipboard operation
tat_flutter copied to clipboard

Feature: Develop Environment Detector of Android

Open ntut-xuan opened this issue 2 years ago • 4 comments

Description

A develop envrionment detector script which base on python. It can detect the current environment is satisfied the build requirement of tat-flutter. So it can help the other new develop to build the environment on android studio.

It can detect the following situations:

  • Flutter is installed or not.
  • The variable of flutter.sdk in local.properties is set or not.
  • The version of Android Studio is too old or not.
  • .dart_tool is built or not.

How to implement?

We'll implement in Gradle. When user build the project with the environment not satisfying the build requirement, it should notify the user to fix the issue.

ntut-xuan avatar Nov 03 '22 07:11 ntut-xuan

Android Studio is actually not required to build for Android. In fact, I can debug the app in my Android phone using just VSCode. You can also check for the presence of tat_core and google-services.json.

rileychh avatar Mar 27 '23 19:03 rileychh

Hi @chenghsuanho, thank you for your suggestions on our development environment. It is true that we can develop without using Android Studio since flutter officially supports VSCode. However, there are conveniences in using Android Studio, and more importantly, there are multiple developers involved in this project. Changing the main development environment would require the agreement of all parties involved.

Therefore, I think you can still use VSCode for any possible future development, but we need to keep the configuration files for using Android Studio as well.

Xanonymous-GitHub avatar Mar 27 '23 21:03 Xanonymous-GitHub

@Xanonymous-GitHub Sorry for the misunderstanding, what I meant is not removing the environment suitable for Android Studio, but informing that the Android Studio is not required to build the app, so the Android Studio version is not related to whether the project builds.

rileychh avatar Mar 28 '23 10:03 rileychh

@chenghsuanho Hi, thanks for following this issue. I'll focus on checking the major requirement for build this project with Gradle, and it will notify the collaborator when the environment is not satisfying for building project. It's glad to know you are using VSCode to develop the project and also let me know we have a collaborator using VSCode to develop the project.

ntut-xuan avatar Mar 29 '23 14:03 ntut-xuan