Skip to content

chore(deps): bump kotlin_version from 1.7.22 to 1.9.10 in /packages/package_info_plus/package_info_plus/android#2134

Merged
vbuberen merged 4 commits into
mainfrom
dependabot/gradle/packages/package_info_plus/package_info_plus/android/kotlin_version-1.9.10
Oct 6, 2023
Merged

chore(deps): bump kotlin_version from 1.7.22 to 1.9.10 in /packages/package_info_plus/package_info_plus/android#2134
vbuberen merged 4 commits into
mainfrom
dependabot/gradle/packages/package_info_plus/package_info_plus/android/kotlin_version-1.9.10

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 1, 2023

Copy link
Copy Markdown
Contributor

Bumps kotlin_version from 1.7.22 to 1.9.10.
Updates org.jetbrains.kotlin:kotlin-gradle-plugin from 1.7.22 to 1.9.10

Release notes

Sourced from org.jetbrains.kotlin:kotlin-gradle-plugin's releases.

Kotlin 1.9.10

Changelog

Compiler

  • KT-60769 Partially revert KT-58371
  • KT-60659 Incorrect 'unresolved reference: addFirst' error with JDK 21
  • KT-60371 Native custom allocator link error
  • KT-60986 Native: static caches with custom runtime options are broken on Linux
  • KT-60770 Fix false-positive ABSTRACT_MEMBER_NOT_IMPLEMENTED on toArray with JDK 21
  • KT-60231 NoClassDefFoundError: $$$$$NON_LOCAL_RETURN$$$$$ after upgrade to Kotlin 1.9.0

JavaScript

  • KT-60785 KJS: Destructured value class in suspend function fails with Uncaught TypeError: can't convert to primitive type error
  • KT-60852 Kotlin JS(IR): IllegalArgumentException: Cross module dependency resolution failed when updating to Kotlin 1.9.0
  • KT-57509 KJS: Compiler generates native JS operator == for comparing values with Any type

Native

  • KT-60230 Native: "unknown options: -ios_simulator_version_min -sdk_version" with Xcode 15 beta 3
  • KT-60758 Native: Building for 'iOS-simulator', but linking in dylib built for 'iOS' in Xcode 15 beta 4

Native. C and ObjC Import

  • KT-59167 Native: cinterop is unable to build interop libraries against the Xcode 15 Beta 1

Tools. Gradle

  • KT-61147 Kotlin Compiler 1.9.0 bundles a stripped unshadowed version of Gson
  • KT-60543 NoClassDefFoundError for com/gradle/scan/plugin/BuildScanExtension

Checksums

File Sha256
kotlin-compiler-1.9.10.zip 7d74863deecf8e0f28ea54c3735feab003d0eac67e8d3a791254b16889c20342
kotlin-native-linux-x86_64-1.9.10.tar.gz 1db3679919f4449514e9d82451e7dfa73558ac9bc80b82579cd74d452c8faa5b
kotlin-native-macos-x86_64-1.9.10.tar.gz f5650f2560438a692803d8fe07124529c19f1972f84fe09cfa2329b93f43828d
kotlin-native-macos-aarch64-1.9.10.tar.gz d2cf5a484ac0808ab29fd3f6099df7c07330f81f3cbab949947e42e36138c3de
kotlin-native-windows-x86_64-1.9.10.zip a34d56661455e94e1ba4dd09ec3c1adac6148fdedcf55eefb9a79c8ed01ff02c

Kotlin 1.9.0

Changelog

Analysis API

New Features

... (truncated)

Changelog

Sourced from org.jetbrains.kotlin:kotlin-gradle-plugin's changelog.

1.9.10

Compiler

  • KT-60769 Partially revert KT-58371
  • KT-60659 Incorrect 'unresolved reference: addFirst' error with JDK 21
  • KT-60371 Native custom allocator link error
  • KT-60986 Native: static caches with custom runtime options are broken on Linux
  • KT-60770 Fix false-positive ABSTRACT_MEMBER_NOT_IMPLEMENTED on toArray with JDK 21
  • KT-60231 NoClassDefFoundError: $$$$$NON_LOCAL_RETURN$$$$$ after upgrade to Kotlin 1.9.0

JavaScript

  • KT-60785 KJS: Destructured value class in suspend function fails with Uncaught TypeError: can't convert to primitive type error
  • KT-60852 Kotlin JS(IR): IllegalArgumentException: Cross module dependency resolution failed when updating to Kotlin 1.9.0
  • KT-57509 KJS: Compiler generates native JS operator == for comparing values with Any type

