feat: Support for C++ Frame Processor Plugins by publishing VisionCamera as a prefab (#2251)
* update docs * add prefabs support
This commit is contained in:
@@ -92,6 +92,13 @@ android {
|
||||
|
||||
buildFeatures {
|
||||
prefab true
|
||||
prefabPublishing true
|
||||
}
|
||||
|
||||
prefab {
|
||||
VisionCamera {
|
||||
headers "${project.buildDir}/headers/visioncamera/"
|
||||
}
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
@@ -171,6 +178,14 @@ task deleteCmakeCache() {
|
||||
}
|
||||
}
|
||||
|
||||
task prepareHeaders(type: Copy) {
|
||||
from fileTree('./src/main/cpp').filter { it.isFile() }
|
||||
into "${project.buildDir}/headers/visioncamera/react-native-vision-camera/"
|
||||
includeEmptyDirs = false
|
||||
}
|
||||
|
||||
preBuild.dependsOn(prepareHeaders)
|
||||
|
||||
tasks.configureEach { task ->
|
||||
// C++ build
|
||||
if (task.name.contains("configureCMakeDebug")) {
|
||||
|
Reference in New Issue
Block a user