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

Update AGP 8 #300

Closed
wants to merge 6 commits into from
Closed

Update AGP 8 #300

wants to merge 6 commits into from

Conversation

Jawnnypoo
Copy link
Member

Did this when trying to explore some issues with R8 full mode.

  • Updates to use Java 17 and target Java 11 (required for AGP 8)
  • Update to AGP 8.0
  • Update to Gradle 8.1.1
  • Update RxJava and Kotlin versions

classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0"
// We need to fork the plugin to fix an incorrect usage of tasks.withType(Test)
// https://github.com/vanniktech/gradle-android-junit-jacoco-plugin/compare/master...Laimiux:gradle-android-junit-jacoco-plugin:laimonas/gradle-8?expand=1
classpath("com.github.Jawnnypoo:gradle-android-junit-jacoco-plugin:61a9cc0129")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fork in order to support publishing on Jitpack. Hoping that we can see vanniktech/gradle-android-junit-jacoco-plugin#219 get merged and won't have to worry about this anymore.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we publish to Jitpack anymore

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry yeah, that was confusing wording. I forked your fork of gradle-android-junit-jacoco-plugin so that I could change configuration of that lib to publish it to Jitpack, since it was configured to publish to IC's internal artifactory server, and was failing to build on Jitpack.

@@ -16,12 +16,12 @@ import io.reactivex.rxjava3.core.Observable
* @param bind A bind function connects state observable to the view rendering.
* @param lifecycleCallbacks Optional lifecycle callbacks if you need to know the Fragment state.
*/
class FeatureView<RenderModel>(
class FeatureView<RenderModel : Any>(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would not compile without adding this in various places, unfortunately. I believe this stems from RxJava (hence why I updated the dependency) but I am not 100% sure.

@Laimiux
Copy link
Collaborator

Laimiux commented Jun 28, 2023

Really awesome, I was just thinking that we need to update Gradle. One thing that constantly breaks with Gradle updates is the maven publishing plugin. Could you verify that publish to artifactory and to maven still run correctly?

@Jawnnypoo
Copy link
Member Author

Yes, good call 👍

@Jawnnypoo
Copy link
Member Author

Covered by #324

@Jawnnypoo Jawnnypoo closed this Jan 4, 2024
@Jawnnypoo Jawnnypoo deleted the jawn/update-agp-8 branch January 4, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants