Skip to content

Commit 6c34853

Browse files
committed
Add ignore_whiteboard_rebuild param
1 parent 0cffeec commit 6c34853

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

Podfile

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ target 'Flat' do
4141
pod 'FirebaseCrashlytics'
4242
pod 'Firebase/AnalyticsWithoutAdIdSupport'
4343

44+
ignore_whiteboard_rebuild = ENV["ignore_whiteboard_rebuild"] == "true"
45+
4446
post_install do |installer|
4547
# Fix for XCode 14.3
4648
installer.generated_projects.each do |project|
@@ -51,22 +53,27 @@ target 'Flat' do
5153
end
5254
end
5355

54-
# Rebuild whiteboard bridge with injected code.
55-
system('sh rebuild_whiteboard_bridge.sh $(pwd)')
56-
# Remove the copy resource
57-
installer.pods_project.targets.each do |target|
58-
if target.name == "Whiteboard"
56+
if !ignore_whiteboard_rebuild
57+
# Rebuild whiteboard bridge with injected code.
58+
system('sh rebuild_whiteboard_bridge.sh $(pwd)')
59+
60+
# Remove the copy resource
61+
installer.pods_project.targets.each do |target|
62+
if target.name == "Whiteboard"
5963
puts "===================> Find Whiteboard Target"
6064
build_phase = target.build_phases.find { |bp| bp.display_name == 'Resources' }
6165
build_phase.clear()
6266
puts "===================> Clear copy original Whiteboard Resources"
63-
end
64-
65-
# Remove the original whitebaord resource target
66-
if target.name == 'Whiteboard-Whiteboard'
67+
end
68+
69+
# Remove the original whitebaord resource target
70+
if target.name == 'Whiteboard-Whiteboard'
6771
target.remove_from_project
72+
end
6873
end
69-
74+
end
75+
76+
installer.pods_project.targets.each do |target|
7077
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
7178
target.build_configurations.each do |config|
7279
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,6 @@ SPEC CHECKSUMS:
278278
YYModel: 2a7fdd96aaa4b86a824e26d0c517de8928c04b30
279279
Zip: b3fef584b147b6e582b2256a9815c897d60ddc67
280280

281-
PODFILE CHECKSUM: 4d82fd1a4d030c806c148312bdd83ee97527ca23
281+
PODFILE CHECKSUM: d4a41eb2e40dc3839b7ab4eac23075c6c23b6618
282282

283283
COCOAPODS: 1.12.0

0 commit comments

Comments
 (0)