Dashbug

Additional

Language
Java
Version
1.0.0 (Mar 13, 2018)
Created
Mar 12, 2018
Updated
Apr 17, 2018
Owner
Lazar Jelic (jelic98)
Contributor
Lazar Jelic (jelic98)
1
Activity
Badge
Generate
Download
Source code
APK file

Commercial

Dashbug

Android library that lets developers modify configuration class(es) at runtime. Useful in situations when app's behaviour changes depending on fields in configuration class like theme switcher, user credentials, various flags, etc. Developers can alter these fields without recompiling source code.

Demo

Installing

  1. Add repository in root build.gradle
    allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }
  1. Add the dependency
    dependencies {
        compile 'com.github.jelic98:dashbug:1.0.0'
    }

Usage

Construction

    // provide configuration class
    Dashbug db = new Dashbug(AppConfig.class);
    // show notification
    db.start(this, getApplicationContext());

Getting single field

    String value = db.getField("COUNT");

Getting all fields

    Map<String, String> fields = db.getFields();
    for(String name : fields.keySet()) {
        Log.i(TAG, "Name: " + name + ", Value: " + fields.get(name));
    }

Setting single field

    db.setField("COUNT", "123");