|
@@ -46,6 +46,8 @@ import java.util.Arrays;
|
46
|
46
|
import java.util.List;
|
47
|
47
|
|
48
|
48
|
class ReactInstanceManagerHolder {
|
|
49
|
+ private static final String TAG = ReactInstanceManagerHolder.class.getSimpleName();
|
|
50
|
+
|
49
|
51
|
/**
|
50
|
52
|
* FIXME (from linter): Do not place Android context classes in static
|
51
|
53
|
* fields (static reference to ReactInstanceManager which has field
|
|
@@ -110,7 +112,6 @@ class ReactInstanceManagerHolder {
|
110
|
112
|
new com.corbt.keepawake.KCKeepAwakePackage(),
|
111
|
113
|
new com.facebook.react.shell.MainReactPackage(),
|
112
|
114
|
new com.reactnativecommunity.clipboard.ClipboardPackage(),
|
113
|
|
- new com.giphyreactnativesdk.GiphyReactNativeSdkPackage(),
|
114
|
115
|
new com.reactnativecommunity.netinfo.NetInfoPackage(),
|
115
|
116
|
new com.reactnativepagerview.PagerViewPackage(),
|
116
|
117
|
new com.oblador.performance.PerformancePackage(),
|
|
@@ -146,6 +147,17 @@ class ReactInstanceManagerHolder {
|
146
|
147
|
packages.add((ReactPackage)constructor.newInstance());
|
147
|
148
|
} catch (Exception e) {
|
148
|
149
|
// Ignore any error, the module is not compiled when LIBRE_BUILD is enabled.
|
|
150
|
+ Log.d(TAG, "Not loading AmplitudeReactNativePackage");
|
|
151
|
+ }
|
|
152
|
+
|
|
153
|
+ // GiphyReactNativeSdkPackage
|
|
154
|
+ try {
|
|
155
|
+ Class<?> giphyPackageClass = Class.forName("com.giphyreactnativesdk.GiphyReactNativeSdkPackage");
|
|
156
|
+ Constructor constructor = giphyPackageClass.getConstructor();
|
|
157
|
+ packages.add((ReactPackage)constructor.newInstance());
|
|
158
|
+ } catch (Exception e) {
|
|
159
|
+ // Ignore any error, the module is not compiled when LIBRE_BUILD is enabled.
|
|
160
|
+ Log.d(TAG, "Not loading GiphyReactNativeSdkPackage");
|
149
|
161
|
}
|
150
|
162
|
|
151
|
163
|
// RNGoogleSignInPackage
|
|
@@ -155,6 +167,7 @@ class ReactInstanceManagerHolder {
|
155
|
167
|
packages.add((ReactPackage)constructor.newInstance());
|
156
|
168
|
} catch (Exception e) {
|
157
|
169
|
// Ignore any error, the module is not compiled when LIBRE_BUILD is enabled.
|
|
170
|
+ Log.d(TAG, "Not loading RNGoogleSignInPackage");
|
158
|
171
|
}
|
159
|
172
|
|
160
|
173
|
return packages;
|
|
@@ -240,7 +253,7 @@ class ReactInstanceManagerHolder {
|
240
|
253
|
return;
|
241
|
254
|
}
|
242
|
255
|
|
243
|
|
- Log.d(ReactInstanceManagerHolder.class.getCanonicalName(), "initializing RN with Application");
|
|
256
|
+ Log.d(TAG, "initializing RN with Application");
|
244
|
257
|
|
245
|
258
|
reactInstanceManager
|
246
|
259
|
= ReactInstanceManager.builder()
|