Use realm in Bazel Android Project
I want use Realm in my android project. In gradle Realm requires using annotation and some classes. You can see this in link, section "Manual setup" https://realm.io/docs/java/latest/#how-do-i-customize-dependecies-defined-by-the-realm-gradle-plugin
import io.realm.transformer.RealmTransformer
android.registerTransform(new RealmTransformer(project))
dependencies {
api "io.realm:realm-annotations:$realm_version"
api "io.realm:realm-android-library:$realm_version"
api "io.realm:realm-android-kotlin-extensions:$realm_version"
kapt "io.realm:realm-annotations-processor:$realm_version"
}
In gradle realm has import of class and annotation "kapt".
I dont know how to use annotation in Bazel. Dagger generate classes such realm, but doesn't have annotation in bazel config file. Dagger just has http_archive.
https://github.com/google/dagger#bazel
How to use Realm in Bazel ?
I'll assign myself to this because the problem space (side effects of plugin application) is similar to what we did for Firebase, and doing now for Crashlytics in https://github.com/bazelbuild/bazel/issues/7159. It's possible that we can come up with generic solution here.
https://realm.io/docs/java/latest/
Unassigning myself because I don't have the bandwidth to work on this for the moment.
Why is this a rules_kotlin issue? This feels like a bazel/maven integration issue, as it seems associated with setting up an annotation processor (e.g. a java_plugin) in bazel, which depends on how you bring in third_party deps.
@cgruber right, makes sense. I'll move this over to rules_android.