remove unneeded dontwarn settings
Some of these -dontwarn settings were added because r8 did not have access to transitive dependencies. Now these dependencies are passed as -libraryjars we can remove some of the -dontwarns. Test: TARGET_BUILD_VARIANT=userdebug MODULE_BUILD_FROM_SOURCE=true \ UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true \ packages/modules/common/build/mainline_modules_arm64.sh -j120 Bug: 242088131 Change-Id: I408a8f3ac9d11c1bd6608f2a18fd2291db8c9275
This commit is contained in:
@@ -83,13 +83,14 @@
|
||||
# 1) runtime-visible annotations will still be kept, and 2) compile-time
|
||||
# annotations are stripped by R8 anyway.
|
||||
# Note: The ** prefix is used to accommodate jarjar repackaging.
|
||||
# TODO(b/242088131): Remove these exemptions after resolving transitive libs
|
||||
# dependencies that are provided to R8.
|
||||
# TODO(b/266561579): Remove this exemptions after resolving jarjar-ed transitive libs
|
||||
-dontwarn **android**.annotation*.**
|
||||
-dontwarn **com.google.errorprone.annotations.**
|
||||
-dontwarn javax.annotation.**
|
||||
-dontwarn org.checkerframework.**
|
||||
-dontwarn org.jetbrains.annotations.**
|
||||
|
||||
# These classes generate warnings of the kind `Library class extends program class`
|
||||
# because some apps have deps that statically include the same libraries as the app,
|
||||
# and r8 complains that a library is implementing a class provided by the app (the "program").
|
||||
-dontwarn com.google.protobuf.**
|
||||
-dontwarn kotlin.reflect.jvm.internal.ReflectionFactoryImpl
|
||||
|
||||
# Less spammy.
|
||||
-dontnote
|
||||
|
Reference in New Issue
Block a user