Comments (5)
Yeah the way that ksp currently works is it generates per-platform. ksp2 has an experimental option to generate per sourceset instead.
from kotlin-inject.
We have a multiplatform sample here, am also going to look into the new processing scheme in ksp2 which should make this simpler
from kotlin-inject.
Yeah, I'm assuming it's something to do with me using the Compose Multiplatform sample app as a base. It has a different structure than your sample. In particular, the generated InjectAppComponent
ends up here:
composeApp/build/generated/ksp/android/androidDebug/kotlin/di/InjectAppComponent.kt
. Sort of makes sense that it wouldn't be accessible from composeApp/src/commonMain/
....maybe I'm just using it wrong? Is the idea that you only ever access the generated code from the iOS/Android/whatever code?
from kotlin-inject.
Thanks, makes sense. I was assuming I'd want to create the graph in the common code. You can probably close this? Up to you.
from kotlin-inject.
Yeah, opened evant/kotlin-inject-samples#17 for the investigation
from kotlin-inject.
Related Issues (20)
- Cannot scope child components dependencies with parent component's scope using Provides HOT 6
- can't build the project HOT 1
- Error while compiling project HOT 5
- Feature request - support deferring to superclass component properties HOT 2
- Typealiases lead to KSP StackOverflowException
- Scope annotations aren't picked up when scanning superclasses
- Expect Actual Ancestor Components and Common Descendant Components HOT 5
- Kotlin Delegation Support? HOT 4
- Interface Bindings HOT 3
- Support @IntoSet for superclass HOT 1
- Names clash for properties in component with multiple super types HOT 2
- Component with an Int literal property name is used as an Int value
- Implemented function still considered abstract HOT 1
- Support arguments for scope annotations HOT 2
- Fragment requires an empty constructor HOT 3
- Question: multiple interfaces and one implementation HOT 3
- Kotlin 2.0.0 HOT 1
- Build fails with multi module android project with Kotlin 2.0.0 HOT 7
- Improve documentation to better understand how to use kotlin-inject HOT 3
- Conflicting overloads error when upgrading another library to use KSP 2.0.0 HOT 3
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 kotlin-inject.