Skip to content

Commit

Permalink
fix: make apps build correctly on new arch
Browse files Browse the repository at this point in the history
  • Loading branch information
WoLewicki committed Aug 21, 2023
1 parent 7cfb73b commit 3b6a387
Show file tree
Hide file tree
Showing 8 changed files with 558 additions and 471 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ react {
// The list of variants to that are debuggable. For those we're going to
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
// debuggableVariants = ["liteDebug", "prodDebug"]
debuggableVariants = ["developmentDebug", "productionDebug"]

/* Bundling */
// A list containing the node command and its flags. Default is just 'node'.
Expand Down
268 changes: 161 additions & 107 deletions ios/NewExpensify.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug AdHoc"
buildConfiguration = "DebugAdHoc"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
Expand All @@ -75,7 +75,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug AdHoc"
buildConfiguration = "DebugAdHoc"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand All @@ -96,7 +96,7 @@
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release AdHoc"
buildConfiguration = "ReleaseAdHoc"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
Expand All @@ -113,10 +113,10 @@
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug AdHoc">
buildConfiguration = "DebugAdHoc">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release AdHoc"
buildConfiguration = "ReleaseAdHoc"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug Development"
buildConfiguration = "DebugDevelopment"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
Expand All @@ -41,7 +41,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug Development"
buildConfiguration = "DebugDevelopment"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand All @@ -62,7 +62,7 @@
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release Development"
buildConfiguration = "ReleaseDevelopment"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
Expand All @@ -79,10 +79,10 @@
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug Development">
buildConfiguration = "DebugDevelopment">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release Development"
buildConfiguration = "ReleaseDevelopment"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug Production"
buildConfiguration = "DebugProduction"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
Expand All @@ -75,7 +75,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release Production"
buildConfiguration = "ReleaseProduction"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand All @@ -96,7 +96,7 @@
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release Production"
buildConfiguration = "ReleaseProduction"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
Expand All @@ -113,10 +113,10 @@
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug Production">
buildConfiguration = "DebugProduction">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release Production"
buildConfiguration = "ReleaseProduction"
customArchiveName = "New Expensify"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
Expand Down
14 changes: 7 additions & 7 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ prepare_react_native_project!
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(['Debug Production', 'Debug Development', 'Debug AdHoc'])
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(['DebugProduction', 'DebugDevelopment', 'DebugAdHoc'])

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Expand Down Expand Up @@ -54,12 +54,12 @@ target 'NewExpensify' do
permissions_path = '../node_modules/react-native-permissions/ios'

project 'NewExpensify',
'Debug Development' => :debug,
'Debug AdHoc' => :debug,
'Debug Production' => :debug,
'Release Development' => :release,
'Release AdHoc' => :release,
'Release Production' => :release
'DebugDevelopment' => :debug,
'DebugAdHoc' => :debug,
'DebugProduction' => :debug,
'ReleaseDevelopment' => :release,
'ReleaseAdHoc' => :release,
'ReleaseProduction' => :release

pod 'Permission-LocationAccuracy', :path => "#{permissions_path}/LocationAccuracy"
pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
Expand Down
Loading

0 comments on commit 3b6a387

Please sign in to comment.