GIST like Remote Config🪁

Using gist as a remote configuration

In this article, we will learn how to use GitHub Gist as a remote storage server (like Firebase Remote Config for Android)

1️⃣We go to github.com and go to Your gists.

2️⃣Create a gist.

3️⃣Fill out the Gist.

Green area you need to enter the name of the gist (usually this is the name of the package of your project).

Red area you need to enter the data that you want to store and then change (usually it is JSON).

5️⃣Create secret gist.

6️⃣Getting data URL.

By pressing raw you should see:

In order for the link to not change when you change the data, you need to delete the line between (raw/……..delete this line……../com.demo.game)

Result:

7️⃣Use (OkHttp, Retrofit, Volley) with this URL to get data.

Example (OkHttp):

PS. Vel_daN: Love what You DO 💚.

--

--

LibGDX | Android | Developer | DragonBones | Enthusiast.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store