Where is the source code of Android Architecture Components?

后端 未结 5 1757
悲&欢浪女
悲&欢浪女 2021-02-01 03:43

Can\'t find the source code of new Android Architecture Components. Was it published? If it was, where?

If the source is in AOSP, please specify which specific repo proj

相关标签:
5条回答
  • 2021-02-01 04:23

    Here is the source for Lifecycle, Room, Paging and ViewModel.

    0 讨论(0)
  • 2021-02-01 04:26

    As confirmed by Adam Powell, the source code of Architectural Components can be obtained only with the artifacts themselves:

    0 讨论(0)
  • 2021-02-01 04:26

    You can download it from AOSP. After configuring the environment for downloading AOSP, you can sync it by:

    repo init -u https://android.googlesource.com/platform/manifest -b ub-supportlib-master repo sync

    The branch ub-supportlib-master contains all sources of the Android Architecture Components.

    0 讨论(0)
  • 2021-02-01 04:37

    You can download the whole androidx libraries collection from this link.

    0 讨论(0)
  • 2021-02-01 04:41

    Edit: Android Code Search

    There is a very handy official online code search platform for Android: https://cs.android.com/

    Try it, you'll love it!

    Original Answer

    As stated in Android team's official blog AndroidX Development is Now Even Better, the source code of AndroidX (previously support) lies in https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev. You can see AOSP AndroidX Contribution Guide on the page. There are details about:

    • How to download the source code using repo
    • How to build the project
    • How to contribute to the project

    All you need to do is following the instructions step by step, it won't take long to setup.

    The other two useful links are:

    • r.android.com Gerrit review tool
    • public AndroidX tracker

    It is also worth to be mentioned that in Android Fireside Chat (Android Dev Summit '18), the Android team are considering moving the source code of AndroidX to GitHub. We'll see whether it would happen in the future.

    0 讨论(0)
提交回复
热议问题