From f8daccffc061e2f05f6605913c19d4aa807eaddb Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 9 Nov 2020 15:37:31 +0100 Subject: initial auto-update implementation: introducing fatweb flavor, pgpverify go library and bitmask core library, basic update mechanism --- .../appUpdate/DownloadBroadcastReceiver.java | 18 ++++++++++++++++++ .../appUpdate/DownloadServiceCommand.java | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadBroadcastReceiver.java create mode 100644 app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadServiceCommand.java (limited to 'app/src/notFatweb/java/se') diff --git a/app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadBroadcastReceiver.java b/app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadBroadcastReceiver.java new file mode 100644 index 00000000..7adbb85d --- /dev/null +++ b/app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadBroadcastReceiver.java @@ -0,0 +1,18 @@ +package se.leap.bitmaskclient.appUpdate; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; + +/** + * DownloadBroadcastReceiver is only implemented in Fatweb builds + * + */ +public class DownloadBroadcastReceiver extends BroadcastReceiver { + + public static final String ACTION_DOWNLOAD = "se.leap.bitmaskclient.appUpdate.ACTION_DOWNLOAD"; + @Override + public void onReceive(Context context, Intent intent) { + + } +} diff --git a/app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadServiceCommand.java b/app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadServiceCommand.java new file mode 100644 index 00000000..157f04fe --- /dev/null +++ b/app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadServiceCommand.java @@ -0,0 +1,19 @@ +package se.leap.bitmaskclient.appUpdate; + +import android.content.Context; + +/** + * DownloadServiceCommand is only implemented in Fatweb builds + * + */ +public class DownloadServiceCommand { + + public final static String + CHECK_VERSION_FILE = "checkVersionFile", + DOWNLOAD_UPDATE = "downloadUpdate"; + + + public static void execute(Context context, String action) { + // DO NOTHING. + } +} -- cgit v1.2.3