-
Notifications
You must be signed in to change notification settings - Fork 27
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
Let user update the app #355
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well, but I think a few code changes would be good.
Please try to get it working on the foss build also (should just be putting the fileprovider in main/AndroidManifest.xml
)
Can the APK also be deleted after updating?
app/src/main/java/com/odysee/app/ui/findcontent/AllContentFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/odysee/app/ui/findcontent/AllContentFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/odysee/app/ui/findcontent/AllContentFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/odysee/app/ui/findcontent/AllContentFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/odysee/app/ui/findcontent/AllContentFragment.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do these changes to the layout file do? (In f8c16ee)
How is this expected to work?After a new version is released -I mean, after |
I see, that makes sense. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Can merge when it's ready.
# Conflicts: # app/src/main/res/layout/fragment_all_content.xml
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Issue Number:
#328
What is the current behavior?
For packages installed not from Play Store or FDroid, user needs to manually download the app and install it
What is the new behavior?
The app will show a snackbar when a new version is released, allowing user to install it
Notes
This PR requires that certain file exists on the update server. That file must be have a JSON format. The specification is documented on this PR code.
JSON file name and hosting can be changed. In order for this to be tested, I used my own web server, where I put a JSON file and an APK built from master branch but with a version code of 17.
To avoid accidental updates of the app while developing, the code will not run for DEBUG builds. In order to test this PR, you will need to comment out the corresponding code which checks for DEBUG builds.
New version code checking will run once every 24 hours, but user could still force the checking by quiting the app and restarting it.