Skip to content

Commit 899e7cd

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Remove Flipper from codebase (#41002)
Summary: Pull Request resolved: #41002 Following up the deprecation of Flipper in 0.73 and preparing for the removal of Flipper in 0.74, we are removing Flipper integration from the Codebase. ## Changelog: [iOS][Breaking] - Remove the Flipper integration Reviewed By: dmytrorykun Differential Revision: D50321255 fbshipit-source-id: d2f4488ada7acdbd3687f54db4204ba7f09370af
1 parent 5678422 commit 899e7cd

File tree

10 files changed

+57
-506
lines changed

10 files changed

+57
-506
lines changed

packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.mm

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,8 @@
2626
#import <React/RCTSurfaceHostingProxyRootView.h>
2727
#endif
2828

29-
#ifdef FB_SONARKIT_ENABLED
30-
#import <FlipperKit/FlipperClient.h>
31-
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
32-
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
33-
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
34-
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
35-
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
36-
37-
static void InitializeFlipper(UIApplication *application)
38-
{
39-
FlipperClient *client = [FlipperClient sharedClient];
40-
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
41-
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application
42-
withDescriptorMapper:layoutDescriptorMapper]];
43-
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
44-
[client addPlugin:[FlipperKitReactPlugin new]];
45-
[client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
46-
[client start];
47-
}
48-
#endif
49-
5029
void RCTAppSetupPrepareApp(UIApplication *application, BOOL turboModuleEnabled)
5130
{
52-
#ifdef FB_SONARKIT_ENABLED
53-
InitializeFlipper(application);
54-
#endif
55-
5631
#if RCT_NEW_ARCH_ENABLED
5732
RCTEnableTurboModule(turboModuleEnabled);
5833
#endif

packages/react-native/scripts/cocoapods/__tests__/flipper-test.rb

Lines changed: 0 additions & 149 deletions
This file was deleted.

packages/react-native/scripts/cocoapods/__tests__/utils-test.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
require "test/unit"
77
require_relative "../utils.rb"
8-
require_relative "../flipper.rb"
98
require_relative "./test_utils/PodMock.rb"
109
require_relative "./test_utils/InstallerMock.rb"
1110
require_relative "./test_utils/EnvironmentMock.rb"
@@ -101,7 +100,6 @@ def test_getDefaultFlag_whenOldArchitecture()
101100
assert_equal(flags, {
102101
:fabric_enabled => false,
103102
:hermes_enabled => true,
104-
:flipper_configuration => FlipperConfiguration.disabled
105103
})
106104
end
107105

@@ -117,7 +115,6 @@ def test_getDefaultFlag_whenOldArchitectureButHermesDisabled()
117115
assert_equal(flags, {
118116
:fabric_enabled => false,
119117
:hermes_enabled => false,
120-
:flipper_configuration => FlipperConfiguration.disabled
121118
})
122119
end
123120

@@ -132,7 +129,6 @@ def test_getDefaultFlag_whenNewArchitecture()
132129
assert_equal(flags, {
133130
:fabric_enabled => true,
134131
:hermes_enabled => true,
135-
:flipper_configuration => FlipperConfiguration.disabled
136132
})
137133
end
138134

@@ -148,7 +144,6 @@ def test_getDefaultFlag_whenNewArchitectureButHermesDisabled()
148144
assert_equal(flags, {
149145
:fabric_enabled => true,
150146
:hermes_enabled => false,
151-
:flipper_configuration => FlipperConfiguration.disabled
152147
})
153148
end
154149

packages/react-native/scripts/cocoapods/flipper.rb

Lines changed: 0 additions & 107 deletions
This file was deleted.

packages/react-native/scripts/cocoapods/utils.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def self.get_default_flags
2323
flags = {
2424
:fabric_enabled => false,
2525
:hermes_enabled => true,
26-
:flipper_configuration => FlipperConfiguration.disabled
2726
}
2827

2928
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
@@ -269,14 +268,6 @@ def self.updateOSDeploymentTarget(installer)
269268
pod_to_update = Set.new([
270269
"boost",
271270
"CocoaAsyncSocket",
272-
"Flipper",
273-
"Flipper-DoubleConversion",
274-
"Flipper-Fmt",
275-
"Flipper-Boost-iOSX",
276-
"Flipper-Folly",
277-
"Flipper-Glog",
278-
"Flipper-PeerTalk",
279-
"FlipperKit",
280271
"fmt",
281272
"libevent",
282273
"OpenSSL-Universal",

0 commit comments

Comments
 (0)