Skip to content

Haoxiqiang/android-quick-reference

Repository files navigation

Android Open Source Reference Plugin

The library inspired by AndroidSourceViewer

JetBrains Logo (Main) logo

And written by Kotlin on the JetBrains IDE tha under the opensource license.

It's built with the Gradle and rewritten by kotlin, that's why it's a new repo but not pr.

In the rewriting, I have added some features too.

  • You can view Android Open Source in the ide And link the native method to native code.
  • Support Quick Search by google/bing/github/stackoverflow
  • Quick Open Android CodeSearch/Dev Reference by the Browser.

I found this is a terrible pattern to find the file path from the psi framework after the first commit. I will do more works to solve the psi problem. Who with relevant practical experience can help me.

Install

JetBrains Plugins Downloads Downloads last month

Get Plugin From Market

Build

  • get lsf files by: git lfs fetch --all
  • get the latest aosp git repo and add the path to the environment variable as AOSP_PATH
  • run the test code generator the versions/mapping...
  • run the build command
  • create db by DBGenerator tools.
  • ./gradlew runIde

Publish

  • ./gradlew publishPlugin

Feature

  • View native method by click c++ image,but I can't support int native auto jump between dif files without com.intellij.modules.cidr.lang for c/c++ psi.

aosp-native

  • You can compare diff version source.

plugin-diff.png

TODO

More works.

  • auto jump to the source line.
  • linker more action in the aosp source.
  • add native jni mapping db.
  • add java class/method mapping db.
  • support custom quick search menu.
  • diff android version. many files location is changed.
  • support buildSearchableOptions

File Mapping

The package/filenames is very different. I create a scripts generate db by load all files.

License

The project is licensed under the Apache License 2.0.

About

An android open-source quick search/diff/download plugin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published