Commit Graph
50 Commits
Author SHA1 Message Date
Konstantin Varlamov 160f21a6ca Make the language reported via headers configurable (#6264) 2020-08-14 15:21:43 -04:00
Gil feeee48330 Run swiftformat via mint run (#6261)
* 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
2020-08-12 14:50:37 -07:00
Paul Beusterien eabe8d46a0 Update and apply swiftformat fix (#6239) 2020-08-09 14:48:00 -07:00
Paul Beusterien 202df4134d Update swiftformat and control its version via mint (#6229) 2020-08-07 17:05:17 -07:00
Paul Beusterien e2214e2dd3 SPM - Initial Analytics (#6215) 2020-08-06 14:08:25 -07:00
Paul Beusterien 7592ea6402 Ignore SwiftPM gen'd files in style (#6162) 2020-07-30 06:30:24 -07:00
Paul Beusterien 83ff0671ff Updates for bumping swiftformat to 0.44.17 (#6120) 2020-07-23 15:44:55 -07:00
Paul Beusterien 01bf549253 Update formatters (#5933) 2020-06-26 14:34:27 -07:00
Sebastian Schmidt c2fbc77e9e Use secure rules for Firebase Storage Integration tests (#5643) 2020-05-20 12:38:08 -07:00
Gil 7a58eba2e5 Remove firebase/firestore from paths in Firestore/core (#5374)
* 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).
2020-04-20 14:57:34 -07:00
Paul Beusterien df75e500b0 Migrate Auth to canonical directory structure (#5318) 2020-04-08 17:52:56 -07:00
Paul Beusterien b90ddf1339 Limit Swift line lengths to 100 (#5315) 2020-04-08 10:48:24 -07:00
Paul BeusterienandMarek Gilbert 4ea4340285 Upgrade clang-format (#5265)
Co-authored-by: Marek Gilbert <mcg@google.com>
2020-04-03 11:38:31 -07:00
Chuan Ren 9a7754c59e Enable lint for Auth (#5097) 2020-03-17 10:22:29 -07:00
Chen Liang f4ae4a4416 re-enable style script for messaging (#4858) 2020-02-07 14:27:18 -08:00
Ryan Wilson e6cccc3ce6 Fix vendor directory being included in style.sh (#4636) 2020-01-08 15:56:14 -05:00
Maksym Malyhin ef24de0877 style.sh: update clang-format formula in suggestions (#4545) 2019-12-23 11:25:41 -05:00
Gil 341312b15d style.sh generated changes (#4140)
* style.sh generated changes

* Fix style.sh detection of swift formatting issues
2019-10-23 10:58:50 -07:00
Paul Beusterien d8e3a11bb1 Restore Firebase pod to closed source location (#4112) 2019-10-17 09:45:04 -07:00
Paul Beusterien 5895838392 Add Firebase Pod to the repo (#4021) 2019-10-08 14:57:07 -07:00
Gil 847d72759d Fix formatting that was somehow ignored (#4002)
* Fix formatting that somehow was ignored.

* Minor tweaks to style.sh

... reflecting updated source layout.
2019-10-07 09:10:47 -07:00
Sebastian Schmidt 9bfbb9ece0 Enable clang-format for RTDB (#3506) 2019-08-05 13:27:47 -07:00
Hui-Wu 1de21a845f Firestore swift Codable support (#3198)
FirestoreEncoder/Decoder and Timestamp/GeoPoint codable support.
2019-06-19 10:00:17 -04:00
Paul Beusterien f39ac87548 Exclude pod gen output from style.sh (#3143) 2019-06-04 17:23:36 -07:00
Michael Lehenbauer 11b5ddb13d Make scripts/style.sh compatible with newer swiftformat versions (0.38) (#2334)
* 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)
2019-02-01 14:21:38 -08:00
Paul Harter 2c03cf16f7 Example of Firestore working in macOS app (#2241)
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.
2019-01-17 12:37:42 -08:00
Paul Beusterien 7c53489e03 Travis to Xcode 10.1 and clang-format to 8.0.0 (tags/google/stable/2018-08-24) (#2222)
* Travis to Xcode 10.1
* Update to clang-format 8
* Update clang-format homebrew link
* Work around space in filename style.sh issue
2019-01-02 09:27:31 -08:00
Paul Beusterien a36367292d Add Xcode 10 travis testing (#1932) 2018-10-11 19:28:15 -07:00
Paul Beusterien ae30dc8381 Add current version to swiftformat upgrade message (#1724) 2018-08-21 13:18:39 -07:00
Michael Lehenbauer ccd3a142bc Log style.sh clang-format version. (#1680) 2018-08-15 11:00:31 -07:00
Gil 7dbf5caa5f Fix support scripts on Linux (#1385)
* 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
2018-06-06 12:31:37 -07:00
rsgowman ce61f4e0e6 Rename nanopb generated headers from foo.pb.h to foo.nanopb.h (#1371)
This avoids a collision with the libprotobuf generated files.

Also removes the "well-known" cpp protos, relying on libprotobuf to supply these instead.
2018-06-04 13:02:31 -04:00
zxu c1c9fecb6f fix style.sh (#966) 2018-03-22 19:46:20 -04:00
Zsika Phillip 1395c8202b Adds exception for invalid parameter (#931)
* Adds exception for invalid parameter

* Account for differences between find and git output (#932)
2018-03-15 23:28:52 -07:00
Gil b7750b588c Speed up source checks in Travis (#885)
* 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
2018-03-07 09:59:38 -08:00
Gil ac06a94ace Auto-style swift sources (#847)
* Fix bash style issues

* Exclude additional build output directories

* Format swift files with scripts/style.sh

* Reformat swift sources

* Allow swiftformat 0.32.0 on travis
2018-02-26 10:51:58 -08:00
Rich Gowman d29a6db896 style.sh now ignores generated nanopb files 2018-02-06 10:02:30 -05:00
Paul Beusterien c4feb513be style.sh - output unformatted files in test-only and ignore generated config.h (#690) 2018-01-21 13:48:26 -08:00
Gil 128e9cb170 Fix C++ lint errors (#668)
* 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
2018-01-17 10:02:42 -08:00
Paul Beusterien b5454f1a91 Validate clang-format compliance in travis (#648) 2018-01-13 14:53:10 -08:00
Paul Beusterien 91ac9c069d Add test-only option to style.sh (#642) 2018-01-10 19:06:42 -08:00
Michael Lehenbauer 4dd07c6ea0 Add version check to style.sh to make sure folks are running the same version. (#638) 2018-01-10 10:11:46 -08:00
Gil 87ae4f3ecb Fix scripts/style.sh diffs relative to branch name (#608) 2018-01-02 15:04:05 -08:00
Gil 81d2f97b2e Allow clang-format to find Firestore/Source/Auth (#508)
* 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
2017-11-30 09:10:58 -08:00
Gil 5fbad1b2e2 Additional support for C++ sources in Firestore (#462)
* Fix up style from previous PRs
* Clang-format configuration for C++ files
* Add support C++-only sources to the podspec
2017-11-16 12:05:19 -08:00
Sebastian Schmidt 110f0edf9d Clang-formatting Storage 2017-11-09 17:51:21 -08:00
Gil fc9b5447fc Clang-format Objective-C++ too (#419) 2017-11-07 09:42:39 -08:00
Gil bde743ed25 Release 4.3.0 (#327)
Initial release of Firestore at 0.8.0
Bump FirebaseCommunity to 0.1.3
2017-10-03 08:55:22 -07:00
Tejas Deshpande e69e62beb2 Add Apache 2.0 license header to style.sh (#266) 2017-09-13 15:57:52 -07:00
Paul Beusterien 0abd344434 Add clang-format options and script; apply to FirebaseCore (#151) 2017-07-27 11:02:39 -07:00