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

Bump Gradle 8.9, AGP 8.6.0, Kotlin 1.9.22 #3839

Closed
wants to merge 34 commits into from

Conversation

markushi
Copy link
Member

@markushi markushi commented Nov 1, 2024

📜 Description

androidx.benchmark requires a newer version of AGP for micro benchmarks. Bumping all required deps as well.

💡 Motivation and Context.

New features and faster builds.

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

#skip-changelog

val kotlinStdLib = "stdlib-jdk8"

val springBootVersion = "2.7.5"
val springBoot3Version = "3.3.2"
val kotlinCompatibleLanguageVersion = "1.4"
val kotlinCompatibleLanguageVersion = "1.5"
Copy link
Member

Choose a reason for hiding this comment

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

I guess this deserves a "Breaking changes" note at least? doubt anyone is still on this version, but gotta call it out (or make it part of v8?)

build.gradle.kts Outdated Show resolved Hide resolved
Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

a couple of comments, but LGTM otherwise! I also assume that artifacts publishing works correctly after bumping the maven-publish plugin, I recall we had problems in the past

@markushi markushi enabled auto-merge (squash) November 6, 2024 21:21
@markushi markushi disabled auto-merge November 6, 2024 21:21
@markushi
Copy link
Member Author

markushi commented Nov 7, 2024

a couple of comments, but LGTM otherwise! I also assume that artifacts publishing works correctly after bumping the maven-publish plugin, I recall we had problems in the past

Yeah I tried local publishing and compared some files side-by-side. Looking good! One difference I've seen: The .module files now link javadoc and sources, which they didn't before.

@romtsn
Copy link
Member

romtsn commented Nov 7, 2024

The .module files now link javadoc and sources, which they didn't before.

Oh that's nice, it probably fixes this issue? #3785

Copy link
Contributor

github-actions bot commented Nov 18, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 488.94 ms 538.17 ms 49.23 ms
Size 1.64 MiB 2.25 MiB 629.63 KiB

Previous results on branch: chore/gradle-agp-kotlin-version-bump

Startup times

Revision Plain With Sentry Diff
6af4c51 446.67 ms 465.26 ms 18.58 ms
c52239d 398.40 ms 415.83 ms 17.43 ms
58d722d 443.09 ms 476.98 ms 33.89 ms

App size

Revision Plain With Sentry Diff
6af4c51 1.64 MiB 2.25 MiB 629.59 KiB
c52239d 1.64 MiB 2.25 MiB 629.63 KiB
58d722d 1.64 MiB 2.25 MiB 629.63 KiB

}

ndkVersion = "23.1.7779620"
Copy link
Member

@romtsn romtsn Nov 27, 2024

Choose a reason for hiding this comment

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

I guess we'd also have to bump AGP in sentry-native/ndk? Probably will be incompatible after this is merged

<manifest xmlns:tools="http://schemas.android.com/tools">

<!-- Compose requires min SDK 21, but our min SDK is set to 19 -->
<uses-sdk
Copy link
Member

Choose a reason for hiding this comment

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

just a thought - shall we already target the v8 branch? 🤔 unless we want to rush this PR, I guess it will be easier actually?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, we could - let me try!

@@ -139,9 +148,9 @@ class ComposeMaskingOptionsTest {
assertEquals(4, textNodes.size) // [TextField, Text, Button, Activity Title]
textNodes.forEach {
if ((it.layout as? ComposeTextLayout)?.layout?.layoutInput?.text?.text == "Make Request") {
assertFalse(it.shouldMask)
assertFalse(it.shouldMask, "Node with text ${(it.layout as? ComposeTextLayout)?.layout?.layoutInput?.text?.text} should not be masked")
Copy link
Member

Choose a reason for hiding this comment

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

💯

package io.sentry
package io.sentry.core

import io.sentry.SentryEvent

/**
* package-private hack.
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused 😅 is this hack not needed then, since we specify a different package now for this ext function? I think throwable is public now btw

@@ -170,7 +169,7 @@ class SentryApollo3HttpInterceptor @JvmOverloads constructor(
variables?.let {
setData("variables", it)
}
setData(HTTP_METHOD_KEY, method.toUpperCase(Locale.ROOT))
setData(HTTP_METHOD_KEY, method.uppercase())
Copy link
Member

Choose a reason for hiding this comment

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

hm, why did this change? I've seen in other places we changed it the other way around basically uppercase -> toUpperCase(Locale.ROOT), is this one different?

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

some comments to check out, but LGTM otherwise!

Co-authored-by: Roman Zavarnitsyn <rom4ek93@gmail.com>
@markushi markushi changed the base branch from main to 8.x.x November 28, 2024 07:30
@markushi markushi changed the base branch from 8.x.x to main November 28, 2024 07:30
@markushi
Copy link
Member Author

Closing in favor of the 8.x.x retargeted branch: #3936

@markushi markushi closed this Nov 28, 2024
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.

3 participants