diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..4f53670 --- /dev/null +++ b/.clang-format @@ -0,0 +1,9 @@ +BasedOnStyle: Google +ColumnLimit: 100 +BinPackParameters: false +AllowAllParametersOfDeclarationOnNextLine: true +ObjCSpaceBeforeProtocolList: true +SpacesInContainerLiterals: true +PointerAlignment: Right +AllowShortFunctionsOnASingleLine: None +IncludeBlocks: Preserve diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad3fd9c --- /dev/null +++ b/.gitignore @@ -0,0 +1,50 @@ +# macOS +.DS_Store + +# Xcode +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ +*.xccheckout +profile +*.moved-aside +DerivedData +*.hmap +*.ipa + +# Swift Package Manager +.build +Package.resolved + +# Mint package manager +Mint + +# Vim +*.swo +*.swp +*~ + +# Bundler +/.bundle +/vendor + +# CocoaPods +Pods/ +Podfile.lock +*.xcworkspace + +# CocoaPods generate +gen/ + +# firebase-ios-sdk clone +firebase-ios-sdk/ + +# scripts link +scripts diff --git a/Mintfile b/Mintfile new file mode 100644 index 0000000..5fc5628 --- /dev/null +++ b/Mintfile @@ -0,0 +1 @@ +nicklockwood/SwiftFormat@0.51.12 diff --git a/setup-scripts.sh b/setup-scripts.sh new file mode 100755 index 0000000..423b82a --- /dev/null +++ b/setup-scripts.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Copyright 2021 Google LLC +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +git clone \ + --depth 1 \ + --no-checkout \ + https://github.com/firebase/firebase-ios-sdk.git \ +; +cd firebase-ios-sdk +git checkout master -- scripts +cd .. +ln -s firebase-ios-sdk/scripts scripts