-
Notifications
You must be signed in to change notification settings - Fork 108
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
Implement the timezone database for Linux and Windows in Kotlin #286
Conversation
66a0bd0
to
613d49d
Compare
7321ca9
to
eaebe61
Compare
dafe9d7
to
ac00680
Compare
ac00680
to
e7c1318
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I think it's good to merge. Please squash some intermediate changes.
core/build.gradle.kts
Outdated
val output = "$projectDir/native/cinterop/public/windows_zones.hpp" | ||
val initialFileContents = File(output).readBytes() | ||
val output = "$projectDir/windows/src/WindowsZoneNames.kt" | ||
val initialFileContents = try { File(output).readBytes() } catch(e: Throwable) { ByteArray(0) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: is it really required to read this file at configuration phase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, this does sometimes lead to the file being read when it doesn't need to be, e.g. when invoking gradle tasks
. Good job noticing this!
e7c1318
to
e3f4d59
Compare
e3f4d59
to
d86065c
Compare
Fixes #262