summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2017-12-13Revert "Revert "Changes needed to upgrade to new gradle version""Maurice Lam
This reverts commit 46216d0e61318e7af168e9e903ef8d943bb49b2e. Reason for revert: Roll forward - Added ag/3351790 to the topic Change-Id: I64990e558d3f77165ab3fe89006a02225b712257
2017-12-13Revert "Changes needed to upgrade to new gradle version"Colin Cross
This reverts commit ba1332d1b4dd525a2ef313246482708cb2016052. Reason for revert: Broke taimen builds in master Change-Id: Iffffadbacae8c6c69907dcecc447f958cf6ce909
2017-12-06Changes needed to upgrade to new gradle versionMaurice Lam
- Add ignore for various lint errors that is introduced in the lint update - Remove GLIF Pixel themes as they are unused and causing lint errors - Add flavor dimension "compat" as it is now required - Replace *Compile with *Implementation in the gradle files, as needed by the newer Gradle version - Use build tools 27.0.0 to avoid the Gradle warning - Use new Robolectric configuration mechanism and removed our old hack, per http://robolectric.org/getting-started/ Reference: https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html Test: Existing tests pass Bug: 70287447 Change-Id: I505476ae3695cd06349766c5e6280299f779f272
2017-10-09Merge "Add continuous coverage for Robolectric tests"TreeHugger Robot
2017-10-06Add test for LinkAccessibilityHelperMaurice Lam
- For the AccessibilityDelegateCompat methods, add tests that the delegation is done correctly. - Refactored LinkAccessibilityHelper to make the dependency direction clearer. Test: ./gradlew connectedAndroidTest test Change-Id: I6132c0820ee6de1b9cc71a2838bdf05a34d7d2af
2017-09-27Add continuous coverage for Robolectric testsMaurice Lam
Configured jacoco build for Robolectric tests, and dist the results so it can be picked up in continuous testing. Test: OUT_DIR=/path/to/out DIST_DIR=/path/to/out/dist \ ./gradlew coverage dist Bug: 66828854 Change-Id: If847f74dbcfa57af1ce3c64f28c2c870f4b9d973
2017-05-17Add IllustrationVideoView to setup wizard libraryMaurice Lam
- Upstreamed setup wizard's IllustrationVideoView to SuwLib - Modified the view to automatically listen to window focus changes to play and pause the video - The view will now release the MediaPlayer as well in onSurfaceTextureDestroyed - Added checkstyle_suppression XML so it will ignore the "__constructor__" magic method name from the style check. Bug: 36584499 Test: ./gradlew connectedAndroidTest test Change-Id: Id045467d5d544a5f54464a0c938d3d56e758e455
2017-05-04Support multiple library test APKsMaurice Lam
- Extracted the instrumentation test APK generation code to dist-library-instrumentation-tests.gradle, which is enhanced to support multiple test APKs for different build variants, so that the output APK name will not conflict. - Extracted Robolectric test code to dist-unit-tests.gradle so that it can be more easily reused and for better organization. Test: ./gradlew, build_for_build_server.sh builds expected artifacts Change-Id: I7a3c4b3b2c3528fda80deb7778a5af5f7703c913
2017-04-26Run Robolectric tests on build serverMaurice Lam
Configure the build server task to run 'test' task, and zip the result XMLs to host-test-reports for tradefed to pick it up. Test: out/dist/host-test-reports get generated by TreeHugger Bug: 37677781 Change-Id: I6162ce0996912b7445ef92c44e48625c4fb4e48f
2017-03-08update setup wiz doc build to use new location for templatesScott Main
as per: https://googleplex-android-review.git.corp.google.com/#/c/1524290/ Change-Id: I74c45e5c9fd8263a4c2944c3e6f8057db12ee97b
2017-01-10Merge "Upgrade build tools to 25.0.0"TreeHugger Robot
2017-01-06Upgrade build tools to 25.0.0Maurice Lam
Test: Builds and existing tests pass -- ./gradlew connectedAndroid Change-Id: I10f5ea5f8e0dfb26bdf2cf2ce8c49c274b0e1ec9
2016-12-28Add repositories.properties fileMaurice Lam
This file will be read by the buildSrc gradle plugin to add additional local maven repositories. This CL alone does not have any effect, as buildSrc expects the file to be next to gradlew. A manifest change would follow this to add a symlink at that location. Test: Manually tested Robolectric test runs with other local changes Bug: 32975598 Change-Id: I100b65b44ac0133a57014f7813967911db1b278c
2016-12-10Revert "Revert "[SuwLib] Remove gradlew""Maurice Lam
This reverts commit d8cae21675ee1214de2ccf596279c8aa7b70073c. Reason for revert: Dependent patch has been reapplied (ag/1683577) Change-Id: I084744bcaf73c27b670276dcc7b66495de4f9c68
2016-11-29Revert "[SuwLib] Remove gradlew"Maurice Lam
This reverts commit 1a41d4bea6463552b7f6cc3c9563aca0277110c2. Reason for revert: Breaks build Change-Id: Iffa662def22573100120d47a259b07bd841a0f00
2016-11-23[SuwLib] Remove gradlewMaurice Lam
After upgrade to new gradle configuration, the gradlew file is copied from gradle/wrapper project rather than linked from our copy in tools so it's safe to remove the file now. Test: Existing tests pass. ./gradlew connectedAndroidTest Change-Id: Iaccf131226650288cdf91125be873848018af095
2016-11-17[SuwLib] Use prebuilt support libMaurice Lam
Use prebuilt support lib in the internal maven repo rather than building them from source. Test: Existing tests pass (./gradlew connectedAndroidTest) Bug: 32782973 Change-Id: I7e3d86074bfcff9062f8f3f7acf2f5f98055ba49
2016-01-19Update SuwLib build version to 23.0.2Maurice Lam
Change-Id: Ib0fa01d298d7e3fdc529ead24e913d2de936a602
2015-09-15[SuwLib] Add RecyclerView templatesMaurice Lam
Add new "full-support" build variant that includes RecyclerView as one of its dependencies, and add RecyclerView templates to the library. Bug: 24103690 Change-Id: I01a2b7ba3f9ff1d30a9b8aa9061ffe2a42eed968
2015-08-18[SuwLib] Output lint in stderrMaurice Lam
Put lint output in stderr so that lint errors catched in build server can be seen. Also removed the workaround to capture lint output in log since that issue has been fixed. Change-Id: I30a5695faa3facdb8986d5a66975c9ea3dc7bf8f
2015-08-14Merge "[SuwLib] Generate javadocs"Maurice Lam
2015-08-10Update buildToolsVersion to '21.1.2' - DO NOT MERGEJustin Klaassen
(cherry picked from commit 2b89a788f3cde0f7564ff396d0880c4ea6d901e4) Change-Id: I133a8f4e3f77963e6730c0f36d0fa90b4f8e3ea7
2015-08-10[SuwLib] Generate javadocsMaurice Lam
Configure javadocs so that it can be generated with `./gradlew docs` Split self.gradle from build.gradle, so that self.gradle can be used to configure tasks only available to a build on ub-setupwizard-*, while build.gradle will be used for building from source in other gradle projects (e.g. GMS core). Bug: 21444334 Change-Id: Icec763ce7dcf8939b7918b580e17ae22353cb38c
2015-04-20[SetupWizardLib] Update for buildSrc 1.1Maurice Lam
Update the plugin reference to prepare for buildSrc 1.1 update. Change-Id: I9014efa8bf1105826d70b6352fc4411871ad81e1
2015-03-09[SetupWizardLib] Set up compat buildMaurice Lam
Set up a build flavor for v14 (ICS) compatibility. Bug: 19664089 Change-Id: Iacd66c5756f5b9c8fa7dfce7a4c1cf2d41bddda6
2015-03-06[SetupWizardLib] Configure build serverMaurice Lam
Implement the build script for build server, which is just a simple call to gradle for now. Change-Id: I9b764365f9735434b4a3ab8870f67c7282249d9e
2015-03-03[SetupWizardLib] Configure gradleMaurice Lam
Change-Id: I699f821f3b7bd5c923f99e37f05bf0953c8f093e