fix: Remove RN Skia dependency on Android for now
This commit is contained in:
parent
f227a3e396
commit
61f19df500
@ -17,11 +17,6 @@ find_package(fbjni REQUIRED CONFIG)
|
||||
find_package(react-native-worklets REQUIRED CONFIG)
|
||||
find_library(LOG_LIB log)
|
||||
|
||||
# Skia is optional, if it's enabled we link it.
|
||||
if (ENABLE_SKIA_INTEGRATION)
|
||||
find_package(shopify_react-native-skia REQUIRED CONFIG)
|
||||
endif()
|
||||
|
||||
# Add react-native-vision-camera sources
|
||||
add_library(
|
||||
${PACKAGE_NAME}
|
||||
@ -60,11 +55,3 @@ target_link_libraries(
|
||||
fbjni::fbjni # <-- fbjni
|
||||
react-native-worklets::rnworklets # <-- RN Worklets
|
||||
)
|
||||
|
||||
# Skia is optional. If it's enabled, we link it
|
||||
if (ENABLE_SKIA_INTEGRATION)
|
||||
target_link_libraries(
|
||||
${PACKAGE_NAME}
|
||||
shopify_react-native-skia::rnskia # <-- RN Skia
|
||||
)
|
||||
endif()
|
||||
|
@ -66,8 +66,6 @@ static def findNodeModules(baseDir) {
|
||||
}
|
||||
|
||||
def nodeModules = findNodeModules(projectDir)
|
||||
def isSkiaInstalled = findProject(":shopify_react-native-skia") != null
|
||||
logger.warn("react-native-vision-camera: Skia integration is ${isSkiaInstalled ? "enabled" : "disabled"}!")
|
||||
|
||||
repositories {
|
||||
google()
|
||||
@ -101,8 +99,7 @@ android {
|
||||
cmake {
|
||||
cppFlags "-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all"
|
||||
arguments "-DANDROID_STL=c++_shared",
|
||||
"-DNODE_MODULES_DIR=${nodeModules}",
|
||||
"-DENABLE_SKIA_INTEGRATION=${isSkiaInstalled}"
|
||||
"-DNODE_MODULES_DIR=${nodeModules}"
|
||||
abiFilters (*reactNativeArchitectures())
|
||||
}
|
||||
}
|
||||
@ -160,10 +157,6 @@ dependencies {
|
||||
implementation "androidx.exifinterface:exifinterface:1.3.3"
|
||||
|
||||
implementation project(":react-native-worklets")
|
||||
|
||||
if (isSkiaInstalled) {
|
||||
implementation project(":shopify_react-native-skia")
|
||||
}
|
||||
}
|
||||
|
||||
// Resolves "LOCAL_SRC_FILES points to a missing file, Check that libfb.so exists or that its path is correct".
|
||||
|
Loading…
Reference in New Issue
Block a user