Commit Graph
504 Commits
Author SHA1 Message Date
Jesus CrespoandPaul Beusterien 52b3560eab Add functions spm unit and build tests (#8499)
* Update FunctionsAPITests.swift with watchos and Task

* Add watchos deployment target to Functions podspec

* Add spm Functions unit and build tests

* Update travis.yml for functions and watchos

* Disable failing travis test, passes locally, wait for Xcode 12.5 on GHA

* Changelog

* Delete unused files

Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2021-08-16 19:08:55 -05:00
Jeremy JiangandPaul Beusterien ec193d0150 Add Performance Support for Swift Package Manager (#8412)
* Create NanoPb code generation scripts (#8336)

* Create NanoPb code generation scripts

* Fix style and add README

* Fix copyright

* Update proto_generator.py

* Update README.md

* Create nanopb options file. (#8371)

* Create NanoPb code generation scripts

* Fix style and add README

* Fix copyright

* Update perf_metrics.options

* Update options with map

* Add generated proto files.

* Update imports.

* Convert Objective-C Classes to Nanopb (#8387)

* Convert all traces to nanopb

* Refactor for loop.

* Add set has_application_info to true.

* Incorporated comments.

* Fix style

* Create NanoPb code generation scripts (#8336)

* Create NanoPb code generation scripts

* Fix style and add README

* Fix copyright

* Update proto_generator.py

* Update README.md

* Create nanopb options file. (#8371)

* Create NanoPb code generation scripts

* Fix style and add README

* Fix copyright

* Update perf_metrics.options

* Update options with map

* Add generated proto files.

* Update imports.

* Convert Objective-C Classes to Nanopb (#8387)

* Convert all traces to nanopb

* Refactor for loop.

* Add set has_application_info to true.

* Incorporated comments.

* Fix style

* Fix style

* Convert nanopb struct to GDTCOREventDataObject and update the source code to use nanopb struct. (#8439)

* Convert all traces to nanopb

* Refactor for loop.

* WIP: nanopb conversion in FPRClient and FPREvent

* Update FPRClientTest.m

* Update FPRClient.m

* Update FPRClientTest.m

* Add set has_application_info to true.

* Remove proto imports.

* Set has_fields to be true in FPRTestUtils.m

* Completed GDTEvent conversion.

* Fix sampler tests.

* Fix style

* Refactor nanopb struct setter

* Fix style

* Fix pod-lib-lint failures.

* Update FPRClient with decoded string

* Set some "_has" fields to true.

* Add prefix to extern methods.

* Fix style.

* Update FPRClient to use trace.name without FPRDecodeString

* Fix style

* Incorporate comments.

* Integrate Performance with SPM (#8476)

* Convert all traces to nanopb

* Refactor for loop.

* WIP: nanopb conversion in FPRClient and FPREvent

* Update FPRClientTest.m

* Update FPRClient.m

* Update FPRClientTest.m

* Add set has_application_info to true.

* Remove proto imports.

* Set has_fields to be true in FPRTestUtils.m

* Completed GDTEvent conversion.

* Fix sampler tests.

* Fix style

* Refactor nanopb struct setter

* Fix style

* Fix pod-lib-lint failures.

* Update FPRClient with decoded string

* Set some "_has" fields to true.

* Add prefix to extern methods.

* Fix style.

* Update FPRClient to use trace.name without FPRDecodeString

* Fix style

* Update Package.swift

* Update Package.swift

* Update Package.swift

* Made SDK and unit tests buildable.

* Made all unit tests passing.

* Update keyWindow style.

* Add Performance to workflow.

* Update FPRUIViewControllerInstrument.h

* Incorporate comments.

* Add Performance to SwiftPMTests.

* Update style.

* Fix Unit tests and update workflow.

* Add FirebasePerformance wrapper

* Update import statement.

* Update style.

* Update performance.yml

* Create PerformanceUnit.xcscheme

* Update objc-module.m

* Update objc-module.m

* Updae objc-header.m

* Update objc-header.m

* Incorporate feedback.

* Update objc-header.m

* Organize folder structure to fix the spm tests.

* Update public import path

* Delete xcodebuild.log

* Update workflow files

* Fix failing swift-test for Perf SPM (#8507)

* Fix UIKit import

* Update FPRNetworkTraceTest.m

* Exclude TARGET_OS_MACCATALYST from objc header test

* Update main.swift

* Update main.swift

Co-authored-by: Paul Beusterien <paulbeusterien@google.com>

* Remove Protobuf dependency  (#8511)

* Remove protobuf dependency

* Update FirebasePerformance.podspec

* Incorporate comments.

* Update UIKit import

Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2021-08-10 13:41:18 -04:00
Maksym Malyhin 9a3bcfd904 Configure test keychain for macOS tests (#8494)
* Configure test keychain for macOS tests

* Check if the tests fail without the test keychain

* Disable unrelated tests temporary

* fix platform

* fix

* Test app check

* Apply fix to FCM and App Check

* Fix FCM GHA

* Line break

* Set test keychain as login keychain

* Typo

* Revert setting login keychain

* Disable keychain auto-locking
2021-08-04 21:48:15 -04:00
Paul Beusterien 0ff3baaaae Add DatabaseUnitSwift scheme and add it to GHA (#8465) 2021-07-30 09:15:53 -07:00
wu-hui a0f054e51b Add script to check for absl reference from Firestore/core/api (#8309)
* Add script to check for absl reference from Firestore/core/api

* Feedback

* More feedback
2021-07-27 09:56:53 -04:00
Paul Beusterien d550a72e81 Use GoogleAppMeasurement main branch instead of release tag for CI (#8426) 2021-07-23 08:34:51 -07:00
Gran 04ab074265 Update patterns to avoid triggering testing (#8419)
* Update patterns to avoid triggering testing

* Update code_coverage_file_list.json
2021-07-20 14:40:45 -07:00
Paul Beusterien d287788cf7 Fix tvOS SPM tests (#8403) 2021-07-20 09:11:24 -07:00
Paul Beusterien c7ddad3833 Update more workflows for new crashlytics qs location (#8338) 2021-07-05 17:00:07 -07:00
Morgan Chen c6cc858ddc update crashlytics qs test with new dir (#8328)
* update crashlytics qs test with new dir

* fix bad path

* get rid of firebase 7 define
2021-07-02 09:37:48 -07:00
Paul Beusterien 4ef6248e77 Fix Swift version for zip tests (#8292) 2021-06-23 15:46:46 -07:00
Gran a1ce62a220 Fix One Line Coverage Report Post (#8229) 2021-06-10 12:13:14 -07:00
Paul Beusterien ec7c826ee0 Stop flooding Swift Package Manager projects with Firebase test schemes (#8212) 2021-06-08 07:29:58 -07:00
Gran 49e37df08f Add Incremental Code Coverage to the Workflow (#8197) 2021-06-07 08:48:50 -07:00
Gran 389c60f9c9 Post/update incremental coverage report on PRs. (#8186)
* Post/update incremental coverage report on PRs.
2021-06-04 12:10:43 -07:00
Gran 7f57f1f288 Generate a JSON file with newly added lines not covered by tests. (#8173)
* Generate a JSON file with newly added lines not covered by tests.
2021-06-03 16:20:04 -07:00
Gran 5f4a561f05 Create a JSON file with added lines. (#8160)
* Create a JSON file with added lines.
2021-06-01 09:23:59 -07:00
Gran d79ca57765 Applied shell wrapper to the current code coverage. (#8157)
* Applied shell wrapper to the current code coverage.
2021-05-27 09:39:50 -07:00
Gran 9c0e5bd8f0 Update params of code coverage tool (#8158)
* Update params.
2021-05-27 08:28:44 -07:00
Paul Beusterien d9343f6c56 Build release zip from GHA (#8093) 2021-05-20 07:18:43 -07:00
Paul Beusterien 4311d2906c Always build Carthage with Firebase zip distributions (#8098) 2021-05-17 17:06:19 -07:00
Paul Beusterien e789676eae Build and run Functions Combine Unit Tests from SPM (#8080) 2021-05-17 09:02:49 -07:00
Paul Beusterienandgranluo 8b3ee5f129 Fix Crashlytics qs in nightly zip test (#8049)
* update base name check.

Co-authored-by: granluo <granluo@google.com>
2021-05-11 14:39:39 -07:00
Gran 0edc0445c8 Remove -n when copy frameworks (#8056) 2021-05-10 12:56:34 -07:00
Gran 9514f84cb6 Fix a directory not able to be moved (#8053)
A framework/file could be moved twice for both '${SDK}Example` and `${SDK}ExampleSwift` quickstart. Update from `mv` to `cp` to make it able to copy more than once.  #8049
2021-05-07 16:26:15 -07:00
Paul BeusterienandPeter Friese 2f457c268d Port Storage Integration tests to Combine (#7959)
* Another take on verifying expected errors. (#7982)
Hat tip to https://heckj.github.io/swiftui-notes/#patterns-testing-and-debugging
Signed-off-by: Peter Friese <peter@peterfriese.de>

Co-authored-by: Peter Friese <peter@peterfriese.de>
2021-05-05 12:29:35 -07:00
Morgan Chen 8877fb3554 Add app check to release notes script (#8018) 2021-04-30 14:52:09 -07:00
Chen Liang 429bac463c Remove InstanceID from Github repo (#7970) 2021-04-27 11:54:03 -07:00
Gran f889a83438 Add readme for podspec presubmit tests (#7968)
* Add readme for podspec presubmit tests
2021-04-26 15:43:39 -07:00
Gran f395890ab0 Update release tag in testing. (#7960)
* Update release tag in testing.

* Test workflow
2021-04-26 08:50:25 -07:00
Gran f4ce8b2cef Update tag/branch searching for release testing. (#7951) 2021-04-24 02:19:05 -07:00
Gran 9ff12a6bfc Add podspec presubmit tests. (#7934)
* Add podspec presubmit tests.
2021-04-23 11:55:52 -07:00
Gran 980bcdfd61 Exclude FirebaseFirestoreTestingSupport in release (#7924)
* Optimize the tool and exclude FirebaseFirestoreTestingSupport, FirebaseAuthTestingSupport, FirebaseCombineSwift and FirebaseFunctionsTestingSupport in release
2021-04-21 16:06:05 -07:00
Peter Friese 78a82e369f Merge branch 'combine-main' 2021-04-19 22:33:58 +02:00
Paul Beusterien c4e994c7c4 Update to clang-format 12 (#7909) 2021-04-16 09:17:41 -07:00
Peter Friese fb3654167d Merge branch 'master' into combine-main
Signed-off-by: Peter Friese <peter@peterfriese.de>

# Conflicts:
#	.swiftpm/xcode/xcshareddata/xcschemes/Firebase-Package.xcscheme
2021-04-14 11:08:14 +02:00
Paul Beusterien 6eaf76142b Fix Storage Integration Test CI (#7874) 2021-04-09 18:00:55 -07:00
Gran 33f1256f4f Transfer main branch testing podspec repo to open source. (#7869)
* Transfer master branch testing podspec repo to open source.

* Update the tool to only remove dirs and retain CONTRIBUTION, LICENSE and README.md.
2021-04-09 11:58:03 -07:00
Paul Beusterien 724caede52 Run unit tests from pod lib lint (#7872) 2021-04-09 10:12:21 -07:00
Gran 1dbc0edd8d Fix release workflow. (#7868) 2021-04-08 13:18:48 -07:00
Paul Beusterien ff68d2e0af Use Result type APIs for Storage Combine (#7862)
* Use Result type APIs for Storage Combine
* Allow internal public header from another public header
* Delete redundant check job
2021-04-08 09:23:46 +02:00
Gran aeeb015de8 Fix release workflow. (#7859) 2021-04-07 17:59:00 -07:00
Gran ee5aaccd73 Update nightly release testing to release branch (#7848)
* Update nightly release testing to release branch

* Fix typo
2021-04-06 10:59:52 -07:00
Paul Beusterien b163ec5058 Firebase pod support for watchOS for RC and RTDB (#7841) 2021-04-05 11:41:33 -07:00
Paul Beusterien 4ac28335e7 Firmer SPM dependency versions and iOS device build check (#7838) 2021-04-05 10:54:55 -07:00
Gran e299e645a4 Add SpecsDev to source (#7820)
* Let build_zip.sh add multiple sources.
2021-04-01 16:36:38 -07:00
Gran 881518c82a Update release test to generate testing repo with Cocoapods tags. (#7769)
* Update release workflow to generate an RC.

* Update pod source.
2021-03-24 09:56:41 -07:00
Gran 4a1f69854a Add test_spec parameters for podspecs with different test_spec name. (#7731)
* Add test_spec parameters for podspecs with different test_spec name.
2021-03-16 17:34:27 -07:00
Gran 1f2f5f617e Update release/prerelease workflows. (#7703)
The release workflow will run from the latest release branch of the SDK repo.
The prerelease workflow will run from the head of the master branch.

Pods tested in release workflow will source from
SpecsTesting repo
SpecsStaging repo
cdn

Pods tested in prerelease workflow will source from
SpecsReleasing repo
SpecsDev
SpecsStaging repo
cdn
2021-03-15 10:45:03 -07:00
Maksym Malyhin 627ebdcd45 CI: retry only 2 times (#7659) 2021-03-05 11:13:12 -05:00