Comments (12)
As far as I can see, there is no way of disabling it for Kotlin 2.0?
You can force language version 1.9 while still using Kotlin 2.0.0.
You can get fairly far with the 2.5.0 betas. I wrote some instructions here: https://www.zacsweers.dev/preparing-for-k2/#anvil. The TL;DR is that yes, projects with component merging will require language version 1.9, but any projects using just factory gen can use KSP instead.
We're working on it, we didn't expect the IR APIs we use to break in 2.0 as they weren't annotated as obsolete in the compiler.
from anvil.
With all due respect, that just means you're blocked on your internal policy, not anvil.
from anvil.
It will be released when it's ready. Out of respect for the many subscribers to this issue and general OSS etiquette, please accept this answer for now. We'll update this thread when there's something to update.
from anvil.
No ETA currently, we more or less have to get #751 and #704 done first
from anvil.
@ZacSweers I did, but it relies on a beta version of the anvil plugin. That's something we generally don't allow in our builds is any beta plugings or runtime dependencies. So i was curious when a release version of anvil will at least support the workaround.
from anvil.
Can the k2 warning be disabled (or shown only once)? It shows up literally thousands of times in build logs when K2 is enabled.
from anvil.
With 1.9.20 out and 2.0 next, is there an ETA for K2 support, as would love to start testing and sending feedback to the KT team.
from anvil.
K2 seems to be out and stable now. As far as I can see, there is no way of disabling it for Kotlin 2.0? So all Anvil projects are stuck at 1.9 for now.
from anvil.
This is definitely very unfortunate. One of the big boosts to using kotlin 2.0.0 is that the compose compiler is versioned and delivered along with the kotlin compiler. This is going to prevent people from using that new compose compiler alongside of anvil.
Is there any kind of a timeline as to when this support might be available?
from anvil.
@mattinger did you read the post I linked above?
from anvil.
That is a fair assessment @ZacSweers , which is why i'm asking if there's an ETA on a release version where the workaround will be applicable. It's a beta09 if i remember correctly, so i would think it won't be far off. The again, it is a build tool, and not something we're distributing, so i might be able to get an exception.
from anvil.
I was not implying that anyone should rush anything. I was just asking if you did have an ETA so i can make an informed decision on trying to get usage of the beta version approved. If the answer is that there's no current ETA, that's fine.
from anvil.
Related Issues (20)
- `ContributesSubcomponent.Factory` doesn't support inherited functions
- Anvil 2.5.0-beta09 gradle plugin does not add `build/anvil/main/generated` folder to main sourceSet. HOT 2
- What is the correct way to introduce custom code generator for anvil running in KSP mode? HOT 1
- Migrate interface merging in IR
- Explore merging `ModuleMergerIr` and `InterfaceMergerIr`
- Enable K2 support in AnvilCompilerRegistrar
- Generated anvil code `OPT_IN_USAGE_ERROR` suppression causes warnings in K2 HOT 2
- K2: hints aren't discoverable in K2 IR HOT 1
- Compilation fails with multibindings across separate modules HOT 3
- KSP mode leaks kotlin-compiler-embeddable into javac classpath somehow HOT 1
- @ContributesMultibinding codegen missing imports for synthesized annotation constants HOT 3
- Adopt new KSP moduleName API or better handle in KSP2
- `ContributesBinding` or `ContributesMultibinding` on an `object` declaration requires some sort of Dagger factory generation
- v2.5.0-beta05 breaks custom code generators HOT 2
- `RealAnvilModuleDescriptor.allFiles` only returns files with type declarations
- Kotlin 2.0.0-RC1 Gradle plugin incompatibility HOT 1
- The following Android dependencies are set to compileOnly which is not supported HOT 1
- Unresolved Reference in IDE For Bindings Added Via @ContributesTo HOT 3
- Experiencing IC issues with `com.squareup.anvil.trackSourceFiles=true` in embedded mode HOT 2
- Duplicate `ContributesMultibinding` check does not consider `ignoreQualifier` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anvil.