-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
ExperiencePackagePicker.java
135 lines (128 loc) · 4.78 KB
/
ExperiencePackagePicker.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
package versioned.host.exp.exponent;
import org.json.JSONObject;
import java.util.Arrays;
import java.util.List;
import org.unimodules.core.interfaces.Package;
import expo.modules.ads.admob.AdMobPackage;
import expo.modules.ads.facebook.AdsFacebookPackage;
import expo.modules.analytics.amplitude.AmplitudePackage;
import expo.modules.analytics.segment.SegmentPackage;
import expo.modules.appauth.AppAuthPackage;
import expo.modules.application.ApplicationPackage;
import expo.modules.av.AVPackage;
import expo.modules.backgroundfetch.BackgroundFetchPackage;
import expo.modules.barcodescanner.BarCodeScannerPackage;
import expo.modules.battery.BatteryPackage;
import expo.modules.brightness.BrightnessPackage;
import expo.modules.calendar.CalendarPackage;
import expo.modules.camera.CameraPackage;
import expo.modules.cellular.CellularPackage;
import expo.modules.errorrecovery.ErrorRecoveryPackage;
import expo.modules.screenorientation.ScreenOrientationPackage;
import expo.modules.imageloader.ImageLoaderPackage;
import expo.modules.sharing.SharingPackage;
import expo.modules.constants.ConstantsPackage;
import expo.modules.contacts.ContactsPackage;
import expo.modules.crypto.CryptoPackage;
import expo.modules.documentpicker.DocumentPickerPackage;
import expo.modules.facebook.FacebookPackage;
import expo.modules.facedetector.FaceDetectorPackage;
import expo.modules.filesystem.FileSystemPackage;
import expo.modules.font.FontLoaderPackage;
import expo.modules.gl.GLPackage;
import expo.modules.google.signin.GoogleSignInPackage;
import expo.modules.haptics.HapticsPackage;
import expo.modules.imagemanipulator.ImageManipulatorPackage;
import expo.modules.imagepicker.ImagePickerPackage;
import expo.modules.intentlauncher.IntentLauncherPackage;
import expo.modules.keepawake.KeepAwakePackage;
import expo.modules.lineargradient.LinearGradientPackage;
import expo.modules.localauthentication.LocalAuthenticationPackage;
import expo.modules.localization.LocalizationPackage;
import expo.modules.location.LocationPackage;
import expo.modules.mailcomposer.MailComposerPackage;
import expo.modules.medialibrary.MediaLibraryPackage;
import expo.modules.network.NetworkPackage;
import expo.modules.payments.stripe.StripePackage;
import expo.modules.permissions.PermissionsPackage;
import expo.modules.print.PrintPackage;
import expo.modules.random.RandomPackage;
import expo.modules.securestore.SecureStorePackage;
import expo.modules.sensors.SensorsPackage;
import expo.modules.sms.SMSPackage;
import expo.modules.speech.SpeechPackage;
import expo.modules.sqlite.SQLitePackage;
import expo.modules.taskManager.TaskManagerPackage;
import expo.modules.videothumbnails.VideoThumbnailsPackage;
import expo.modules.webbrowser.WebBrowserPackage;
import expo.modules.device.DevicePackage;
public class ExperiencePackagePicker {
private static final List<Package> EXPO_MODULES_PACKAGES = Arrays.<Package>asList(
new AVPackage(),
new AdMobPackage(),
new AdsFacebookPackage(),
new AppAuthPackage(),
new ApplicationPackage(),
new AmplitudePackage(),
new BatteryPackage(),
new BackgroundFetchPackage(),
new BarCodeScannerPackage(),
new BrightnessPackage(),
new CalendarPackage(),
new CameraPackage(),
new CellularPackage(),
new ConstantsPackage(),
new ContactsPackage(),
new CryptoPackage(),
new DevicePackage(),
new DocumentPickerPackage(),
new ErrorRecoveryPackage(),
new FacebookPackage(),
new FaceDetectorPackage(),
new FileSystemPackage(),
new FontLoaderPackage(),
new GLPackage(),
new GoogleSignInPackage(),
new HapticsPackage(),
new ImageLoaderPackage(),
new ImageManipulatorPackage(),
new ImagePickerPackage(),
new IntentLauncherPackage(),
new KeepAwakePackage(),
new LinearGradientPackage(),
new LocalAuthenticationPackage(),
new LocalizationPackage(),
new LocationPackage(),
new MailComposerPackage(),
new MediaLibraryPackage(),
new NetworkPackage(),
new PermissionsPackage(),
new PrintPackage(),
new RandomPackage(),
new SMSPackage(),
new SQLitePackage(),
new ScreenOrientationPackage(),
new SecureStorePackage(),
new SegmentPackage(),
new SensorsPackage(),
new SharingPackage(),
new SpeechPackage(),
new StripePackage(),
new TaskManagerPackage(),
new VideoThumbnailsPackage(),
new WebBrowserPackage()
);
/**
* Returns all available packages.
*/
static List<Package> packages() {
return EXPO_MODULES_PACKAGES;
}
/**
* Returns packages filtered based on the app's manifest.
* For now, filtering is not applied but it is on the todo list.
*/
static List<Package> packages(JSONObject manifest) {
return EXPO_MODULES_PACKAGES;
}
}