👨‍🏫 Tutorial JSON APP UPDATER

R A D Z

Forum Veteran

Radz App Updater 2024

Radz App Updater 2024 is an Android library that helps developers to keep their apps up-to-date by checking for updates automatically. It fetches the latest version details from a provided JSON file and prompts the user to update the app if a new version is available.

1714977457021.webp
1714977473668.webp

How to Include​

Step 1. Add the repository to your project settings.gradle:

Code:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
maven { url = uri("https://jitpack.io") }
    }
}

Step 2. Add the dependency​

Code:
dependencies {
implementation ("com.github.Radzdevteam:artifact:1.1")
}

Usage​

In your MainActivity, add the following code to check for updates:
Code:
new RadzUpdater(this, "https://raw.githubusercontent.com/Radzdevteam/JSON-APP-UPDATER/master/updater.json").checkForUpdates();

JSON Format​

The JSON file at the provided URL should have the following format:
Code:
{
  "latestVersion": "2.0.1",
  "url": "https://github.com/Radzdevteam/RadzUpdater2024/radzupdater.apk",
  "releaseNotes": [
    "- Bug fixes"
  ]
}

Source: You do not have permission to view the full content of this post. Log in or register now.
 

About this Thread

  • 0
    Replies
  • 350
    Views
  • 1
    Participants
Last reply from:
R A D Z

Online now

Members online
1,057
Guests online
1,587
Total visitors
2,644

Forum statistics

Threads
2,273,398
Posts
28,949,244
Members
1,235,732
Latest member
toniodgreat
Back
Top