Native

  • KT-60230 Native: "unknown options: -ios_simulator_version_min -sdk_version" with Xcode 15 beta 3
  • KT-60758 Native: Building for 'iOS-simulator', but linking in dylib built for 'iOS' in Xcode 15 beta 4

Native. C and ObjC Import

  • KT-59167 Native: cinterop is unable to build interop libraries against the Xcode 15 Beta 1

Tools. Gradle

  • KT-61147 Kotlin Compiler 1.9.0 bundles a stripped unshadowed version of Gson
  • KT-60543 NoClassDefFoundError for com/gradle/scan/plugin/BuildScanExtension

1.9.0

Analysis API

New Features

  • KT-57930 Analysis API: provide an API for extending Kotlin resolution
  • KT-57636 K2: Add the return type of K2 reference shortener AA ShortenCommand::invokeShortening() e.g., ShorteningResultInfo to allow callers to access the shortening result PSI

Fixes

  • KT-58249 Analysis API: Disable error logging for FE10 implementation of resolveCall when resolve is not successful
  • KT-55626 Impossible to restore symbol by psi from script file
  • KT-57314 LL FIR: Combine LLFirProvider$SymbolProviders in session dependencies (optimization)
  • KT-55527 K2 IDE: Rewrite KtScopeContext class to allow to handle each scope separately
  • KT-55329 LL FIR: Unexpected ACTUAL_WITHOUT_EXPECT error on constructor and function declaration
  • KT-50732 LL API: fix compiler based tests
  • KT-57850 K2: contract violation due to SymbolLightAccessorMethod.propertyAccessorSymbol

... (truncated)

Commits
  • 3db61ef [K/JS] Revert KT-60785 fix because the 1.9.0 contains old schema for function...
  • 3584af4 Add ChangeLog for 1.9.10
  • 7bab2db Remove gson from compiler fat jar
  • b925404 [K/JS] Fix autoboxing for inlined function ^KT-60785 Fixed
  • 5801279 [JS IR] De-optimize equality operator as workaround for KT-57509
  • 79d3dda [K/N] Update osVersionMin for arm ios and tvos simulators
  • 955598c [K/N] Pick minimal iOS/tvOS depending on the Xcode version
  • b1aa582 [K/N] Do not check caches consistency until all of them are built
  • 0f6d84c [K/N][tests] Added a reproducer for #KT-60371
  • d3b8607 [K/N][tests] Fixed CachesAutoBuildTest
  • Additional commits viewable in compare view

Updates org.jetbrains.kotlin:kotlin-stdlib from 1.7.22 to 1.9.10

Release notes

Sourced from org.jetbrains.kotlin:kotlin-stdlib's releases.

Kotlin 1.9.10

Changelog

Compiler

  • KT-60769 Partially revert KT-58371
  • KT-60659 Incorrect 'unresolved reference: addFirst' error with JDK 21
  • KT-60371 Native custom allocator link error
  • KT-60986 Native: static caches with custom runtime options are broken on Linux
  • KT-60770 Fix false-positive ABSTRACT_MEMBER_NOT_IMPLEMENTED on toArray with JDK 21
  • KT-60231 NoClassDefFoundError: $$$$$NON_LOCAL_RETURN$$$$$ after upgrade to Kotlin 1.9.0

JavaScript

  • KT-60785 KJS: Destructured value class in suspend function fails with Uncaught TypeError: can't convert to primitive type error
  • KT-60852 Kotlin JS(IR): IllegalArgumentException: Cross module dependency resolution failed when updating to Kotlin 1.9.0
  • KT-57509 KJS: Compiler generates native JS operator == for comparing values with Any type

Native

  • KT-60230 Native: "unknown options: -ios_simulator_version_min -sdk_version" with Xcode 15 beta 3
  • KT-60758 Native: Building for 'iOS-simulator', but linking in dylib built for 'iOS' in Xcode 15 beta 4

Native. C and ObjC Import

  • KT-59167 Native: cinterop is unable to build interop libraries against the Xcode 15 Beta 1

Tools. Gradle

  • KT-61147 Kotlin Compiler 1.9.0 bundles a stripped unshadowed version of Gson
  • KT-60543 NoClassDefFoundError for com/gradle/scan/plugin/BuildScanExtension

Checksums

File Sha256
kotlin-compiler-1.9.10.zip 7d74863deecf8e0f28ea54c3735feab003d0eac67e8d3a791254b16889c20342
kotlin-native-linux-x86_64-1.9.10.tar.gz 1db3679919f4449514e9d82451e7dfa73558ac9bc80b82579cd74d452c8faa5b
kotlin-native-macos-x86_64-1.9.10.tar.gz f5650f2560438a692803d8fe07124529c19f1972f84fe09cfa2329b93f43828d
kotlin-native-macos-aarch64-1.9.10.tar.gz d2cf5a484ac0808ab29fd3f6099df7c07330f81f3cbab949947e42e36138c3de
kotlin-native-windows-x86_64-1.9.10.zip a34d56661455e94e1ba4dd09ec3c1adac6148fdedcf55eefb9a79c8ed01ff02c

