-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Implement Firebase CoreDiagnostics #3129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
d16f13c
Implement CoreDiagnostics interop
mikehaney24 31ac624
Add CoreDiagnosticsInterop to the Example Podfile
mikehaney24 559dab3
Style and xcodeproj updates
mikehaney24 abbb63e
Update Podfiles that dep on FirebaseCore
mikehaney24 7a9590e
ran pod deintegrate to remove unintended xcodeproj changes
mikehaney24 0bba31a
Fix Podfile paths
mikehaney24 2c4134c
Add FCD to if_changed and travis.yml
mikehaney24 b7d0d08
Fix building with Firestore
mikehaney24 d5608af
Style
mikehaney24 d5b9994
Whitespace
mikehaney24 669f559
Fix a changed internal API
mikehaney24 c08b8c8
Make pod paths consistent
mikehaney24 993c1c5
Merge branch 'master' into mph-master
mikehaney24 b24b109
Restore connectivity_monitor_noop.cc style
mikehaney24 06c1f6a
Remove logging prior to [FIRApp configure]
mikehaney24 13491b9
style
mikehaney24 488cade
Remove nil checks from diagnostics data
mikehaney24 e3e0cc5
Put back some deleted symbols
mikehaney24 ac3c700
Restore the sendLogsWithServiceName:version: method, but as a no-op
mikehaney24 9339939
Restore the original version of sendLogs...
mikehaney24 31b853e
Allow an unused parameter
mikehaney24 3a0e3ce
Remove obsolete nsnotificationcenter related stuff
mikehaney24 a17a79c
Whoops, missed the header change.
mikehaney24 c099b91
Final changes to support FIRCoreDiagnostics
mikehaney24 ea08328
Add nanopb and project generation infrastructure
mikehaney24 1e17441
Convert FIRCoreDiagnostics to canonical nanopb, and move to OSS.
mikehaney24 9adaaff
Remove custom build steps for CoreDiagnostics
mikehaney24 a3f621a
Addressing review comments
mikehaney24 ff5fcbc
Update versions, tags, and port the relevant unit tests for FIRCD
mikehaney24 120eb36
Version and platform fixes
mikehaney24 643f8ca
Fix podspec expected tags
mikehaney24 4106333
A hack to solve a chicken-and-egg problem with pod lib linting.
mikehaney24 95573be
Heartbeat implementation
maksymmalyhin 8c5e98c
FIRDiagnosticsDateFileStorageTests
maksymmalyhin 64bbb49
Fix tests for non-iOS platforms
mikehaney24 044b96f
Heartbeat tests
maksymmalyhin 6c5aded
Fix initialization.
maksymmalyhin 67090df
Cleanup Installation ID.
maksymmalyhin 712ae83
Fix testProtoPopulation.
maksymmalyhin d803c7b
Merge branch 'mph-master6' into mm/cd-heartbeat-7
maksymmalyhin 52a5349
Merge conflict fix
maksymmalyhin d7b4722
Typo fix.
maksymmalyhin 928e7df
Remove FIRCore dep from FIRCD unit tests and move symbols to interop
mikehaney24 aaf48a8
Run ./scripts/style.sh
maksymmalyhin b6aec9a
Typo
maksymmalyhin bbd2722
Merge branch 'mph-master6' into mm/cd-heartbeat-7
maksymmalyhin 106eea7
#ifdef comment
maksymmalyhin cc27324
File license header.
maksymmalyhin 8b1b6f9
Import FIRDiagnosticsDateFileStorage.h using relative path.
maksymmalyhin c0902e9
FIRDiagnostics -> FIRCoreDiagnostics
maksymmalyhin 1f60777
Docs syntax
maksymmalyhin 9a8897e
Docs
maksymmalyhin 7a5d6ee
Docs typo
maksymmalyhin e03f204
Add shared variables to the interop lib
mikehaney24 c0178e4
Fix comment
mikehaney24 9205321
Style
mikehaney24 4a0365c
Removed lib version passing.
mikehaney24 2173c96
Remove env checking for conditional deps
mikehaney24 3a407e2
Merge remote-tracking branch 'origin/mm/cd-heartbeat-7' into mph-master6
mikehaney24 0764f49
Merge branch 'mph-master5' into mph-master4
mikehaney24 19497b6
Merge branch 'mph-master4' into mph-master3
mikehaney24 a3adca1
Merge branch 'mph-master3' into mph-master2
mikehaney24 bdedb72
Merge branch 'master' into mph-master
mikehaney24 cf28e6a
Style
mikehaney24 ee86ff9
Address whitespace issues
mikehaney24 0902411
Add copyright notice
mikehaney24 174f787
Add new deps to Podfiles
mikehaney24 3e7f30f
Fix trailing space
mikehaney24 8fd0c16
Some changes to fix working in an extension.
mikehaney24 d4150af
Fix type in Podfile
mikehaney24 10e95ff
GDT: begin/end background task only for iOS and TVOS applications.
maksymmalyhin 770cc1b
Fix typo
mikehaney24 d740533
Style
mikehaney24 59febdc
Stop sharing kFIRService strings across pods
paulb777 6e7655f
Travis test
paulb777 efb9fba
Change all TARGET_OS_TVOS macros to TARGET_OS_TV
mikehaney24 7f78f62
style
paulb777 458e220
Merge branch 'mph-master' into pb-cleanup-firservice
mikehaney24 fbc3dbc
Update all Podfiles with deps on FIRCore
mikehaney24 4e59eb9
Fix trailing whitespace
mikehaney24 a4cadc6
Merge branch 'pb-cleanup-firservice' into mph-master
mikehaney24 30f0a9d
Update Firestore cmake
mikehaney24 c796400
Fix FIAM build break (#3254)
paulb777 ea17e78
Additional cmake changes
mikehaney24 232b859
Fix linker issue with deprecated CoreDiagnostics (#3257)
paulb777 6fe1982
Adding more deps to cmake
mikehaney24 03824d8
Merge branch 'mph-master' of github.com:firebase/firebase-ios-sdk int…
mikehaney24 b4694d0
Fix linker error (#3266)
paulb777 2d26359
Add support for expanding PODS_TARGET_SRCROOT in CMake (#3267)
wilhuff af071cd
Merge branch 'master' into mph-master
mikehaney24 2cd11f9
Remove typed enum and fix a comment.
mikehaney24 0f4429f
Fix an import
mikehaney24 a248f45
Change a line so it's not altered by Copybara
mikehaney24 02db971
More changes to stop copybara from altering the wrong sources
mikehaney24 4a17d67
Remove trailing whitespace
mikehaney24 c11a30f
Fix copybara modifying python.
mikehaney24 8934d34
Merge branch 'master' into mph-master
mikehaney24 9788b8e
Add additional field in firebasecore.proto (#3273)
mikehaney24 5e68863
Merge branch 'master' into mph-master
mikehaney24 33079bf
Merge branch 'mph-master' of github.com:firebase/firebase-ios-sdk int…
mikehaney24 b01adee
Remove the dependency on interop to populate a shared variable.
mikehaney24 1b88ff1
style
mikehaney24 c855226
Merge branch 'master' into mph-master
mikehaney24 6e0b462
Create travis jobs for FirebaseCoreDiagnostics (#3245)
mikehaney24 d2b21a3
Merge branch 'mph-master' of github.com:firebase/firebase-ios-sdk int…
mikehaney24 c7a5303
Remove mph-master from travis
mikehaney24 f28f1db
Fix constant name conflic between old and new diagnostics (#3329)
maksymmalyhin 3f0910c
Rempve mph-master again
mikehaney24 49f013a
Fix imports in FIRCDConnector
mikehaney24 56c9279
Fix another import
mikehaney24 ef521aa
Fix yet another import
mikehaney24 2842b24
Merge branch 'master' into mph-master
mikehaney24 da1c4ab
Attempt to read crashing test logs from disk
mikehaney24 9266085
Implement printing of failed/crashed test logs.
mikehaney24 40a85ba
Print only crashed tests, rmdir between runs
mikehaney24 1fedd3a
Revert reading crashing log changes
mikehaney24 cac286b
Write CHANGELOG for all new FIRCD associated libraries
mikehaney24 e258fce
Change all GUL deps to >= 6.2
mikehaney24 34f064c
Merge branch 'master' into mph-master
mikehaney24 c3059fe
Revert ZipBuilder changes and do some last bits of cleanup
mikehaney24 ad5071c
Remove an assertion and populate an error instead
mikehaney24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| /* | ||
| * Copyright 2019 Google | ||
| * | ||
| * 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. | ||
| */ | ||
|
|
||
| #import <XCTest/XCTest.h> | ||
|
|
||
| #import <FirebaseCore/FIRDiagnosticsData.h> | ||
|
|
||
| @interface FIRDiagnosticsDataTest : XCTestCase | ||
|
|
||
| @end | ||
|
|
||
| @implementation FIRDiagnosticsDataTest | ||
|
|
||
| /** Tests initialization. */ | ||
| - (void)testInit { | ||
| FIRDiagnosticsData *data = [[FIRDiagnosticsData alloc] init]; | ||
| XCTAssertNotNil(data); | ||
| } | ||
|
|
||
| /** Tests that -diagnosticObjects returns a valid default dictionary. */ | ||
| - (void)testFIRCoreDiagnosticsData { | ||
| FIRDiagnosticsData *data = [[FIRDiagnosticsData alloc] init]; | ||
| XCTAssertNotNil(data.diagnosticObjects); | ||
| XCTAssertNotNil(data.diagnosticObjects[kFIRCDIsDataCollectionDefaultEnabledKey]); | ||
| XCTAssertNotNil(data.diagnosticObjects[kFIRCDllAppsCountKey]); | ||
| XCTAssertNotNil(data.diagnosticObjects[kFIRCDFirebaseUserAgentKey]); | ||
| } | ||
|
|
||
| /** Tests that setting diagnosticObjects throws. */ | ||
| - (void)testSettingDiagnosticObjectsThrows { | ||
| FIRDiagnosticsData *data = [[FIRDiagnosticsData alloc] init]; | ||
| XCTAssertThrows(data.diagnosticObjects = @{}); | ||
| } | ||
|
|
||
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.