diff --git a/README.md b/README.md index 4eb4b3b9d1a1..272ee6a97338 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ that enable Flutter apps to use [Firebase](https://firebase.google.com/) service | [firebase_ml_vision][ml_vision_pub] | ![pub package][ml_vision_badge] | [Firebase ML Kit][ml_vision_product] | [`firebase_ml_vision`][ml_vision_code] | | | | [firebase_performance][performance_pub] | ![pub package][performance_badge] | [Firebase Performance Monitoring][performance_product] | [`firebase_performance`][performance_code] | | | | [firebase_remote_config][remote_config_pub] | ![pub package][remote_config_badge] | [Firebase Remote Config][remote_config_product] | [`firebase_remote_config`][remote_config_code] | | | -| [firebase_storage][storage_pub] | ![pub package][storage_badge] | [Firebase Cloud Storage][storage_product] | [`firebase_storage`][storage_code] | | | +| [firebase_storage][storage_pub] | ![pub package][storage_badge] | [Firebase Cloud Storage][storage_product] | [`firebase_storage`][storage_code] | | macOS | [admob_pub]: https://pub.dartlang.org/packages/firebase_admob [admob_product]: https://firebase.google.com/docs/admob/ diff --git a/packages/firebase_storage/CHANGELOG.md b/packages/firebase_storage/CHANGELOG.md index 3c12fd824b55..5a06cd3044b6 100644 --- a/packages/firebase_storage/CHANGELOG.md +++ b/packages/firebase_storage/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.1.5 + +* Add macOS support + ## 3.1.4 * Fix for missing UserAgent.h compilation failures. diff --git a/packages/firebase_storage/darwin/Classes/FLTFirebaseStoragePlugin.m b/packages/firebase_storage/darwin/Classes/FLTFirebaseStoragePlugin.m new file mode 100644 index 000000000000..b57074d2d277 --- /dev/null +++ b/packages/firebase_storage/darwin/Classes/FLTFirebaseStoragePlugin.m @@ -0,0 +1,466 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "FLTFirebaseStoragePlugin.h" + +#import + +static FlutterError *getFlutterError(NSError *error) { + return [FlutterError errorWithCode:[NSString stringWithFormat:@"Error %ld", (long)error.code] + message:error.domain + details:error.localizedDescription]; +} + +@interface FLTFirebaseStoragePlugin () +@property(nonatomic, retain) FlutterMethodChannel *channel; +@end + +@implementation FLTFirebaseStoragePlugin { + NSMutableDictionary *> *_storageMap; + FIRStorage *storage; + int _nextUploadHandle; + NSMutableDictionary *_uploadTasks; +} + ++ (void)registerWithRegistrar:(NSObject *)registrar { + FlutterMethodChannel *channel = + [FlutterMethodChannel methodChannelWithName:@"plugins.flutter.io/firebase_storage" + binaryMessenger:[registrar messenger]]; + FLTFirebaseStoragePlugin *instance = [[FLTFirebaseStoragePlugin alloc] init]; + instance.channel = channel; + [registrar addMethodCallDelegate:instance channel:channel]; + + SEL sel = NSSelectorFromString(@"registerLibrary:withVersion:"); + if ([FIRApp respondsToSelector:sel]) { + [FIRApp performSelector:sel withObject:LIBRARY_NAME withObject:LIBRARY_VERSION]; + } +} + +- (instancetype)init { + self = [super init]; + if (self) { + if (![FIRApp appNamed:@"__FIRAPP_DEFAULT"]) { + NSLog(@"Configuring the default Firebase app..."); + [FIRApp configure]; + NSLog(@"Configured the default Firebase app %@.", [FIRApp defaultApp].name); + } + _storageMap = [[NSMutableDictionary alloc] init]; + _uploadTasks = [NSMutableDictionary dictionary]; + _nextUploadHandle = 0; + } + return self; +} + +- (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result { + storage = [self getStorage:call result:result]; + if ([@"FirebaseStorage#getMaxDownloadRetryTime" isEqualToString:call.method]) { + result(@((int64_t)(storage.maxDownloadRetryTime * 1000.0))); + } else if ([@"FirebaseStorage#getMaxUploadRetryTime" isEqualToString:call.method]) { + result(@((int64_t)(storage.maxUploadRetryTime * 1000.0))); + } else if ([@"FirebaseStorage#getMaxOperationRetryTime" isEqualToString:call.method]) { + result(@((int64_t)(storage.maxOperationRetryTime * 1000.0))); + } else if ([@"FirebaseStorage#setMaxDownloadRetryTime" isEqualToString:call.method]) { + [self setMaxDownloadRetryTime:call result:result]; + } else if ([@"FirebaseStorage#setMaxUploadRetryTime" isEqualToString:call.method]) { + [self setMaxUploadRetryTime:call result:result]; + } else if ([@"FirebaseStorage#setMaxOperationRetryTime" isEqualToString:call.method]) { + [self setMaxOperationRetryTime:call result:result]; + } else if ([@"FirebaseStorage#getReferenceFromUrl" isEqualToString:call.method]) { + [self getReferenceFromUrl:call result:result]; + } else if ([@"StorageReference#putFile" isEqualToString:call.method]) { + [self putFile:call result:result]; + } else if ([@"StorageReference#putData" isEqualToString:call.method]) { + [self putData:call result:result]; + } else if ([@"StorageReference#getData" isEqualToString:call.method]) { + [self getData:call result:result]; + } else if ([@"StorageReference#getBucket" isEqualToString:call.method]) { + [self getBucket:call result:result]; + } else if ([@"StorageReference#getPath" isEqualToString:call.method]) { + [self getPath:call result:result]; + } else if ([@"StorageReference#getName" isEqualToString:call.method]) { + [self getName:call result:result]; + } else if ([@"StorageReference#getDownloadUrl" isEqualToString:call.method]) { + [self getDownloadUrl:call result:result]; + } else if ([@"StorageReference#delete" isEqualToString:call.method]) { + [self delete:call result:result]; + } else if ([@"StorageReference#getMetadata" isEqualToString:call.method]) { + [self getMetadata:call result:result]; + } else if ([@"StorageReference#updateMetadata" isEqualToString:call.method]) { + [self updateMetadata:call result:result]; + } else if ([@"StorageReference#writeToFile" isEqualToString:call.method]) { + [self writeToFile:call result:result]; + } else if ([@"UploadTask#pause" isEqualToString:call.method]) { + [self pauseUploadTask:call result:result]; + } else if ([@"UploadTask#resume" isEqualToString:call.method]) { + [self resumeUploadTask:call result:result]; + } else if ([@"UploadTask#cancel" isEqualToString:call.method]) { + [self cancelUploadTask:call result:result]; + } else { + result(FlutterMethodNotImplemented); + } +} + +// Returns a [FIRStorage] instance which is a singleton given a fixed app and bucket. +// This is to be consistent with the Android API so that repated calls to getters/setters +// affect the right [FIRStorage] instance. +- (FIRStorage *)getStorage:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *appName = call.arguments[@"app"]; + NSString *bucketUrl = call.arguments[@"bucket"]; + FIRApp *app; + + if ([appName isEqual:[NSNull null]]) { + app = [FIRApp defaultApp]; + } else { + app = [FIRApp appNamed:appName]; + } + + if ([bucketUrl isEqual:[NSNull null]]) { + if (app.options.storageBucket) { + bucketUrl = [app.options.storageBucket isEqualToString:@""] + ? @"" + : [@"gs://" stringByAppendingString:app.options.storageBucket]; + } else { + bucketUrl = nil; + } + } + + NSURL *url = [NSURL URLWithString:bucketUrl]; + if (!url) { + @try { + // Call storage constructor to raise proper exception. + storage = [FIRStorage storageForApp:app URL:bucketUrl]; + } @catch (NSException *exception) { + result([FlutterError errorWithCode:@"storage_error" + message:[exception name] + details:[exception reason]]); + } + } + + NSMutableDictionary *bucketMap = _storageMap[app.name]; + if (!bucketMap) { + bucketMap = [NSMutableDictionary dictionaryWithCapacity:1]; + _storageMap[app.name] = bucketMap; + } + + NSString *bucketName = [url host]; + FIRStorage *storage = bucketMap[bucketName]; + if (!storage) { + // Raises an exception if bucketUrl is invalid. + @try { + storage = [FIRStorage storageForApp:app URL:bucketUrl]; + } @catch (NSException *exception) { + result([FlutterError errorWithCode:@"storage_error" + message:[exception name] + details:[exception reason]]); + } + bucketMap[bucketName] = storage; + } + + return storage; +} + +- (void)setMaxDownloadRetryTime:(FlutterMethodCall *)call result:(FlutterResult)result { + NSNumber *time = call.arguments[@"time"]; + storage.maxDownloadRetryTime = [time longLongValue] / 1000.0; + result(nil); +} + +- (void)setMaxUploadRetryTime:(FlutterMethodCall *)call result:(FlutterResult)result { + NSNumber *time = call.arguments[@"time"]; + storage.maxUploadRetryTime = [time longLongValue] / 1000.0; + result(nil); +} + +- (void)setMaxOperationRetryTime:(FlutterMethodCall *)call result:(FlutterResult)result { + NSNumber *time = call.arguments[@"time"]; + storage.maxOperationRetryTime = [time longLongValue] / 1000.0; + result(nil); +} + +- (void)getReferenceFromUrl:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *fullUrl = call.arguments[@"fullUrl"]; + result([storage referenceForURL:fullUrl].fullPath); +} + +- (void)putFile:(FlutterMethodCall *)call result:(FlutterResult)result { + NSURL *fileUrl = [NSURL fileURLWithPath:call.arguments[@"filename"]]; + [self + putHandler:^(FIRStorageReference *fileRef, FIRStorageMetadata *metadata) { + return [fileRef putFile:fileUrl metadata:metadata]; + } + call:call + result:result]; +} + +- (void)putData:(FlutterMethodCall *)call result:(FlutterResult)result { + NSData *data = [(FlutterStandardTypedData *)call.arguments[@"data"] data]; + if (data == nil) { + result([FlutterError errorWithCode:@"storage_error" + message:@"Failed to read file" + details:nil]); + return; + } + [self + putHandler:^(FIRStorageReference *fileRef, FIRStorageMetadata *metadata) { + return [fileRef putData:data metadata:metadata]; + } + call:call + result:result]; +} + +- (void)putHandler:(FIRStorageUploadTask * (^)(FIRStorageReference *fileRef, + FIRStorageMetadata *metadata))putHandler + call:(FlutterMethodCall *)call + result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + NSDictionary *metadataDictionary = call.arguments[@"metadata"]; + FIRStorageMetadata *metadata; + if (![metadataDictionary isEqual:[NSNull null]]) { + metadata = [self buildMetadataFromDictionary:metadataDictionary]; + } + FIRStorageReference *fileRef = [storage.reference child:path]; + FIRStorageUploadTask *uploadTask = putHandler(fileRef, metadata); + NSNumber *handle = [NSNumber numberWithInt:_nextUploadHandle++]; + [uploadTask observeStatus:FIRStorageTaskStatusSuccess + handler:^(FIRStorageTaskSnapshot *snapshot) { + [self invokeStorageTaskEvent:handle type:kSuccess snapshot:snapshot]; + [self->_uploadTasks removeObjectForKey:handle]; + }]; + [uploadTask observeStatus:FIRStorageTaskStatusProgress + handler:^(FIRStorageTaskSnapshot *snapshot) { + [self invokeStorageTaskEvent:handle type:kProgress snapshot:snapshot]; + }]; + [uploadTask observeStatus:FIRStorageTaskStatusResume + handler:^(FIRStorageTaskSnapshot *snapshot) { + [self invokeStorageTaskEvent:handle type:kResume snapshot:snapshot]; + }]; + [uploadTask observeStatus:FIRStorageTaskStatusPause + handler:^(FIRStorageTaskSnapshot *snapshot) { + [self invokeStorageTaskEvent:handle type:kPause snapshot:snapshot]; + }]; + [uploadTask observeStatus:FIRStorageTaskStatusFailure + handler:^(FIRStorageTaskSnapshot *snapshot) { + [self invokeStorageTaskEvent:handle type:kFailure snapshot:snapshot]; + [self->_uploadTasks removeObjectForKey:handle]; + }]; + _uploadTasks[handle] = uploadTask; + result(handle); +} + +typedef NS_ENUM(NSUInteger, StorageTaskEventType) { + kResume, + kProgress, + kPause, + kSuccess, + kFailure +}; + +- (void)invokeStorageTaskEvent:(NSNumber *)handle + type:(StorageTaskEventType)type + snapshot:(FIRStorageTaskSnapshot *)snapshot { + NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; + [dictionary setValue:handle forKey:@"handle"]; + [dictionary setValue:@((int)type) forKey:@"type"]; + [dictionary setValue:[self buildDictionaryFromTaskSnapshot:snapshot] forKey:@"snapshot"]; + [self.channel invokeMethod:@"StorageTaskEvent" arguments:dictionary]; +} + +- (NSDictionary *)buildDictionaryFromTaskSnapshot:(FIRStorageTaskSnapshot *)snapshot { + NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; + [dictionary setValue:@((long)([snapshot.progress completedUnitCount])) + forKey:@"bytesTransferred"]; + [dictionary setValue:@((long)([snapshot.progress totalUnitCount])) forKey:@"totalByteCount"]; + if ([snapshot error] != nil) { + [dictionary setValue:@((long)[snapshot.error code]) forKey:@"error"]; + } + if ([snapshot metadata] != nil) { + [dictionary setValue:[self buildDictionaryFromMetadata:snapshot.metadata] + forKey:@"storageMetadata"]; + } + return dictionary; +} + +- (FIRStorageMetadata *)buildMetadataFromDictionary:(NSDictionary *)dictionary { + FIRStorageMetadata *metadata = [[FIRStorageMetadata alloc] init]; + if (dictionary[@"cacheControl"] != [NSNull null]) + metadata.cacheControl = dictionary[@"cacheControl"]; + if (dictionary[@"contentDisposition"] != [NSNull null]) + metadata.contentDisposition = dictionary[@"contentDisposition"]; + if (dictionary[@"contentEncoding"] != [NSNull null]) + metadata.contentEncoding = dictionary[@"contentEncoding"]; + if (dictionary[@"contentLanguage"] != [NSNull null]) + metadata.contentLanguage = dictionary[@"contentLanguage"]; + if (dictionary[@"contentType"] != [NSNull null]) + metadata.contentType = dictionary[@"contentType"]; + if (dictionary[@"customMetadata"] != [NSNull null]) + metadata.customMetadata = dictionary[@"customMetadata"]; + return metadata; +} + +- (NSDictionary *)buildDictionaryFromMetadata:(FIRStorageMetadata *)metadata { + NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; + [dictionary setValue:[metadata bucket] forKey:@"bucket"]; + [dictionary setValue:[NSString stringWithFormat:@"%lld", [metadata generation]] + forKey:@"generation"]; + [dictionary setValue:[NSString stringWithFormat:@"%lld", [metadata metageneration]] + forKey:@"metadataGeneration"]; + [dictionary setValue:[metadata path] forKey:@"path"]; + [dictionary setValue:@((long)([[metadata timeCreated] timeIntervalSince1970] * 1000.0)) + forKey:@"creationTimeMillis"]; + [dictionary setValue:@((long)([[metadata updated] timeIntervalSince1970] * 1000.0)) + forKey:@"updatedTimeMillis"]; + [dictionary setValue:@([metadata size]) forKey:@"sizeBytes"]; + [dictionary setValue:[metadata md5Hash] forKey:@"md5Hash"]; + [dictionary setValue:[metadata cacheControl] forKey:@"cacheControl"]; + [dictionary setValue:[metadata contentDisposition] forKey:@"contentDisposition"]; + [dictionary setValue:[metadata contentEncoding] forKey:@"contentEncoding"]; + [dictionary setValue:[metadata contentLanguage] forKey:@"contentLanguage"]; + [dictionary setValue:[metadata contentType] forKey:@"contentType"]; + [dictionary setValue:[metadata name] forKey:@"name"]; + [dictionary setValue:[metadata customMetadata] forKey:@"customMetadata"]; + return dictionary; +} + +- (void)getData:(FlutterMethodCall *)call result:(FlutterResult)result { + NSNumber *maxSize = call.arguments[@"maxSize"]; + NSString *path = call.arguments[@"path"]; + FIRStorageReference *ref = [storage.reference child:path]; + [ref dataWithMaxSize:[maxSize longLongValue] + completion:^(NSData *_Nullable data, NSError *_Nullable error) { + if (error != nil) { + result(getFlutterError(error)); + return; + } + if (data == nil) { + result(nil); + return; + } + + FlutterStandardTypedData *dartData = + [FlutterStandardTypedData typedDataWithBytes:data]; + result(dartData); + }]; +} + +- (void)writeToFile:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + NSString *filePath = call.arguments[@"filePath"]; + NSURL *localURL = [NSURL fileURLWithPath:filePath]; + FIRStorageReference *ref = [storage.reference child:path]; + FIRStorageDownloadTask *task = [ref writeToFile:localURL]; + [task observeStatus:FIRStorageTaskStatusSuccess + handler:^(FIRStorageTaskSnapshot *snapshot) { + result(@(snapshot.progress.totalUnitCount)); + }]; + [task observeStatus:FIRStorageTaskStatusFailure + handler:^(FIRStorageTaskSnapshot *snapshot) { + if (snapshot.error != nil) { + result(getFlutterError(snapshot.error)); + } + }]; +} + +- (void)getMetadata:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + FIRStorageReference *ref = [storage.reference child:path]; + [ref metadataWithCompletion:^(FIRStorageMetadata *metadata, NSError *error) { + if (error != nil) { + result(getFlutterError(error)); + } else { + result([self buildDictionaryFromMetadata:metadata]); + } + }]; +} + +- (void)updateMetadata:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + NSDictionary *metadataDictionary = call.arguments[@"metadata"]; + FIRStorageReference *ref = [storage.reference child:path]; + [ref updateMetadata:[self buildMetadataFromDictionary:metadataDictionary] + completion:^(FIRStorageMetadata *metadata, NSError *error) { + if (error != nil) { + result(getFlutterError(error)); + } else { + result([self buildDictionaryFromMetadata:metadata]); + } + }]; +} + +- (void)getBucket:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + FIRStorageReference *ref = [storage.reference child:path]; + result([ref bucket]); +} + +- (void)getName:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + FIRStorageReference *ref = [storage.reference child:path]; + result([ref name]); +} + +- (void)getPath:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + FIRStorageReference *ref = [storage.reference child:path]; + result([ref fullPath]); +} + +- (void)getDownloadUrl:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + FIRStorageReference *ref = [storage.reference child:path]; + [ref downloadURLWithCompletion:^(NSURL *URL, NSError *error) { + if (error != nil) { + result(getFlutterError(error)); + } else { + result(URL.absoluteString); + } + }]; +} + +- (void)delete:(FlutterMethodCall *)call result:(FlutterResult)result { + NSString *path = call.arguments[@"path"]; + FIRStorageReference *ref = [storage.reference child:path]; + [ref deleteWithCompletion:^(NSError *error) { + if (error != nil) { + result(getFlutterError(error)); + } else { + result(nil); + } + }]; +} + +- (void)pauseUploadTask:(FlutterMethodCall *)call result:(FlutterResult)result { + NSNumber *handle = call.arguments[@"handle"]; + FIRStorageUploadTask *task = [_uploadTasks objectForKey:handle]; + if (task != nil) { + [task pause]; + result(nil); + } else { + result([FlutterError errorWithCode:@"pause_error" message:@"task == null" details:nil]); + } +} + +- (void)resumeUploadTask:(FlutterMethodCall *)call result:(FlutterResult)result { + NSNumber *handle = call.arguments[@"handle"]; + FIRStorageUploadTask *task = [_uploadTasks objectForKey:handle]; + if (task != nil) { + [task resume]; + result(nil); + } else { + result([FlutterError errorWithCode:@"resume_error" message:@"task == null" details:nil]); + } +} + +- (void)cancelUploadTask:(FlutterMethodCall *)call result:(FlutterResult)result { + NSNumber *handle = call.arguments[@"handle"]; + FIRStorageUploadTask *task = [_uploadTasks objectForKey:handle]; + if (task != nil) { + [task cancel]; + result(nil); + } else { + result([FlutterError errorWithCode:@"cancel_error" message:@"task == null" details:nil]); + } +} + +@end diff --git a/packages/firebase_storage/example/lib/main.dart b/packages/firebase_storage/example/lib/main.dart index b65f9fcb9d97..6328be167adc 100755 --- a/packages/firebase_storage/example/lib/main.dart +++ b/packages/firebase_storage/example/lib/main.dart @@ -19,7 +19,7 @@ void main() async { final FirebaseApp app = await FirebaseApp.configure( name: 'test', options: FirebaseOptions( - googleAppID: Platform.isIOS + googleAppID: (Platform.isIOS || Platform.isMacOS) ? '1:159623150305:ios:4a213ef3dbd8997b' : '1:159623150305:android:ef48439a0cc0263d', gcmSenderID: '159623150305', diff --git a/packages/firebase_storage/example/macos/.gitignore b/packages/firebase_storage/example/macos/.gitignore new file mode 100644 index 000000000000..d2fd3772308c --- /dev/null +++ b/packages/firebase_storage/example/macos/.gitignore @@ -0,0 +1,6 @@ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/xcuserdata/ diff --git a/packages/firebase_storage/example/macos/Flutter/Flutter-Debug.xcconfig b/packages/firebase_storage/example/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 000000000000..785633d3a86b --- /dev/null +++ b/packages/firebase_storage/example/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/packages/firebase_storage/example/macos/Flutter/Flutter-Release.xcconfig b/packages/firebase_storage/example/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 000000000000..5fba960c3af2 --- /dev/null +++ b/packages/firebase_storage/example/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/packages/firebase_storage/example/macos/Runner.xcodeproj/project.pbxproj b/packages/firebase_storage/example/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 000000000000..e91a2210e185 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,660 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 51; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; }; + 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 63403F6A428DA60E10A2595D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DE605D25EFFDD602C9F761F8 /* Pods_Runner.framework */; }; + B567FAAF240D1F2E0031F210 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B567FAAE240D1F2E0031F210 /* GoogleService-Info.plist */; }; + D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; }; + D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */, + 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */, + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 623F4E175EF0069D1AA8A1AE /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + B567FAAE240D1F2E0031F210 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; + C3646871CA51D698A507597B /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; }; + D9D2C6DBE5825E9F4666F7FB /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + DE605D25EFFDD602C9F761F8 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D73912F022F37F9E000D13A0 /* App.framework in Frameworks */, + 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */, + 63403F6A428DA60E10A2595D /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 33CC10EE2044A3C60003C045 /* Products */, + AD15C4C49EC9F95C69182D56 /* Pods */, + A4B69BA4BE5E9A5F09E6B5FF /* Frameworks */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* example.app */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + D73912EF22F37F9E000D13A0 /* App.framework */, + 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + B567FAAE240D1F2E0031F210 /* GoogleService-Info.plist */, + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + A4B69BA4BE5E9A5F09E6B5FF /* Frameworks */ = { + isa = PBXGroup; + children = ( + DE605D25EFFDD602C9F761F8 /* Pods_Runner.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + AD15C4C49EC9F95C69182D56 /* Pods */ = { + isa = PBXGroup; + children = ( + 623F4E175EF0069D1AA8A1AE /* Pods-Runner.debug.xcconfig */, + C3646871CA51D698A507597B /* Pods-Runner.release.xcconfig */, + D9D2C6DBE5825E9F4666F7FB /* Pods-Runner.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + B1E1BD247C18DFABBA7F433A /* [CP] Check Pods Manifest.lock */, + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + 2A3EA55FEB7CC087E1AC13EA /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* example.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0930; + ORGANIZATIONNAME = "The Flutter Authors"; + TargetAttributes = { + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + B567FAAF240D1F2E0031F210 /* GoogleService-Info.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 2A3EA55FEB7CC087E1AC13EA /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh\ntouch Flutter/ephemeral/tripwire\n"; + }; + B1E1BD247C18DFABBA7F433A /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + 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; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter/ephemeral", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.plugins.firebaseStorageExample; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter/ephemeral", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.plugins.firebaseStorageExample; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter/ephemeral", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.plugins.firebaseStorageExample; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/packages/firebase_storage/example/macos/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/firebase_storage/example/macos/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000000..764c74b8df34 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/packages/firebase_storage/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/firebase_storage/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000000..18d981003d68 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/packages/firebase_storage/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/firebase_storage/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 000000000000..df12c333e68c --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/firebase_storage/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/packages/firebase_storage/example/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000000..21a3cc14c74e --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/packages/firebase_storage/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/firebase_storage/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000000..18d981003d68 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/packages/firebase_storage/example/macos/Runner/AppDelegate.swift b/packages/firebase_storage/example/macos/Runner/AppDelegate.swift new file mode 100644 index 000000000000..d53ef6437726 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/AppDelegate.swift @@ -0,0 +1,9 @@ +import Cocoa +import FlutterMacOS + +@NSApplicationMain +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } +} diff --git a/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000000..a2ec33f19f11 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 000000000000..3c4935a7ca84 Binary files /dev/null and b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ diff --git a/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 000000000000..ed4cc1642168 Binary files /dev/null and b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ diff --git a/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 000000000000..483be6138973 Binary files /dev/null and b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ diff --git a/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png new file mode 100644 index 000000000000..bcbf36df2f2a Binary files /dev/null and b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ diff --git a/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png new file mode 100644 index 000000000000..9c0a65286476 Binary files /dev/null and b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ diff --git a/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png new file mode 100644 index 000000000000..e71a726136a4 Binary files /dev/null and b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ diff --git a/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 000000000000..8a31fe2dd3f9 Binary files /dev/null and b/packages/firebase_storage/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ diff --git a/packages/firebase_storage/example/macos/Runner/Base.lproj/MainMenu.xib b/packages/firebase_storage/example/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 000000000000..537341abf994 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/firebase_storage/example/macos/Runner/Configs/AppInfo.xcconfig b/packages/firebase_storage/example/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 000000000000..f653d20264ba --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = example + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = io.flutter.plugins.example + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2020 io.flutter.plugins. All rights reserved. diff --git a/packages/firebase_storage/example/macos/Runner/Configs/Debug.xcconfig b/packages/firebase_storage/example/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 000000000000..36b0fd9464f4 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/packages/firebase_storage/example/macos/Runner/Configs/Release.xcconfig b/packages/firebase_storage/example/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 000000000000..dff4f49561c8 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/packages/firebase_storage/example/macos/Runner/Configs/Warnings.xcconfig b/packages/firebase_storage/example/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 000000000000..42bcbf4780b1 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/packages/firebase_storage/example/macos/Runner/DebugProfile.entitlements b/packages/firebase_storage/example/macos/Runner/DebugProfile.entitlements new file mode 100644 index 000000000000..3ba6c1266f21 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,14 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.client + + com.apple.security.network.server + + + diff --git a/packages/firebase_storage/example/macos/Runner/GoogleService-Info.plist b/packages/firebase_storage/example/macos/Runner/GoogleService-Info.plist new file mode 100755 index 000000000000..7444d8aa0ea0 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/GoogleService-Info.plist @@ -0,0 +1,40 @@ + + + + + AD_UNIT_ID_FOR_BANNER_TEST + ca-app-pub-3940256099942544/2934735716 + AD_UNIT_ID_FOR_INTERSTITIAL_TEST + ca-app-pub-3940256099942544/4411468910 + CLIENT_ID + 159623150305-onp22gvn556sp5l47l9o7r8em82l7f1e.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.159623150305-onp22gvn556sp5l47l9o7r8em82l7f1e + API_KEY + AIzaSyDyzecVw1zXTpBKwfFHxpl7QyYBhimNhUk + GCM_SENDER_ID + 159623150305 + PLIST_VERSION + 1 + BUNDLE_ID + io.flutter.plugins.firebaseStorageExample + PROJECT_ID + flutter-firebase-plugins + STORAGE_BUCKET + flutter-firebase-plugins.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:159623150305:ios:4a213ef3dbd8997b + DATABASE_URL + https://flutter-firebase-plugins.firebaseio.com + + diff --git a/packages/firebase_storage/example/macos/Runner/Info.plist b/packages/firebase_storage/example/macos/Runner/Info.plist new file mode 100644 index 000000000000..4789daa6a443 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/packages/firebase_storage/example/macos/Runner/MainFlutterWindow.swift b/packages/firebase_storage/example/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 000000000000..2722837ec918 --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController.init() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/packages/firebase_storage/example/macos/Runner/Release.entitlements b/packages/firebase_storage/example/macos/Runner/Release.entitlements new file mode 100644 index 000000000000..ee95ab7e582d --- /dev/null +++ b/packages/firebase_storage/example/macos/Runner/Release.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.network.client + + + diff --git a/packages/firebase_storage/example/pubspec.yaml b/packages/firebase_storage/example/pubspec.yaml index 418683fb79c0..81332ddbc7ce 100755 --- a/packages/firebase_storage/example/pubspec.yaml +++ b/packages/firebase_storage/example/pubspec.yaml @@ -7,7 +7,7 @@ dependencies: sdk: flutter firebase_storage: path: ../ - firebase_core: ^0.4.0 + firebase_core: ^0.4.4+2 uuid: ^1.0.0 http: ^0.12.0 diff --git a/packages/firebase_storage/macos/Assets/.gitkeep b/packages/firebase_storage/macos/Assets/.gitkeep new file mode 100755 index 000000000000..e69de29bb2d1 diff --git a/packages/firebase_storage/macos/Classes/FLTFirebaseStoragePlugin.h b/packages/firebase_storage/macos/Classes/FLTFirebaseStoragePlugin.h new file mode 100644 index 000000000000..5bad3f0e7cbe --- /dev/null +++ b/packages/firebase_storage/macos/Classes/FLTFirebaseStoragePlugin.h @@ -0,0 +1,8 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +@interface FLTFirebaseStoragePlugin : NSObject +@end diff --git a/packages/firebase_storage/macos/Classes/FLTFirebaseStoragePlugin.m b/packages/firebase_storage/macos/Classes/FLTFirebaseStoragePlugin.m new file mode 120000 index 000000000000..527a4086f7d3 --- /dev/null +++ b/packages/firebase_storage/macos/Classes/FLTFirebaseStoragePlugin.m @@ -0,0 +1 @@ +../../darwin/Classes/FLTFirebaseStoragePlugin.m \ No newline at end of file diff --git a/packages/firebase_storage/macos/firebase_storage.podspec b/packages/firebase_storage/macos/firebase_storage.podspec new file mode 100755 index 000000000000..541bc43c0567 --- /dev/null +++ b/packages/firebase_storage/macos/firebase_storage.podspec @@ -0,0 +1,28 @@ +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html +# + +require 'yaml' +pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) +libraryVersion = pubspec['version'].gsub('+', '-') + +Pod::Spec.new do |s| + s.name = 'firebase_storage' + s.version = '0.0.1' + s.summary = 'Firebase Storage plugin for Flutter.' + s.description = <<-DESC +Firebase Storage plugin for Flutter. + DESC + s.homepage = 'https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_storage' + s.license = { :file => '../LICENSE' } + s.author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' } + s.source = { :path => '.' } + s.source_files = 'Classes/**/*' + s.public_header_files = 'Classes/**/*.h' + s.platform = :osx, '10.11' + s.dependency 'FlutterMacOS' + s.dependency 'Firebase/Storage' + s.static_framework = true + + s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => "LIBRARY_VERSION=\\@\\\"#{libraryVersion}\\\" LIBRARY_NAME=\\@\\\"flutter-fire-gcs\\\"" } +end diff --git a/packages/firebase_storage/pubspec.yaml b/packages/firebase_storage/pubspec.yaml index 7c25326133f2..12b4427fc949 100755 --- a/packages/firebase_storage/pubspec.yaml +++ b/packages/firebase_storage/pubspec.yaml @@ -2,7 +2,7 @@ name: firebase_storage description: Flutter plugin for Firebase Cloud Storage, a powerful, simple, and cost-effective object storage service for Android and iOS. homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_storage -version: 3.1.4 +version: 3.1.5 flutter: plugin: @@ -12,6 +12,8 @@ flutter: pluginClass: FirebaseStoragePlugin ios: pluginClass: FLTFirebaseStoragePlugin + macos: + pluginClass: FLTFirebaseStoragePlugin dependencies: flutter: