Skip to content

Commit 11ae3e2

Browse files
cherylEnkiduwu-huincooke3
authored
Ppl API (#14513)
Co-authored-by: wu-hui <[email protected]> Co-authored-by: Nick Cooke <[email protected]>
1 parent 3ba08d6 commit 11ae3e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+5715
-321
lines changed

.github/workflows/firestore-nightly.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
name: firestore_nightly
1616

1717
on:
18+
pull_request:
19+
branches: [ "cheryllin/pplapi", "cheryllin/ppl" ]
1820
workflow_dispatch:
1921

2022
concurrency:
@@ -49,6 +51,7 @@ jobs:
4951
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
5052
MINT_PATH: ${{ github.workspace }}/mint
5153
TARGET_DATABASE_ID: ${{ matrix.databaseId }}
54+
USE_LATEST_CMAKE: false
5255

5356
runs-on: ${{ matrix.os }}
5457
steps:
@@ -77,6 +80,11 @@ jobs:
7780
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/firestore-nightly.plist.gpg \
7881
Firestore/Example/App/GoogleService-Info.plist "$plist_secret"
7982

83+
- name: Setup cmake
84+
uses: jwlawson/actions-setup-cmake@v2
85+
with:
86+
cmake-version: '3.31.1'
87+
8088
# Skipping terraform index creation because we are not allowed to download SA key json.
8189

8290
- name: Setup build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ FirebaseAppCheck/Apps/AppCheckCustomProvideApp/AppCheckCustomProvideApp/GoogleSe
155155
/Example/FirestoreSample/ui-debug.log
156156
/Example/FirestoreSample/firestore-debug.log
157157
/Example/FirestoreSample/firebase-debug.log
158+
Firestore/Example/GoogleService-Info.plist
158159

159160
# generated Terraform docs
160161
.terraform/*

Firestore/Example/Firestore.xcodeproj/project.pbxproj

Lines changed: 66 additions & 58 deletions
Large diffs are not rendered by default.

Firestore/Example/Tests/Util/FSTIntegrationTestCase.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ extern "C" {
5151
/** Returns the default Firestore database ID for testing. */
5252
+ (NSString *)databaseID;
5353

54+
+ (void)switchToEnterpriseMode;
55+
5456
+ (bool)isRunningAgainstEmulator;
5557

5658
/** Returns a FirestoreSettings configured to use either hexa or the emulator. */

Firestore/Example/Tests/Util/FSTIntegrationTestCase.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686

8787
static NSString *defaultProjectId;
8888
static NSString *defaultDatabaseId = @"(default)";
89+
static NSString *enterpriseDatabaseId = @"enterprise";
8990
static FIRFirestoreSettings *defaultSettings;
9091

9192
static bool runningAgainstEmulator = false;
@@ -273,6 +274,10 @@ + (NSString *)databaseID {
273274
return defaultDatabaseId;
274275
}
275276

277+
+ (void)switchToEnterpriseMode {
278+
defaultDatabaseId = enterpriseDatabaseId;
279+
}
280+
276281
+ (bool)isRunningAgainstEmulator {
277282
// The only way to determine whether or not we're running against the emulator is to figure out
278283
// which testing environment we're using. Essentially `setUpDefaults` determines

Firestore/Source/API/FIRPipelineBridge+Internal.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ NS_ASSUME_NONNULL_BEGIN
3535

3636
@end
3737

38+
@interface FIROrderingBridge (Internal)
39+
40+
- (std::shared_ptr<api::Ordering>)cppOrderingWithReader:(FSTUserDataReader *)reader;
41+
42+
@end
43+
3844
@interface FIRStageBridge (Internal)
3945

4046
- (std::shared_ptr<api::Stage>)cppStageWithReader:(FSTUserDataReader *)reader;
@@ -53,4 +59,10 @@ NS_ASSUME_NONNULL_BEGIN
5359

5460
@end
5561

62+
@interface FIRPipelineBridge (Internal)
63+
64+
- (std::shared_ptr<api::Pipeline>)cppPipelineWithReader:(FSTUserDataReader *)reader;
65+
66+
@end
67+
5668
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)