Kotlin 1.9.0

Changelog

Analysis API

New Features

... (truncated)

Changelog

Sourced from org.jetbrains.kotlin:kotlin-stdlib's changelog.

1.9.10

Compiler

  • KT-60769 Partially revert KT-58371
  • KT-60659 Incorrect 'unresolved reference: addFirst' error with JDK 21
  • KT-60371 Native custom allocator link error
  • KT-60986 Native: static caches with custom runtime options are broken on Linux
  • KT-60770 Fix false-positive ABSTRACT_MEMBER_NOT_IMPLEMENTED on toArray with JDK 21
  • KT-60231 NoClassDefFoundError: $$$$$NON_LOCAL_RETURN$$$$$ after upgrade to Kotlin 1.9.0

JavaScript

  • KT-60785 KJS: Destructured value class in suspend function fails with Uncaught TypeError: can't convert to primitive type error
  • KT-60852 Kotlin JS(IR): IllegalArgumentException: Cross module dependency resolution failed when updating to Kotlin 1.9.0
  • KT-57509 KJS: Compiler generates native JS operator == for comparing values with Any type

Native

  • KT-60230 Native: "unknown options: -ios_simulator_version_min -sdk_version" with Xcode 15 beta 3
  • KT-60758 Native: Building for 'iOS-simulator', but linking in dylib built for 'iOS' in Xcode 15 beta 4

Native. C and ObjC Import

  • KT-59167 Native: cinterop is unable to build interop libraries against the Xcode 15 Beta 1

Tools. Gradle

  • KT-61147 Kotlin Compiler 1.9.0 bundles a stripped unshadowed version of Gson
  • KT-60543 NoClassDefFoundError for com/gradle/scan/plugin/BuildScanExtension

1.9.0

Analysis API

New Features

  • KT-57930 Analysis API: provide an API for extending Kotlin resolution
  • KT-57636 K2: Add the return type of K2 reference shortener AA ShortenCommand::invokeShortening() e.g., ShorteningResultInfo to allow callers to access the shortening result PSI

Fixes

  • KT-58249 Analysis API: Disable error logging for FE10 implementation of resolveCall when resolve is not successful
  • KT-55626 Impossible to restore symbol by psi from script file
  • KT-57314 LL FIR: Combine LLFirProvider$SymbolProviders in session dependencies (optimization)
  • KT-55527 K2 IDE: Rewrite KtScopeContext class to allow to handle each scope separately
  • KT-55329 LL FIR: Unexpected ACTUAL_WITHOUT_EXPECT error on constructor and function declaration
  • KT-50732 LL API: fix compiler based tests
  • KT-57850 K2: contract violation due to SymbolLightAccessorMethod.propertyAccessorSymbol

... (truncated)

Commits
  • 3db61ef [K/JS] Revert KT-60785 fix because the 1.9.0 contains old schema for function...
  • 3584af4 Add ChangeLog for 1.9.10
  • 7bab2db Remove gson from compiler fat jar
  • b925404 [K/JS] Fix autoboxing for inlined function ^KT-60785 Fixed
  • 5801279 [JS IR] De-optimize equality operator as workaround for KT-57509
  • 79d3dda [K/N] Update osVersionMin for arm ios and tvos simulators
  • 955598c [K/N] Pick minimal iOS/tvOS depending on the Xcode version
  • b1aa582 [K/N] Do not check caches consistency until all of them are built
  • 0f6d84c [K/N][tests] Added a reproducer for #KT-60371
  • d3b8607 [K/N][tests] Fixed CachesAutoBuildTest
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Sep 1, 2023
@dependabot dependabot Bot force-pushed the dependabot/gradle/packages/package_info_plus/package_info_plus/android/kotlin_version-1.9.10 branch from e318b1a to 9c9574a Compare September 2, 2023 05:08
Bumps `kotlin_version` from 1.7.22 to 1.9.10.

Updates `org.jetbrains.kotlin:kotlin-gradle-plugin` from 1.7.22 to 1.9.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.10/ChangeLog.md)
- [Commits](JetBrains/kotlin@v1.7.22...v1.9.10)

