-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Android Platform Support #140
Comments
Yeah I do want to support this automatically. But I wanted a concrete thing I could test somehow first. Is there an example Rust program along with perhaps a CI setup that demonstrates the full end to end need here? Basically, I haven't written Rust programs on Android before. I do have a good idea of what needs to be done based on prior art research, but I don't know exactly how I should go about iterating and testing. If someone can help me with that part, then I can do the rest. |
Ok, here’s an example Android app build with Jiff and a Github actions CI workflow. |
Thank you! I managed to get that to work after a lot of faffing about. Holy shit what a complex nightmare. But I think that's enough for me to iterate. Thanks again. |
Oh, is there an easy way to make |
Android support has two prongs: * The special Android concatenated time zone database will now be read by Jiff automatically. * The `persist.sys.timezone` Android property is read to determine the system's configured IANA time zone identifier. Closes #140
Android support has two prongs: * The special Android concatenated time zone database will now be read by Jiff automatically. * The `persist.sys.timezone` Android property is read to determine the system's configured IANA time zone identifier. Closes #140
Android support has two prongs: * The special Android concatenated time zone database will now be read by Jiff automatically. * The `persist.sys.timezone` Android property is read to determine the system's configured IANA time zone identifier. Closes #140
Android support has two prongs: * The special Android concatenated time zone database will now be read by Jiff automatically. * The `persist.sys.timezone` Android property is read to determine the system's configured IANA time zone identifier. Closes #140
Android support has two prongs: * The special Android concatenated time zone database will now be read by Jiff automatically. * The `persist.sys.timezone` Android property is read to determine the system's configured IANA time zone identifier. Closes #140
Android support has two prongs: * The special Android concatenated time zone database will now be read by Jiff automatically. * The `persist.sys.timezone` Android property is read to determine the system's configured IANA time zone identifier. Closes #140
OK, I managed to get this working. It should be available automatically in |
Looks like this does not compile on-device from a Termux shell. There are 5 instances of this error:
|
Wat. Can you open a new issue and give steps for a reproduction please? |
Also, can you include the target triple? |
I created a new issue for that in #200. But would still love a repro that I can follow along with (speaking as someone who has never used termux before) and a target triple so that I can see about adding it to CI. |
Getting the current time works as expected, but using the system Time Zone Database and obtaining the system time zone both require additional crates and lower-level Jiff methods. If Android was supported out of the box, then that would also improve ergonomics for cross-platform Android/iOS projects, since Jiff's API could be used the same way on both targets.
On Android, the Time Zone Database is in an Android-specific format. The
android-tzdata
crate provides TZif data for a time zone name.The system time zone can be obtained with the
iana-time-zone
crate.The text was updated successfully, but these errors were encountered: