realm-kotlin icon indicating copy to clipboard operation
realm-kotlin copied to clipboard

Add @Beta annotation

Open sync-by-unito[bot] opened this issue 3 years ago • 1 comments

As the API develops we might want to ship features that are still under development. We should add a @Beta API similar to the one present in Realm Java.

sync-by-unito[bot] avatar Aug 09 '22 12:08 sync-by-unito[bot]

Could we use the @OptIn annotation in Kotlin instead which would also give IDE support.

cmelchior avatar Aug 19 '22 08:08 cmelchior

I don't think we should add a SDK-wide @Beta-annotation unless we see very good reasons for it. I would much rather do feature-based annotations that utilizes Kotlin's RequiresOptIn-mechanism. This will make it easier to track the state of the individual features and avoid opting in to unnecessary experimental features. It is only a matter of adding the RequiresOptIn to an annotation to get this behavior, so should be almost free.

rorbech avatar Apr 11 '23 14:04 rorbech

After talking about it, we are going with the approach @rorbech outlined above. We will add annotations on a case-by-case basis. Closing this one.

cmelchior avatar Apr 24 '23 09:04 cmelchior