This library is for internal Google use only. It allows the logging of data and telemetry from Google SDKs.
These instructions apply to minor and patch version updates. Major versions need a customized adaptation.
After the CI is green:
main branch and ensure it is up to date.
git checkout main
git pull
{version} will be the latest version in the podspec)
git tag CocoaPods-{version}
git push origin CocoaPods-{version}
If this version of GDT is intended to launch before or with the next Firebase release:
pod repo push --skip-tests staging GoogleDataTransport.podspec
If the command fails with Unable to find the 'staging' repo., add the staging repo with:
pod repo add staging git@github.com:firebase/SpecsStaging.git
Otherwise:
pod repo push --skip-tests dev GoogleDataTransport.podspec
If the command fails with Unable to find the 'dev' repo., add the dev repo with:
pod repo add dev git@github.com:firebase/SpecsDev.git
Gemfile./google/data/ro/teams/copybara/copybara third_party/firebase/ios/Releases/GoogleDataTransport/copy.bara.sky \ --piper-description-behavior=OVERWRITE \ --destination-cl=YOUR_CL gdt
The release process is as follows:
By creating and pushing a tag for Swift PM, the newly tagged version will be immediately released for public use. Given this, please verify the intended time of release for Swift PM.
git tag {version}
git push origin {version}
Note: Ensure that any inflight PRs that depend on the new GoogleDataTransport version are updated to point to the
newly tagged version rather than a checksum.
Publish the newly versioned pod to CocoaPods
It's recommended to point to the GoogleDataTransport.podspec in staging to make sure the correct spec is being published.
pod trunk push ~/.cocoapods/repos/staging/GoogleDataTransport/{version}/GoogleDataTransport.podspec --skip-tests
The pod push was successful if the above command logs: 🚀 GoogleDataTransport ({version}) successfully published.
In addition, a new commit that publishes the new version (co-authored by CocoaPodsAtGoogle)
should appear in the CocoaPods specs repo. Last, the latest version should be displayed
on GoogleDataTransport's CocoaPods page.
Update the release template's Tag version and Release title fields with the latest version. In addition, reference the Release Notes in the release's description.
See this release for an example.
Don't forget to perform the post release cleanup!
pwd=$(pwd)
mkdir -p /tmp/release-cleanup && cd $_
git clone git@github.com:firebase/SpecsStaging.git
cd SpecsStaging/
git rm -rf GoogleDataTransport/
git commit -m "Post publish cleanup"
git push origin master
rm -rf /tmp/release-cleanup
cd $pwd
GoogleDataTransport module:
import GoogleDataTransport
FirebaseApp.configure():
GDTCORConsoleLoggerLoggingLevel = GDTCORLoggingLevel.debug.rawValue
GoogleDataTransport:
#import <GoogleDataTransport/GoogleDataTransport.h>
-[FIRApp configure]:
GDTCORConsoleLoggerLoggingLevel = GDTCORLoggingLevelDebug;
gem install --user cocoapods cocoapods-generatebrew install protobuf nanopb-generatoreasy_install --user protobuf./GoogleDataTransport/generate_project.sh after installing the prereqspython -c "line='https://www.firebase.com'; print line[0::2]" python -c "line='https://www.firebase.com'; print line[1::2]" Ensure that you have at least the following software:
For the pod that you want to develop:
pod gen GoogleDataTransport.podspec --local-sources=./ --auto-open --platforms=ios
Note: If the CocoaPods cache is out of date, you may need to run
pod repo update before the pod gen command.
Note: Set the --platforms option to macos or tvos to develop/test for
those platforms. Since 10.2, Xcode does not properly handle multi-platform
CocoaPods workspaces.
pod gen GoogleDataTransport.podspec --local-sources=./ --auto-open --platforms=iosAlternatively disable signing in each target:
+Add User-Defined SettingCODE_SIGNING_REQUIRED setting with a value of NOTo ensure that the code is formatted consistently, run the script ./scripts/check.sh before creating a PR.
GitHub Actions will verify that any code changes are done in a style compliant
way. Install clang-format and mint:
brew install clang-format@14
brew install mint
Select a scheme and press Command-u to build a component and run its unit tests.
See Contributing for more information on contributing to the Firebase iOS SDK.
The contents of this repository is licensed under the Apache License, version 2.0.