Coder Social home page Coder Social logo

Comments (5)

yshrsmz avatar yshrsmz commented on May 30, 2024

Hi
BuildKonfig supports K/N.

If what you mean is "how to access BuildKonfig defined in 'shared' module, from 'app' module", then BuildKonfig has internal visibility modifier by default, so use exposeObjectWithName to make it public.

from buildkonfig.

CMingTseng avatar CMingTseng commented on May 30, 2024

Dear Sir

sorry for my pool kotlin skill

hava any simple demo ?

THX

from buildkonfig.

yshrsmz avatar yshrsmz commented on May 30, 2024

https://github.com/yshrsmz/BuildKonfig#try-out-the-sample

You can modify sample project to try out various combinations(see sample/build directory to check what is generated).

from buildkonfig.

CMingTseng avatar CMingTseng commented on May 30, 2024

https://github.com/yshrsmz/BuildKonfig#try-out-the-sample

You can modify sample project to try out various combinations(see sample/build directory to check what is generated).

Dear Sir

This is my kotlin Native demo

https://github.com/cybernhl/hello-kni/blob/db889dfafcc820c0788e73746932f44a62dadbd4/nativeLib/build.gradle.kts#L66

if i define C_NAME_PREFIX_KCONFIG

i want use it at

https://github.com/cybernhl/hello-kni/blob/db889dfafcc820c0788e73746932f44a62dadbd4/nativeLib/src/nativeMain/kotlin/main.kt#L7

How to do ?

THX

from buildkonfig.

yshrsmz avatar yshrsmz commented on May 30, 2024

if you look at build directory, you'll find buildkonfig directory and that directory includes generated objects for all targets.

You can just import and use it just like ordinary object

from buildkonfig.

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.