f69eb9ac2856f470cb79f57141f711ed3ceed99d |
|
10-Apr-2014 |
Nick Korostelev <nkorsote@google.com> |
port Espresso to Android repo - Completely restructured the project to match Gradle convention - Added several Android.mk to build using make. - Added build.gradle to build using Gradle. - Fixed package names to avoid conflicts - Requires several prebuilt Jars, added README to outline versions and licenses for legal. - Dependent libraries that don’t get JarJar’ed are linked to from the local prebuild maven repo. - Bumped up the version of dependent libraries that didn’t create compatibility issues - Cleaned up bin/ dir and renamed it to libs/ - Removed maven support, removed pom.xml files - Removed Android make support, removed Android.mk files - Removed testrunner and testrunner-runtime, using binaries instead. There is a separate initiative to add them to Android repo. - Separated IdlingResource to it's own library to expose and decouple this interface which is frequently referenced by code in the app-under-test - added copyright Workaround for Android Gradle plugin limitation - Created two separate modules espresso-lib-tests and espresso-contrib-tests that will include the unit tests for the corresponding libs. Current limitations: - Gradle - no current support for setting a custom ‘targetPackage’ for espressi-lib and espresso-conrib unit tests ("gradle assembleDebugTest" will not work for espressi-lib and espresso-conrib). - Intellij Gradle plugin doesn't like multiple project sharing the same "main" source and variants Note: follow these steps if encounter ClassNotFoundException when running on physical device: 1. adb shell su 2. adb shell setprop dalvik.vm.dexopt-flags v=n,o=v 3. adb shell stop installd 4. adb shell start installd 5. reinstall apks Change-Id: I356150fcecb13537d212c180adea8f2cee916b81
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/action/AdapterViewProtocols.java
|