-
Notifications
You must be signed in to change notification settings - Fork 1.6k
gRPC: replace Objective-C implementation with the new C++ implementation #1968
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
Changes from 24 commits
805b673
839f408
a93b783
4fe32a1
0ea6fcc
21d30b6
7f60ad0
feb0285
8332a5f
ab6df2e
9f9d94d
555e1d8
6f0d4e6
84e454b
c96f670
e2e53b0
1bcfc0f
2d68f12
80a938e
9c1dec6
d638062
abceb14
dc872a7
c4d99d7
90c3b43
cf856e6
33555c9
f1c8f5d
1a5acc7
101b611
1f6ee21
348a924
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,6 @@ | |
5492E07A202154D600B64F25 /* FIRTypeTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5492E071202154D600B64F25 /* FIRTypeTests.mm */; }; | ||
5492E07F202154EC00B64F25 /* FSTTransactionTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5492E07B202154EB00B64F25 /* FSTTransactionTests.mm */; }; | ||
5492E080202154EC00B64F25 /* FSTSmokeTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5492E07C202154EB00B64F25 /* FSTSmokeTests.mm */; }; | ||
5492E081202154EC00B64F25 /* FSTStreamTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5492E07D202154EB00B64F25 /* FSTStreamTests.mm */; }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's a lot of unexpected changes to this file. Is that on purpose? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes are on purpose:
Let me know if I overlooked any changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually FSTStreamTests is cross platform i.e. the same test cases are also in Android native client code. However, they are not based on public API. I guess it is OK to remove them for now. But my 1 cent is that integration tests and unit tests are compliment each other (we may want to add one one day). |
||
5492E082202154EC00B64F25 /* FSTDatastoreTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5492E07E202154EC00B64F25 /* FSTDatastoreTests.mm */; }; | ||
5492E09D2021552D00B64F25 /* FSTLocalStoreTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5492E0832021552A00B64F25 /* FSTLocalStoreTests.mm */; }; | ||
5492E09F2021552D00B64F25 /* FSTLevelDBMigrationsTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5492E0862021552A00B64F25 /* FSTLevelDBMigrationsTests.mm */; }; | ||
|
@@ -360,7 +359,6 @@ | |
5492E071202154D600B64F25 /* FIRTypeTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FIRTypeTests.mm; sourceTree = "<group>"; }; | ||
5492E07B202154EB00B64F25 /* FSTTransactionTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FSTTransactionTests.mm; sourceTree = "<group>"; }; | ||
5492E07C202154EB00B64F25 /* FSTSmokeTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FSTSmokeTests.mm; sourceTree = "<group>"; }; | ||
5492E07D202154EB00B64F25 /* FSTStreamTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FSTStreamTests.mm; sourceTree = "<group>"; }; | ||
5492E07E202154EC00B64F25 /* FSTDatastoreTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FSTDatastoreTests.mm; sourceTree = "<group>"; }; | ||
5492E0832021552A00B64F25 /* FSTLocalStoreTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FSTLocalStoreTests.mm; sourceTree = "<group>"; }; | ||
5492E0852021552A00B64F25 /* FSTRemoteDocumentCacheTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FSTRemoteDocumentCacheTests.h; sourceTree = "<group>"; }; | ||
|
@@ -1231,7 +1229,6 @@ | |
DE03B3621F215E1600A30B9C /* CAcert.pem */, | ||
5492E07E202154EC00B64F25 /* FSTDatastoreTests.mm */, | ||
5492E07C202154EB00B64F25 /* FSTSmokeTests.mm */, | ||
5492E07D202154EB00B64F25 /* FSTStreamTests.mm */, | ||
5492E07B202154EB00B64F25 /* FSTTransactionTests.mm */, | ||
); | ||
path = Integration; | ||
|
@@ -1267,6 +1264,7 @@ | |
54C9EDEE2040E16300A969CD /* Frameworks */, | ||
54C9EDEF2040E16300A969CD /* Resources */, | ||
EA424838F4A5DD7B337F57AB /* [CP] Embed Pods Frameworks */, | ||
DE5C36328822481F6EB6EF16 /* [CP] Copy Pods Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
|
@@ -1307,6 +1305,7 @@ | |
6003F587195388D20070C39A /* Frameworks */, | ||
6003F588195388D20070C39A /* Resources */, | ||
1EE692C7509A98D7EB03CA51 /* [CP] Embed Pods Frameworks */, | ||
1E7DAED3207D01F1744EA227 /* [CP] Copy Pods Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
|
@@ -1507,6 +1506,24 @@ | |
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXShellScriptBuildPhase section */ | ||
1E7DAED3207D01F1744EA227 /* [CP] Copy Pods Resources */ = { | ||
isa = PBXShellScriptBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
); | ||
inputPaths = ( | ||
"${SRCROOT}/Pods/Target Support Files/Pods-Firestore_Example_iOS/Pods-Firestore_Example_iOS-resources.sh", | ||
"${PODS_CONFIGURATION_BUILD_DIR}/FirebaseFirestore/gRPCCertificates.bundle", | ||
); | ||
name = "[CP] Copy Pods Resources"; | ||
outputPaths = ( | ||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/gRPCCertificates.bundle", | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
shellPath = /bin/sh; | ||
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Firestore_Example_iOS/Pods-Firestore_Example_iOS-resources.sh\"\n"; | ||
showEnvVarsInLog = 0; | ||
}; | ||
1EE692C7509A98D7EB03CA51 /* [CP] Embed Pods Frameworks */ = { | ||
isa = PBXShellScriptBuildPhase; | ||
buildActionMask = 2147483647; | ||
|
@@ -1518,11 +1535,8 @@ | |
"${BUILT_PRODUCTS_DIR}/GTMSessionFetcher/GTMSessionFetcher.framework", | ||
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework", | ||
"${BUILT_PRODUCTS_DIR}/Protobuf-iOS8.0/Protobuf.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC/GRPCClient.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC-C++/grpcpp.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC-Core/grpc.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC-ProtoRPC/ProtoRPC.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC-RxLibrary/RxLibrary.framework", | ||
"${BUILT_PRODUCTS_DIR}/leveldb-library/leveldb.framework", | ||
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework", | ||
); | ||
|
@@ -1532,11 +1546,8 @@ | |
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GTMSessionFetcher.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Protobuf.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GRPCClient.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/grpcpp.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/grpc.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ProtoRPC.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxLibrary.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/leveldb.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework", | ||
); | ||
|
@@ -1754,6 +1765,24 @@ | |
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; | ||
showEnvVarsInLog = 0; | ||
}; | ||
DE5C36328822481F6EB6EF16 /* [CP] Copy Pods Resources */ = { | ||
isa = PBXShellScriptBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
); | ||
inputPaths = ( | ||
"${SRCROOT}/Pods/Target Support Files/Pods-Firestore_Example_iOS-Firestore_SwiftTests_iOS/Pods-Firestore_Example_iOS-Firestore_SwiftTests_iOS-resources.sh", | ||
"${PODS_CONFIGURATION_BUILD_DIR}/FirebaseFirestore/gRPCCertificates.bundle", | ||
); | ||
name = "[CP] Copy Pods Resources"; | ||
outputPaths = ( | ||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/gRPCCertificates.bundle", | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
shellPath = /bin/sh; | ||
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Firestore_Example_iOS-Firestore_SwiftTests_iOS/Pods-Firestore_Example_iOS-Firestore_SwiftTests_iOS-resources.sh\"\n"; | ||
showEnvVarsInLog = 0; | ||
}; | ||
EA424838F4A5DD7B337F57AB /* [CP] Embed Pods Frameworks */ = { | ||
isa = PBXShellScriptBuildPhase; | ||
buildActionMask = 2147483647; | ||
|
@@ -1765,11 +1794,8 @@ | |
"${BUILT_PRODUCTS_DIR}/GTMSessionFetcher/GTMSessionFetcher.framework", | ||
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework", | ||
"${BUILT_PRODUCTS_DIR}/Protobuf-iOS8.0/Protobuf.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC/GRPCClient.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC-C++/grpcpp.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC-Core/grpc.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC-ProtoRPC/ProtoRPC.framework", | ||
"${BUILT_PRODUCTS_DIR}/gRPC-RxLibrary/RxLibrary.framework", | ||
"${BUILT_PRODUCTS_DIR}/leveldb-library/leveldb.framework", | ||
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework", | ||
); | ||
|
@@ -1779,11 +1805,8 @@ | |
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GTMSessionFetcher.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Protobuf.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GRPCClient.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/grpcpp.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/grpc.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ProtoRPC.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxLibrary.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/leveldb.framework", | ||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework", | ||
); | ||
|
@@ -2002,7 +2025,6 @@ | |
5492E0422021440500B64F25 /* FSTHelpers.mm in Sources */, | ||
5491BC731FB44593008B3588 /* FSTIntegrationTestCase.mm in Sources */, | ||
5492E080202154EC00B64F25 /* FSTSmokeTests.mm in Sources */, | ||
5492E081202154EC00B64F25 /* FSTStreamTests.mm in Sources */, | ||
5492E07F202154EC00B64F25 /* FSTTransactionTests.mm in Sources */, | ||
5492E0442021457E00B64F25 /* XCTestCase+Await.mm in Sources */, | ||
B67BF44A216EB43000CA9097 /* create_noop_connectivity_monitor.cc in Sources */, | ||
|
@@ -2217,14 +2239,6 @@ | |
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/Protobuf/Protobuf.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-Core/grpc.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-ProtoRPC/ProtoRPC.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-RxLibrary/RxLibrary.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC/GRPCClient.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/leveldb-library/leveldb.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/nanopb/nanopb.framework/Headers\"", | ||
|
@@ -2301,14 +2315,6 @@ | |
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/Protobuf/Protobuf.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-Core/grpc.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-ProtoRPC/ProtoRPC.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-RxLibrary/RxLibrary.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC/GRPCClient.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/leveldb-library/leveldb.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/nanopb/nanopb.framework/Headers\"", | ||
|
@@ -2510,14 +2516,6 @@ | |
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/Protobuf/Protobuf.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-Core/grpc.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-ProtoRPC/ProtoRPC.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-RxLibrary/RxLibrary.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC/GRPCClient.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/leveldb-library/leveldb.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/nanopb/nanopb.framework/Headers\"", | ||
|
@@ -2595,14 +2593,6 @@ | |
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/Protobuf/Protobuf.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-Core/grpc.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-ProtoRPC/ProtoRPC.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC-RxLibrary/RxLibrary.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/gRPC/GRPCClient.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/leveldb-library/leveldb.framework/Headers\"", | ||
"-iquote", | ||
"\"${PODS_CONFIGURATION_BUILD_DIR}/nanopb/nanopb.framework/Headers\"", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that you've deleted the old location, but this commit doesn't seem to have added the new location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Fixed.