Skip to content

BradPatras/basic-remote-configs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Maven Central spm version

basic-remote-configs 🛰📝

Bare-bones remote config platform for android and iOS. Motivation for this project is having simple remote configs in my app projects where pulling in Firebase would be overkill.

Android library repo: brc-android

iOS library repo: brc-ios

Config file format

Configs are in JSON format. Compatible data types include integer, string, boolean, null, and array(integer|string|boolean). Nested objects are not supported.

Example of config format

{
  "ver": 1,
  "someFlag": false,
  "someMessage": "Welcome to easy config!",
  "nullValue": null,
  "arrayOfWords": ["super", "duper", "simple", "configs"]
}

ver is an integer value representing the config file's version. It's not required, but if it's present the client libraries will use this value when deciding if their local cache needs updating.

In practice

This repo is hosting an example config json file. This example config is currently being consumed by the Android and iOS library's sample apps.

🔐   Both libraries allow for custom request headers to facilitate auth tokens or whatever else you might need.

Check out the individual android/iOS library pages for language-specific examples of the library in action.

Releases

No releases published