Merge pull request #207 from nfl/fix-packagename-android
fix package name mismatch for Android
This commit is contained in:
commit
5221c948d5
@ -3,5 +3,3 @@ rootProject.name = 'VideoPlayer'
|
|||||||
include ':app'
|
include ':app'
|
||||||
include ':react-native-video'
|
include ':react-native-video'
|
||||||
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
|
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
|
||||||
include ':RCTVideo', ':app'
|
|
||||||
project(':RCTVideo').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
|
|
||||||
|
11
README.md
11
README.md
@ -29,20 +29,21 @@ If you would like to allow other apps to play music over your video component, a
|
|||||||
|
|
||||||
#### Android
|
#### Android
|
||||||
|
|
||||||
First, copy your video file to `android/app/src/main/res/raw/`, then
|
Install [rnpm](https://github.com/rnpm/rnpm) and run `rnpm link react-native-video`
|
||||||
make the following additions to the given files:
|
|
||||||
|
Or if you have trouble using [rnpm](https://github.com/rnpm/rnpm), make the following additions to the given files manually:
|
||||||
|
|
||||||
**android/settings.gradle**
|
**android/settings.gradle**
|
||||||
```
|
```
|
||||||
include ':RCTVideo', ':app'
|
include ':react-native-video'
|
||||||
project(':RCTVideo').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
|
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
|
||||||
```
|
```
|
||||||
|
|
||||||
**android/app/build.gradle**
|
**android/app/build.gradle**
|
||||||
```
|
```
|
||||||
dependencies {
|
dependencies {
|
||||||
...
|
...
|
||||||
compile project(':RCTVideo')
|
compile project(':react-native-video')
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.brentvatne.RCTVideo">
|
package="com.brentvatne.react">
|
||||||
</manifest>
|
</manifest>
|
||||||
|
Loading…
Reference in New Issue
Block a user