auto-app-updater

An Android library that allows for easy updating of the app through endpoints such as GitHub, JSON, XML etc.

License

License

Categories

Categories

Auto Application Layer Libs Code Generators
GroupId

GroupId

com.pcchin.auto-app-updater
ArtifactId

ArtifactId

auto-app-updater
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

aar
Description

Description

auto-app-updater
An Android library that allows for easy updating of the app through endpoints such as GitHub, JSON, XML etc.
Project URL

Project URL

https://github.com/pcchin/auto-app-updater
Source Code Management

Source Code Management

https://github.com/pcchin/auto-app-updater

Download auto-app-updater

How to add to project

<!-- https://jarcasting.com/artifacts/com.pcchin.auto-app-updater/auto-app-updater/ -->
<dependency>
    <groupId>com.pcchin.auto-app-updater</groupId>
    <artifactId>auto-app-updater</artifactId>
    <version>1.0.4</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.pcchin.auto-app-updater/auto-app-updater/
implementation 'com.pcchin.auto-app-updater:auto-app-updater:1.0.4'
// https://jarcasting.com/artifacts/com.pcchin.auto-app-updater/auto-app-updater/
implementation ("com.pcchin.auto-app-updater:auto-app-updater:1.0.4")
'com.pcchin.auto-app-updater:auto-app-updater:aar:1.0.4'
<dependency org="com.pcchin.auto-app-updater" name="auto-app-updater" rev="1.0.4">
  <artifact name="auto-app-updater" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.pcchin.auto-app-updater', module='auto-app-updater', version='1.0.4')
)
libraryDependencies += "com.pcchin.auto-app-updater" % "auto-app-updater" % "1.0.4"
[com.pcchin.auto-app-updater/auto-app-updater "1.0.4"]

Dependencies

runtime (4)

Group / Artifact Type Version
androidx.appcompat » appcompat jar 1.1.0
androidx.work » work-runtime jar 2.3.4
com.android.volley : volley jar 1.1.1
com.vdurmont : semver4j jar 3.1.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.13

Project Modules

There are no modules declared in this project.

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:

  1. Create a Builder of the AutoAppUpdater instance
  2. Set the update type and update version (through setUpdateType and setUpdateVersion)
  3. Set the UpdaterDialog that will be shown
  4. Add from existing Endpoints or add your own custom ones
  5. Call Builder.build() to build the AutoAppUpdater instance
  6. 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.

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0