Where is the source code of Android Architecture Components?
Asked Answered
I

5

30

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 project should I use with repo sync [PROJ_NAME] in order to get it.

Inverter answered 30/5, 2017 at 8:11 Comment(0)
F
33

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

Fabrienne answered 16/10, 2017 at 9:52 Comment(2)
Try here for the other onesBeira
Links are dead!Palaearctic
I
7

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

enter image description here

Inverter answered 10/6, 2017 at 8:5 Comment(1)
This is misleading. The source is accessible on android.googlesource.com, as others pointed out.Whiffle
P
4

Edit: Android Code Search

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

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:

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.

Pair answered 30/11, 2018 at 0:21 Comment(0)
B
1

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

Bemused answered 30/12, 2020 at 16:48 Comment(0)
S
0

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.

Siclari answered 9/11, 2017 at 3:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.