Skip to content

Commit

Permalink
Merge branch 'fix/flipper_xcode_15.3' into chore/e2e-enable-ios
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliusguzas committed Mar 19, 2024
2 parents 7058387 + 9dde487 commit 5127b2d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/app-harness/src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const AppContent = () => {
<Image
style={styles.logo}
source={ICON_LOGO}
{...testProps('template-starter-home-screen-renative-image')}
{...testProps('app-harness-home-screen-renative-image')}
/>
<Text style={styles.introText} {...testProps('app-harness-home-screen-intro-text')}>
ReNative Harness
Expand Down
4 changes: 2 additions & 2 deletions packages/app-harness/test/specs/e2e.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Test App Harness', () => {
FlexnRunner.launchApp();
});

it('--> check if element has correct text in Home Page', async () => {
await FlexnRunner.expectToHaveTextById('app-harness-home-screen-intro-text', 'ReNative Harness');
it('--> check if ReNative logo is displayed in Home Page', async () => {
await FlexnRunner.expectToBeDisplayedById('app-harness-home-screen-renative-image');
});
});
13 changes: 13 additions & 0 deletions packages/engine-rn-tvos/templates/platforms/tvos/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ post_install do |installer|
:mac_catalyst_enabled => false
)
{{INJECT_POST_INSTALL}}
installer.pods_project.targets.each do |target|
if target.name == 'Flipper'
file_path = 'Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h'
contents = File.read(file_path)
unless contents.include?('#include <functional>')
File.open(file_path, 'w') do |file|
file.puts('#include <functional>')
file.puts(contents)
end
end
end
end
end

{{INJECT_PLUGIN_PODFILE_INJECT}}
13 changes: 13 additions & 0 deletions packages/engine-rn/templates/platforms/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ target 'RNVApp' do
:mac_catalyst_enabled => false
)
{{INJECT_POST_INSTALL}}
installer.pods_project.targets.each do |target|
if target.name == 'Flipper'
file_path = 'Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h'
contents = File.read(file_path)
unless contents.include?('#include <functional>')
File.open(file_path, 'w') do |file|
file.puts('#include <functional>')
file.puts(contents)
end
end
end
end
end
end

Expand Down

0 comments on commit 5127b2d

Please sign in to comment.