File tree 3 files changed +51
-10
lines changed
3 files changed +51
-10
lines changed Original file line number Diff line number Diff line change @@ -496,6 +496,12 @@ case "$product-$platform-$method" in
496
496
497
497
Storage-* -xcodebuild)
498
498
pod_gen FirebaseStorage.podspec --platforms=ios
499
+
500
+ # Add GoogleService-Info.plist to generated Test Wrapper App.
501
+ ruby ./scripts/update_xcode_target.rb gen/FirebaseStorage/Pods/Pods.xcodeproj \
502
+ AppHost-FirebaseStorage-Unit-Tests \
503
+ ../../../FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist
504
+
499
505
if check_secrets; then
500
506
# Integration tests are only run on iOS to minimize flake failures.
501
507
RunXcodebuild \
@@ -518,6 +524,12 @@ case "$product-$platform-$method" in
518
524
519
525
StorageSwift-* -xcodebuild)
520
526
pod_gen FirebaseStorageSwift.podspec --platforms=ios
527
+
528
+ # Add GoogleService-Info.plist to generated Test Wrapper App.
529
+ ruby ./scripts/update_xcode_target.rb gen/FirebaseStorageSwift/Pods/Pods.xcodeproj \
530
+ AppHost-FirebaseStorageSwift-Unit-Tests \
531
+ ../../../FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist
532
+
521
533
if check_secrets; then
522
534
# Integration tests are only run on iOS to minimize flake failures.
523
535
RunXcodebuild \
Original file line number Diff line number Diff line change 46
46
" FirebaseFirestore\\ .podspec" ,
47
47
" CMakeLists\\ .txt" ,
48
48
" cmake/.*" ,
49
- " scripts/binary_to_array\\ .py" ,
50
- " scripts/build\\ .sh" ,
51
- " scripts/install_prereqs\\ .sh" ,
52
- " scripts/localize_podfile\\ .swift" ,
53
- " scripts/pod_lib_lint\\ .rb" ,
54
- " scripts/run_firestore_emulator\\ .sh" ,
55
- " scripts/setup_[^/]+" ,
56
- " scripts/sync_project\\ .rb" ,
57
- " scripts/test_quickstart\\ .sh" ,
58
- " scripts/xcresult_logs\\ .py" ,
59
49
" \\ .github/workflows/firestore\\ .yml" ,
60
50
" Gemfile"
61
51
]
Original file line number Diff line number Diff line change
1
+
2
+ #!/usr/bin/env ruby
3
+
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+
18
+ # Script to add a file to an Xcode target.
19
+ # Adapted from https://github.com/firebase/quickstart-ios/blob/master/scripts/info_script.rb
20
+
21
+ require 'xcodeproj'
22
+ project_path = ARGV [ 0 ]
23
+ target = ARGV [ 1 ]
24
+ file_name = ARGV [ 2 ]
25
+
26
+ project = Xcodeproj ::Project . open ( project_path )
27
+
28
+ # Add a file to the project in the main group
29
+ file = project . new_file ( file_name )
30
+
31
+ # Add the file to the all targets
32
+ project . targets . each do |t |
33
+ if t . to_s == target
34
+ t . add_file_references ( [ file ] )
35
+ end
36
+ end
37
+
38
+ #save project
39
+ project . save ( )
You can’t perform that action at this time.
0 commit comments