rogerluan / arkana

Use dotenv files for Android and iOS projects.
BSD 2-Clause "Simplified" License
379 stars 18 forks source link

Update the Kotlin generator to support KMP projects #60

Closed husseinala closed 3 months ago

husseinala commented 4 months ago

Description

Add Kotlin Multiplatform support by applying the following updates to the Kotlin generator:

  1. Update the arkana.kt.erb template to ensure the generated Kotlin code is compatible with multiplatform projects by replacing the JVM only function ByteArray#toString(...) with its KMP counterpart ByeArray#decodeToString()
  2. Add is_kotlin_multiplatform_module as a new yml configuration parameter that changes the generated build.gradle file and SourceSet folders to a KMP compatible ones when set to true.
rogerluan commented 3 months ago

Released in https://github.com/rogerluan/arkana/releases/tag/v2.1.0 🚀