Auto App Updater
Deprecation notice
This library is no longer actively maintained. If you are looking for similar libraries, consider using AppUpdater.
Library Info
An Android library that allows for easy updating of the app through endpoints such as GitHub, JSON, XML etc.
This works by getting the version info and APK download link from the desired endpoints, and downloading them to a set location on the device. The package installer app is then opened to installed the APK that we had just downloaded. The next time the updater is triggered, the old APKs would be deleted.
The main flow of the process would be as follows:
- Create a Builder of the AutoAppUpdater instance
- Set the update type and update version (through
setUpdateType
andsetUpdateVersion
) - Set the UpdaterDialog that will be shown
- Add from existing Endpoints or add your own custom ones
- Call
Builder.build()
to build the AutoAppUpdater instance - Call
updater.run()
whenever you wish to start the update check for the app
The bulk of the documentation can be found in the wiki.
Installation
This library is available in JCenter and Maven Central. To install, you would need to include the following into your project/build.gradle
:
implementation 'com.pcchin.auto-app-updater:auto-app-updater:1.0.3'
Test endpoints
Certain repos are created on GitHub, Gitea and GitLab to test whether the endpoints are working. Feel free to use them for testing purposes.
Contribution
Any contribution is welcome, feel free to add any issues or pull requests to the repository.
License
This library is licensed under the Apache 2.0 License.
License for semantic versioning implementation (com.vdurmont:semver4j):
The MIT License (MIT)
Copyright (c) 2015-present Vincent DURMONT [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.