Android 9.0.0 release 10
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCW6qizAAKCRDorT+BmrEO
eFDSAJ9RRCycySpesrOG19f0IdAFWc52WgCeMrfAkfkWTxoAfL6Qc4gYQW6w6LU=
=dzzK
-----END PGP SIGNATURE-----
Snap for 4832339 from f0a0a39e63da4265934e8bead2ddc619465371cd to pi-release

Change-Id: If085d5207d41cfdc6d1a3bbcf62106ae510dad29
tree: cf8c59fcb5503ff0bb68838949efeaa2c145b766
  1. .gitignore
  2. .idea/
  3. LICENSE.txt
  4. OWNERS
  5. PREUPLOAD.cfg
  6. README.md
  7. adding-support-library-as-included-build.md
  8. annotations/
  9. api/
  10. app-toolkit/
  11. asynclayoutinflater/
  12. browser/
  13. build.gradle
  14. buildSrc/
  15. car/
  16. cardview/
  17. collection/
  18. compat/
  19. content/
  20. coordinatorlayout/
  21. core/
  22. cursoradapter/
  23. customview/
  24. development/
  25. docs-fake/
  26. documentfile/
  27. drawerlayout/
  28. dynamic-animation/
  29. emoji/
  30. exifinterface/
  31. fragment/
  32. frameworks/
  33. gradle.properties
  34. gradle/
  35. gradlew
  36. graphics/
  37. gridlayout/
  38. heifwriter/
  39. include-composite-deps.gradle
  40. include-support-library.gradle
  41. interpolator/
  42. jetifier/
  43. leanback-preference/
  44. leanback/
  45. legacy/
  46. lifecycle/
  47. loader/
  48. localbroadcastmanager/
  49. media-widget/
  50. media/
  51. mediarouter/
  52. navigation/
  53. paging/
  54. palette/
  55. percent/
  56. persistence/
  57. preference/
  58. print/
  59. recommendation/
  60. recyclerview-selection/
  61. room/
  62. samples/
  63. scripts/
  64. settings.gradle
  65. slices/
  66. slidingpanelayout/
  67. swiperefreshlayout/
  68. testutils-ktx/
  69. testutils/
  70. textclassifier/
  71. transition/
  72. tv-provider/
  73. v7/
  74. viewpager/
  75. viewpager2/
  76. wear/
  77. webkit-codegen/
  78. webkit/
  79. work/
README.md

AOSP Support Library Contribution Guide

Accepted Types of Contributions

  • Bug fixes (needs a corresponding bug report in b.android.com)
  • Each bug fix is expected to come with tests
  • Fixing spelling errors
  • Updating documentation
  • Adding new tests to the area that is not currently covered by tests

We are not currently accepting new modules, features, or behavior changes.

Checking Out the Code

NOTE: You will need to use Linux or Mac OS. Building under Windows is not currently supported.

Follow the “Downloading the Source” guide to install and set up repo tool, but instead of running the listed repo commands to initialize the repository, run the folowing:

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

Now your repository is set to pull only what you need for building and running support library. Download the code (and grab a coffee while we pull down 7GB):

repo sync -j8 -c

You will use this command to sync your checkout in the future - it’s similar to git fetch

Using Android Studio

Open path/to/checkout/frameworks/support/ in Android Studio. Now you're ready edit, run, and test!

If you get “Unregistered VCS root detected” click “Add root” to enable git integration for Android Studio.

If you see any warnings (red underlines) run Build > Clean Project.

Builds

Full Build (Optional)

You can do most of your work from Android Studio, however you can also build the full support library from command line:

cd path/to/checkout/frameworks/support/
./gradlew createArchive

Building Support Library as part of your App build

If you intend to repeatedly make changes to Support Library and to wish to see the results in your app, and you don't want to have to repeatedly build them as separate Gradle projects, you can configure your app build to build Support Library too

Running Tests

Single Test Class or Method

  1. Open the desired test file in Android Studio.
  2. Right-click on a test class or @Test method name and select Run FooBarTest

Full Test Package

  1. In the project side panel open the desired module.
  2. Find the directory with the tests
  3. Right-click on the directory and select Run android.support.foobar

Running Sample Apps

Support library has a set of Android applications that exercise support library code. These applications can be useful when you want to debug a real running application, or reproduce a problem interactively, before writing test code.

These applications are named support-*-demos (e.g. support-4v-demos or support-leanback-demos. You can run them by clicking Run > Run ... and choosing the desired application.

Making a change

cd path/to/checkout/frameworks/support/
repo start my_branch_name .
(make needed modifications)
git commit -a
repo upload --current-branch .

If you see the following prompt, choose always:

Run hook scripts from https://android.googlesource.com/platform/manifest (yes/always/NO)?

Getting reviewed

  • After you run repo upload, open r.android.com
  • Sign in into your account (or create one if you do not have one yet)
  • Add an appropriate reviewer (use git log to find who did most modifications on the file you are fixing)