-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
NotificationsPackage.java
39 lines (33 loc) · 1.32 KB
/
NotificationsPackage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package expo.modules.notifications;
import android.content.Context;
import org.unimodules.core.BasePackage;
import org.unimodules.core.ExportedModule;
import org.unimodules.core.interfaces.SingletonModule;
import java.util.Arrays;
import java.util.List;
import expo.modules.notifications.installationid.InstallationIdProvider;
import expo.modules.notifications.notifications.NotificationManager;
import expo.modules.notifications.notifications.channels.ExpoNotificationChannelsManager;
import expo.modules.notifications.notifications.emitting.NotificationsEmitter;
import expo.modules.notifications.notifications.handling.NotificationsHandler;
import expo.modules.notifications.tokens.PushTokenManager;
import expo.modules.notifications.tokens.PushTokenModule;
public class NotificationsPackage extends BasePackage {
@Override
public List<ExportedModule> createExportedModules(Context context) {
return Arrays.asList(
new PushTokenModule(context),
new NotificationsEmitter(context),
new NotificationsHandler(context),
new InstallationIdProvider(context)
);
}
@Override
public List<SingletonModule> createSingletonModules(Context context) {
return Arrays.asList(
new PushTokenManager(),
new NotificationManager(),
new ExpoNotificationChannelsManager(context)
);
}
}