|
4 | 4 | import android.content.Context; |
5 | 5 | import com.facebook.react.PackageList; |
6 | 6 | import com.facebook.react.ReactApplication; |
| 7 | +import com.facebook.react.ReactInstanceManager; |
7 | 8 | import com.facebook.react.ReactNativeHost; |
8 | 9 | import com.facebook.react.ReactPackage; |
9 | | -import com.facebook.react.ReactInstanceManager; |
10 | 10 | import com.facebook.soloader.SoLoader; |
| 11 | +import com.reactnativequicksqlite.SequelPackage; |
11 | 12 | import java.lang.reflect.InvocationTargetException; |
12 | 13 | import java.util.List; |
13 | | -import com.reactnativequicksqlite.SequelPackage; |
14 | 14 |
|
15 | 15 | public class MainApplication extends Application implements ReactApplication { |
16 | 16 |
|
17 | | - private final ReactNativeHost mReactNativeHost = |
18 | | - new ReactNativeHost(this) { |
19 | | - @Override |
20 | | - public boolean getUseDeveloperSupport() { |
21 | | - return BuildConfig.DEBUG; |
22 | | - } |
| 17 | + private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { |
| 18 | + @Override |
| 19 | + public boolean getUseDeveloperSupport() { |
| 20 | + return BuildConfig.DEBUG; |
| 21 | + } |
23 | 22 |
|
24 | | - @Override |
25 | | - protected List<ReactPackage> getPackages() { |
26 | | - @SuppressWarnings("UnnecessaryLocalVariable") |
27 | | - List<ReactPackage> packages = new PackageList(this).getPackages(); |
28 | | - packages.add(new SequelPackage()); |
29 | | - return packages; |
30 | | - } |
| 23 | + @Override |
| 24 | + protected List<ReactPackage> getPackages() { |
| 25 | + @SuppressWarnings("UnnecessaryLocalVariable") |
| 26 | + List<ReactPackage> packages = new PackageList(this).getPackages(); |
| 27 | + return packages; |
| 28 | + } |
31 | 29 |
|
32 | | - @Override |
33 | | - protected String getJSMainModuleName() { |
34 | | - return "index"; |
35 | | - } |
36 | | - }; |
| 30 | + @Override |
| 31 | + protected String getJSMainModuleName() { |
| 32 | + return "index"; |
| 33 | + } |
| 34 | + }; |
37 | 35 |
|
38 | 36 | @Override |
39 | 37 | public ReactNativeHost getReactNativeHost() { |
|
0 commit comments