mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 22:36:01 +00:00
Update apps to use React Native 0.22
React is now a peer dependency, which means we need to add it to our package.json for npm v3 to work properly.
This commit is contained in:
parent
d62f78050e
commit
c9c941aac9
@ -6,7 +6,8 @@
|
|||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-native": "^0.21.0",
|
"react": "^0.14.5",
|
||||||
|
"react-native": "^0.22.0",
|
||||||
"realm": "file:../.."
|
"realm": "file:../.."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-native": "^0.21.0",
|
"react": "^0.14.5",
|
||||||
|
"react-native": "^0.22.0",
|
||||||
"react-native-sqlite-storage": "^2.1.3",
|
"react-native-sqlite-storage": "^2.1.3",
|
||||||
"react-native-store": "^0.4.1",
|
"react-native-store": "^0.4.1",
|
||||||
"realm": "file:../.."
|
"realm": "file:../.."
|
||||||
|
@ -12,6 +12,10 @@ allprojects {
|
|||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
maven {
|
||||||
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
||||||
|
url "$projectDir/../../tests/react-test-app/node_modules/react-native/android"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,9 +291,8 @@ afterEvaluate { project ->
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
||||||
compile 'com.facebook.react:react-native:0.20.+'
|
compile 'com.facebook.react:react-native:+' // From node_modules
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,10 @@ allprojects {
|
|||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
maven {
|
||||||
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
||||||
|
url "$projectDir/../../react-native/android"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,5 +55,5 @@ android {
|
|||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
||||||
compile 'com.facebook.react:react-native:0.20.+'
|
compile 'com.facebook.react:react-native:+' // From node_modules
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,6 @@ buildscript {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.3.1'
|
classpath 'com.android.tools.build:gradle:1.3.1'
|
||||||
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
|
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
@ -17,8 +16,9 @@ allprojects {
|
|||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
jcenter()
|
jcenter()
|
||||||
jcenter {
|
maven {
|
||||||
url "http://dl.bintray.com/mkonicek/maven"
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
||||||
|
url "$projectDir/../../node_modules/react-native/android"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-native": "^0.21.0",
|
"react": "^0.14.5",
|
||||||
|
"react-native": "^0.22.0",
|
||||||
"react-native-fs": "^1.1.0",
|
"react-native-fs": "^1.1.0",
|
||||||
"xmlbuilder": "^4.2.1",
|
"xmlbuilder": "^4.2.1",
|
||||||
"realm": "file:../..",
|
"realm": "file:../..",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user