Commit Graph
94 Commits
Author SHA1 Message Date
Nick Cooke 4075c48acc [CocoaPods] Prep for 9.4.1 patch release (#120)
* [CocoaPods] Prep for 9.4.1 patch release

* Update instructions to hopefully prevent this in future
2024-03-06 11:52:18 -05:00
Paul Beusterien 211caa3ac6 Enable nanopb privacy manifest update (#117) 2024-02-22 11:05:39 -08:00
Nick Cooke d3fdb60478 [Release] Bump spec to 9.4.0 and add changelog entry (#116) 2024-02-15 21:58:05 -05:00
Nick Cooke dcb89bbdf2 [GoogleDataTransport] Add privacy manifest for SPM / CocoaPods (#115) 2024-02-15 21:57:39 -05:00
Nick Cooke 3bb97f7311 [Release] Update podspec and changelog for 9.3.0 release (#109) 2023-10-28 00:30:23 -04:00
Nick Cooke e7175cfff2 [Infra] Update licensing version in podspec (#101) 2023-08-10 17:18:35 -04:00
Nick Cooke aae45a320f [Release] Update podspec and changelog for 9.2.5 release (#100) 2023-07-31 14:52:31 -04:00
Nick Cooke 7874c1b48c [Release] Bump 'GoogleDataTransport.podspec' version from '9.2.2' → '9.2.3' (#96) 2023-05-04 15:41:12 -04:00
Paul Beusterien cc7265b8e3 Fix new warnings shown by Xcode 14.3 (#92) 2023-04-03 08:40:14 -07:00
Nick Cooke f6b558e3f8 [Release] Bump spec to 9.2.1 and add CHANGELOG entry (#90) 2023-01-19 12:01:33 -08:00
Nick Cooke 5d6dc693d5 [v9.2.0] Update podspec and CHANGELOG for 9.2.0 (#78) 2022-06-07 22:27:59 -04:00
Nick Cooke 1efe3339c1 [Metrics] Add integration tests for metrics component (#73)
* [Metrics] Add integration tests for metrics component

* Update duplicate comment

* Review

* Review 2

* Review 3
2022-06-03 11:12:21 -04:00
Nick Cooke 34f8953036 [Metrics] Add tests for GDTCORMetric's GDTCOREventDataObject conformance (#71)
* [Metrics] Add tests for GDTCORMetric's GDTCOREventDataObject conformance

* Simplify doc comments

* Review
2022-06-01 10:59:21 -04:00
Nick Cooke b905c49326 Rollback #54 and update for 9.1.4 patch release (#60)
This reverts commit 1a65c30db4.
2022-05-06 13:06:08 -04:00
Paul Beusterien 4073d04bf2 Update to allow update to nanopb 0.3.9.9 (#59) 2022-05-05 10:39:54 -07:00
Sam Edson 1a65c30db4 Make GoogleDataTransport use GoogleUtilities logging level (#54) 2022-03-10 10:56:07 -05:00
Maksym Malyhin 15ccdfd25a Use [NSOperation start] instead of main for async NSOperation (#41)
* Use [NSOperation start] instead of main for async NSOperation

* Bump version to 9.1.2

* Changelog
2021-10-18 10:03:58 -04:00
Nick Cooke 7fb27ea494 Bump podspec to 9.1.1 (not to be released) (#39) 2021-09-02 15:04:49 -04:00
Nick Cooke 9e79fd8ded Bump promises dependency (#31)
* Bump promises dependency

* Fix podspec

* Include Promises in Package.swift

* Bump Promises in Package.swift

* Bump podspec minor version

* CHANGELOG

* Bump to 9.1.0

* Fix CHANGELOG
2021-07-08 17:18:51 -04:00
Paul Beusterien cad598c033 Update podspec for a 9.0.1 release (#27) 2021-06-03 08:28:20 -07:00
Nick Cooke 0afaad7819 Rename transform: API to transformGDTEvent: (#18)
* Rename transform: API to transformGDTEvent:

* Bump GDT podspec from 8.4.0 to 9.0.0
2021-04-13 19:00:17 -04:00
Paul Beusterienandvarconst c2fdda2280 Update to nanopb 0.3.9.8 (#15)
Co-authored-by: varconst <varconsteq@gmail.com>
2021-03-29 13:18:48 -07:00
Maksym Malyhin 3615a4ca10 Fix diagnostics warnings (#11)
* Diagnostics issues fixes

* Comments fixes from #3

* Fix GDTCORUploadCoordinatorTest

* Fix tests

* Fix GDTCCTUploadOperation cancel synchronization

* Cleanup

* Fix URLSession retain cycle.

* Bump SDK version to 8.3.1

* Changelog
2021-03-24 15:02:54 -04:00
Maksym Malyhin 34bd15a311 Refactoring async code in GDTCCTUploader to use promises to improve readability (#3)
* Squashed commit of the following:

commit 563db8b3062a8361b24e7fa1f4a23253d9dbca3f
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Tue Jan 12 18:02:01 2021 -0500

    GDT: upload URL request steps wrapped into promises (#6771)

    * Fix build

    * Rename GDTCCTUploader2.m back to GDTCCTUploader.m

    * GDT: Add GoogleUtilities/Environment dependency

    * WIP

    * Remove unnecessary logic

    * next upload time storage implementation

    * GDTCCTUploader debug logs and test helpers

    * URL request steps

    * Fix modular FBLPromise imports

    * GDT GUL dependency in SwiftPM

    * Cleanup

    * Formatting

    * Update dependency

    * Fix WatchOS app

    * Update imports

    * [WIP] Integration tests with a test server

    * Remove GDTCCTUploadCompleteNotification

    * GDTCCTIntegrationTest: use test server instead of a real server.

    * Fix GDTCCTUploadOperation.uploadAttempted flag

    * Fix GDTCCTUploader waitForUploadFinished method

    * GDTCORIntegrationTestEvent: wait for the final upload to finish before stopping test server

    * style

    * Cleanup

    * merge fix

    * Fix waitForUploadFinishedWithTimeout:

    * Cleanup

    * GDTCCTUploaderTest: wait for operation finish before tearDown

    * GDTCCTIntegrationTest: enable debug logs

    * Increase timeout

    * Debug logs on CI

    * Handle not started operation cancellation properly

    * GDTCOREncodeArchive: fix log messages

    * Revert debug logging

    * ./scripts/style.sh

    * ./scripts/style.sh  with clang-format 11.0.1

    * Enable verbose pod lib lint logs

    * fail-fast disable retry

    * GDTCCTUploadOperation: set proper state for not stated operation without KVO.

    * revert verbose logs

    * Comments

commit 28f561f459fe4c3e926750cf92c960a5d83ed160
Merge: 382eee99e 3d84b9985
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Fri Jan 8 15:20:44 2021 -0500

    Merge remote-tracking branch 'origin/master' into gdt-promises-main

commit 382eee99ecc6559e86d1104198c069cf080229c9
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Dec 10 10:22:19 2020 -0500

    Fix merge errors

commit 52b3a31d6a4f1c1efeacc4e5b195c62133eb2835
Merge: 8e1c203b7 3720a72ba
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Dec 10 10:12:52 2020 -0500

    Merge branch 'master' into mm/gdt-promise-merge

commit 8e1c203b7ada390fa3ee4ccdcea396109368ee6a
Merge: 8881f2301 f0a8e74ee
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Wed Nov 4 15:23:53 2020 -0500

    Merge remote-tracking branch 'origin/master' into gdt-promises-main

commit 8881f2301a9952cccd134565edd6ac9f4dce3445
Merge: c0812aeb3 b05be68db
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Oct 29 17:02:02 2020 -0400

    Merge remote-tracking branch 'origin/master' into gdt-promises-main

commit c0812aeb38e4aef1f9976bc1928504d9331fbcd9
Merge: 2ac027d9d ff23d08f6
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Fri Oct 16 16:23:53 2020 -0400

    Merge branch 'gdt-promises-main' of github.com:firebase/firebase-ios-sdk into gdt-promises-main

commit 2ac027d9d3f8dbb8fb2e5b4c5c89f9506bd149d5
Merge: ef4385b71 7e70a6dd0
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Fri Oct 16 16:23:40 2020 -0400

    Merge remote-tracking branch 'origin/master' into gdt-promises-main

commit ff23d08f6901edb167d8e9ed1441b3846f43e315
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Fri Oct 16 13:43:07 2020 -0400

    Rename GDTCCTUploader2.m back to GDTCCTUploader.m (#6748)

    * Fix build

    * Rename GDTCCTUploader2.m back to GDTCCTUploader.m

commit ef4385b71c67e7ab4c24e125d2dd6f534ce9af68
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Oct 15 13:39:33 2020 -0400

    GDT: wrap and bind upload operation using promises (#6728)

    * Fix header imports

    * Wrap and chain batching operations

    * Fix test compilation

    * todo

    * Cleanup

    * Storage condition

    * Recover GDTCCTUploaderTest

    * Revert unintended change

    * NDEBUG TODO

    * Interupt upload erlier when storage is missing

    * style

commit 0c2bf2aa37d82ee7d77147c9dde46768d883919e
Merge: f84069ae8 1c79d9bce
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Wed Oct 14 09:30:45 2020 -0400

    Merge remote-tracking branch 'origin/master' into gdt-promises-main

commit f84069ae8a9b1b3ecbc85f158e44637f9530639c
Merge: 5d96f9699 ec14d8252
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Oct 8 15:19:55 2020 -0400

    Merge branch 'gdt-promises-main' of github.com:firebase/firebase-ios-sdk into gdt-promises-main

commit 5d96f9699b3b72cf5a6413083890b9f3d656d928
Merge: f6595a0c8 bff6b664d
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Oct 8 15:19:30 2020 -0400

    Merge remote-tracking branch 'origin/master' into gdt-promises-main

commit ec14d825245591abb61963f7962cd9ef15e34299
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Tue Sep 29 13:53:53 2020 -0400

    Move common state from GDTCCTUploadOperation to GDTCCTUploader (#6587)

    * Move URLs from `GDTCCTUploadOperation` to `GDTCCTUploader`

    * Move next upload time tracking from `GDTCCTUploadOperation` to `GDTCCTUploader`

    * Rename back GDTCCTUploader2.m -> GDTCCTUploader.m

    * Revert "Rename back GDTCCTUploader2.m -> GDTCCTUploader.m"

    This reverts commit a4946d2524846917bf7b9c5e565f015ffa311bcd.

    * ./scripts/style.sh

    * Camel case

    * Cleanup

    * Move optional API key to metadata provider

    * Use a common dispatch queue for upload operations

commit f6595a0c8ed9d7289746b1beff68b12a64232ef7
Merge: 27595267e d75180498
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Mon Sep 28 13:03:53 2020 -0400

    Merge branch 'gdt-promises-main' of github.com:firebase/firebase-ios-sdk into gdt-promises-main

commit 27595267e716d9cb07a011f542d78455af2a53ae
Merge: 17a65e58c 38be2cc8c
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Mon Sep 28 13:03:28 2020 -0400

    Merge remote-tracking branch 'origin/master' into gdt-promises-main

commit d7518049885ab82e164fcc7a05941fe89952bf42
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Sep 24 15:48:02 2020 -0400

    GDTCORStorage: promise API wrapper (#6555)

commit 17a65e58c5e62befcc660b70c564564447d30613
Merge: eadc50297 0c6dd55ad
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Sep 24 10:24:29 2020 -0400

    Merge remote-tracking branch 'origin/master' into gdt-promises-main

commit eadc502973bb6632bd3ba04527b509820be99e7e
Author: Maksym Malyhin <mmaksym@google.com>
Date:   Thu Sep 24 10:03:48 2020 -0400

    GDTCCTUploader: use NSOperationQueue to coordinate uploads (#6536)

    * File rename GDTCCTUploader -> GDTCCTUploadOperation

    * GDTCCTUploader: use operation queue to coordinate uploads

    * Try to rename original file to improve diff

    * File headers and TODOs

* merge errors

* More detailed and useful integration tests (#4)

* [WIP] decode request in integration tests

* Integration tests - validate all events payloads are sent

* Fix SPM

* Clean storage before tests

* style

* Cleanup and comments.

* More comments

* Validate log source(mappingID)

* Fix FBLPromises.h import

* cleanup .gitignore

* fix .gitignore

* Cleanup and comments (#6)

* Strongify references in block

* Don't hardcode redirect URL.

* Update/remove outdated TODOs. Comments and API docs.

* GDTCCTUploaderTest: respect next requet wait time for all target except high priority ones

* Fix flaky tests, disable redundant tests

* Respect Retry-After header (#7)

* [WIP] Retry-After header support

* GDTCCTUploaderTest: tests for Retry-After and failure cases

* Cleanup

* Finish background task.

* revert generate_project.sh

* style

* Fix analyzer warning

* statusCode: update comments; stricter validation

* Remove crashlytics exception from next request wait time policy

* GDTCCTUploaderTest: reduce not necessary timeouts to seepd up tests

* Bump version to 8.3.0

* Changelog

* Bump GoogleUtilities version

* API docs and comments

* scripts/style.sh
2021-03-03 09:29:38 -05:00
Paul Beusterien 2e8a342494 Integration testing, publishing, podspec source, and deprecation (#2) 2021-01-26 17:31:30 -08:00
Gran 50d90e163a Add test coverage to podspecs. (#7228) 2020-12-30 12:50:32 -08:00
Visu 9b22d6a8ec Make the URLs used by Google Data Transport available in a Public API. (#7167) 2020-12-15 12:35:50 -08:00
Paul Beusterien beeb5474a8 Bump nanopb to 0.3.9.7 (#7108) 2020-12-11 07:04:34 -08:00
Jeremy Jiang 94b4e1cc72 Bump up GoogleDataTransport version to 8.1.0 (#7075)
Bump up version to 8.1.0
2020-12-02 11:42:00 -05:00
Maksym Malyhin 3bf718ce6e GDT storage cleanup: optimizations for big amount of pending events (#7014)
* GDT storage cleanup performance testing

* style

* GDTCORDirectorySizeTracker - autoreleasepool in cycles

* [GDTCORFlatFileStoragecheckForExpirations] - autoreleasepool in cycles

* TestApp: Performance testing tweeks

* Revert "[GDTCORFlatFileStoragecheckForExpirations] - autoreleasepool in cycles"

This reverts commit e0573f5a1b2d481e6724c2d080bb199b0c701df2.

* [GDTCORUploadCoordinator signalToStoragesToCheckExpirations]: signal once per storage

* Revert "Revert "[GDTCORFlatFileStoragecheckForExpirations] - autoreleasepool in cycles""

This reverts commit 34e9eee1315211945fcae7e15dffe3f0efe55b17.

* style

* changelog
2020-11-24 12:46:50 -05:00
Maksym Malyhin 6f45d5e680 GDT: test app fixes (#6897)
* Add bridging header to GDTTestApp to expose private API

* Update OS versions of test apps

* Use spec OS vesrions for tests and apps

* Use local variables for deployment targets
2020-11-11 12:56:45 -05:00
4330666074 Merge release 7.1.0 (#6944)
* Update versions for Release 7.1.0

* 7.1.0 update version of close source podspecs

* Release 7.1.0 cherry picks (#6917)

* FCM: Fix crash on iOS 14 when multiple app delegate completion methods are called (#6863)

* Fix crash on iOS 14 when multiple completion methods are called

* Fixed lint

* Addressed the PR comments & implemented unit tests

* Reverted auto-extracted method

* Re-organized tests

* Added completion handler for FIRAuth

* Manifest: GDT 8.0.1

* Update Changelogs for 7.1.0 (#6913)

* Changelogs

Co-authored-by: Mike Gerasimenko <github@gerasimenko.me>
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>

* Bump GDT podspec version to 8.0.1

* 7.1.0 SPM Analytics (#6933)

* Carthage update 7.1.0 (#6943)

Co-authored-by: Mike Gerasimenko <github@gerasimenko.me>
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2020-11-11 09:25:42 -05:00
Paul Beusterien 40557bc7ba Stop failing on warnings (#6807) 2020-10-22 13:38:26 -07:00
Paul Beusterien f8c85ef847 Update GDT version for M82 (#6729) 2020-10-14 12:32:31 -04:00
a46e0f7c6b Merge release-6.34.0 branch after patch (#6701)
* Update versions for Release 6.34.0

* 6.34.0 updates for SwiftPM (#6614)

* M81 FIS cherry pick of #6570 (#6616)

* FIS: Additional FIRInstallationsItem validation (#6570)

* FIS API tests for no FID in response

* FIRInstallationsIDControllerTests: test names

* FIRInstallationsIDControllerTests: corrupted storage tests

* FIRInstallationsItem validation

* Fix FIRInstallationsItem.IIDDefaultToken copy

* Improve error description.

* FIRInstallationsItem validation error

* FIRInstallationsItem validation tests

* ./scripts/style.sh

* FIRInstallationsIDController: validate stored installation

* FIRInstallationsAPIService installation validation

* Changelog

* Update versions

* patch version

* release manifest

* FIS: don't log anything on success validation (#6635)

* Update changelogs (#6649)

* GoogleDataTransport: deprecated API conditions (#6697)

* GoogleDataTransport: deprecated API conditions

* Version bump

* use `TARGET_OS_IOS`

* changelog

* changelog

* style

* Fix merge

Co-authored-by: Ryan Wilson <wilsonryan@google.com>
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
Co-authored-by: Morgan Chen <morganchen12@gmail.com>
2020-10-08 15:11:00 -04:00
Maksym Malyhin 0eb76b0c87 GDT: move some headers from public to internal (#6643)
* Move extra public headers to Internal and fix imports

* Cleanup

* Use relative paths in internal headers

* Fix imports in internal headers

* ./scripts/style.sh

* Fix GDTTestApp

* Fix test app

* Use real uploader for watchOS test app

* comma
2020-10-05 14:00:49 -04:00
Paul Beusterien 15618bb97c Bump nanopb to fix Xcode 12 warning (#6659) 2020-10-05 09:50:50 -07:00
Paul Beusterien f749a3ff65 Merge remote-tracking branch 'origin/firebase7-main' into pb-merge-firebase7 2020-09-30 14:23:40 -07:00
Ryan Wilson c857d7f395 Update versions for Release 6.34.0 2020-09-30 13:09:59 -07:00
Paul Beusterien d96c75efe5 Stop requiring pods to be static frameworks (#6557) 2020-09-28 14:08:16 -07:00
Paul Beusterien fc0d35f0d9 Merge remote-tracking branch 'origin/master' into pb-f7-msg-update 2020-09-22 15:46:23 -07:00
Paul Beusterien 08dffdf297 Update podspecs to min iOS 10 (#6517) 2020-09-22 15:11:35 -07:00
Maksym Malyhin 97159f737f Bump CoreDiagnostics and GDT version (#6440) 2020-09-11 14:17:28 -04:00
Ryan Wilson ea98b3ac52 Merging the 6.31.0 release into master (#6331) 2020-08-25 15:13:11 -07:00
762763c523 Update nanopb py3 0.3.9.5 -> 0.3.9.6 (#6214)
* update nanopb from 0.3.9.5 to 0.3.9.6

This fixes issues building firestore SDK with Python3.
Interestingly, latest version 0.4.2 still errors during the build
but 0.3.9.6 works. The git commit for this fix in nanopb
https://github.com/nanopb/nanopb/commit/63f8e5e4946a5f8f0211b454bd37187871c3d023

* Update generated sources

* updating just nanopb dependency version

nanopb updated from 0.3.9.5 to 0.3.9.6
(pod version 1.30905.0 to 1.30906.0)

* Add missing source specifier

* Generated files for protos using nanopb 0.3.9.6

* removed unnecessary whitespaces in files generated by protoc

* using more qualified relative paths for header includes

* Changelog

Co-authored-by: Marek Gilbert <mcg@google.com>
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2020-08-14 14:13:01 -07:00
Paul Beusterien aa6891b7bc Update podspec dependencies for 6.30.0 (#6203) 2020-08-04 12:27:12 -07:00
Paul Beusterien 9df3e63b77 GDT - new public header structure (#6177) 2020-07-31 08:12:23 -07:00
Paul Beusterien a825b54ea4 Update versions for Release 6.29.0 (#6146) 2020-07-28 13:07:39 -07:00
Maksym Malyhin 8511d4a4e5 GDT: Retry uploading batches failed to upload before the app termination (#5942)
* GDTCCTUploaderTest: test a lost batch upload retry

* GDTCCTUploader: refactoring to prepare for lost batches uploading

* GDTCCTUploader: Upload previously batched events first

* Fix GDTCCTTestStorage

* Refactor GDTCCTUploaderTest

* GDTCORFlatFileStorageTest: batch tests

* GDTCORFlatFileStorage: refactor removeBatchWithID to prepare for eventsForbatchID

* eventsInBatchWithID implementation

* Fix tests

* Uploader fix for empty batch state

* GDTCORUploadCoordinator: high priority targets

* style

* GDTCCTUploaderTest

* GDTCCTUploaderTest: cleanup

* Cleanup and API docs.

* GDTCORUploadCoordinator: revert high priority targets

* GDTCCTUploader: make sure GDTCOREventQoSFast is part of a regular batch as well.

* Cleanup

* GDTCCTUploader: don't report ready for upload until there are events.

* GDTCCTUploaderTest: move failed batch back to the queue

* GDTCORFlatFileStorage: removeBatchWithID with deleteEvents==NO

* GDTCORFlatFileStorage: remove batch directory

* style

* GDTCORFlatFileStorage: comments and debug logs

* formatting

* GDTCCTUploaderTest: recover tests

* GDTCCTTestServer: support for async request handler

* GDTCCTUploaderTest: ongoing request tests

* GDTCORStorageProtocol: remove redundant `eventsInBatchWithID` method.

* GDTCORFlatFileStorageTest: `removeBatchWithID` tests

* Cleanup

* GDTCORFlatFileStorage: cleanup

* GDTCORFlatFileStorageTest: better coverage and cleanup

* Comments and improvements

* GDTCCTUploaderTest: reduce code duplication

* GDTCCTUploaderTest: conditions tests

* GDTCCTUploader: fix next request wait time

* run ./scripts/style.sh
2020-07-07 09:10:22 -04:00
Paul Beusterien 67898e7efa GDT Repo-relative imports and SPM (#5909) 2020-06-24 17:50:15 -07:00