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

Commit d13124f6 authored by Chun-Ku Lin's avatar Chun-Ku Lin
Browse files

Include -java-parameters in kotlin compiler flag

For TestParameterInjector to work on tests written in kotlin, we need to preserve the parameter names in the compiled bytecode.

Bug: 406052931
Test: tested locally with a test written in kotlin that uses TestParameterInjector
Flag: EXEMPT low risk soong file change

Change-Id: I36f522ad852f33943904f441dd50469c39596b86
parent 8a176e84
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -94,6 +94,7 @@ android_robolectric_test {

    // Required for TestParameterInjector
    javacflags: ["-parameters"],
    kotlincflags: ["-java-parameters"],

    instrumentation_for: "SettingsRoboTestStub",