commit | 58618c9890199e198b929829362bd2eb6ed6c322 | [log] [tgz] |
---|---|---|
author | gmackall <34871572+gmackall@users.noreply.github.com> | Thu May 11 17:46:08 2023 -0700 |
committer | GitHub <noreply@github.com> | Fri May 12 00:46:08 2023 +0000 |
tree | ef813b66902ed672fbeebeaaaa331cbb71fcd3d3 | |
parent | f4523444675b846a2a92a917ab3259e6cd25f8ca [diff] |
[camerax] Add a dependency on kotlin-bom to align versions of kotlin-stdlib (#3960) A fresh sample app that adds a dependency on the camerax implementation of the camera plugin will fail to build with an error about duplicate classes*. This PR adds a dependency on kotlin-bom to align versions of kotlin transitive dependencies that are used. The idea for the fix comes [from here](https://youtrack.jetbrains.com/issue/KT-55297/kotlin-stdlib-should-declare-constraints-on-kotlin-stdlib-jdk8-and-kotlin-stdlib-jdk7), which has some more discussion about the problem (but in a different context, unrelated to flutter). \* The error looks like this: ``` FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable > Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.10 (org.jetbrains.kotlin:kotlin-stdlib:1.8.10) and jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30) Duplicate class kotlin.internal.jdk7.JDK7PlatformImplementations found in modules jetified-kotlin-stdlib-1.8.10 (org.jetbrains.kotlin:kotlin-stdlib:1.8.10) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10) ... ```
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages
directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: