Skip to content

Commit

Permalink
change class to struct
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylEnkidu committed Jan 7, 2025
1 parent 7d2362b commit 5dc9783
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Firestore/Swift/Source/SwiftAPI/Pipeline.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#endif

@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
public class Pipeline {
public struct Pipeline {
var cppObj: firebase.firestore.api.Pipeline

public init(_ cppSource: firebase.firestore.api.Pipeline) {
Expand Down
2 changes: 1 addition & 1 deletion Firestore/Swift/Source/SwiftAPI/PipelineResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#endif

@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
public class PipelineResult {
public struct PipelineResult {
let cppObj: firebase.firestore.api.PipelineResult

public init(_ cppSource: firebase.firestore.api.PipelineResult) {
Expand Down
2 changes: 1 addition & 1 deletion Firestore/Swift/Source/SwiftAPI/PipelineSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#endif

@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
public class PipelineSource {
public struct PipelineSource {
let cppObj: firebase.firestore.api.PipelineSource

public init(_ cppSource: firebase.firestore.api.PipelineSource) {
Expand Down
14 changes: 14 additions & 0 deletions Firestore/core/interfaceForSwift/api/collection_stage.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2025 Google LLC
//
// 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.

#include "Firestore/core/interfaceForSwift/api/collection_stage.h"
#include <iostream>

Expand Down
14 changes: 14 additions & 0 deletions Firestore/core/interfaceForSwift/api/firestore_pipeline.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2025 Google LLC
//
// 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.

#include "Firestore/core/interfaceForSwift/api/firestore_pipeline.h"
#include "Firestore/core/src/api/firestore.h"

Expand Down
14 changes: 14 additions & 0 deletions Firestore/core/interfaceForSwift/api/pipeline.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2025 Google LLC
//
// 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.

#include "Firestore/core/interfaceForSwift/api/pipeline.h"

#include <future> // NOLINT(build/c++11)
Expand Down
13 changes: 13 additions & 0 deletions Firestore/core/interfaceForSwift/api/pipeline_result.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright 2025 Google LLC
//
// 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.

#include "Firestore/core/interfaceForSwift/api/pipeline_result.h"
#include "Firestore/core/include/firebase/firestore/timestamp.h"
Expand Down
14 changes: 14 additions & 0 deletions Firestore/core/interfaceForSwift/api/pipeline_source.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2025 Google LLC
//
// 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.

#include "Firestore/core/interfaceForSwift/api/pipeline_source.h"
#include "Firestore/core/interfaceForSwift/api/collection_stage.h"
#include "Firestore/core/src/api/document_reference.h"
Expand Down
14 changes: 14 additions & 0 deletions Firestore/core/interfaceForSwift/api/stage.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2025 Google LLC
//
// 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.

#include "Firestore/core/interfaceForSwift/api/stage.h"

namespace firebase {
Expand Down

0 comments on commit 5dc9783

Please sign in to comment.