Closed CMingTseng closed 1 year ago
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.
Dear Sir
sorry for my pool kotlin skill
hava any simple demo ?
THX
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).
https://github.com/yshrsmz/BuildKonfig#try-out-the-sample
You can modify
sample
project to try out various combinations(seesample/build
directory to check what is generated).
Dear Sir
This is my kotlin Native demo
if i define C_NAME_PREFIX_KCONFIG
i want use it at
How to do ?
THX
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
Dear Sir
as this project - https://github.com/bennyhuo/hello-kni
can use kotlin native to JNI ( kotlin --> c --> JNI --->Android/JVM)
when call JNI System.loadLibrary is "knlib" , that define at sharedLib in build.gradle.kts
https://github.com/bennyhuo/hello-kni/blob/27f787c13c27a2fd2e922b632eee66676761fce6/nativeLib/build.gradle.kts#L17
if use BuildKonfig to define a String buildConfigField like "JNI_NAME_PREFIX" value is "knlib"
we will get buildConfigField at app
but it can not work
THX