Comments (5)
plugins {
kotlin("multiplatform")
id("kotlinx-serialization")
id("com.codingfeline.buildkonfig")
}
configure<com.codingfeline.buildkonfig.gradle.BuildKonfigExtension> {
packageName = "com.example.app"
// default config is required
defaultConfigs {
buildConfigField( com.codingfeline.buildkonfig.compiler.FieldSpec.Type.STRING, "name", "value")
}
}
Problem solved !
from buildkonfig.
actually much nicer because of IDE help in the Kotlin DSL
from buildkonfig.
works with build.gradle.kts too
from buildkonfig.
@yshrsmz for Kotlin DSL only syntax mentioned by @clojj works. If this is not fixed, could You please update README by alternative code snipped for KotlinDSL 🙏🏼 - it will save time of the people working with Kotlin Gradle
from buildkonfig.
As you can see in sample-kts directory, it should work.
from buildkonfig.
Related Issues (20)
- Cause: non-flavored defaultConfigs must be provided. HOT 2
- Specify flavor in build time HOT 7
- ios configuration and environment variables
- Support Kotlin 1.9.20 HOT 7
- Automate changelog generation
- BuildKonfigs objects are not available in dependent modules. HOT 1
- add an easy way to load flavor from arbitrary properties file HOT 2
- Add Support to change build types or Build Variants from dropdown like native android HOT 3
- BuildType & ProductFlavor & sourceSets support ? HOT 1
- Plugin generates invalid class so build fails HOT 5
- Readme does not document hierarchical project support HOT 2
- Type ...BuildConfig is defined multiple times HOT 2
- BuildKonfig doesn't work with npm-publish HOT 4
- Set generated value visibility modifier public/internal HOT 2
- non-flavored defaultConfigs must be provided. HOT 3
- Unresolved reference HOT 2
- Rename `buildkonfig` to `buildKonfig` HOT 1
- Support for Kotlin 1.9.0? HOT 4
- Dependency Dashboard
- SourceSet change support HOT 6
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 buildkonfig.