https://kotlinlang.org logo
n

nimakro

04/03/2017, 10:04 PM
@edvin No your got that right I want to put the config property in the app class for the global config. And the enum is also in the config object. But I was thinking that you could also write to the global file from a component like this:
Copy code
kotlin
   config(GLOBAL) {
       set("Global-Key" to "some-value")
   }
Which would allow all components to use some commen config together and for that the component would have to have the ability to access the global config property. So the question would how I acess the global config form the
config(GLOBAL)
function. Dose that make sense?