This repository contains the entire source code, built using ViroReact and React Native, for Viro Media App. Available on Google Play and App Store.
Follow steps outlined on our official docs here to learn how to use these apps.
- First head to https://github.com/viromedia/viro and follow instructions to build our Viro React node module.
- Install our react-viro node_module →
npm install <path to react-viro-*.tgz from step 1>
. - Install rest of the node modules →
npm install
- Apply patches → ./applyPatch.sh (not doing this would result in hot reloading not working in the iOS app)
- Install pods →
cd ios pod install
- Open iOS workspace located at ios/ViroMediaApp.xcworkspace
- (Optional)Update version string in the app located in TestBedEntryViewController.m
- Select ViroMediaApp target in XCode located at top left.
- Change the build configuration for the scheme from 'Debug' to 'Release' 8 Select the plugged in device and hit play. The app should build and install on device.
- Steps #1 through #4 above are common for both iOS and Android. So you don't have to go through them if you built iOS first. If not, go through #1 - #4 above
- Open Android studio project for the testbed app located in
android/app
. And build moduleapp
. - Open README in changes directory in the repo and verifiy all the changes mentioned there are present in your app
- You can build the app from command line too using
./gradlew assembleGvrRelease
from withinandroid
folder. Install the generated apk (from app/build/outputs/apk/gvr/release/ folder).