Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation on Windows #30

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

garfieldnate
Copy link

The file encoding needs to be set to UTF-8. I'm honestly not
sure why this is required, given that Kotlin files are supposed to
always be UTF-8.

Fixes #29.

Using the previous dependency versions, the build always failed during
the documentation tasks; this was due to an incompatibility between
Kotlin and Gradle (see Kotlin/dokka#428).

Update Kotlin to 1.4.30 (not the latest version, but the latest version
available in IDEA). KTLint could not be updated to 0.41.0 because of
some weird behavior with the plugin (sample/Main.kt indentation is
marked as incorrect).

Update the configuration blocks, as well (the `dokka` block is no more).
Without this, if Windows fails then we won't test Mac.
I'm honestly not sure why this is required, since Kotlin files are
supposed to always be UTF-8. Without this, though, the build fails on
Windows due to all special table characters being turned into ???.

Fixes JakeWharton#29.
@garfieldnate
Copy link
Author

Note that this work is meant to be merged after my other PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Characters don't work on Windows
1 participant