properly load sqlite module

This commit is contained in:
Ari Lazier 2016-02-17 11:55:27 -08:00
parent 66ac82bb34
commit 5e9c0c12d2
3 changed files with 8 additions and 1 deletions

View File

@ -123,5 +123,7 @@ dependencies {
compile "com.facebook.react:react-native:0.19.+"
compile project(":realm")
compile project(':react-native-sqlite-storage')
compile fileTree(dir: "node_modules/realm/android/libs", include: ["*.jar"])
}

View File

@ -8,6 +8,7 @@ import java.util.Arrays;
import java.util.List;
import io.realm.react.RealmReactPackage;
import org.pgsqlite.SQLitePluginPackage;
public class MainActivity extends ReactActivity {
@ -36,7 +37,7 @@ public class MainActivity extends ReactActivity {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(), new RealmReactPackage()
new MainReactPackage(), new RealmReactPackage(), new SQLitePluginPackage(this)
);
}
}

View File

@ -5,3 +5,7 @@ include ':app'
// realm dependency
include ':realm'
project(':realm').projectDir = new File(rootProject.projectDir, '../node_modules/realm/android')
include ':react-native-sqlite-storage'
project(':react-native-sqlite-storage').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sqlite-storage/src/android')