Commit 8c68557c authored by Martin Stovicek's avatar Martin Stovicek

Fix #94 Complete instructions for manual Android installation

parent 92c94a11
...@@ -46,7 +46,7 @@ In XCode, in the project navigator: ...@@ -46,7 +46,7 @@ In XCode, in the project navigator:
In XCode, in the project navigator, select your project. In XCode, in the project navigator, select your project.
- Add the `libRNDeviceInfo.a` from the _deviceinfo_ project to your project's _Build Phases ➜ Link Binary With Libraries_ - Add the `libRNDeviceInfo.a` from the _deviceinfo_ project to your project's _Build Phases ➜ Link Binary With Libraries_
- Click `.xcodeproj` file you added before in the project navigator and go the _Build Settings_ tab. Make sure _All_ is toggled on (instead of _Basic_). - Click `.xcodeproj` file you added before in the project navigator and go the _Build Settings_ tab. Make sure _All_ is toggled on (instead of _Basic_).
- Look for _Header Search Paths_ and make sure it contains both `$(SRCROOT)/../react-native/React` and `$(SRCROOT)/../../React` - Look for _Header Search Paths_ and make sure it contains both `$(SRCROOT)/../react-native/React` and `$(SRCROOT)/../../React`
- Mark both as recursive (should be OK by default). - Mark both as recursive (should be OK by default).
Run your project (Cmd+R) Run your project (Cmd+R)
...@@ -55,6 +55,25 @@ Run your project (Cmd+R) ...@@ -55,6 +55,25 @@ Run your project (Cmd+R)
### Android ### Android
- in `android/app/build.gradle`:
```diff
dependencies {
...
compile "com.facebook.react:react-native:+" // From node_modules
+ compile project(':react-native-device-info')
}
```
- in `android/settings.gradle`:
```diff
...
include ':app'
+ include ':react-native-device-info'
+ project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android')
```
#### With React Native 0.29+ #### With React Native 0.29+
- in `MainApplication.java`: - in `MainApplication.java`:
...@@ -72,7 +91,7 @@ Run your project (Cmd+R) ...@@ -72,7 +91,7 @@ Run your project (Cmd+R)
new MainReactPackage() new MainReactPackage()
); );
} }
...... ......
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment