From 4d7cbcd8648ad4e298604fcc353508905ef4bc08 Mon Sep 17 00:00:00 2001 From: Takashi Aoki Date: Tue, 3 May 2016 18:23:10 -0700 Subject: [PATCH] fix package name mismatch --- Examples/VideoPlayer/android/settings.gradle | 2 -- README.md | 11 ++++++----- android/src/main/AndroidManifest.xml | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Examples/VideoPlayer/android/settings.gradle b/Examples/VideoPlayer/android/settings.gradle index 941ffdb9..d0702d82 100644 --- a/Examples/VideoPlayer/android/settings.gradle +++ b/Examples/VideoPlayer/android/settings.gradle @@ -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') diff --git a/README.md b/README.md index 48cfbb3e..9f53ccf1 100644 --- a/README.md +++ b/README.md @@ -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') } ``` diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 646df099..3535ad44 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,3 +1,3 @@ + package="com.brentvatne.react">