Updates `org.jetbrains.kotlin:kotlin-stdlib` from 1.7.22 to 1.9.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.10/ChangeLog.md)
- [Commits](JetBrains/kotlin@v1.7.22...v1.9.10)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/gradle/packages/package_info_plus/package_info_plus/android/kotlin_version-1.9.10 branch from 9c9574a to 7ca1196 Compare September 2, 2023 07:57
@nohli nohli requested a review from vbuberen September 2, 2023 09:40
@vbuberen

vbuberen commented Sep 2, 2023

Copy link
Copy Markdown
Collaborator

I had a few issues this week with updating to 1.9.x on a few projects. Had to revert to 1.8.20 in the end as there were issues with shrinking and Android builds failed. Will try it out on some project with one of Plus Plugins a bit later today.

@nohli

nohli commented Sep 2, 2023

Copy link
Copy Markdown
Member

Ok great, take your time 😊

If we decide not to update, we would want to revert the already merged kotlin updates (I volunteer as I am responsible for merging).

In this case, I would suggest to still keep the other parts of the three open PRs (with a lower kotlin version), as they were required to fix build issues after updating - and we'll have the same issues when we eventually update.
Actually, I found out that those packages, where the build failed, had slightly different android folders, and merely copied the added parts from other packages where the kotlin update worked.
If the issue in another project is failing builds (like it was here), you could try out the changes of this PR.

@vbuberen

vbuberen commented Sep 3, 2023

Copy link
Copy Markdown
Collaborator

Actually, I found out that those packages, where the build failed, had slightly different android folders, and merely copied the added parts from other packages where the kotlin update worked.

Among all changes you did in this PR only bump to Java 17 was required due to Gradle's 8.x requirement to use it. If you were concerned with build failures like this: https://github.com/fluttercommunity/plus_plugins/actions/runs/6057290423/job/16438281459 it is due to what happened in Kotlin 1.8.x releases. Check out this comment from me for more details: firebase/flutterfire#11318 (comment)

So I did some testing which involved creating a new Flutter project and adding different versions of Plus Plugins (with Kotlin update and without) - the issue here with Kotlin update to 1.8.x - 1.9.x is in fact that such change in plugins would require bump Kotlin version in the project which uses one of such Plus Plugins. Otherwise there are the same problems with duplicate classes error as you had yesterday on CI. What concerns me here is that requiring to bump Kotlin version is a bit different to requiring to bump Android Gradle Plugin version as we had some months ago as in case with AGP users get some build speed/memory consumption optimisations, while Kotlin version bump from 1.7.x to newer so far brings almost no benefit to Flutter projects.

Based on what I described above we would either to release a breaking change and clearly state that Kotlin 1.8.x or 1.9.x is required, which might be good as due to recent changes to Gradle wrapper and Android Gradle Plugin (AGP) we also need to ask users to change compileOptions in their build.gradle file to use Java 17. So, potentially, we could release a breaking change that would cover both updates requirement and be clear about these updated requirements in changelogs.

Or we can stay with older Kotlin version for now, but still would have to notify users about Java 17 requirement in case of releasing new versions of plugins soon. It would be also a good option as it would not cause pain to not updated projects for now as we would wait till more of plugins/packages adopt new Kotlin version with its changes.

Personally I feel that we should go with major version bump as we already have Java 17 requirement and can squeeze Kotlin version requirement here as well.

@nohli

nohli commented Sep 4, 2023

Copy link
Copy Markdown
Member

@vbuberen FYI I'm driving to a retreat now and will get back to you next Monday.

In any case, I would revert the changes piece by piece and check if it builds, to identify which change fixed the builds (it was not only Java)...so that we can write it in a migration guide when we update Kotlin at some point.

And in case there's a release of other plus_plugins this week - the Kotlin update needs to be reverted.

Have a great week ✌🏽

@vbuberen

vbuberen commented Sep 4, 2023

Copy link
Copy Markdown
Collaborator

In any case, I would revert the changes piece by piece and check if it builds, to identify which change fixed the builds (it was not only Java)...so that we can write it in a migration guide when we update Kotlin at some point.

You misunderstood my previous message. Java 17 is a separate topic connected with Gradle 8.3 and AGP 8.1.1. In case with Kotlin builds failed because the example app also needs to use at least Kotlin 1.8.x.

I will update PRs in the meantime.

I'm driving to a retreat now and will get back to you next Monday.

Have a good retreat.

…/package_info_plus/android/kotlin_version-1.9.10
@vbuberen vbuberen merged commit 5922918 into main Oct 6, 2023
@vbuberen vbuberen deleted the dependabot/gradle/packages/package_info_plus/package_info_plus/android/kotlin_version-1.9.10 branch October 6, 2023 08:49
@nohli nohli mentioned this pull request Oct 11, 2023
8 tasks
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants