Created by: cwoodwar6
This provides the ability to add kotlinc plugins such as kotlin android extensions. Both robolectric_test
rule and android_library
rules needed support.
Since extra_arguments
only applies to the java compiler, we needed a separate argument for the kotlin compiler.
Example of its use (for kotlin android extensions):
extra_kotlinc_arguments = [
'-Xplugin=<kotlin_home>/kotlin-android-extensions.jar',
'-P',
'plugin:org.jetbrains.kotlin.android:variant=main;<project-root>/app/src
/main/res,plugin:org.jetbrains.kotlin.android:package=com.example.app',
],