1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-27 08:23:24 +00:00

Added clone release type

This commit is contained in:
M66B 2020-03-28 09:39:02 +01:00
parent 00091b9b26
commit 2cef677367

View file

@ -213,12 +213,18 @@ public class Log {
if (BuildConfig.DEBUG) if (BuildConfig.DEBUG)
config.setReleaseStage("debug"); config.setReleaseStage("debug");
else { else {
String type = "other"; String type;
if (Helper.hasValidFingerprint(context)) if (Helper.hasValidFingerprint(context)) {
if (BuildConfig.PLAY_STORE_RELEASE) if (BuildConfig.PLAY_STORE_RELEASE)
type = "play"; type = "play";
else else
type = "full"; type = "full";
} else {
if (BuildConfig.APPLICATION_ID.startsWith("eu.faircode.email"))
type = "other";
else
type = "clone";
}
config.setReleaseStage(type + (BuildConfig.BETA_RELEASE ? "/beta" : "")); config.setReleaseStage(type + (BuildConfig.BETA_RELEASE ? "/beta" : ""));
} }