👨‍🏫 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
  • 354
    Views
  • 1
    Participants
Last reply from:
R A D Z

Trending Topics

Online now

Members online
599
Guests online
1,141
Total visitors
1,740

Forum statistics

Threads
2,284,847
Posts
29,026,260
Members
1,220,175
Latest member
jsh09
Back
Top