From 2d003300aa7a4fdbca48c8d2b8e8c99dfd025ee3 Mon Sep 17 00:00:00 2001 From: hiranya911 Date: Thu, 20 Feb 2020 12:10:37 -0800 Subject: [PATCH] Added modules support; Added semantic import versioning --- .github/workflows/ci.yml | 22 +-- auth/auth.go | 2 +- auth/auth_appengine.go | 2 +- auth/auth_std.go | 2 +- auth/auth_test.go | 2 +- auth/export_users.go | 2 +- auth/hash/hash.go | 2 +- auth/hash/hash_test.go | 4 +- auth/import_users.go | 2 +- auth/provider_config.go | 2 +- auth/tenant_mgt.go | 2 +- auth/token_generator.go | 2 +- auth/token_generator_test.go | 2 +- auth/token_verifier.go | 2 +- auth/token_verifier_test.go | 2 +- auth/user_mgt.go | 2 +- auth/user_mgt_test.go | 2 +- db/db.go | 2 +- db/db_test.go | 2 +- db/query.go | 4 +- db/ref.go | 2 +- firebase.go | 14 +- go.mod | 11 ++ go.sum | 179 +++++++++++++++++++++++ iid/iid.go | 4 +- iid/iid_test.go | 2 +- integration/auth/auth_test.go | 6 +- integration/auth/provider_config_test.go | 2 +- integration/auth/tenant_mgt_test.go | 2 +- integration/auth/user_mgt_test.go | 4 +- integration/db/db_test.go | 6 +- integration/db/query_test.go | 2 +- integration/firestore/firestore_test.go | 2 +- integration/iid/iid_test.go | 4 +- integration/internal/internal.go | 4 +- integration/messaging/messaging_test.go | 4 +- integration/storage/storage_test.go | 6 +- internal/internal.go | 2 +- messaging/messaging.go | 4 +- messaging/messaging_batch.go | 2 +- messaging/messaging_test.go | 2 +- messaging/topic_mgt.go | 2 +- snippets/auth.go | 6 +- snippets/db.go | 4 +- snippets/init.go | 4 +- snippets/messaging.go | 4 +- snippets/storage.go | 2 +- storage/storage.go | 2 +- storage/storage_test.go | 2 +- 49 files changed, 268 insertions(+), 86 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f20d5c5..b386e9d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,38 +5,30 @@ jobs: build: name: Build runs-on: ubuntu-latest - env: - GOPATH: ${{ github.workspace }}/go strategy: matrix: go: [1.11, 1.12, 1.13] - steps: + steps: - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@v1 with: go-version: ${{ matrix.go }} - id: go - - name: Check out code into GOPATH + - name: Check out code uses: actions/checkout@v2 - with: - path: go/src/firebase.google.com/go - - - name: Get dependencies - run: go get -t -v $(go list ./... | grep -v integration) - name: Run Linter run: | - go get golang.org/x/lint/golint - $GOPATH/bin/golint -set_exit_status firebase.google.com/go/... + go get -u golang.org/x/lint/golint + GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint` + $GOLINT -set_exit_status ./... - name: Run Unit Tests if: success() || failure() - run: go test -v -race -test.short firebase.google.com/go/... + run: go test -v -race -test.short ./... - name: Run Formatter - working-directory: ./go/src/firebase.google.com/go if: matrix.go != '1.11' run: | if [[ ! -z "$(gofmt -l -s .)" ]]; then @@ -46,4 +38,4 @@ jobs: fi - name: Run Static Analyzer - run: go vet -v firebase.google.com/go/... + run: go vet -v ./... diff --git a/auth/auth.go b/auth/auth.go index c12a82ed..50c37d2c 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -23,7 +23,7 @@ import ( "strings" "time" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/transport" ) diff --git a/auth/auth_appengine.go b/auth/auth_appengine.go index 9b8ad6e1..18a23f54 100644 --- a/auth/auth_appengine.go +++ b/auth/auth_appengine.go @@ -19,7 +19,7 @@ package auth import ( "context" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/appengine" ) diff --git a/auth/auth_std.go b/auth/auth_std.go index 7c757175..46a3b4b5 100644 --- a/auth/auth_std.go +++ b/auth/auth_std.go @@ -19,7 +19,7 @@ package auth // import "firebase.google.com/go/auth" import ( "context" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) func newCryptoSigner(ctx context.Context, conf *internal.AuthConfig) (cryptoSigner, error) { diff --git a/auth/auth_test.go b/auth/auth_test.go index 72ad19d9..1d421d12 100644 --- a/auth/auth_test.go +++ b/auth/auth_test.go @@ -27,7 +27,7 @@ import ( "testing" "time" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "golang.org/x/oauth2/google" "google.golang.org/api/option" "google.golang.org/api/transport" diff --git a/auth/export_users.go b/auth/export_users.go index baeb5bbc..7e5670a7 100644 --- a/auth/export_users.go +++ b/auth/export_users.go @@ -21,7 +21,7 @@ import ( "net/url" "strconv" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/iterator" ) diff --git a/auth/hash/hash.go b/auth/hash/hash.go index 114562a5..67aa51af 100644 --- a/auth/hash/hash.go +++ b/auth/hash/hash.go @@ -22,7 +22,7 @@ import ( "errors" "fmt" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) // Bcrypt represents the BCRYPT hash algorithm. diff --git a/auth/hash/hash_test.go b/auth/hash/hash_test.go index 6fe47bca..7817eb42 100644 --- a/auth/hash/hash_test.go +++ b/auth/hash/hash_test.go @@ -19,8 +19,8 @@ import ( "reflect" "testing" - "firebase.google.com/go/auth" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/auth" + "firebase.google.com/go/v4/internal" ) var ( diff --git a/auth/import_users.go b/auth/import_users.go index cfb92493..0febf31f 100644 --- a/auth/import_users.go +++ b/auth/import_users.go @@ -20,7 +20,7 @@ import ( "errors" "fmt" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) const maxImportUsers = 1000 diff --git a/auth/provider_config.go b/auth/provider_config.go index ac87f4a4..aeef46ac 100644 --- a/auth/provider_config.go +++ b/auth/provider_config.go @@ -23,7 +23,7 @@ import ( "strconv" "strings" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/iterator" ) diff --git a/auth/tenant_mgt.go b/auth/tenant_mgt.go index 3496b47b..45e3807a 100644 --- a/auth/tenant_mgt.go +++ b/auth/tenant_mgt.go @@ -22,7 +22,7 @@ import ( "strconv" "strings" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/iterator" ) diff --git a/auth/token_generator.go b/auth/token_generator.go index 963767d1..8cdb7753 100644 --- a/auth/token_generator.go +++ b/auth/token_generator.go @@ -30,7 +30,7 @@ import ( "strings" "sync" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/transport" ) diff --git a/auth/token_generator_test.go b/auth/token_generator_test.go index 5a408f19..de39e392 100644 --- a/auth/token_generator_test.go +++ b/auth/token_generator_test.go @@ -26,7 +26,7 @@ import ( "strings" "testing" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) func TestEncodeToken(t *testing.T) { diff --git a/auth/token_verifier.go b/auth/token_verifier.go index 51b16cc1..e672e7d6 100644 --- a/auth/token_verifier.go +++ b/auth/token_verifier.go @@ -33,7 +33,7 @@ import ( "sync" "time" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/option" "google.golang.org/api/transport" ) diff --git a/auth/token_verifier_test.go b/auth/token_verifier_test.go index 9d9edd1b..f226fd3d 100644 --- a/auth/token_verifier_test.go +++ b/auth/token_verifier_test.go @@ -24,7 +24,7 @@ import ( "testing" "time" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) func TestNewIDTokenVerifier(t *testing.T) { diff --git a/auth/user_mgt.go b/auth/user_mgt.go index e1a18a0f..e317aaa8 100644 --- a/auth/user_mgt.go +++ b/auth/user_mgt.go @@ -26,7 +26,7 @@ import ( "strings" "time" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/googleapi" ) diff --git a/auth/user_mgt_test.go b/auth/user_mgt_test.go index b2591f1e..9841fc63 100644 --- a/auth/user_mgt_test.go +++ b/auth/user_mgt_test.go @@ -29,7 +29,7 @@ import ( "testing" "time" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/iterator" ) diff --git a/db/db.go b/db/db.go index 728509a4..909f1137 100644 --- a/db/db.go +++ b/db/db.go @@ -23,7 +23,7 @@ import ( "runtime" "strings" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/option" ) diff --git a/db/db_test.go b/db/db_test.go index 3c32a018..1ec624fb 100644 --- a/db/db_test.go +++ b/db/db_test.go @@ -28,7 +28,7 @@ import ( "runtime" "testing" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/option" ) diff --git a/db/query.go b/db/query.go index ca88b133..2380c82e 100644 --- a/db/query.go +++ b/db/query.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package db // import "firebase.google.com/go/db" +package db // import "firebase.google.com/go/v4/db" import ( "context" @@ -23,7 +23,7 @@ import ( "strconv" "strings" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) // QueryNode represents a data node retrieved from an ordered query. diff --git a/db/ref.go b/db/ref.go index 821ce859..0f085070 100644 --- a/db/ref.go +++ b/db/ref.go @@ -21,7 +21,7 @@ import ( "net/http" "strings" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) // txnRetires is the maximum number of times a transaction is retried before giving up. Transaction diff --git a/firebase.go b/firebase.go index d66b1fb0..8b45d959 100644 --- a/firebase.go +++ b/firebase.go @@ -15,7 +15,7 @@ // Package firebase is the entry point to the Firebase Admin SDK. It provides functionality for initializing App // instances, which serve as the central entities that provide access to various other Firebase services exposed // from the SDK. -package firebase // import "firebase.google.com/go" +package firebase // import "firebase.google.com/go/v4" import ( "context" @@ -25,12 +25,12 @@ import ( "os" "cloud.google.com/go/firestore" - "firebase.google.com/go/auth" - "firebase.google.com/go/db" - "firebase.google.com/go/iid" - "firebase.google.com/go/internal" - "firebase.google.com/go/messaging" - "firebase.google.com/go/storage" + "firebase.google.com/go/v4/auth" + "firebase.google.com/go/v4/db" + "firebase.google.com/go/v4/iid" + "firebase.google.com/go/v4/internal" + "firebase.google.com/go/v4/messaging" + "firebase.google.com/go/v4/storage" "golang.org/x/oauth2/google" "google.golang.org/api/option" "google.golang.org/api/transport" diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..c50a801a --- /dev/null +++ b/go.mod @@ -0,0 +1,11 @@ +module firebase.google.com/go/v4 + +go 1.11 + +require ( + cloud.google.com/go/firestore v1.1.1 + cloud.google.com/go/storage v1.0.0 + golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d + google.golang.org/api v0.17.0 + google.golang.org/appengine v1.6.1 +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..63bcc71d --- /dev/null +++ b/go.sum @@ -0,0 +1,179 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3 h1:AVXDdKsrtX33oR9fbCMu/+c1o8Ofjq6Ku/MInaLVg5Y= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go/bigquery v1.0.1 h1:hL+ycaJpVE9M7nLoiXb/Pn10ENE2u+oddxbD8uu0ZVU= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/datastore v1.0.0 h1:Kt+gOPPp2LEPWp8CSfxhsM8ik9CcyE/gYu+0r+RnZvM= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/firestore v1.1.1 h1:vFLWT9tT+SQnfY20DgeNmwh56CSB3kc+Jt16o6Wy8IE= +cloud.google.com/go/firestore v1.1.1/go.mod h1:ADXYdzUfnr5T2SaB0Of9UXDIjgcRIZ221HQOikRONfE= +cloud.google.com/go/pubsub v1.0.1 h1:W9tAK3E57P75u0XLLR82LZyw8VpAnhmyTOxW9qzmyj8= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/storage v1.0.0 h1:VV2nUM3wwLLGh9lSABFgZMjInyUbJeaRSE64WuAIQ+4= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 h1:rBMNdlhTLzJjJSDIjNEXX1Pz3Hmwmz91v+zycvx9PJc= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0 h1:C9hSCOW830chIVkdja34wa6Ky+IzWllkUinR+BtRZd4= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587 h1:5Uz0rkjCFu9BC9gCRN7EkwVvhNyQgGWb8KNJrPwBoHY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f h1:J5lckAjkw6qYlOZNj90mLYNTEKDvWeuc1yieZ8qUzUE= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 h1:HyfiK1WMnHj5FXFXatD+Qs1A/xC2Run6RzeW1SyHxpc= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191206204035-259af5ff87bd h1:Zc7EU2PqpsNeIfOoVA7hvQX4cS3YDJEs5KlfatT3hLo= +golang.org/x/tools v0.0.0-20191206204035-259af5ff87bd/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0 h1:0q95w+VuFtv4PAx4PZVQdBMmYbaCHbnfKaEiDIcVyag= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1 h1:QzqyMA1tlu6CgqCDUtU9V+ZKhLFT2dkJuANu5QaxI3I= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191206224255-0243a4be9c8f h1:naitw5DILWPQvG0oG04mR9jF8fmKpRdW3E3zzKA4D0Y= +google.golang.org/genproto v0.0.0-20191206224255-0243a4be9c8f/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.27.0 h1:rRYRFMVgRv6E0D70Skyfsr28tDXIuuPZyWGMPdMcnXg= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= diff --git a/iid/iid.go b/iid/iid.go index 19362dcf..3c608273 100644 --- a/iid/iid.go +++ b/iid/iid.go @@ -13,7 +13,7 @@ // limitations under the License. // Package iid contains functions for deleting instance IDs from Firebase projects. -package iid // import "firebase.google.com/go/iid" +package iid // import "firebase.google.com/go/v4/iid" import ( "context" @@ -21,7 +21,7 @@ import ( "fmt" "net/http" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) const iidEndpoint = "https://console.firebase.google.com/v1" diff --git a/iid/iid_test.go b/iid/iid_test.go index 3b785c1e..4a4c7953 100644 --- a/iid/iid_test.go +++ b/iid/iid_test.go @@ -21,7 +21,7 @@ import ( "net/http/httptest" "testing" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/option" ) diff --git a/integration/auth/auth_test.go b/integration/auth/auth_test.go index b5638f6a..62318699 100644 --- a/integration/auth/auth_test.go +++ b/integration/auth/auth_test.go @@ -29,9 +29,9 @@ import ( "testing" "time" - firebase "firebase.google.com/go" - "firebase.google.com/go/auth" - "firebase.google.com/go/integration/internal" + firebase "firebase.google.com/go/v4" + "firebase.google.com/go/v4/auth" + "firebase.google.com/go/v4/integration/internal" "golang.org/x/oauth2/google" "google.golang.org/api/option" ) diff --git a/integration/auth/provider_config_test.go b/integration/auth/provider_config_test.go index ae7ad147..4d830de3 100644 --- a/integration/auth/provider_config_test.go +++ b/integration/auth/provider_config_test.go @@ -21,7 +21,7 @@ import ( "reflect" "testing" - "firebase.google.com/go/auth" + "firebase.google.com/go/v4/auth" "google.golang.org/api/iterator" ) diff --git a/integration/auth/tenant_mgt_test.go b/integration/auth/tenant_mgt_test.go index e1f4986b..9d1dd573 100644 --- a/integration/auth/tenant_mgt_test.go +++ b/integration/auth/tenant_mgt_test.go @@ -22,7 +22,7 @@ import ( "testing" "time" - "firebase.google.com/go/auth" + "firebase.google.com/go/v4/auth" "google.golang.org/api/iterator" ) diff --git a/integration/auth/user_mgt_test.go b/integration/auth/user_mgt_test.go index 1d4ef64e..f2f7762c 100644 --- a/integration/auth/user_mgt_test.go +++ b/integration/auth/user_mgt_test.go @@ -27,8 +27,8 @@ import ( "testing" "time" - "firebase.google.com/go/auth" - "firebase.google.com/go/auth/hash" + "firebase.google.com/go/v4/auth" + "firebase.google.com/go/v4/auth/hash" "google.golang.org/api/iterator" ) diff --git a/integration/db/db_test.go b/integration/db/db_test.go index d3b3197d..a162ba0e 100644 --- a/integration/db/db_test.go +++ b/integration/db/db_test.go @@ -28,9 +28,9 @@ import ( "reflect" "testing" - "firebase.google.com/go" - "firebase.google.com/go/db" - "firebase.google.com/go/integration/internal" + firebase "firebase.google.com/go/v4" + "firebase.google.com/go/v4/db" + "firebase.google.com/go/v4/integration/internal" ) var client *db.Client diff --git a/integration/db/query_test.go b/integration/db/query_test.go index b473d4c3..6bb48cf0 100644 --- a/integration/db/query_test.go +++ b/integration/db/query_test.go @@ -19,7 +19,7 @@ import ( "reflect" "testing" - "firebase.google.com/go/db" + "firebase.google.com/go/v4/db" ) var heightSorted = []string{ diff --git a/integration/firestore/firestore_test.go b/integration/firestore/firestore_test.go index 1b861d92..8e3dd60f 100644 --- a/integration/firestore/firestore_test.go +++ b/integration/firestore/firestore_test.go @@ -20,7 +20,7 @@ import ( "reflect" "testing" - "firebase.google.com/go/integration/internal" + "firebase.google.com/go/v4/integration/internal" ) func TestFirestore(t *testing.T) { diff --git a/integration/iid/iid_test.go b/integration/iid/iid_test.go index edf4cac0..686db6b6 100644 --- a/integration/iid/iid_test.go +++ b/integration/iid/iid_test.go @@ -22,8 +22,8 @@ import ( "os" "testing" - "firebase.google.com/go/iid" - "firebase.google.com/go/integration/internal" + "firebase.google.com/go/v4/iid" + "firebase.google.com/go/v4/integration/internal" ) var client *iid.Client diff --git a/integration/internal/internal.go b/integration/internal/internal.go index a5cd7af6..433ecbe6 100644 --- a/integration/internal/internal.go +++ b/integration/internal/internal.go @@ -24,8 +24,8 @@ import ( "path/filepath" "strings" - firebase "firebase.google.com/go" - "firebase.google.com/go/internal" + firebase "firebase.google.com/go/v4" + "firebase.google.com/go/v4/internal" "google.golang.org/api/option" "google.golang.org/api/transport" ) diff --git a/integration/messaging/messaging_test.go b/integration/messaging/messaging_test.go index f62aa72a..b86aa2ae 100644 --- a/integration/messaging/messaging_test.go +++ b/integration/messaging/messaging_test.go @@ -24,8 +24,8 @@ import ( "regexp" "testing" - "firebase.google.com/go/integration/internal" - "firebase.google.com/go/messaging" + "firebase.google.com/go/v4/integration/internal" + "firebase.google.com/go/v4/messaging" ) // The registration token has the proper format, but is not valid (i.e. expired). The intention of diff --git a/integration/storage/storage_test.go b/integration/storage/storage_test.go index 6865af6f..2c2706bf 100644 --- a/integration/storage/storage_test.go +++ b/integration/storage/storage_test.go @@ -24,9 +24,9 @@ import ( "testing" gcs "cloud.google.com/go/storage" - "firebase.google.com/go" - "firebase.google.com/go/integration/internal" - "firebase.google.com/go/storage" + "firebase.google.com/go/v4" + "firebase.google.com/go/v4/integration/internal" + "firebase.google.com/go/v4/storage" ) var ctx context.Context diff --git a/internal/internal.go b/internal/internal.go index d5164e74..69686abf 100644 --- a/internal/internal.go +++ b/internal/internal.go @@ -13,7 +13,7 @@ // limitations under the License. // Package internal contains functionality that is only accessible from within the Admin SDK. -package internal // import "firebase.google.com/go/internal" +package internal // import "firebase.google.com/go/v4/internal" import ( "fmt" diff --git a/messaging/messaging.go b/messaging/messaging.go index e9902548..6ce035f5 100644 --- a/messaging/messaging.go +++ b/messaging/messaging.go @@ -14,7 +14,7 @@ // Package messaging contains functions for sending messages and managing // device subscriptions with Firebase Cloud Messaging (FCM). -package messaging // import "firebase.google.com/go/messaging" +package messaging // import "firebase.google.com/go/v4/messaging" import ( "context" @@ -27,7 +27,7 @@ import ( "strings" "time" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/transport" ) diff --git a/messaging/messaging_batch.go b/messaging/messaging_batch.go index 9ada0f0e..91ac8203 100644 --- a/messaging/messaging_batch.go +++ b/messaging/messaging_batch.go @@ -28,7 +28,7 @@ import ( "net/http" "net/textproto" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) const maxMessages = 500 diff --git a/messaging/messaging_test.go b/messaging/messaging_test.go index 52f0453b..9eb4a88f 100644 --- a/messaging/messaging_test.go +++ b/messaging/messaging_test.go @@ -24,7 +24,7 @@ import ( "testing" "time" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/option" ) diff --git a/messaging/topic_mgt.go b/messaging/topic_mgt.go index 8ae170a5..12ba7ccc 100644 --- a/messaging/topic_mgt.go +++ b/messaging/topic_mgt.go @@ -21,7 +21,7 @@ import ( "net/http" "strings" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) const ( diff --git a/snippets/auth.go b/snippets/auth.go index a1a87eaa..590debce 100644 --- a/snippets/auth.go +++ b/snippets/auth.go @@ -23,9 +23,9 @@ import ( "net/http" "time" - firebase "firebase.google.com/go" - "firebase.google.com/go/auth" - "firebase.google.com/go/auth/hash" + firebase "firebase.google.com/go/v4" + "firebase.google.com/go/v4/auth" + "firebase.google.com/go/v4/auth/hash" "google.golang.org/api/iterator" ) diff --git a/snippets/db.go b/snippets/db.go index 9e4a1434..51af7507 100644 --- a/snippets/db.go +++ b/snippets/db.go @@ -20,8 +20,8 @@ import ( "fmt" "log" - "firebase.google.com/go" - "firebase.google.com/go/db" + "firebase.google.com/go/v4" + "firebase.google.com/go/v4/db" "google.golang.org/api/option" ) diff --git a/snippets/init.go b/snippets/init.go index aba34c51..3125a702 100644 --- a/snippets/init.go +++ b/snippets/init.go @@ -19,8 +19,8 @@ import ( "context" "log" - firebase "firebase.google.com/go" - "firebase.google.com/go/auth" + firebase "firebase.google.com/go/v4" + "firebase.google.com/go/v4/auth" "google.golang.org/api/option" ) diff --git a/snippets/messaging.go b/snippets/messaging.go index 8b191129..129502ef 100644 --- a/snippets/messaging.go +++ b/snippets/messaging.go @@ -20,8 +20,8 @@ import ( "log" "time" - firebase "firebase.google.com/go" - "firebase.google.com/go/messaging" + firebase "firebase.google.com/go/v4" + "firebase.google.com/go/v4/messaging" ) func sendToToken(app *firebase.App) { diff --git a/snippets/storage.go b/snippets/storage.go index a39538a3..5ef1b1f2 100644 --- a/snippets/storage.go +++ b/snippets/storage.go @@ -18,7 +18,7 @@ import ( "context" "log" - firebase "firebase.google.com/go" + firebase "firebase.google.com/go/v4" "google.golang.org/api/option" ) diff --git a/storage/storage.go b/storage/storage.go index 3403bf40..25fc5853 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -20,7 +20,7 @@ import ( "errors" "cloud.google.com/go/storage" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" ) // Client is the interface for the Firebase Storage service. diff --git a/storage/storage_test.go b/storage/storage_test.go index 52a64f4a..ab57f1dd 100644 --- a/storage/storage_test.go +++ b/storage/storage_test.go @@ -18,7 +18,7 @@ import ( "context" "testing" - "firebase.google.com/go/internal" + "firebase.google.com/go/v4/internal" "google.golang.org/api/option" )