TaskerPluginSample icon indicating copy to clipboard operation
TaskerPluginSample copied to clipboard

AGP 8.0 and using ressource ids in annotations

Open Tolriq opened this issue 2 years ago • 4 comments

So as discussed by mail a few times, Google now starting with AGP 8.0 alpha 10 enforce this.

And you can no more compile tasker plugins.

For the moment it's still possible to opt out with android.nonFinalResIds=false in gradle.properties but for how long.

It's also necessary to disable lint rule: NonConstantResourceId

This was delayed for a long time, but it's really time to think about alternative solution for the future.

Tolriq avatar Dec 29 '22 08:12 Tolriq

Sorry, I should've mentioned. You can already use resource Ids as strings with the latest update :) Can you please try that? Thanks in advance!

joaomgcd avatar Jan 03 '23 15:01 joaomgcd

You always forget to push to Github :p

Will try that in the coming weeks thanks. Does it require a specific Tasker version or 100% internal to the lib?

Tolriq avatar Jan 04 '23 09:01 Tolriq

Hhmm, but it's on Github too 😅

https://github.com/joaomgcd/TaskerPluginSample/commit/1b326960a8c271cde9e2da36053968735d68489b#diff-d67fd9793dc8662b4ced6d48c86d8aefb24b2bb8d2b55f12a79ac4a1b2407b4f

It's internal to the lib so Tasker version doesn't matter.

Hope this helps!

joaomgcd avatar Jan 04 '23 09:01 joaomgcd

Yes it's present now :) But when you released the library to maven it was not :p Anyway no big deal.

Tolriq avatar Jan 04 '23 09:01 Tolriq