Trying to use kotlin-dotnet, but this is not working, using kotlin object class, to manage singleton
Got error Could not find /asset/env on the classpath whereas the env file is in /assets folder as mentionned in the doc
object EnvVariables {
val envVar: Dotenv =
dotenv {
directory = "/assets"
filename = "env"
}
}
object RetrofitInstance {
val api: TodoService by lazy {
Retrofit.Builder()
.baseUrl(EnvVariables.envVar["BASE_URL"])
.addConverterFactory(GsonConverterFactory.create())
.build()
.create(TodoService::class.java)
}
}

