Skip to content

Commit

Permalink
Whitelist android/device/collectors/* from Android Platform Types
Browse files Browse the repository at this point in the history
- ` android/device/collectors/*` are from a user library instead pre-installed SDK, and therefore should be subject to normal desugar process instead core library desugaring process.

PiperOrigin-RevId: 356624952
  • Loading branch information
Googler authored and copybara-github committed Feb 10, 2021
1 parent e149d3b commit 2910d3d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void visitMethodInsn(
!remapper.didSomething
|| !owner.startsWith("android/")
|| owner.startsWith("android/arch/")
|| owner.startsWith("android/device/collectors/") // b/179812549
|| owner.startsWith("android/support/"),
"%s calls %s.%s%s which is not supported with core library desugaring. Please file "
+ "a feature request to support this method",
Expand All @@ -89,6 +90,7 @@ public void visitFieldInsn(int opcode, String owner, String name, String descrip
|| !owner.startsWith("android/")
|| owner.startsWith("android/arch/")
|| owner.startsWith("android/car/")
|| owner.startsWith("android/device/collectors/") // b/179812549
|| owner.startsWith("android/support/"),
"%s accesses %s.%s: %s which is not supported with core library desugaring. Please file "
+ "a feature request to support this field",
Expand Down

0 comments on commit 2910d3d

Please sign in to comment.