From ac0e183d209125f49f3946274f77d40ee7b8cee6 Mon Sep 17 00:00:00 2001 From: MrRefactor Date: Tue, 10 Sep 2024 08:50:04 +0200 Subject: [PATCH 1/3] Add hybrid app support --- RNLiveMarkdown.podspec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RNLiveMarkdown.podspec b/RNLiveMarkdown.podspec index a22f0de0..9d636d08 100644 --- a/RNLiveMarkdown.podspec +++ b/RNLiveMarkdown.podspec @@ -31,10 +31,10 @@ Pod::Spec.new do |s| install_modules_dependencies(s) if ENV['USE_FRAMEWORKS'] && ENV['RCT_NEW_ARCH_ENABLED'] - add_dependency(s, "React-Fabric", :additional_framework_paths => [ + add_dependency(s, "React-FabricComponents", :additional_framework_paths => [ "react/renderer/textlayoutmanager/platform/ios", - "react/renderer/components/textinput/iostextinput", - ]) + "react/renderer/components/textinput/platform/ios", + ]); end s.subspec "common" do |ss| From a7dd0c3d698401af3f888b425fe9dacf56008eb1 Mon Sep 17 00:00:00 2001 From: MrRefactor Date: Tue, 10 Sep 2024 20:11:53 +0200 Subject: [PATCH 2/3] Update env values checks --- RNLiveMarkdown.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RNLiveMarkdown.podspec b/RNLiveMarkdown.podspec index 9d636d08..d4866e26 100644 --- a/RNLiveMarkdown.podspec +++ b/RNLiveMarkdown.podspec @@ -30,11 +30,11 @@ Pod::Spec.new do |s| install_modules_dependencies(s) - if ENV['USE_FRAMEWORKS'] && ENV['RCT_NEW_ARCH_ENABLED'] + if ENV['USE_FRAMEWORKS'] == 'static' && ENV['RCT_NEW_ARCH_ENABLED'] == '1' add_dependency(s, "React-FabricComponents", :additional_framework_paths => [ "react/renderer/textlayoutmanager/platform/ios", "react/renderer/components/textinput/platform/ios", - ]); + ]) end s.subspec "common" do |ss| From 3742fd5a6e7f4dd2c9631d22bca212542c8d6dd0 Mon Sep 17 00:00:00 2001 From: Jakub Sys <32591413+MrRefactor@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:24:32 +0200 Subject: [PATCH 3/3] Update RNLiveMarkdown.podspec Co-authored-by: Tomek Zawadzki --- RNLiveMarkdown.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNLiveMarkdown.podspec b/RNLiveMarkdown.podspec index d4866e26..f2601e76 100644 --- a/RNLiveMarkdown.podspec +++ b/RNLiveMarkdown.podspec @@ -30,7 +30,7 @@ Pod::Spec.new do |s| install_modules_dependencies(s) - if ENV['USE_FRAMEWORKS'] == 'static' && ENV['RCT_NEW_ARCH_ENABLED'] == '1' + if ENV['USE_FRAMEWORKS'] != nil && ENV['RCT_NEW_ARCH_ENABLED'] == '1' add_dependency(s, "React-FabricComponents", :additional_framework_paths => [ "react/renderer/textlayoutmanager/platform/ios", "react/renderer/components/textinput/platform/ios",