Created
April 1, 2020 14:10
-
-
Save kichiemon/9c8241ddb324de2a08a82d9445c12019 to your computer and use it in GitHub Desktop.
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
} else if ([@"Firestore#settings" isEqualToString:call.method]) { | |
FIRFirestoreSettings *settings = [[FIRFirestoreSettings alloc] init]; | |
if (![call.arguments[@"persistenceEnabled"] isEqual:[NSNull null]]) { | |
settings.persistenceEnabled = ((NSNumber *)call.arguments[@"persistenceEnabled"]).boolValue; | |
} | |
if (![call.arguments[@"host"] isEqual:[NSNull null]]) { | |
settings.host = (NSString *)call.arguments[@"host"]; | |
} | |
if (![call.arguments[@"sslEnabled"] isEqual:[NSNull null]]) { | |
settings.sslEnabled = ((NSNumber *)call.arguments[@"sslEnabled"]).boolValue; | |
} | |
if (![call.arguments[@"cacheSizeBytes"] isEqual:[NSNull null]]) { | |
settings.cacheSizeBytes = ((NSNumber *)call.arguments[@"cacheSizeBytes"]).intValue; | |
} | |
FIRFirestore *db = getFirestore(call.arguments); | |
db.settings = settings; | |
result(nil); | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment