* Intentional formatting error
* Run swiftformat via mint run
This avoids users needing to bootstrap manually and avoids permission
problems with installation in /usr/local.
* Update documentation
* Adjust setup_check.sh
* Intentional formatting error
* Fix copyright and typo
* Review feedback
* GitHub Actions
* Remove version check for swiftformat
The output of mint run includes details on which versions it is
installing so there's no ambiguity in CI logs.
* explicit bootstrap
* style.sh generated changes
* Manual Xcode project fixups
* Remove `firebase/firestore` from paths in Firestore/core
This renames all Firestore files under `Firestore/core` to remove the
interior `firebase/firestore` directory structure. This is motivated by
build failures under Windows where the filenames of intermediates were
too long.
Concretely:
* `Firebase/core/src/firebase/firestore` becomes `Firebase/core/src`
* `Firebase/core/test/firebase/firestore` becomes
`Firebase/core/test/unit`
Moving the tests into a `unit` subdirectory aligns Firestore with the
directory structure in
[AddNewPod](https://github.com/firebase/firebase-ios-sdk/blob/master/AddNewPod.md),
modified for C++ (see discussion in #3224).
* Log swiftformat version in non-interactive builds.
* Use a mildly-terrible regex for version check to ensure at least 0.35.0 (travis has 0.35.8).
* Include StorageViewController.swift change swiftformat 0.38 makes (but which seems to be compatible with 0.35)
Besides adding a new macOS example to the project, this:
* Adds a search for roots.pem in root of main bundle
* Accepts swiftformat 0.37 in `style.sh`
* Extends the travis_wait from the default 20 mins to 45 to allow for building iOS and macOS.
* Make it possible to run style.sh on Linux
Needs clang-format in a nonstandard location, but can be made to work.
* Fix lint.sh on Linux
* Fix multiline comment error
This avoids a collision with the libprotobuf generated files.
Also removes the "well-known" cpp protos, relying on libprotobuf to supply these instead.
* Factor out a whitespace checking script
* Factor out a copyright checking script
* Rewrite lint.sh to honor revision ranges
* Only restyle files that are part of the PR
* Run C++ lint before builds to fail faster
* Git grep doesn't operate on revision ranges
* style.sh accepts clang-format 6 or 7
* Misc style.sh fixes
* Allow test-only to use a revision; to check your changes since
master:
./scripts/style.sh test-only master
* Avoid diffing deleted files
* 80 columns
* Fix C++ lint errors
* Avoid pruning paths with find
find . -path foo -path bar -path baz is horrifically inefficient;
properly excluding all of FirebaseAuth without excluding
Firestore/Source/Auth ends up taking 1.5 minutes on my machine.
Deleting via sed is much faster.
* Allow a branch name or filenames to be specified on the command line
e.g. ./scripts/style.sh master formats only files changed since master.
* Format Firebase/Source/Auth code
* Use alternate delimeter for path regexen