diff options
author | cyBerta <cyberta@riseup.net> | 2020-11-09 15:37:31 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2020-11-09 15:37:31 +0100 |
commit | f8daccffc061e2f05f6605913c19d4aa807eaddb (patch) | |
tree | a9789cd103807debb302d838dc5aef81fc2a4bb6 /app/src/notFatweb/java | |
parent | 9510a267ac90d74fc47977958a67b4e0bd0b5708 (diff) |
initial auto-update implementation: introducing fatweb flavor, pgpverify go library and bitmask core library, basic update mechanism
Diffstat (limited to 'app/src/notFatweb/java')
-rw-r--r-- | app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadBroadcastReceiver.java | 18 | ||||
-rw-r--r-- | app/src/notFatweb/java/se/leap/bitmaskclient/appUpdate/DownloadServiceCommand.java | 19 |
2 files changed, 37 insertions, 0 deletions
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. + } +} |