2017-09-12 12:39:15 +02:00
|
|
|
/* Copyright (C) 2016-2017 Andreas Shimokawa, AnthonyDiGirolamo, Daniele
|
2017-10-16 09:38:02 +02:00
|
|
|
Gobbetti, Frank Slezak, Kaz Wolfe, Kevin Richter
|
2017-03-10 14:53:19 +01:00
|
|
|
|
|
|
|
This file is part of Gadgetbridge.
|
|
|
|
|
|
|
|
Gadgetbridge is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published
|
|
|
|
by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Gadgetbridge is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
2017-03-10 13:43:47 +01:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.model;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
public class AppNotificationType extends HashMap<String, NotificationType> {
|
|
|
|
|
|
|
|
private static AppNotificationType _instance;
|
|
|
|
|
|
|
|
public static AppNotificationType getInstance() {
|
|
|
|
if (_instance == null) {
|
|
|
|
return (_instance = new AppNotificationType());
|
|
|
|
}
|
|
|
|
|
|
|
|
return _instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
private AppNotificationType() {
|
|
|
|
// Generic Email
|
|
|
|
put("com.fsck.k9", NotificationType.GENERIC_EMAIL);
|
2017-03-16 17:24:15 +01:00
|
|
|
put("com.fsck.k9.material", NotificationType.GENERIC_EMAIL);
|
2017-03-11 10:23:57 +01:00
|
|
|
put("com.imaeses.squeaky", NotificationType.GENERIC_EMAIL);
|
2017-03-10 13:43:47 +01:00
|
|
|
put("com.android.email", NotificationType.GENERIC_EMAIL);
|
|
|
|
|
|
|
|
// Generic SMS
|
|
|
|
put("com.moez.QKSMS", NotificationType.GENERIC_SMS);
|
|
|
|
put("com.android.mms", NotificationType.GENERIC_SMS);
|
|
|
|
put("com.android.messaging", NotificationType.GENERIC_SMS);
|
|
|
|
put("com.sonyericsson.conversations", NotificationType.GENERIC_SMS);
|
|
|
|
put("org.smssecure.smssecure", NotificationType.GENERIC_SMS);
|
|
|
|
|
2017-04-21 12:39:18 +02:00
|
|
|
// Generic Calendar
|
|
|
|
put("com.android.calendar", NotificationType.GENERIC_CALENDAR);
|
|
|
|
|
2017-08-28 04:21:45 +02:00
|
|
|
// Google
|
|
|
|
put("com.google.android.gm", NotificationType.GMAIL);
|
|
|
|
put("com.google.android.apps.inbox", NotificationType.GOOGLE_INBOX);
|
|
|
|
put("com.google.android.calendar", NotificationType.GENERIC_CALENDAR);
|
2017-08-28 19:14:06 +02:00
|
|
|
put("com.google.android.apps.messaging", NotificationType.GOOGLE_MESSENGER);
|
2017-09-14 07:10:22 +02:00
|
|
|
put("com.google.android.talk", NotificationType.GOOGLE_HANGOUTS);
|
|
|
|
put("com.google.android.apps.maps", NotificationType.GOOGLE_MAPS);
|
|
|
|
put("com.google.android.apps.photos", NotificationType.GOOGLE_PHOTOS);
|
2017-08-28 04:21:45 +02:00
|
|
|
|
2017-03-10 13:43:47 +01:00
|
|
|
// Conversations
|
|
|
|
put("eu.siacs.conversations", NotificationType.CONVERSATIONS);
|
|
|
|
|
|
|
|
// Riot
|
|
|
|
put("im.vector.alpha", NotificationType.RIOT);
|
|
|
|
|
|
|
|
// Signal
|
|
|
|
put("org.thoughtcrime.securesms", NotificationType.SIGNAL);
|
|
|
|
|
|
|
|
// Telegram
|
|
|
|
put("org.telegram.messenger", NotificationType.TELEGRAM);
|
|
|
|
|
2017-12-27 08:59:09 +01:00
|
|
|
// Threema
|
2017-12-27 09:19:17 +01:00
|
|
|
put("ch.threema.app", NotificationType.THREEMA);
|
2017-12-27 08:59:09 +01:00
|
|
|
|
2017-03-10 13:43:47 +01:00
|
|
|
// Twitter
|
|
|
|
put("org.mariotaku.twidere", NotificationType.TWITTER);
|
|
|
|
put("com.twitter.android", NotificationType.TWITTER);
|
|
|
|
put("org.andstatus.app", NotificationType.TWITTER);
|
|
|
|
put("org.mustard.android", NotificationType.TWITTER);
|
|
|
|
|
|
|
|
// Facebook
|
|
|
|
put("me.zeeroooo.materialfb", NotificationType.FACEBOOK);
|
|
|
|
put("it.rignanese.leo.slimfacebook", NotificationType.FACEBOOK);
|
|
|
|
put("me.jakelane.wrapperforfacebook", NotificationType.FACEBOOK);
|
|
|
|
put("com.facebook.katana", NotificationType.FACEBOOK);
|
|
|
|
put("org.indywidualni.fblite", NotificationType.FACEBOOK);
|
|
|
|
|
|
|
|
// Facebook Messenger
|
|
|
|
put("com.facebook.orca", NotificationType.FACEBOOK_MESSENGER);
|
2017-12-02 23:54:16 +01:00
|
|
|
put("com.facebook.mlite", NotificationType.FACEBOOK_MESSENGER);
|
2017-03-10 13:43:47 +01:00
|
|
|
|
|
|
|
// WhatsApp
|
|
|
|
put("com.whatsapp", NotificationType.WHATSAPP);
|
2017-09-14 07:10:22 +02:00
|
|
|
|
|
|
|
// HipChat
|
|
|
|
put("com.hipchat", NotificationType.HIPCHAT);
|
|
|
|
|
|
|
|
// Skype
|
|
|
|
put("com.skype.raider", NotificationType.SKYPE);
|
|
|
|
|
|
|
|
// Mailbox
|
|
|
|
put("com.mailboxapp", NotificationType.MAILBOX);
|
|
|
|
|
|
|
|
// Snapchat
|
|
|
|
put("com.snapchat.android", NotificationType.SNAPCHAT);
|
|
|
|
|
|
|
|
// WeChat
|
|
|
|
put("com.tencent.mm", NotificationType.WECHAT);
|
|
|
|
|
|
|
|
// Viber
|
|
|
|
put("com.viber.voip", NotificationType.VIBER);
|
|
|
|
|
|
|
|
// Instagram
|
|
|
|
put("com.instagram.android", NotificationType.INSTAGRAM);
|
|
|
|
|
|
|
|
// Kik
|
|
|
|
put("kik.android", NotificationType.KIK);
|
|
|
|
|
|
|
|
// Line
|
|
|
|
put("jp.naver.line.android", NotificationType.LINE);
|
|
|
|
|
|
|
|
// BBM
|
|
|
|
put("com.bbm", NotificationType.BBM);
|
|
|
|
|
|
|
|
// Microsoft Outlook
|
|
|
|
put("com.microsoft.office.outlook", NotificationType.OUTLOOK);
|
|
|
|
|
2018-01-08 15:28:57 +01:00
|
|
|
// Business Calendar
|
|
|
|
put("com.appgenix.bizcal", NotificationType.BUSINESS_CALENDAR);
|
|
|
|
|
2017-09-14 07:10:22 +02:00
|
|
|
// Yahoo Mail
|
|
|
|
put("com.yahoo.mobile.client.android.mail", NotificationType.YAHOO_MAIL);
|
|
|
|
|
|
|
|
// Kakao Talk
|
|
|
|
put("com.kakao.talk", NotificationType.KAKAO_TALK);
|
|
|
|
|
|
|
|
// Amazon
|
|
|
|
put("com.amazon.mshop.android.shopping", NotificationType.AMAZON);
|
|
|
|
|
|
|
|
// LinkedIn
|
|
|
|
put("com.linkedin.android", NotificationType.LINKEDIN);
|
|
|
|
|
|
|
|
// Slack
|
|
|
|
put("com.slack", NotificationType.SLACK);
|
2017-09-19 13:24:31 +02:00
|
|
|
|
|
|
|
// Transit
|
|
|
|
put("com.thetransitapp.droid", NotificationType.TRANSIT);
|
2017-11-27 16:44:06 +01:00
|
|
|
|
|
|
|
// Etar
|
|
|
|
put("ws.xsoh.etar", NotificationType.GENERIC_CALENDAR);
|
2017-03-10 13:43:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|