https://kotlinlang.org logo
#android
Title
# android
a

Arjun Achatz

12/02/2019, 5:19 AM
Anyone know how to keep kotlin.ws.kts within an Android project ? I'd like to keep my kotlin script within my android studio project so that others can use it without installing extras. I also don't know how to use dependencies within the kotlin script if it needs to be run alone (for example gson; so potentially question 2) Is anyone familiar with this ?
And if I should be using .kts vs .ws.kts please let me know (:
s

Steve

12/02/2019, 4:13 PM
From what I understand, that's the difference between scratch files and worksheets; worksheets are meant to be part of the project
still, as long as you commit the file within the same repo, it should be fine?
a

Arjun Achatz

12/03/2019, 5:10 AM
@Steve it was given me all sorts of weird errors. Might just be how my build is configured for this project. I ended up putting the worksheet into its own module in the project and now all is well👌🏽