aboutsummaryrefslogtreecommitdiffstats
path: root/src/standard/java/de/pixart/messenger/services
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-11-02 15:44:31 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-11-02 15:44:31 +0100
commit7bb48465e21a8468a5a9ed61b81989903c8b36a4 (patch)
treee2c3819e36c108f55722c4d62300a3fded6fdfdd /src/standard/java/de/pixart/messenger/services
parent6e386a8701190aad9e5adfa83c48ef9ea1582f1e (diff)
rename build flavors
Diffstat (limited to 'src/standard/java/de/pixart/messenger/services')
-rw-r--r--src/standard/java/de/pixart/messenger/services/EmojiService.java26
-rw-r--r--src/standard/java/de/pixart/messenger/services/PushManagementService.java37
2 files changed, 0 insertions, 63 deletions
diff --git a/src/standard/java/de/pixart/messenger/services/EmojiService.java b/src/standard/java/de/pixart/messenger/services/EmojiService.java
deleted file mode 100644
index f76cf5a4b..000000000
--- a/src/standard/java/de/pixart/messenger/services/EmojiService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package de.pixart.messenger.services;
-
-import android.content.Context;
-import android.os.Build;
-
-import androidx.emoji.bundled.BundledEmojiCompatConfig;
-import androidx.emoji.text.EmojiCompat;
-
-public class EmojiService {
-
- private final Context context;
-
- public EmojiService(Context context) {
- this.context = context;
- }
-
- public void init(boolean useBundledEmoji) {
- BundledEmojiCompatConfig config = new BundledEmojiCompatConfig(context);
- //On recent Androids we assume to have the latest emojis
- //there are some annoying bugs with emoji compat that make it a safer choice not to use it when possible
- // a) the text preview has annoying glitches when the cut of text contains emojis (the emoji will be half visible)
- // b) can trigger a hardware rendering bug https://issuetracker.google.com/issues/67102093
- config.setReplaceAll(useBundledEmoji && Build.VERSION.SDK_INT < Build.VERSION_CODES.O);
- EmojiCompat.init(config);
- }
-} \ No newline at end of file
diff --git a/src/standard/java/de/pixart/messenger/services/PushManagementService.java b/src/standard/java/de/pixart/messenger/services/PushManagementService.java
deleted file mode 100644
index 9d4673fd3..000000000
--- a/src/standard/java/de/pixart/messenger/services/PushManagementService.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package de.pixart.messenger.services;
-
-import de.pixart.messenger.entities.Account;
-import de.pixart.messenger.entities.Conversation;
-
-public class PushManagementService {
-
- protected final XmppConnectionService mXmppConnectionService;
-
- public PushManagementService(XmppConnectionService service) {
- this.mXmppConnectionService = service;
- }
-
- void registerPushTokenOnServer(Account account) {
- //stub implementation. only affects playstore flavor
- }
-
- void registerPushTokenOnServer(Conversation conversation) {
- //stub implementation. only affects playstore flavor
- }
-
- void unregisterChannel(Account account, String hash) {
- //stub implementation. only affects playstore flavor
- }
-
- void disablePushOnServer(Conversation conversation) {
- //stub implementation. only affects playstore flavor
- }
-
- public boolean available(Account account) {
- return false;
- }
-
- public boolean isStub() {
- return true;
- }
-}