Open PraveenTalari opened 5 years ago
check this pull request :)
put this in your top-level build.gradle
:
ext {
MAPBOX_ACCESS_TOKEN='"YOUR PUBLIC TOKEN"'
}
Information about MAPBOX_ACCESS_TOKEN from this PR should be added to README
put this in your top-level
build.gradle
:ext {
This did not work for me using the latest changes.
I found that there are build config fields in place in the file android\app\build.gradle
, that have been commented out by commit b83d00ee
Uncomment the buildConfigFields and insert your MAPBOX_ACCESS_TOKEN. Just make sure that you insert both \"
. Otherwise, the code generator will produce invalid results.
productFlavors {
local {
buildConfigField("String", "API_URL", "\"https://api.kotlinconf.com\"")
buildConfigField("String", "MAPBOX_ACCESS_TOKEN", "\"<insert-your-token>\"")
dimension "server"
}
prod {
buildConfigField("String", "API_URL", "\"https://api.kotlinconf.com\"")
buildConfigField("String", "MAPBOX_ACCESS_TOKEN", "\"<insert-your-token>\"")
dimension "server"
}
}
Added local.properties and ran ./gradlew build I have the following error
Kotlin Multiplatform Projects are an experimental feature. Target 'ios' for platform ios_x64 is ignored during build on this mingw_x64 machine. You can build it with a mac
FAILURE: Build failed with an exception.
Where: Build file 'D:\MY_UNIVERSE\ws\github_ws\JetBrains\kotlinconf-app\android\app\build.gradle' line: 31
What went wrong: A problem occurred evaluating project ':android:app'.