diff --git a/syng-im/.re-natal b/syng-im/.re-natal
index a2d7bb8ecd..7cd8ae4ffa 100644
--- a/syng-im/.re-natal
+++ b/syng-im/.re-natal
@@ -2,7 +2,14 @@
"name": "SyngIm",
"interface": "reagent",
"androidHost": "localhost",
- "modules": [],
+ "modules": [
+ "react-native-contacts",
+ "react-native-invertible-scroll-view",
+ "awesome-phonenumber",
+ "realm",
+ "react-native-loading-spinner-overlay",
+ "react-native-i18n"
+ ],
"imageDirs": [
"images"
]
diff --git a/syng-im/android/app/build.gradle b/syng-im/android/app/build.gradle
index 4e18332089..8c1f179166 100644
--- a/syng-im/android/app/build.gradle
+++ b/syng-im/android/app/build.gradle
@@ -121,5 +121,12 @@ android {
dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
- compile "com.facebook.react:react-native:0.20.+"
+ compile "com.facebook.react:react-native:+" // From node_modules
+ compile project(':react-native-contacts')
+ compile project(':react-native-i18n')
+// compile(name:'geth', ext:'aar')
+ compile(group: 'syng-im', name: 'android-geth', version: '1.4.0-201603131817-92d65cf', ext: 'aar')
+
+ compile project(":realm")
+ compile fileTree(dir: "node_modules/realm/android/libs", include: ["*.jar"])
}
diff --git a/syng-im/android/app/src/main/AndroidManifest.xml b/syng-im/android/app/src/main/AndroidManifest.xml
index e37bcf1487..c56b2f64b8 100644
--- a/syng-im/android/app/src/main/AndroidManifest.xml
+++ b/syng-im/android/app/src/main/AndroidManifest.xml
@@ -2,6 +2,8 @@
package="com.syngim">
+
+
getPackages() {
- return Arrays.asList(
- new MainReactPackage()
- );
+ return Arrays.asList(
+ new MainReactPackage(),
+ new ReactNativeContacts(),
+ new ReactNativeI18n(),
+ new RealmReactPackage()
+ );
}
}
diff --git a/syng-im/android/build.gradle b/syng-im/android/build.gradle
index ccdfc4e3dc..f05bf1a9b7 100644
--- a/syng-im/android/build.gradle
+++ b/syng-im/android/build.gradle
@@ -16,5 +16,16 @@ allprojects {
repositories {
mavenLocal()
jcenter()
+ maven {
+ // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
+ url "$projectDir/../../node_modules/react-native/android"
+ }
+ // for geth
+ flatDir {
+ dirs 'libs'
+ }
+ maven {
+ url "http://85.90.244.96:8081/artifactory/libs-release-local"
+ }
}
}
diff --git a/syng-im/android/settings.gradle b/syng-im/android/settings.gradle
index cd1419cf76..34c3013fea 100644
--- a/syng-im/android/settings.gradle
+++ b/syng-im/android/settings.gradle
@@ -1,3 +1,12 @@
rootProject.name = 'SyngIm'
include ':app'
+
+include ':react-native-contacts'
+project(':react-native-contacts').projectDir = new File(settingsDir, '../node_modules/react-native-contacts/android')
+
+include ':react-native-i18n'
+project(':react-native-i18n').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-i18n/android')
+// realm dependency
+include ':realm'
+project(':realm').projectDir = new File(rootProject.projectDir, '../node_modules/realm/android')
diff --git a/syng-im/package.json b/syng-im/package.json
index 610f7436e9..d344ac3d49 100644
--- a/syng-im/package.json
+++ b/syng-im/package.json
@@ -6,6 +6,12 @@
"start": "node_modules/react-native/packager/packager.sh"
},
"dependencies": {
- "react-native": "0.20.0"
+ "awesome-phonenumber": "^1.0.12",
+ "react-native": "^0.22.0",
+ "react-native-contacts": "^0.2.1",
+ "react-native-i18n": "0.0.8",
+ "react-native-invertible-scroll-view": "^0.2.0",
+ "react-native-loading-spinner-overlay": "0.0.6",
+ "realm": "^0.10.0"
}
}
\ No newline at end of file
diff --git a/syng-im/project.clj b/syng-im/project.clj
index 404396e54c..3133ba4b7d 100644
--- a/syng-im/project.clj
+++ b/syng-im/project.clj
@@ -7,7 +7,8 @@
[org.clojure/clojurescript "1.7.170"]
[reagent "0.5.1" :exclusions [cljsjs/react]]
[re-frame "0.6.0"]
- [prismatic/schema "1.0.4"]]
+ [prismatic/schema "1.0.4"]
+ [syng-im/protocol "0.1.1"]]
:plugins [[lein-cljsbuild "1.1.1"]
[lein-figwheel "0.5.0-2"]]
:clean-targets ["target/" "index.ios.js" "index.android.js"]