From f7ed34532a3d7c5e19243af1e81a7e22eb16661b Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 25 Jan 2018 02:47:37 +0100 Subject: [PATCH] Fabric-Log combo init to get an idea of user count. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index bc27a3ebbc..32a91a7a73 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -3,6 +3,9 @@ package info.nightscout.androidaps.plugins.PumpCombo; import android.os.SystemClock; import android.support.annotation.NonNull; +import com.crashlytics.android.answers.Answers; +import com.crashlytics.android.answers.CustomEvent; + import org.json.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -344,6 +347,8 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf } private synchronized void initializePump() { + Answers.getInstance().logCustom(new CustomEvent("ComboInit") + .putCustomAttribute("buildversion", BuildConfig.BUILDVERSION)); long maxWait = System.currentTimeMillis() + 15 * 1000; while (!ruffyScripter.isPumpAvailable()) { log.debug("Waiting for ruffy service to come up ...");