|
| 1 | +# Firebase Apple Scripts |
| 2 | + |
| 3 | +This directory provides a set of scripts for development, test, and continuous |
| 4 | +integration of the Firebase Apple SDKs. |
| 5 | + |
| 6 | +## [check.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check.sh) |
| 7 | + |
| 8 | +Used by the |
| 9 | +[check CI workflow](https://github.com/firebase/firebase-ios-sdk/blob/master/.github/workflows/check.yml) |
| 10 | +to run several static analysis checks. It calls the following scripts: |
| 11 | + |
| 12 | +### [style.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/style.sh) |
| 13 | + |
| 14 | +Runs clang-format and swiftformat across the repo. |
| 15 | + |
| 16 | +### [check_whitespace.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check_whitespace.sh) |
| 17 | + |
| 18 | +Verify there are no files with trailing whitespace. |
| 19 | + |
| 20 | +### [check_filename_spaces.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check_filename_spaces.sh) |
| 21 | + |
| 22 | +Spaces in filenames are not allowed. |
| 23 | + |
| 24 | +### [check_copyright.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check_copyright.sh) |
| 25 | + |
| 26 | +Verify existence and format of copyrights. |
| 27 | + |
| 28 | +### [check_test_inclusion.py](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check_test_inclusion.py) |
| 29 | + |
| 30 | +Test existence check for the internal Firestore Xcode project. |
| 31 | + |
| 32 | +### [check_imports.swift](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check_imports.swift) |
| 33 | + |
| 34 | +Verify import style complies with |
| 35 | +[repo standards](https://github.com/firebase/firebase-ios-sdk/blob/master/HeadersImports.md). |
| 36 | + |
| 37 | +### [check_firestore_core_api_absl.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check_firestore_core_api_absl.sh) |
| 38 | + |
| 39 | +Check Firestore `absl` usages for g3 build issues. |
| 40 | + |
| 41 | +### [check_lint.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check_lint.sh) |
| 42 | + |
| 43 | +Run cpplint. |
| 44 | + |
| 45 | +### [sync_project.rb](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/sync_project.rb) |
| 46 | + |
| 47 | +Used by Firestore to to keep the Xcode project in sync after adding/removing tests. |
| 48 | + |
| 49 | +## Other Scripts |
| 50 | +### [binary_to_array.py](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/binary_to_array.py) |
| 51 | + |
| 52 | +Firestore script to convert binary data into a C/C++ array. |
| 53 | + |
| 54 | +### [build.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/build.sh) |
| 55 | + |
| 56 | +Script used by CI jobs to wrap xcodebuild invocations with options. |
| 57 | + |
| 58 | +### [build_non_firebase_sdks.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/build.sh) |
| 59 | + |
| 60 | +CI script to build binary versions of non-Firebase SDKs for QuickStart testing. |
| 61 | + |
| 62 | +### [build_zip.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/build_zip.sh) |
| 63 | + |
| 64 | +CI script for building the zip distribution. |
| 65 | + |
| 66 | +### [buildcache.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/buildcache.sh) |
| 67 | + |
| 68 | +Clang options for the buildcache GitHub action. |
| 69 | + |
| 70 | +### [change_headers.swift](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/change_headers.swift) |
| 71 | + |
| 72 | +Utility script to update source to repo-relative headers. |
| 73 | + |
| 74 | +### [check_secrets.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/check_secrets.sh) |
| 75 | + |
| 76 | +CI script to test if secrets are available (not running on a fork). |
| 77 | + |
| 78 | +### [collect_metrics.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/collect_metrics.sh) |
| 79 | + |
| 80 | +CI script to collect project health metrics and upload them to a database. |
| 81 | + |
| 82 | +### [configure_test_keychain.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/configure_test_keychain.sh) |
| 83 | + |
| 84 | +CI script to setup the keychain for macOS and Catalyst testing. |
| 85 | + |
| 86 | +### [cpplint.py](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/cpplint.py) |
| 87 | + |
| 88 | +Firestore script for C++ linting. |
| 89 | + |
| 90 | +### [create_pull_request.rb](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/create_pull_request.rb) |
| 91 | + |
| 92 | +Utility used by CI scripts to create issues and PRs. |
| 93 | + |
| 94 | +### [decrypt_gha_secret.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/decrypt_gha_secret.sh) |
| 95 | + |
| 96 | +CI script to decrypt a GitHub Actions secret. |
| 97 | + |
| 98 | +### [encrypt_gha_secret.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/encrypt_gha_secret.sh) |
| 99 | + |
| 100 | +CI script to encrypt a GitHub Actions secret. |
| 101 | + |
| 102 | +### [fuzzing_ci.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/fuzzing_ci.sh) |
| 103 | + |
| 104 | +Firestore CI script to run fuzz testing. |
| 105 | + |
| 106 | +### [generate_access_token.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/generate_access_token.sh) |
| 107 | + |
| 108 | +Script to generate a Firebase access token used by Remote config integration tests. |
| 109 | + |
| 110 | +### [install_prereqs.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scriptsinstall_prereqs.sh) |
| 111 | + |
| 112 | +Utility CI script to provide configuration for build.sh |
| 113 | + |
| 114 | +### [localize_podfile.swift](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/localize_podfile.swift) |
| 115 | + |
| 116 | +Utility script to update a Podfile to point to local podspecs. |
| 117 | + |
| 118 | +### [make_release_notes.py](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/make_release_notes.py) |
| 119 | + |
| 120 | +Converts GitHub-flavored markdown changelogs to devsite-compatible release notes. |
| 121 | + |
| 122 | +### [pod_lib_lint.rb](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/pod_lib_lint.rb) |
| 123 | + |
| 124 | +Wrapper script for running `pod lib lint` tests to include dependencies from the monorepo. |
| 125 | + |
| 126 | +### [release_testing_setup.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/release_testing_setup.sh) |
| 127 | + |
| 128 | +Utility script for the release workflow. |
| 129 | + |
| 130 | +### [remove_data.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/remove_data.sh) |
| 131 | + |
| 132 | +Cleanup script for CI workflows. |
| 133 | + |
| 134 | +### [run_database_emulator.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/run_database_emulator.sh) |
| 135 | + |
| 136 | +Run the RTDB emulator. |
| 137 | + |
| 138 | +### [run_firestore_emulator.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/run_firestore_emulator.sh) |
| 139 | + |
| 140 | +Run the Firestore emulator. |
| 141 | + |
| 142 | +### [setup_bundler.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/setup_bundler.sh) |
| 143 | + |
| 144 | +Set up the Ruby bundler. |
| 145 | + |
| 146 | +### [setup_check.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/setup_check.sh) |
| 147 | + |
| 148 | +Install tooling for the check workflow. |
| 149 | + |
| 150 | +### [setup_quickstart.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/setup_quickstart.sh) |
| 151 | + |
| 152 | +Set up a QuickStart for integration testing. |
| 153 | + |
| 154 | +### [setup_quickstart_framework.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/setup_quickstart_framework.sh) |
| 155 | + |
| 156 | +Set up a QuickStart for zip distribution testing. |
| 157 | + |
| 158 | +### [setup_spm_tests.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/setup_spm_tests.sh) |
| 159 | + |
| 160 | +Configuration for SPM testing. |
| 161 | + |
| 162 | +### [spm_test_schemes/](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/spm_test_schemes) |
| 163 | + |
| 164 | +Schemes used by above script to enable test target schemes. |
| 165 | + |
| 166 | +### [test_archiving.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/test_archiving.sh) |
| 167 | + |
| 168 | +Test Xcode Archive build. |
| 169 | + |
| 170 | +### [test_catalyst.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/test_catalyst.sh) |
| 171 | + |
| 172 | +Test catalyst build. |
| 173 | + |
| 174 | +### [test_quickstart.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/test_quickstart.sh) |
| 175 | + |
| 176 | +Test QuickStart. |
| 177 | + |
| 178 | +### [test_quickstart_framework.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/test_quickstart_framework.sh) |
| 179 | + |
| 180 | +Test QuickStart with the zip distribution. |
| 181 | + |
| 182 | +### [update_xcode_target.rb](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/update_xcode_target.rb) |
| 183 | + |
| 184 | +Script to add a file to an Xcode target. |
| 185 | + |
| 186 | +### [xcresult_logs.py](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/xcresult_logs.py) |
| 187 | + |
| 188 | +Tooling used by `build.sh` to get the log output for an `xcodebuild` invocation. |
| 189 | + |
| 190 | +### [zip_quickstart_test.sh](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/zip_quickstart_test.sh) |
| 191 | + |
| 192 | +Run the tests associated with a QuickStart with a zip distribution. |
| 193 | + |
| 194 | +## Script Subdirectories |
| 195 | +### [create_spec_repo](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/create_spec_repo) |
| 196 | + |
| 197 | +Swift utility to build a podspec repo. |
| 198 | + |
| 199 | +### [gha-encrypted](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/gha-encrypted) |
| 200 | + |
| 201 | +Store for GitHub secret encrypted resources. |
| 202 | + |
| 203 | +### [health_metrics](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/health_metrics) |
| 204 | + |
| 205 | +Code coverage and binary size tooling. |
| 206 | + |
| 207 | +### [lib](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/lib) |
| 208 | + |
| 209 | +Support libraries for `xcresult_logs.py`. |
| 210 | + |
| 211 | +### [lldb](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/lldb) |
| 212 | + |
| 213 | +Firestore utilities. |
| 214 | + |
| 215 | +### [third_party](https://github.com/firebase/firebase-ios-sdk/blob/master/scripts/third_party) |
| 216 | + |
| 217 | +Use Travis's MIT licensed retry.sh script. |
0 commit comments