From ec8df9af2f35eb5be4df01d66b1add4a4e7546c7 Mon Sep 17 00:00:00 2001 From: Deepanshu Gupta Date: Thu, 26 Mar 2015 11:08:43 -0700 Subject: Fix tests for Java 6. - Change the guava version used to match the one included in the SDK. The test server uses the same. However, the command line build still uses the guava present at platform/external/guava, which is compiled with Java 7. Thus, running the tests from inside the IDE can be done via Java 6. - Rebuilt the test app classes with Java 6 compatibility. - Change similarity threshold to prevent differences due to some locale settings different java versions. Change-Id: Ic71d43256a8cf6f9df296e63550667a202c7105f --- tools/layoutlib/.idea/libraries/guava.xml | 4 ++-- .../.idea/runConfigurations/All_in_bridge.xml | 4 ++-- .../tests/res/testApp/MyApplication/build.gradle | 4 ++++ .../test/myapplication/test/BuildConfig.class | Bin 0 -> 792 bytes .../layoutlib/test/myapplication/BuildConfig.class | Bin 777 -> 777 bytes .../layoutlib/test/myapplication/CustomCalendar.class | Bin 1174 -> 1174 bytes .../layoutlib/test/myapplication/CustomDate.class | Bin 1300 -> 1300 bytes .../layoutlib/test/myapplication/MyActivity.class | Bin 1157 -> 1157 bytes .../android/layoutlib/test/myapplication/R$attr.class | Bin 406 -> 406 bytes .../layoutlib/test/myapplication/R$dimen.class | Bin 527 -> 527 bytes .../layoutlib/test/myapplication/R$drawable.class | Bin 473 -> 473 bytes .../android/layoutlib/test/myapplication/R$id.class | Bin 488 -> 488 bytes .../layoutlib/test/myapplication/R$layout.class | Bin 515 -> 485 bytes .../android/layoutlib/test/myapplication/R$menu.class | Bin 452 -> 452 bytes .../layoutlib/test/myapplication/R$string.class | Bin 538 -> 538 bytes .../layoutlib/test/myapplication/R$style.class | Bin 461 -> 461 bytes .../com/android/layoutlib/test/myapplication/R.class | Bin 897 -> 897 bytes .../layoutlib/bridge/intensive/ImageUtils.java | 2 +- 18 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/androidTest/debug/com/android/layoutlib/test/myapplication/test/BuildConfig.class (limited to 'tools') diff --git a/tools/layoutlib/.idea/libraries/guava.xml b/tools/layoutlib/.idea/libraries/guava.xml index d47fc06..eb60719 100644 --- a/tools/layoutlib/.idea/libraries/guava.xml +++ b/tools/layoutlib/.idea/libraries/guava.xml @@ -1,11 +1,11 @@ - + - + \ No newline at end of file diff --git a/tools/layoutlib/.idea/runConfigurations/All_in_bridge.xml b/tools/layoutlib/.idea/runConfigurations/All_in_bridge.xml index d97d82c..0b22717 100644 --- a/tools/layoutlib/.idea/runConfigurations/All_in_bridge.xml +++ b/tools/layoutlib/.idea/runConfigurations/All_in_bridge.xml @@ -2,8 +2,8 @@ -