Skip to content

deps upgrade Kotlin languageVersion to 1.8 #3032

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

Merged
merged 5 commits into from
Jul 3, 2025

Conversation

buenaflor
Copy link
Contributor

@buenaflor buenaflor commented Jul 2, 2025

📜 Description

Fixes error

Task :sentry_flutter:compileDebugKotlin FAILED
e: Language version 1.6 is no longer supported; please, use version 1.8 or greater.

which happens when bumping the kotlin-android plugin to 2.2.0

💡 Motivation and Context

Closes #3028

💚 How did you test it?

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

🔮 Next steps

Copy link

codecov bot commented Jul 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.09%. Comparing base (8c8e541) to head (ad3ab4f).
Report is 2 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (8c8e541) and HEAD (ad3ab4f). Click for more details.

HEAD has 8 uploads less than BASE
Flag BASE (8c8e541) HEAD (ad3ab4f)
9 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3032       +/-   ##
===========================================
- Coverage   87.97%   63.09%   -24.89%     
===========================================
  Files         287        4      -283     
  Lines        9533      168     -9365     
===========================================
- Hits         8387      106     -8281     
+ Misses       1146       62     -1084     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

CHANGELOG.md Outdated
options.feedback.showBranding = false;
```

### Dependencies

- Upgrade Kotlin languageVersion to `1.8` ([#3032](https://github.com/getsentry/sentry-dart/pull/3032))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we mark this a s a breaking change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll mark it as potentially breaking. the number of people potentially affected should be really low

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But I'll try it out first myself in a sample app

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tried it out, still compiles even with older plugin versions fine

@buenaflor buenaflor requested a review from kahest July 2, 2025 14:15
@buenaflor
Copy link
Contributor Author

changelog sanity check. since @stefanosiano clarified it's fine to update it and won't affect users, I guess it shouldn't hurt to still call out to update the toolchain if its outdated?

@kahest
Copy link
Member

kahest commented Jul 2, 2025

changelog sanity check. since @stefanosiano clarified it's fine to update it and won't affect users, I guess it shouldn't hurt to still call out to update the toolchain if its outdated?

yep we should call it out clearly, it's still a breaking change in the sense that people might need to update toolchains not just locally, but also on CI etc.

@buenaflor
Copy link
Contributor Author

Updated the changelog

@buenaflor
Copy link
Contributor Author

@kahest wdyt of the changelog, updated it to be 'potentially breaking'

Co-authored-by: Karl Heinz Struggl <kahest@users.noreply.github.com>
@buenaflor buenaflor merged commit c8596a6 into main Jul 3, 2025
52 of 57 checks passed
@buenaflor buenaflor deleted the fix/kotlin-language-version branch July 3, 2025 09:38
Copy link
Contributor

github-actions bot commented Jul 3, 2025

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- deps upgrade Kotlin languageVersion to `1.8` ([#3032](https://github.com/getsentry/sentry-dart/pull/3032))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against ad3ab4f

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.

Compilation errors in Sentry Flutter due to Kotlin API incompatibilities. (Language version 1.6 is no longer supported)
3 participants