Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 4fc8470745f5b0f08f9531b7ab85eed6a8f424cb
Author: Jeremy Woods <jbwoods@google.com>
Date: Thu Jun 10 11:26:54 2021
Remove uses of titleCase in Safe Args
The titleCase API was added in Kotlin 1.5.0. Gradle versions previous to
7.0 relied on eariler versionss of Kotlin that do not have that API
available. SafeArgs now depends on Android Gradle Plugin 4.2.0, which is
compatible down to Gradle 6.7.1, so we should continue to support older
versions of kotlin until we move to the next stable version of AGP.
RelNote: "SafeArgs will no longer fail when building your app with
`Kotlin` versions before `1.5.0`."
Test: tested in sample app
Bug: 190739257
Change-Id: Icd1ff3c64f220f4b310934c2edf910d6aae01475
M navigation/navigation-safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/ext/String_ext.kt
M navigation/navigation-safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/java/JavaNavWriter.kt
M navigation/navigation-safe-args-generator/src/test/kotlin/androidx/navigation/safe/args/generator/NavArgumentResolverTest.kt
https://android-review.googlesource.com/1733983
Branch: androidx-main
commit 4fc8470745f5b0f08f9531b7ab85eed6a8f424cb
Author: Jeremy Woods <jbwoods@google.com>
Date: Thu Jun 10 11:26:54 2021
Remove uses of titleCase in Safe Args
The titleCase API was added in Kotlin 1.5.0. Gradle versions previous to
7.0 relied on eariler versionss of Kotlin that do not have that API
available. SafeArgs now depends on Android Gradle Plugin 4.2.0, which is
compatible down to Gradle 6.7.1, so we should continue to support older
versions of kotlin until we move to the next stable version of AGP.
RelNote: "SafeArgs will no longer fail when building your app with
`Kotlin` versions before `1.5.0`."
Test: tested in sample app
Bug: 190739257
Change-Id: Icd1ff3c64f220f4b310934c2edf910d6aae01475
M navigation/navigation-safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/ext/String_ext.kt
M navigation/navigation-safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/java/JavaNavWriter.kt
M navigation/navigation-safe-args-generator/src/test/kotlin/androidx/navigation/safe/args/generator/NavArgumentResolverTest.kt
jb...@google.com <jb...@google.com> #3
This is fixed internally and will be available in the the Navigation 2.4.0-alpha04
release.
ma...@gmail.com <ma...@gmail.com> #4
Still occurs in Version 2.4.0-beta02 with Gradle 6.9
de...@atommobility.com <de...@atommobility.com> #5
Still occurs in Version 2.4.0-beta02 with Gradle 6.9
jb...@google.com <jb...@google.com> #6
Please file a bug with a minimum sample project that reproduces this issue.
th...@gmail.com <th...@gmail.com> #7
Hi Team,
Issue is still reproducible with Gradle 7.0
Please help to fix on priority
Issue is still reproducible with Gradle 7.0
Please help to fix on priority
jb...@google.com <jb...@google.com> #8
Please file a bug with a minimum sample project that reproduces this issue.
Description
When using Navigation SafeArgs
2.4.0-alpha01
+ with Kotlin versions before1.5.0
, you get the following:This is because the
titleCase
API was not added until Kotlin1.5.0
.In
2.4.0-alpha01
+, SafeArgs must be compatible with AGP4.2.0
and as a result Gradle6.7.0
, which is compatible with Kotlin versions prior to1.5.0
.We should avoid using
titlecase
in SafeArgs until we no longer need to support older Kotlin versions. As a workaround, you can update your gradle version to7.0
+.