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

Update and reorganize dependencies #123

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

PatrykMis
Copy link

@PatrykMis PatrykMis commented Dec 5, 2023

As a visually impaired user, I want to express my gratitude for the excellent and helpful app! Instead of sending a traditional "thank you" email, I've taken the initiative to contribute to the Android port. While this isn't a comprehensive overhaul, I've made initial updates.

I've ensured that all dependencies are up-to-date, along with making minor code adjustments to align with recent updates. If you welcome pull requests, I am open to performing further code refactoring, including modernizing deprecated code and making improvements for TalkBack and potentially other screen readers.

All additional explanations are inside commits descriptions.

@jankejc jankejc self-assigned this Mar 2, 2024
jankejc
jankejc previously approved these changes Mar 2, 2024
Copy link
Collaborator

@jankejc jankejc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and it works on API 24, 34.

@jankejc
Copy link
Collaborator

jankejc commented Mar 2, 2024

Thank you very much for your contribution. It is very meaningful to not only congratulate for the app, but literally give something from yourself.

@jankejc
Copy link
Collaborator

jankejc commented Mar 2, 2024

Unfortunetely I see that checks fails and it is something with Gradle version and the navigation-safe-args (if I'm not mistaken). If you are able to correct that it would be great. Until then I don't want to risk the stability of the app.

Signed-off-by: Patryk Miś <foss@patrykmis.com>
* Android Gradle Plugin to v8.2.0
* AndroidX
* TensorFlow Lite
* Fix `LintOptions` deprecation
* Remove clean task: it is already provided by AGP and well-working
* Remove Kapt and other plugins and dependencies that are not being used
* other dependency reorganizations
* remove license clause from build file as it becames highly-customized for this specific app

Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
@PatrykMis
Copy link
Author

Everything should work as expected now. I made further updates and had to bump minSdk to 26 because of latest TensorFlow. The oldest supported Android version is at API level 30, so keeping minSdk as low as 24 is a nonsense. See also: https://gs.statcounter.com/android-version-market-share

@jankejc
Copy link
Collaborator

jankejc commented Mar 4, 2024

Alright, thank you for your fast response. I'm trying to run the app with your changes on branch chore/dependency-updates, but it throws me a problem with Gradle version (max. 8.1.0, but in app/build.gradle there is 8.3.0). Moreover, in this Pull Request there is different stuff in this file. I'm not an expert, but have you merged chore/dependency-updates to your main? I would like to test the app physically, and I am not sure if it is possible without this... I think that in this Pull Request is all the app needs (like it was merged), and I assume it would be just fine, but I don't want to rely on GitHub checks only.

@PatrykMis
Copy link
Author

PatrykMis commented Apr 5, 2024

You need Android Studio Jellyfish or later to successfully build Android project after my update. See the Android Studio compatibility information with AGP (Android Gradle Plugin).

Signed-off-by: Patryk Miś <foss@patrykmis.com>
* Android Gradle Plugin to v8.4.2
* AndroidX
* TensorFlow Lite
* Fix `LintOptions` deprecation
* Remove clean task: it is already provided by AGP and well-working
* Remove Kapt and other plugins and dependencies that are not being used
* other dependency reorganizations
* remove license clause from build file as it becames highly-customized for this specific app

Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
Signed-off-by: Patryk Miś <foss@patrykmis.com>
id 'androidx.navigation.safeargs.kotlin'
}

kotlin {
Copy link
Collaborator

@jankejc jankejc Aug 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PatrykMis
Sorry for my long-time no answer. Is it necessary or is it only for your usage (lines 7-11)? I cannot compile the app with this change and I don't see the sense to change my environment. Any thoughts?

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