• Paul Jensen's avatar
    Reland "[Cronet] Build maven modules and test by building sample app with gradle" · 5ff41595
    Paul Jensen authored
    This is a reland of 10f4dd89
    
    I disabled the gradle build when !use_platform_icu_alternatives so Android bots
    continue to build successfully.  I also moved cronet_maven/ output directory to
    cronet/maven/ so it can be uploaded by the bots.
    
    Original change's description:
    > [Cronet] Build maven modules and test by building sample app with gradle
    >
    > This change builds maven modules for Cronet.
    > Each maven module includes:
    >   1. POM file defining module and listing dependent modules
    >   2. Jars
    >   3. Proguard files (optional)
    >   4. Native libraries (optional)
    >   5. Resources (optional)
    >   6. Javadocs (optional)
    > We build four maven modules:
    >   1. cronet-api: the Cronet API
    >   2. cronet-embedded: the Cronet native implementation
    >   3. cronet-fallback: the Cronet fallback implementation
    >   4. cronet-common: Cronet implementation in common with #3 and #4
    >
    > To test the maven modules, this change builds the Cronet sample app using gradle.
    > You can install and run the resulting app by:
    >   ninja -C out/Debug cronet_maven_test_build
    >   adb install -r out/Debug/cronet_maven/test/build/outputs/apk/debug/test-debug.apk
    >   adb install -r out/Debug/cronet_maven/test/build/outputs/apk/androidTest/debug/test-debug-androidTest.apk
    >   adb shell am instrument -w org.chromium.cronet_sample_apk.test/android.support.test.runner.AndroidJUnitRunner
    >
    > Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
    > Change-Id: I5ed27e86f3e01dc3a6441ab449bbe942553343af
    > Reviewed-on: https://chromium-review.googlesource.com/998019
    > Commit-Queue: Paul Jensen <pauljensen@chromium.org>
    > Reviewed-by: Andrei Kapishnikov <kapishnikov@chromium.org>
    > Reviewed-by: Eric Stevenson <estevenson@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#554608}
    
    Change-Id: Ieba6842b48d0b8e97ca1dc6686080cb31a87ed95
    Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
    
    TBR=estevenson@chromium.org
    Eric already approved the build/ change in https://chromium-review.googlesource.com/998019
    
    Change-Id: Ieba6842b48d0b8e97ca1dc6686080cb31a87ed95
    Reviewed-on: https://chromium-review.googlesource.com/1037723
    Commit-Queue: Paul Jensen <pauljensen@chromium.org>
    Reviewed-by: default avatarEric Stevenson <estevenson@chromium.org>
    Reviewed-by: default avatarAndrei Kapishnikov <kapishnikov@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#555157}
    5ff41595
cronet-common.pom.template 785 Bytes