Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin: update to new Transform API #1078

Closed
andrew-ld opened this issue May 26, 2022 · 5 comments
Closed

Plugin: update to new Transform API #1078

andrew-ld opened this issue May 26, 2022 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@andrew-ld
Copy link

WARNING:API 'android.registerTransform' is obsolete.
It will be removed in version 8.0 of the Android Gradle plugin.
The Transform API is removed to improve build performance. Projects that use the
Transform API force the Android Gradle plugin to use a less optimized flow for the
build that can result in large regressions in build times. It’s also difficult to
use the Transform API and combine it with other Gradle features; the replacement
APIs aim to make it easier to extend the build without introducing performance or
correctness issues.

this message is visible using objectbox-gradle-plugin 3.1.2 on android gradle plugin 7.2.0 running on gradle 7.3.3

@andrew-ld andrew-ld added the bug Something isn't working label May 26, 2022
@greenrobot-team greenrobot-team changed the title android gradle plugin complains that objectbox uses an obsolete api (android.registerTransform) Plugin: update to new Transform API May 30, 2022
@greenrobot-team greenrobot-team added enhancement New feature or request and removed bug Something isn't working labels May 30, 2022
@greenrobot-team
Copy link
Member

greenrobot-team commented May 30, 2022

Thanks for reporting! We are already aware of this.

Note that the transformer continues to work with Android Plugin 7.2.0 (except for #1077).

@AndroidDeveloperLB
Copy link

What are we supposed to do when we see this weird warning?

@greenrobot-team
Copy link
Member

@AndroidDeveloperLB Nothing at the moment. It's a deprecation warning so everything should work as expected (again except for #1077).

We'll need to ship an updated Gradle plugin that uses the new APIs for this warning to go away.

@AndroidDeveloperLB
Copy link

@greenrobot-team I mean in general, whether we use the current repository or not. I can see it on projects that don't use it.

@greenrobot-team
Copy link
Member

greenrobot-team commented Sep 6, 2022

This is resolved with the just released version 3.3.1 which uses the new transform APIs.

https://github.com/objectbox/objectbox-java/releases/tag/V3.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants