Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3b22bfd authored by Colin Cross's avatar Colin Cross
Browse files

Replace annotation_processors with plugins

The annotation_processors property is deprecated, replace it with
plugins, and use java_plugin for modules that provide annotation
processors.

Bug: 77284273
Test: m checkbuild
Change-Id: I467b899e0c8f2c8fa74a9bfbe6e952ad0f7aa009
parent 515bd282
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -81,5 +81,5 @@ android_app {
        "com.android.keyguard",
        "com.android.keyguard",
    ],
    ],


    annotation_processors: ["dagger2-compiler-2.19"],
    plugins: ["dagger2-compiler-2.19"],
}
}
+2 −2
Original line number Original line Diff line number Diff line
@@ -73,7 +73,7 @@ android_library {
        "com.android.keyguard",
        "com.android.keyguard",
    ],
    ],


    annotation_processors: ["dagger2-compiler-2.19"],
    plugins: ["dagger2-compiler-2.19"],
}
}


android_library {
android_library {
@@ -127,7 +127,7 @@ android_library {
        "--extra-packages",
        "--extra-packages",
        "com.android.keyguard:com.android.systemui",
        "com.android.keyguard:com.android.systemui",
    ],
    ],
    annotation_processors: ["dagger2-compiler-2.19"],
    plugins: ["dagger2-compiler-2.19"],
}
}


android_app {
android_app {
+3 −1
Original line number Original line Diff line number Diff line
java_library_host {
java_plugin {
    name: "view-inspector-annotation-processor",
    name: "view-inspector-annotation-processor",


    processor_class: "android.processor.view.inspector.PlatformInspectableProcessor",

    srcs: ["src/java/**/*.java"],
    srcs: ["src/java/**/*.java"],
    java_resource_dirs: ["src/resources"],
    java_resource_dirs: ["src/resources"],