Alwin-Lin / development-debug-androidTest

2 stars 0 forks source link

Android Studio plugin for debugAndroidSystemApp #21

Open samlin001 opened 4 years ago

samlin001 commented 4 years ago

A developer can create a new Android System App project in Android Studio by specifying its source folder.

Ref: https://www.jetbrains.org/intellij/sdk/docs/products/android_studio.html https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html

samlin001 commented 4 years ago

https://medium.com/groupon-eng/developing-android-studio-plugins-with-gradle-7597d8825d76 https://proandroiddev.com/write-an-android-studio-plugin-part-1-creating-a-basic-plugin-af956c4f8b50

Alwin-Lin commented 4 years ago

Setup an Android studio project from an Android system app source directory.

  1. User input the source directory. 1.1 Test with hard code 1.2 Make a user input box to replace 1.1
  2. Create it's build.gradle. 2.1 Where to store build.gradle, don't want to be in the source directory for easier check in. 2.2 User input project directory 2.3 Change the build.gradle 2.3.1 What other project related settings are, i.e. project name
  3. Open existing project with Android Studio

Ref

  1. https://www.jetbrains.org/intellij/sdk/docs/tutorials/action_system/working_with_custom_actions.html#developing-the-anaction-methods
  2. https://github.com/balsikandar/Android-Studio-Plugins
Alwin-Lin commented 3 years ago

This generates findViewByID This interacts with gradle

samlin001 commented 3 years ago

https://cs.android.com/search?q=DialogWrapper&sq=&ss=android%2Fplatform%2Fsuperproject:tools%2Fadt%2Fidea%2Fandroid%2F

samlin001 commented 3 years ago

https://cs.android.com/android/platform/superproject/+/master:tools/adt/idea/android/src/com/android/tools/idea/actions/NewAndroidComponentAction.java?q=new%20Android%20component&ss=android%2Fplatform%2Fsuperproject:tools%2Fadt%2Fidea%2Fandroid%2F

https://cs.android.com/search?q=DialogWrapper&ss=android%2Fplatform%2Fsuperproject:tools%2Fadt%2Fidea%2Fandroid%2F

samlin001 commented 3 years ago

https://cs.android.com/android/platform/superproject/+/master:tools/adt/idea/android/src/com/android/tools/idea/actions/AndroidOpenFileAction.java;l=47?q=anaction%20open&ss=android%2Fplatform%2Fsuperproject:tools%2Fadt%2Fidea%2Fandroid%2Fsrc%2Fcom%2Fandroid%2Ftools%2Fidea%2F

samlin001 commented 3 years ago

https://cs.android.com/search?q=OpenFileAction&sq=&ss=android%2Fplatform%2Fsuperproject:tools%2Fadt%2Fidea%2Fandroid%2Fsrc%2Fcom%2Fandroid%2Ftools%2Fidea%2F