Skip to content

Commit

Permalink
Do not obfuscate hamcrest classes
Browse files Browse the repository at this point in the history
Do not obfuscate hamcrest classes since there are matchers in hamcrest
that uses reflection on its own methods, and would result in
error when proguard obfuscate them

BUG=702152

Review-Url: https://codereview.chromium.org/2764003003
Cr-Commit-Position: refs/heads/master@{#458660}
  • Loading branch information
yolandyan authored and Commit bot committed Mar 22, 2017
1 parent ea9d0bc commit 960eba5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions third_party/hamcrest/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@ java_prebuilt("hamcrest_core_java") {
supports_android = true
testonly = true
jar_path = "lib/hamcrest-core-1.3.jar"
proguard_configs = [ "//third_party/hamcrest/proguard.flags" ]
}

java_prebuilt("hamcrest_integration_java") {
supports_android = true
testonly = true
jar_path = "lib/hamcrest-integration-1.3.jar"
proguard_configs = [ "//third_party/hamcrest/proguard.flags" ]
}

java_prebuilt("hamcrest_library_java") {
supports_android = true
testonly = true
jar_path = "lib/hamcrest-library-1.3.jar"
proguard_configs = [ "//third_party/hamcrest/proguard.flags" ]
}
1 change: 1 addition & 0 deletions third_party/hamcrest/proguard.flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-dontobfuscate

0 comments on commit 960eba5

Please sign in to comment.