Commit 4d7cbcd8 authored by Takashi Aoki's avatar Takashi Aoki
Browse files

fix package name mismatch

parent 1c07048b
Loading
Loading
Loading
Loading
+0 −2
Changes for Examples/VideoPlayer/android/settings.gradle: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -3,5 +3,3 @@ rootProject.name = 'VideoPlayer'
include ':app'
include ':react-native-video'
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')
+6 −5
Changes for README.md: 6 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -29,20 +29,21 @@ If you would like to allow other apps to play music over your video component, a

#### Android

First, copy your video file to `android/app/src/main/res/raw/`, then
make the following additions to the given files:
Install [rnpm](https://github.com/rnpm/rnpm) and run `rnpm link react-native-video`

Or if you have trouble using [rnpm](https://github.com/rnpm/rnpm), make the following additions to the given files manually:

**android/settings.gradle**
```
include ':RCTVideo', ':app'
project(':RCTVideo').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
```

**android/app/build.gradle**
```
dependencies {
   ...
   compile project(':RCTVideo')
   compile project(':react-native-video')
}
```

+1 −1
Changes for android/src/main/AndroidManifest.xml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.brentvatne.RCTVideo">
          package="com.brentvatne.react">
</manifest>