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

V2023.3 dependency updates #5658

Merged
merged 18 commits into from
Jul 11, 2023

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Jul 3, 2023

What has been done to verify that this works as intended?

I've reviewed the changes and run automated tests.

Why is this the best possible solution? Were any other approaches considered?

Switching to Android Gradle Plugin 8 required some changes so this is the biggest pr with dependency updates I have ever created. The biggest change is probably Migrating to Non-Transitive R Classes We could have disabled it for now but they claim it's better not too and probably at some point in the future we would be forced to do that either way see https://developer.android.com/build/optimize-your-build#use-non-transitive-r-classes

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

It doesn't require testing.

Do we need any specific form for testing your changes? If so, please attach one.

No.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@grzesiek2010 grzesiek2010 force-pushed the v2023.3dependency_updates branch 20 times, most recently from 261c65c to 3fc0ad7 Compare July 6, 2023 12:48
@grzesiek2010 grzesiek2010 changed the title V2023.3dependency updates V2023.3 dependency updates Jul 6, 2023
@grzesiek2010 grzesiek2010 force-pushed the v2023.3dependency_updates branch from 3fc0ad7 to 0f5ec7e Compare July 6, 2023 13:08
@grzesiek2010 grzesiek2010 marked this pull request as ready for review July 6, 2023 13:54
@grzesiek2010 grzesiek2010 requested a review from seadowg July 6, 2023 13:54
@grzesiek2010 grzesiek2010 added this to the v2023.3 milestone Jul 7, 2023
@@ -5,6 +5,9 @@
-dontwarn org.xmlpull.v1.**
-dontwarn org.hamcrest.**
-dontwarn com.rarepebble.**
-dontwarn com.networknt.**
-dontwarn android.content.res.**
-dontwarn org.kxml2.io.**
Copy link
Member

Choose a reason for hiding this comment

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

I haven't had to touch ProGuard for a while. Remind me what dontwarn is doing here?

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 ignores some weird errors I got like:
com.android.tools.r8.utils.b: Library class android.content.res.XmlResourceParser implements program class org.xmlpull.v1
It's enough for building and installing the app but we might run into some bugs on runtime too. We will see.

@@ -26,8 +26,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
Copy link
Member

Choose a reason for hiding this comment

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

We're ok to use Java 17 byte code on API 21? Does the new AGP take care of that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Everything seems to be fine. I've installed the app on Android 5 and didn't get any errors.

@grzesiek2010 grzesiek2010 requested a review from seadowg July 7, 2023 15:54
@grzesiek2010 grzesiek2010 force-pushed the v2023.3dependency_updates branch from 0f5ec7e to 4923901 Compare July 11, 2023 09:01
@grzesiek2010 grzesiek2010 merged commit 2ff4e28 into getodk:master Jul 11, 2023
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