feat: add plugins management (#3909)
This commit is contained in:
@@ -137,6 +137,7 @@ dependencies {
|
||||
}
|
||||
|
||||
implementation project(':react-native-video')
|
||||
implementation project(':react-native-video-plugin-sample')
|
||||
|
||||
constraints {
|
||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {
|
||||
|
@@ -14,6 +14,7 @@ import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
||||
import com.facebook.react.defaults.DefaultReactNativeHost
|
||||
import com.facebook.soloader.SoLoader
|
||||
import com.brentvatne.react.ReactVideoPackage
|
||||
import com.videopluginsample.VideoPluginSamplePackage
|
||||
|
||||
class MainApplication : Application(), ReactApplication {
|
||||
|
||||
@@ -24,6 +25,7 @@ class MainApplication : Application(), ReactApplication {
|
||||
// Packages that cannot be autolinked yet can be added manually here, for example:
|
||||
// add(MyReactNativePackage())
|
||||
add(ReactVideoPackage())
|
||||
add(VideoPluginSamplePackage())
|
||||
}
|
||||
|
||||
override fun getJSMainModuleName(): String = "src/index"
|
||||
|
@@ -2,6 +2,9 @@ rootProject.name = 'videoplayer'
|
||||
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
||||
include ':app'
|
||||
|
||||
include ':react-native-video-plugin-sample'
|
||||
project (':react-native-video-plugin-sample').projectDir = new File(rootProject.projectDir, '../../react-native-video-plugin-sample/android')
|
||||
|
||||
include ':react-native-video'
|
||||
project (':react-native-video').projectDir = new File(rootProject.projectDir, '../../../android')
|
||||
|
||||
|
Reference in New Issue
Block a user