Home | History | Annotate | only in /frameworks/support
Up to higher level directory
NameDateSize
.idea/21-Aug-2018
adding-support-library-as-included-build.md21-Aug-20181.9K
annotations/21-Aug-2018
api/21-Aug-2018
app-toolkit/21-Aug-2018
asynclayoutinflater/21-Aug-2018
browser/21-Aug-2018
build.gradle21-Aug-20181.9K
buildSrc/21-Aug-2018
car/21-Aug-2018
cardview/21-Aug-2018
collection/21-Aug-2018
compat/21-Aug-2018
content/21-Aug-2018
coordinatorlayout/21-Aug-2018
core/21-Aug-2018
cursoradapter/21-Aug-2018
customview/21-Aug-2018
development/21-Aug-2018
docs-fake/21-Aug-2018
documentfile/21-Aug-2018
drawerlayout/21-Aug-2018
dynamic-animation/21-Aug-2018
emoji/21-Aug-2018
exifinterface/21-Aug-2018
fragment/21-Aug-2018
frameworks/21-Aug-2018
gradle/21-Aug-2018
gradle.properties21-Aug-2018143
gradlew21-Aug-20185.3K
graphics/21-Aug-2018
gridlayout/21-Aug-2018
heifwriter/21-Aug-2018
include-composite-deps.gradle21-Aug-20181.3K
include-support-library.gradle21-Aug-20181.5K
interpolator/21-Aug-2018
jetifier/21-Aug-2018
leanback/21-Aug-2018
leanback-preference/21-Aug-2018
legacy/21-Aug-2018
LICENSE.txt21-Aug-20189.9K
lifecycle/21-Aug-2018
loader/21-Aug-2018
localbroadcastmanager/21-Aug-2018
media/21-Aug-2018
media-widget/21-Aug-2018
mediarouter/21-Aug-2018
navigation/21-Aug-2018
OWNERS21-Aug-2018276
paging/21-Aug-2018
palette/21-Aug-2018
percent/21-Aug-2018
persistence/21-Aug-2018
preference/21-Aug-2018
PREUPLOAD.cfg21-Aug-2018413
print/21-Aug-2018
README.md21-Aug-20183.3K
recommendation/21-Aug-2018
recyclerview-selection/21-Aug-2018
room/21-Aug-2018
samples/21-Aug-2018
scripts/21-Aug-2018
settings.gradle21-Aug-201810.8K
slices/21-Aug-2018
slidingpanelayout/21-Aug-2018
swiperefreshlayout/21-Aug-2018
testutils/21-Aug-2018
testutils-ktx/21-Aug-2018
textclassifier/21-Aug-2018
transition/21-Aug-2018
tv-provider/21-Aug-2018
v7/21-Aug-2018
viewpager/21-Aug-2018
viewpager2/21-Aug-2018
wear/21-Aug-2018
webkit/21-Aug-2018
webkit-codegen/21-Aug-2018
work/21-Aug-2018

README.md

      1 # AOSP Support Library Contribution Guide
      2 ## Accepted Types of Contributions
      3 * Bug fixes (needs a corresponding bug report in b.android.com)
      4 * Each bug fix is expected to come with tests
      5 * Fixing spelling errors
      6 * Updating documentation
      7 * Adding new tests to the area that is not currently covered by tests
      8 
      9 We **are not** currently accepting new modules, features, or behavior changes.
     10 
     11 ## Checking Out the Code
     12 **NOTE: You will need to use Linux or Mac OS. Building under Windows is not currently supported.**
     13 
     14 Follow the [Downloading the Source](https://source.android.com/source/downloading.html) guide to install and set up `repo` tool, but instead of running the listed `repo` commands to initialize the repository, run the folowing:
     15 
     16     repo init -u https://android.googlesource.com/platform/manifest -b ub-supportlib-master
     17 
     18 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):
     19 
     20     repo sync -j8 -c
     21 
     22 You will use this command to sync your checkout in the future - its similar to `git fetch`
     23 
     24 
     25 ## Using Android Studio
     26 Open `path/to/checkout/frameworks/support/` in Android Studio. Now you're ready edit, run, and test!
     27 
     28 If you get Unregistered VCS root detected click Add root to enable git integration for Android Studio.
     29 
     30 If you see any warnings (red underlines) run `Build > Clean Project`.
     31 
     32 ## Builds
     33 ### Full Build (Optional)
     34 You can do most of your work from Android Studio, however you can also build the full support library from command line:
     35 
     36     cd path/to/checkout/frameworks/support/
     37     ./gradlew createArchive
     38 
     39 ### Building Support Library as part of your App build
     40 If you intend to repeatedly make changes to Support Library and to wish to see
     41 the results in your app, and you don't want to have to repeatedly build them as
     42 separate Gradle projects, you can
     43 [configure your app build to build Support Library too](adding-support-library-as-included-build.md)
     44 
     45 ## Running Tests
     46 
     47 ### Single Test Class or Method
     48 1. Open the desired test file in Android Studio.
     49 2. Right-click on a test class or @Test method name and select `Run FooBarTest`
     50 
     51 ### Full Test Package
     52 1. In the project side panel open the desired module.
     53 2. Find the directory with the tests
     54 3. Right-click on the directory and select `Run android.support.foobar`
     55 
     56 ## Running Sample Apps
     57 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.
     58 
     59 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.
     60 
     61 ## Making a change
     62     cd path/to/checkout/frameworks/support/
     63     repo start my_branch_name .
     64     (make needed modifications)
     65     git commit -a
     66     repo upload --current-branch .
     67 
     68 If you see the following prompt, choose `always`:
     69 
     70     Run hook scripts from https://android.googlesource.com/platform/manifest (yes/always/NO)?
     71 
     72 ## Getting reviewed
     73 * After you run repo upload, open [r.android.com](http://r.android.com)
     74 * Sign in into your account (or create one if you do not have one yet)
     75 * Add an appropriate reviewer (use git log to find who did most modifications on the file you are fixing)
     76 
     77