修改pods
This commit is contained in:
@@ -23,6 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* Represents an aggregation that can be performed by Firestore.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(AggregateField)
|
||||
@interface FIRAggregateField : NSObject
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* A query that calculates aggregations over an underlying query.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(AggregateQuery)
|
||||
@interface FIRAggregateQuery : NSObject
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* The results of executing an `AggregateQuery`.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(AggregateQuerySnapshot)
|
||||
@interface FIRAggregateQuerySnapshot : NSObject
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* A `CollectionReference` object can be used for adding documents, getting document references,
|
||||
* and querying for documents (using the methods inherited from `Query`).
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(CollectionReference)
|
||||
@interface FIRCollectionReference : FIRQuery
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ typedef NS_ENUM(NSInteger, FIRDocumentChangeType)
|
||||
* A `DocumentChange` represents a change to the documents matching a query. It contains the
|
||||
* document affected and the type of change that occurred (added, modified, or removed).
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(DocumentChange)
|
||||
@interface FIRDocumentChange : NSObject
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ typedef void (^FIRDocumentSnapshotBlock)(FIRDocumentSnapshot *_Nullable snapshot
|
||||
* may or may not exist. A `DocumentReference` can also be used to create a `CollectionReference` to
|
||||
* a subcollection.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(DocumentReference)
|
||||
@interface FIRDocumentReference : NSObject
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ typedef NS_ENUM(NSInteger, FIRServerTimestampBehavior) {
|
||||
* For a `DocumentSnapshot` that points to a non-existing document, any data access will return
|
||||
* `nil`. You can use the `exists` property to explicitly verify a documents existence.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(DocumentSnapshot)
|
||||
@interface FIRDocumentSnapshot : NSObject
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* (referring to a top level field in the document), or a list of field names (referring to a nested
|
||||
* field in the document).
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(FieldPath)
|
||||
@interface FIRFieldPath : NSObject <NSCopying>
|
||||
|
||||
|
||||
@@ -17,10 +17,12 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class FIRVectorValue;
|
||||
|
||||
/**
|
||||
* Sentinel values that can be used when writing document fields with `setData()` or `updateData()`.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(FieldValue)
|
||||
@interface FIRFieldValue : NSObject
|
||||
|
||||
@@ -90,6 +92,14 @@ NS_SWIFT_NAME(FieldValue)
|
||||
*/
|
||||
+ (instancetype)fieldValueForIntegerIncrement:(int64_t)l NS_SWIFT_NAME(increment(_:));
|
||||
|
||||
/**
|
||||
* Creates a new `VectorValue` constructed with a copy of the given array of NSNumbers.
|
||||
*
|
||||
* @param array Create a `VectorValue` instance with a copy of this array of NSNumbers.
|
||||
* @return A new `VectorValue` constructed with a copy of the given array of NSNumbers.
|
||||
*/
|
||||
+ (FIRVectorValue *)vectorWithArray:(NSArray<NSNumber *> *)array NS_REFINED_FOR_SWIFT;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* A Filter represents a restriction on one or more field values and can be used to refine
|
||||
* the results of a Query.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(Filter)
|
||||
@interface FIRFilter : NSObject
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* Latitude values are in the range of [-90, 90].
|
||||
* Longitude values are in the range of [-180, 180].
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(GeoPoint)
|
||||
@interface FIRGeoPoint : NSObject <NSCopying>
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ typedef NS_ENUM(NSInteger, FIRLoadBundleTaskState) {
|
||||
|
||||
/** Represents a progress update or a final state from loading bundles. */
|
||||
NS_SWIFT_NAME(LoadBundleTaskProgress)
|
||||
NS_SWIFT_SENDABLE
|
||||
@interface FIRLoadBundleTaskProgress : NSObject
|
||||
|
||||
/** How many documents have been loaded. */
|
||||
|
||||
@@ -44,14 +44,14 @@ NS_SWIFT_NAME(PersistentCacheSettings)
|
||||
/**
|
||||
* Creates `PersistentCacheSettings` with default cache size: 100MB.
|
||||
*
|
||||
* The cache size is not a hard limit, but a target for the SDK's gabarge collector to work towards.
|
||||
* The cache size is not a hard limit, but a target for the SDK's garbage collector to work towards.
|
||||
*/
|
||||
- (instancetype)init;
|
||||
|
||||
/**
|
||||
* Creates `PersistentCacheSettings` with a custom cache size in bytes.
|
||||
*
|
||||
* The cache size is not a hard limit, but a target for the SDK's gabarge collector to work towards.
|
||||
* The cache size is not a hard limit, but a target for the SDK's garbage collector to work towards.
|
||||
*/
|
||||
- (instancetype)initWithSizeBytes:(NSNumber *)size;
|
||||
|
||||
@@ -132,7 +132,7 @@ NS_SWIFT_NAME(MemoryCacheSettings)
|
||||
|
||||
/**
|
||||
* Creates an instance of `MemoryCacheSettings` with given `MemoryGarbageCollectorSettings` to
|
||||
* custom the gabarge collector.
|
||||
* custom the garbage collector.
|
||||
*/
|
||||
- (instancetype)initWithGarbageCollectorSettings:
|
||||
(id<FIRMemoryGarbageCollectorSettings, NSObject>)settings;
|
||||
|
||||
@@ -41,6 +41,7 @@ typedef void (^FIRQuerySnapshotBlock)(FIRQuerySnapshot *_Nullable snapshot,
|
||||
* A `Query` refers to a query which you can read or listen to. You can also construct
|
||||
* refined `Query` objects by adding filters and ordering.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(Query)
|
||||
@interface FIRQuery : NSObject
|
||||
/** :nodoc: */
|
||||
|
||||
@@ -28,6 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* using the `documents` property and its size can be inspected with `isEmpty` and
|
||||
* `count`.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(QuerySnapshot)
|
||||
@interface FIRQuerySnapshot : NSObject
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ typedef NS_ENUM(NSUInteger, FIRListenSource) {
|
||||
* of this class control settings like whether metadata-only changes trigger events and the
|
||||
* preferred data source.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(SnapshotListenOptions)
|
||||
@interface FIRSnapshotListenOptions : NSObject
|
||||
|
||||
@@ -61,7 +62,7 @@ NS_SWIFT_NAME(SnapshotListenOptions)
|
||||
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
/**
|
||||
* Creates and returns a new `SnapshotListenOptions` object with with all properties of the current
|
||||
* Creates and returns a new `SnapshotListenOptions` object with all properties of the current
|
||||
* `SnapshotListenOptions` object plus the new property specifying whether metadata-only changes
|
||||
* should trigger snapshot events
|
||||
*
|
||||
@@ -70,7 +71,7 @@ NS_SWIFT_NAME(SnapshotListenOptions)
|
||||
- (FIRSnapshotListenOptions *)optionsWithIncludeMetadataChanges:(BOOL)includeMetadataChanges;
|
||||
|
||||
/**
|
||||
* Creates and returns a new `SnapshotListenOptions` object with with all properties of the current
|
||||
* Creates and returns a new `SnapshotListenOptions` object with all properties of the current
|
||||
* `SnapshotListenOptions` object plus the new property specifying the source that the snapshot
|
||||
* listener listens to.
|
||||
*
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/** Metadata about a snapshot, describing the state of the snapshot. */
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(SnapshotMetadata)
|
||||
@interface FIRSnapshotMetadata : NSObject
|
||||
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
/*
|
||||
* Copyright 2018 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 <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
* A Timestamp represents a point in time independent of any time zone or calendar, represented as
|
||||
* seconds and fractions of seconds at nanosecond resolution in UTC Epoch time. It is encoded using
|
||||
* the Proleptic Gregorian Calendar which extends the Gregorian calendar backwards to year one. It
|
||||
* is encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "smeared" so that no
|
||||
* leap second table is needed for interpretation. Range is from 0001-01-01T00:00:00Z to
|
||||
* 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to
|
||||
* and from RFC 3339 date strings.
|
||||
*
|
||||
* @see https://github.com/google/protobuf/blob/main/src/google/protobuf/timestamp.proto for the
|
||||
* reference timestamp definition.
|
||||
*/
|
||||
NS_SWIFT_NAME(Timestamp)
|
||||
@interface FIRTimestamp : NSObject <NSCopying>
|
||||
|
||||
/** :nodoc: */
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
/**
|
||||
* Creates a new timestamp.
|
||||
*
|
||||
* @param seconds the number of seconds since epoch.
|
||||
* @param nanoseconds the number of nanoseconds after the seconds.
|
||||
*/
|
||||
- (instancetype)initWithSeconds:(int64_t)seconds
|
||||
nanoseconds:(int32_t)nanoseconds NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
/**
|
||||
* Creates a new timestamp.
|
||||
*
|
||||
* @param seconds the number of seconds since epoch.
|
||||
* @param nanoseconds the number of nanoseconds after the seconds.
|
||||
*/
|
||||
+ (instancetype)timestampWithSeconds:(int64_t)seconds nanoseconds:(int32_t)nanoseconds;
|
||||
|
||||
/** Creates a new timestamp from the given date. */
|
||||
+ (instancetype)timestampWithDate:(NSDate *)date;
|
||||
|
||||
/** Creates a new timestamp with the current date / time. */
|
||||
+ (instancetype)timestamp;
|
||||
|
||||
/** Returns a new `Date` corresponding to this timestamp. This may lose precision. */
|
||||
- (NSDate *)dateValue;
|
||||
|
||||
/**
|
||||
* Returns the result of comparing the receiver with another timestamp.
|
||||
* @param other the other timestamp to compare.
|
||||
* @return `orderedAscending` if `other` is chronologically following self,
|
||||
* `orderedDescending` if `other` is chronologically preceding self,
|
||||
* `orderedSame` otherwise.
|
||||
*/
|
||||
- (NSComparisonResult)compare:(FIRTimestamp *)other;
|
||||
|
||||
/**
|
||||
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.
|
||||
* Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
|
||||
*/
|
||||
@property(nonatomic, assign, readonly) int64_t seconds;
|
||||
|
||||
/**
|
||||
* Non-negative fractions of a second at nanosecond resolution. Negative second values with
|
||||
* fractions must still have non-negative nanos values that count forward in time.
|
||||
* Must be from 0 to 999,999,999 inclusive.
|
||||
*/
|
||||
@property(nonatomic, assign, readonly) int32_t nanoseconds;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
42
Pods/FirebaseFirestoreInternal/Firestore/Source/Public/FirebaseFirestore/FIRVectorValue.h
generated
Normal file
42
Pods/FirebaseFirestoreInternal/Firestore/Source/Public/FirebaseFirestore/FIRVectorValue.h
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2024 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.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
* Represents a vector type in Firestore documents.
|
||||
*/
|
||||
NS_SWIFT_SENDABLE
|
||||
NS_SWIFT_NAME(VectorValue)
|
||||
@interface FIRVectorValue : NSObject
|
||||
|
||||
/** Returns a copy of the raw number array that represents the vector. */
|
||||
@property(atomic, readonly) NSArray<NSNumber *> *array NS_REFINED_FOR_SWIFT;
|
||||
|
||||
/** :nodoc: */
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
/**
|
||||
* Creates a `VectorValue` constructed with a copy of the given array of NSNumbrers.
|
||||
* @param array An array of NSNumbers that represents a vector.
|
||||
*/
|
||||
- (instancetype)initWithArray:(NSArray<NSNumber *> *)array NS_REFINED_FOR_SWIFT;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -36,7 +36,6 @@
|
||||
#import "FIRQuerySnapshot.h"
|
||||
#import "FIRSnapshotListenOptions.h"
|
||||
#import "FIRSnapshotMetadata.h"
|
||||
#import "FIRTimestamp.h"
|
||||
#import "FIRTransaction.h"
|
||||
#import "FIRTransactionOptions.h"
|
||||
#import "FIRWriteBatch.h"
|
||||
|
||||
Reference in New Issue
Block a user