MindscapeHQ / raygun4android

Android crash reporting provider for Raygun
https://raygun.com
MIT License
21 stars 14 forks source link

Migration to Gradle 8 and AGP 8.1.1 #95

Closed TheRealAgentK closed 10 months ago

TheRealAgentK commented 10 months ago

Migration to Gradle 8 and AGP 8.1.1

Description :memo:

Fixes #89 and migrated the build over to Gradle 8 and AGP 8.1.1

Also fixes a bug where the sample app was outputting the incorrect provider version

Type of change

Updates

Test plan :test_tube:

Project shouldn't trigger "Upgrade Gradle to 8" any more. Builds should all still work across debug and release flavours.

Note: Deprecation warning for Gradle 9+ still trigger and will be resolved separately.

Author to check :eyeglasses:

~- [] Reviewed by another developer~ N/A

Reviewer to check :heavy_check_mark:

~- [ ] Appropriate tests have been written (code comments, internal docs)~ N/A

sumitramanga commented 10 months ago

Yay! image

sumitramanga commented 10 months ago

Will you be upgrading to the latest AGP in a later PR?

sumitramanga commented 10 months ago

Optional: It would be nice to have some feedback upon clicking the buttons within the providers test app. Such as, if you click there button, it should output some text that says 'Message sent' or 'Error sending message, check API key is valid'

TheRealAgentK commented 10 months ago

Will you be upgrading to the latest AGP in a later PR?

Yeah, the AGP versions are somewhat tied to AS versions.

I think we should update when new AS versions are released. Hedgehog is currently in RC and Iguana in Canary - when Hedgehog comes out of RC, we'll bump AGP up accordingly.

TheRealAgentK commented 10 months ago

Optional: It would be nice to have some feedback upon clicking the buttons within the providers test app. Such as, if you click there button, it should output some text that says 'Message sent' or 'Error sending message, check API key is valid'

Great suggestion:

https://github.com/MindscapeHQ/raygun4android/issues/98

sumitramanga commented 10 months ago

Will you be upgrading to the latest AGP in a later PR?

Yeah, the AGP versions are somewhat tied to AS versions.

I think we should update when new AS versions are released. Hedgehog is currently in RC and Iguana in Canary - when Hedgehog comes out of RC, we'll bump AGP up accordingly.

I had to do a bit of reading to understand this 😄 It all makes sense now. Thank you! Android has so many concepts to keep up with. Does this change have an impact on the customer side or does it affect just developers of the provider

sumitramanga commented 10 months ago

Testing of the app went well. It sends CR and RUM data after rebuilding the project 👏

sumitramanga commented 10 months ago

One more comment before I approve. Some of these changes have been added automatically due to the upgrade, right? I had attempted to upgrade the AGP just to see what happens and that's what happened :)

TheRealAgentK commented 10 months ago

One more comment before I approve. Some of these changes have been added automatically due to the upgrade, right? I had attempted to upgrade the AGP just to see what happens and that's what happened :)

Yeah, the wizard from 7.4to 8.1 gets you some way there luckily, but it's patchy and inconsistent as well.

TheRealAgentK commented 10 months ago

LGTM! 🤘

I'll make a few tweaks tomorrow re the small things we discussed and then merge it.