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

Migrated project to AndroidX #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

leso-kn
Copy link

@leso-kn leso-kn commented Feb 1, 2022

Hi!

First of all, thanks for creating Floral! It's a really nice gallery app!

Summary

This PR contains a version of the code, migrated to AndroidX.

About

When attempting to launch the app installed from F-Droid, I was experiencing some crashes at first - considering logcat, this seems to be due to vital resources being stripped out of the apk at build time (probably by proguard). Trying to compile the app I noticed, I was actually unable to create a successful build from the latest code on master due to a lot of 'class not found' errors.

Eventually I managed to fix that by migrating most parts of the project to using androidx rather than the legacy support library, using the approach described here.

So far I did not notice any trouble when running the migrated app. The resulting build has the enableJetifier and useAndroidX settings enabled and requires much fewer manual implementation statements to the legacy support library in build.gradle.

Note though(!) that I did not take the time to migrate the proguard rules. Since the current ones were causing troubles, I have commented them out in this commit.

Result

I'd like to offer the migration I did as a PR. Since the migration includes renaming most class names to their respective names in the androidx. namespace, the main commit involves a lot of changes, certainly.
However it might be a necessary step, since it appears like with the current version of android SDK (whatever ever changed), it seems like the previous version of the code cannot be built out of the box anymore.

Other fixes in this PR

  • Added executable permission (-x) to gradlew (linux and macOS)

@leso-kn leso-kn changed the title Migrate to androidx Migrated project to androidx Feb 1, 2022
@leso-kn leso-kn changed the title Migrated project to androidx Migrated project to AndroidX Feb 1, 2022
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.

1 participant