Giter VIP home page Giter VIP logo

Comments (5)

evant avatar evant commented on June 12, 2024 1

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.

evant avatar evant commented on June 12, 2024

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.

edenman avatar edenman commented on June 12, 2024

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.

edenman avatar edenman commented on June 12, 2024

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.

evant avatar evant commented on June 12, 2024

Yeah, opened evant/kotlin-inject-samples#17 for the investigation

from kotlin-inject.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.