Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/Tflite.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifdef RCT_NEW_ARCH_ENABLED

#import "RNTfliteSpec.h"
#import <RNTfliteSpec/RNTfliteSpec.h>
@interface Tflite : NSObject <NativeRNTfliteSpec>
@end

Expand Down
10 changes: 5 additions & 5 deletions react-native-fast-tflite.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ Pod::Spec.new do |s|
# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
s.pod_target_xcconfig = {
# Merge with existing pod_target_xcconfig to preserve TensorFlow Lite settings
s.pod_target_xcconfig = s.pod_target_xcconfig.merge({
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
}
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1"
})
s.dependency "React-Codegen"
s.dependency "RCT-Folly"
s.dependency "RCT-RCTFabric"
s.dependency "RCTRequired"
s.dependency "RCTTypeSafety"
s.dependency "ReactCommon/turbomodule/core"
Expand Down