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

Simplify history cleanup using Instant. #332

Closed

Conversation

Isira-Seneviratne
Copy link
Contributor

@Isira-Seneviratne Isira-Seneviratne commented Mar 27, 2023

  • Enable core library desugaring to allow java.time to be used on API levels < 26.
  • Use Instant and its related classes for the timestamp calculation.
  • Cleanup unused extension methods.

@Koitharu
Copy link
Member

Not sure if it is worth adding desugaring just to use Instant in the only one place.

@Isira-Seneviratne
Copy link
Contributor Author

I thought I would start with a relatively small change, since this is my first contribution to this app.

# Conflicts:
#	app/src/main/kotlin/org/koitharu/kotatsu/core/util/ext/Date.kt
#	app/src/main/kotlin/org/koitharu/kotatsu/shelf/ui/ShelfMenuProvider.kt
@Koitharu
Copy link
Member

I`m not sure we will merge it since I have some concerns about desugaring and how it will affect the build time and apk size

@Isira-Seneviratne
Copy link
Contributor Author

The app size is increased by 170 KB, and there doesn't seem to be much impact on the build time.

@Koitharu Koitharu closed this Jul 1, 2023
@Isira-Seneviratne Isira-Seneviratne deleted the Instant_history branch July 1, 2023 10:07
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.

2 participants