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

Use date field if year/month/day is not set #16

Open
reox opened this issue Oct 25, 2019 · 1 comment
Open

Use date field if year/month/day is not set #16

reox opened this issue Oct 25, 2019 · 1 comment

Comments

@reox
Copy link

reox commented Oct 25, 2019

It looks like that many entries use the date field instead of year-month-day. The date field should have the same syntax as

public String getDateFormated() {

If the three separate fields are not set, all these entries are not sorted by date but added at the top.
It would be nice to have the fallback of date field, if no year field is set. JabRef handles this quite nicely.

I would try to fix it myself, but right now I'm fighting with the android sdk on debian ;)

@reox
Copy link
Author

reox commented Nov 26, 2019

As ant seems to be pretty deprecated, I converted everything to gradle and also fixed this bug.
As I never did much Android programming, everything might be a little bit ugly...
But anyways, here is the stuff: https://github.com/reox/library/tree/gradlify

I tested it and I now have every entry with the correct year.
But I fear that all these changes need some care before they get merged.

Is anyone a proper Android app dev and might want to get over all the gradle stuff as well as the changes from support libs to androidx?

btw: I also run a code formatter over all the java files, just if anyone is wondering why the diff is so large. Maybe that wasnt the smartest idea though :D
I also fixed a few deprecation warnings and raised the SDK version.
I also tried to build it with the Debian Android SDK but had no success. There were a lot of weird error messages :(

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

No branches or pull requests

1 participant