├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── analysis_options.yaml ├── darwin ├── .gitignore ├── Assets │ └── .gitkeep ├── Classes │ ├── FlutterCloudKitPlugin.swift │ ├── handlers │ │ ├── DeleteRecordHandler.swift │ │ ├── GetAccountStatusHandler.swift │ │ ├── GetRecordHandler.swift │ │ ├── GetRecordsByTypeHandler.swift │ │ └── SaveRecordHandler.swift │ └── util │ │ └── FlutterInteropUtils.swift └── flutter_cloud_kit.podspec ├── example ├── .gitignore ├── README.md ├── analysis_options.yaml ├── ios │ ├── .gitignore │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Podfile │ ├── Podfile.lock │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ │ ├── Info.plist │ │ ├── Runner-Bridging-Header.h │ │ └── Runner.entitlements ├── lib │ └── main.dart ├── macos │ ├── .gitignore │ ├── Flutter │ │ ├── Flutter-Debug.xcconfig │ │ ├── Flutter-Release.xcconfig │ │ └── GeneratedPluginRegistrant.swift │ ├── Podfile │ ├── Podfile.lock │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ └── app_icon_64.png │ │ ├── Base.lproj │ │ └── MainMenu.xib │ │ ├── Configs │ │ ├── AppInfo.xcconfig │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── Warnings.xcconfig │ │ ├── DebugProfile.entitlements │ │ ├── Info.plist │ │ ├── MainFlutterWindow.swift │ │ └── Release.entitlements ├── pubspec.lock └── pubspec.yaml ├── lib ├── flutter_cloud_kit.dart ├── flutter_cloud_kit_method_channel.dart ├── flutter_cloud_kit_platform_interface.dart └── types │ ├── cloud_ket_record.dart │ ├── cloud_kit_account_status.dart │ └── database_scope.dart └── pubspec.yaml /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 26 | /pubspec.lock 27 | **/doc/api/ 28 | .dart_tool/ 29 | .packages 30 | build/ 31 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "efbf63d9c66b9f6ec30e9ad4611189aa80003d31" 8 | channel: "stable" 9 | 10 | project_type: plugin 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: efbf63d9c66b9f6ec30e9ad4611189aa80003d31 17 | base_revision: efbf63d9c66b9f6ec30e9ad4611189aa80003d31 18 | - platform: ios 19 | create_revision: efbf63d9c66b9f6ec30e9ad4611189aa80003d31 20 | base_revision: efbf63d9c66b9f6ec30e9ad4611189aa80003d31 21 | - platform: macos 22 | create_revision: efbf63d9c66b9f6ec30e9ad4611189aa80003d31 23 | base_revision: efbf63d9c66b9f6ec30e9ad4611189aa80003d31 24 | 25 | # User provided section 26 | 27 | # List of Local paths (relative to this file) that should be 28 | # ignored by the migrate tool. 29 | # 30 | # Files that are not part of the templates will be ignored by default. 31 | unmanaged_files: 32 | - 'lib/main.dart' 33 | - 'ios/Runner.xcodeproj/project.pbxproj' 34 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.3 2 | 3 | * Add MacOS support 4 | 5 | ## 0.0.2 6 | 7 | * Add documentation to the public methods 8 | * Update README 9 | 10 | ## 0.0.1 11 | 12 | * Initial release of the plugin with the following functions for interaction with CloudKit: 13 | * *getAccountStatus* 14 | * *saveRecord* 15 | * *getRecord* 16 | * *deleteRecord* 17 | * *getRecordsByType* 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Mikhail Poplavkov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_cloud_kit 2 | 3 | A simple flutter plugin for interactions with Apple Cloud Kit API on iOS devices. 4 | 5 | Currently, the following functionality is supported: 6 | - *getAccountStatus* - getting status of the user account; 7 | - *saveRecord* - saving records; 8 | - *getRecord* - getting records by key; 9 | - *getRecordsByType* - getting records by type; 10 | - *deleteRecord* - deleting record by key. 11 | 12 | ## Usage 13 | 14 | ### Creating an instance of the FlutterCloudKit class 15 | ```dart 16 | FlutterCloudKit cloudKit = FlutterCloudKit(containerId: exampleContainerId); 17 | ``` 18 | 19 | `containerId` parameter is optional. When not provided, the default container will be used. 20 | 21 | ### Getting account status 22 | ```dart 23 | CloudKitAccountStatus accountStatus = await cloudKit.getAccountStatus(); 24 | ``` 25 | 26 | ### Saving a record 27 | ```dart 28 | await cloudKit.saveRecord(scope: CloudKitDatabaseScope.private, recordType: exampleRecordType, record: {'fieldName': 'fieldValue'}, recordName: 'RecordName'); 29 | ``` 30 | 31 | ### Getting a record 32 | ```dart 33 | CloudKitRecord record = await cloudKit.getRecord(scope: CloudKitDatabaseScope.private, recordName: 'RecordName'); 34 | ``` 35 | 36 | ### Getting records by type 37 | ```dart 38 | List records = await cloudKit.getRecordsByType(scope: CloudKitDatabaseScope.private, recordType: exampleRecordType); 39 | ``` 40 | 41 | ### Deleting a record 42 | ```dart 43 | await cloudKit.deleteRecord(scope: CloudKitDatabaseScope.private, recordName: 'RecordName'); 44 | ``` 45 | 46 | ## Setup 47 | See [Enabling CloudKit in Your App](https://developer.apple.com/documentation/cloudkit/enabling_cloudkit_in_your_app). 48 | 49 | Basically, before you start using the plugin, you need to: 50 | - Add the iCloud Capability to Your Xcode Project; 51 | - Create a container you're going to use in Xcode; 52 | - Select the CloudKit checkbox; 53 | - Check the box next to the container name; 54 | 55 | Also, in order to be able to retrieve records by type, you will need to add some indexes to the CloudKit database. 56 | 57 | See [Enable Querying for Your Record Type](https://developer.apple.com/documentation/cloudkit/managing_icloud_containers_with_the_cloudkit_database_app/inspecting_and_editing_an_icloud_container_s_schema#3404860). 58 | 59 | For every new record type you'll need to do the following: 60 | 1. Create the first record of this type; 61 | 2. Go to the [CloudKit Console](https://icloud.developer.apple.com/dashboard/); 62 | 3. Select your database; 63 | 4. Go to the *Indexes*; 64 | 5. Select your record type; 65 | 6. Click *Add Basic Index* and create two indexes: 66 | * `FIELD`: `recordName` and `Index Type`: `QUERYABLE` (needed to fetch records); 67 | * `FIELD`: `createdTimestamp` and `Index Type`: `SORTABLE` (needed to sort them by creation time). 68 | 7. Click *Save Changes* 69 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /darwin/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh -------------------------------------------------------------------------------- /darwin/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/darwin/Assets/.gitkeep -------------------------------------------------------------------------------- /darwin/Classes/FlutterCloudKitPlugin.swift: -------------------------------------------------------------------------------- 1 | #if os(iOS) 2 | import Flutter 3 | #elseif os(macOS) 4 | import FlutterMacOS 5 | #endif 6 | 7 | public class FlutterCloudKitPlugin: NSObject, FlutterPlugin { 8 | public static func register(with registrar: FlutterPluginRegistrar) { 9 | #if os(iOS) 10 | let messenger = registrar.messenger() 11 | #else 12 | let messenger = registrar.messenger 13 | #endif 14 | 15 | let channel = FlutterMethodChannel(name: "app.fuelet.flutter_cloud_kit", binaryMessenger: messenger) 16 | let instance = FlutterCloudKitPlugin() 17 | registrar.addMethodCallDelegate(instance, channel: channel) 18 | } 19 | 20 | // TODO: handle ObjectiveC exceptions 21 | public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { 22 | let callArguments: Dictionary = call.arguments as! Dictionary 23 | 24 | if (call.method == "getAccountStatus") { 25 | return GetAccountStatusHandler.handle(arguments: callArguments, result: result); 26 | } else if (call.method == "saveRecord") { 27 | return SaveRecordHandler.handle(arguments: callArguments, result: result); 28 | } else if (call.method == "getRecord") { 29 | return GetRecordHandler.handle(arguments: callArguments, result: result); 30 | } else if (call.method == "deleteRecord") { 31 | return DeleteRecordHandler.handle(arguments: callArguments, result: result); 32 | } else if (call.method == "getRecordsByType") { 33 | return GetRecordsByTypeHandler.handle(arguments: callArguments, result: result); 34 | } else { 35 | return result(createFlutterError(message: "Not implemented")); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /darwin/Classes/handlers/DeleteRecordHandler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeleteRecordHandler.swift 3 | // flutter_cloud_kit 4 | // 5 | // Created by Mikhail Poplavkov on 20.07.23. 6 | // 7 | 8 | import CloudKit 9 | 10 | #if os(iOS) 11 | import Flutter 12 | #elseif os(macOS) 13 | import FlutterMacOS 14 | #endif 15 | 16 | class DeleteRecordHandler { 17 | static func handle(arguments: Dictionary, result: @escaping FlutterResult) -> Void { 18 | let database: CKDatabase; 19 | if let databaseOpt = getDatabaseFromArgs(arguments: arguments) { 20 | database = databaseOpt; 21 | } else { 22 | return result(createFlutterError(message: "Cannot create a database for the provided scope")); 23 | } 24 | 25 | let recordId: CKRecord.ID; 26 | if let recordIdOpt = getRecordIdFromArgs(arguments: arguments) { 27 | recordId = recordIdOpt; 28 | } else { 29 | return result(createFlutterError(message: "Cannot parse record id")); 30 | } 31 | 32 | database.delete(withRecordID: recordId) { (recordId, error) in 33 | if (error != nil) { 34 | return result(createFlutterError(message: error!.localizedDescription)); 35 | } 36 | if (recordId == nil) { 37 | return result(createFlutterError(message: "Record was not found")); 38 | } else { 39 | return result(true); 40 | } 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /darwin/Classes/handlers/GetAccountStatusHandler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GetAccountStatusHandler.swift 3 | // flutter_cloud_kit 4 | // 5 | // Created by Mikhail Poplavkov on 18.07.23. 6 | // 7 | 8 | import CloudKit 9 | 10 | #if os(iOS) 11 | import Flutter 12 | #elseif os(macOS) 13 | import FlutterMacOS 14 | #endif 15 | 16 | class GetAccountStatusHandler { 17 | static func handle(arguments: Dictionary, result: @escaping FlutterResult) -> Void { 18 | let container = getContainerFromArgsOrDefault(arguments: arguments); 19 | container.accountStatus { (accountStatus: CKAccountStatus, error: Error?) in 20 | if (error != nil) { 21 | return result(createFlutterError(message: error!.localizedDescription)); 22 | } 23 | return result(accountStatus.rawValue); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /darwin/Classes/handlers/GetRecordHandler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GetRecordHandler.swift 3 | // flutter_cloud_kit 4 | // 5 | // Created by Mikhail Poplavkov on 20.07.23. 6 | // 7 | 8 | import CloudKit 9 | 10 | #if os(iOS) 11 | import Flutter 12 | #elseif os(macOS) 13 | import FlutterMacOS 14 | #endif 15 | 16 | class GetRecordHandler { 17 | static func handle(arguments: Dictionary, result: @escaping FlutterResult) -> Void { 18 | let database: CKDatabase; 19 | if let databaseOpt = getDatabaseFromArgs(arguments: arguments) { 20 | database = databaseOpt; 21 | } else { 22 | return result(createFlutterError(message: "Cannot create a database for the provided scope")); 23 | } 24 | 25 | let recordId: CKRecord.ID; 26 | if let recordIdOpt = getRecordIdFromArgs(arguments: arguments) { 27 | recordId = recordIdOpt; 28 | } else { 29 | return result(createFlutterError(message: "Cannot parse record id")); 30 | } 31 | 32 | database.fetch(withRecordID: recordId) { (record, error) in 33 | if (error != nil) { 34 | return result(createFlutterError(message: error!.localizedDescription)); 35 | } 36 | if (record == nil) { 37 | return result(createFlutterError(message: "Got nil when fetching the record")); 38 | } else { 39 | let dict = recordToDictionary(record: record!); 40 | return result(dict); 41 | } 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /darwin/Classes/handlers/GetRecordsByTypeHandler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GetRecordsByTypeHandler.swift 3 | // flutter_cloud_kit 4 | // 5 | // Created by Mikhail Poplavkov on 21.07.23. 6 | // 7 | 8 | 9 | import CloudKit 10 | 11 | #if os(iOS) 12 | import Flutter 13 | #elseif os(macOS) 14 | import FlutterMacOS 15 | #endif 16 | 17 | class GetRecordsByTypeHandler { 18 | static func handle(arguments: Dictionary, result: @escaping FlutterResult) -> Void { 19 | let database: CKDatabase; 20 | let recordType: String; 21 | 22 | if let databaseOpt = getDatabaseFromArgs(arguments: arguments) { 23 | database = databaseOpt; 24 | } else { 25 | return result(createFlutterError(message: "Cannot create a database for the provided scope")); 26 | } 27 | 28 | if let recordTypeOpt = getRecordTypeFromArgs(arguments: arguments) { 29 | recordType = recordTypeOpt; 30 | } else { 31 | return result(createFlutterError(message: "Couldn't parse the required parameter 'recordType'")); 32 | } 33 | 34 | let predicate = NSPredicate(value: true); 35 | // TODO: make sort to be custom 36 | let sort = NSSortDescriptor(key: "creationDate", ascending: true); 37 | let query = CKQuery(recordType: recordType, predicate: predicate); 38 | query.sortDescriptors = [sort]; 39 | 40 | // TODO: add pagination 41 | // TODO: add ability to specify desired keys 42 | database.perform(query, inZoneWith: nil) { (records: [CKRecord]?, error: Error?) in 43 | if (error != nil) { 44 | return result(createFlutterError(message: error!.localizedDescription)); 45 | } 46 | if (records == nil) { 47 | return result([:]); 48 | } else { 49 | let transformed = records!.map(recordToDictionary); 50 | return result(transformed); 51 | } 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /darwin/Classes/handlers/SaveRecordHandler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SaveRecordHandler.swift 3 | // flutter_cloud_kit 4 | // 5 | // Created by Mikhail Poplavkov on 20.07.23. 6 | // 7 | 8 | import CloudKit 9 | 10 | #if os(iOS) 11 | import Flutter 12 | #elseif os(macOS) 13 | import FlutterMacOS 14 | #endif 15 | 16 | class SaveRecordHandler { 17 | static func handle(arguments: Dictionary, result: @escaping FlutterResult) -> Void { 18 | let database: CKDatabase; 19 | let recordType: String; 20 | let recordValues: Dictionary; 21 | 22 | if let databaseOpt = getDatabaseFromArgs(arguments: arguments) { 23 | database = databaseOpt; 24 | } else { 25 | return result(createFlutterError(message: "Cannot create a database for the provided scope")); 26 | } 27 | 28 | if let recordTypeOpt = getRecordTypeFromArgs(arguments: arguments) { 29 | recordType = recordTypeOpt; 30 | } else { 31 | return result(createFlutterError(message: "Couldn't parse the required parameter 'recordType'")); 32 | } 33 | 34 | if let recordValuesOpt = getRecordValuesFromArgs(arguments: arguments) { 35 | recordValues = recordValuesOpt; 36 | } else { 37 | return result(createFlutterError(message: "Couldn't parse the required parameter 'record'")); 38 | } 39 | 40 | let recordId = getRecordIdFromArgsOrDefault(arguments: arguments); 41 | let record = CKRecord(recordType: recordType, recordID: recordId); 42 | 43 | // TODO: handle ObjectiveC exceptions 44 | record.setValuesForKeys(recordValues); 45 | 46 | database.save(record) { (record, error) in 47 | if (error != nil) { 48 | return result(createFlutterError(message: error!.localizedDescription)); 49 | } 50 | if (record == nil) { 51 | return result(createFlutterError(message: "Got nil while saving the record")); 52 | } 53 | return result(true); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /darwin/Classes/util/FlutterInteropUtils.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FlutterInteropUtils.swift 3 | // flutter_cloud_kit 4 | // 5 | // Created by Mikhail Poplavkov on 20.07.23. 6 | // 7 | 8 | #if os(iOS) 9 | import Flutter 10 | #elseif os(macOS) 11 | import FlutterMacOS 12 | #endif 13 | 14 | import CloudKit 15 | 16 | func createFlutterError(message: String) -> FlutterError { 17 | return FlutterError.init(code: "Error", message: message, details: nil) 18 | } 19 | 20 | func getContainerFromArgsOrDefault(arguments: Dictionary) -> CKContainer { 21 | if let containerId = arguments["containerId"] as? String { 22 | return CKContainer(identifier: containerId) 23 | } else { 24 | return CKContainer.default() 25 | } 26 | } 27 | 28 | func getRecordIdFromArgs(arguments: Dictionary) -> CKRecord.ID? { 29 | if let recordName = arguments["recordName"] as? String { 30 | return CKRecord.ID(recordName: recordName) 31 | } else { 32 | return nil 33 | } 34 | } 35 | 36 | func getRecordIdFromArgsOrDefault(arguments: Dictionary) -> CKRecord.ID { 37 | if let recordId = getRecordIdFromArgs(arguments: arguments) { 38 | return recordId 39 | } else { 40 | return CKRecord.ID() 41 | } 42 | } 43 | 44 | func getRecordTypeFromArgs(arguments: Dictionary) -> String? { 45 | return arguments["recordType"] as? String; 46 | } 47 | 48 | func getRecordValuesFromArgs(arguments: Dictionary) -> Dictionary? { 49 | return arguments["record"] as? Dictionary; 50 | } 51 | 52 | func getDatabaseFromArgs(arguments: Dictionary) -> CKDatabase? { 53 | let container = getContainerFromArgsOrDefault(arguments: arguments); 54 | if let databaseScope = arguments["databaseScope"] as? String { 55 | if databaseScope == "private" { 56 | return container.privateCloudDatabase; 57 | } else { 58 | // not supported 59 | return nil 60 | } 61 | } else { 62 | return nil 63 | } 64 | } 65 | 66 | func convertCkRecordType(value: __CKRecordObjCValue) -> Any? { 67 | if let str = value as? NSString { 68 | return str as String; 69 | } else if let num = value as? NSNumber { 70 | return num.stringValue; 71 | } else if let data = value as? NSData { 72 | return data.base64EncodedString(); 73 | } else if let date = value as? NSDate { 74 | return date.timeIntervalSince1970; 75 | } else if let reference = value as? CKRecord.Reference { 76 | return reference.recordID.recordName; 77 | } else if let asset = value as? CKAsset { 78 | return asset.fileURL?.absoluteString; 79 | } else { 80 | // not supported 81 | return nil; 82 | } 83 | } 84 | 85 | func recordToDictionary(record: CKRecord) -> Dictionary { 86 | var dictionary: [String: Any?] = [:]; 87 | 88 | dictionary["recordName"] = record.recordID.recordName; 89 | dictionary["recordType"] = record.recordType; 90 | 91 | var recordDictionary: [String: Any?] = [:]; 92 | for key in record.allKeys() { 93 | if let value = record[key] { 94 | recordDictionary[key] = convertCkRecordType(value: value); 95 | } 96 | } 97 | dictionary["record"] = recordDictionary; 98 | return dictionary; 99 | } 100 | -------------------------------------------------------------------------------- /darwin/flutter_cloud_kit.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. 3 | # Run `pod lib lint flutter_cloud_kit.podspec` to validate before publishing. 4 | # 5 | Pod::Spec.new do |s| 6 | s.name = 'flutter_cloud_kit' 7 | s.version = '0.0.1' 8 | s.summary = 'A new Flutter plugin project.' 9 | s.description = <<-DESC 10 | A new Flutter plugin project. 11 | DESC 12 | s.homepage = 'http://example.com' 13 | s.license = { :file => '../LICENSE' } 14 | s.author = { 'Your Company' => 'email@example.com' } 15 | s.source = { :path => '.' } 16 | s.source_files = 'Classes/**/*' 17 | s.ios.dependency 'Flutter' 18 | s.osx.dependency 'FlutterMacOS' 19 | s.ios.deployment_target = '9.0' 20 | s.osx.deployment_target = '10.10' 21 | 22 | # Flutter.framework does not contain a i386 slice. 23 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 24 | s.swift_version = '5.0' 25 | end 26 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # flutter_cloud_kit_example 2 | 3 | Demonstrates how to use the flutter_cloud_kit plugin. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /example/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '11.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - flutter_cloud_kit (0.0.1): 4 | - Flutter 5 | - FlutterMacOS 6 | 7 | DEPENDENCIES: 8 | - Flutter (from `Flutter`) 9 | - flutter_cloud_kit (from `.symlinks/plugins/flutter_cloud_kit/darwin`) 10 | 11 | EXTERNAL SOURCES: 12 | Flutter: 13 | :path: Flutter 14 | flutter_cloud_kit: 15 | :path: ".symlinks/plugins/flutter_cloud_kit/darwin" 16 | 17 | SPEC CHECKSUMS: 18 | Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 19 | flutter_cloud_kit: c204c1fd9ca6a2c13c29f1d20c5b29e7390c6053 20 | 21 | PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3 22 | 23 | COCOAPODS: 1.11.3 24 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | FBFD508A3C0AAB405391C709 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FB729ACCDC6AB769DE822843 /* Pods_Runner.framework */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 36 | 52908F01A08EFE625339FBFC /* 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 = ""; }; 37 | 5B2E6CCF2A69939400F62FA4 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = ""; }; 38 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 39 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 41 | 8890351288EACD8D17DAB55C /* 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 = ""; }; 42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | BDBDB847D80D00ACA1C346B3 /* 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 = ""; }; 50 | FB729ACCDC6AB769DE822843 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | /* End PBXFileReference section */ 52 | 53 | /* Begin PBXFrameworksBuildPhase section */ 54 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 55 | isa = PBXFrameworksBuildPhase; 56 | buildActionMask = 2147483647; 57 | files = ( 58 | FBFD508A3C0AAB405391C709 /* Pods_Runner.framework in Frameworks */, 59 | ); 60 | runOnlyForDeploymentPostprocessing = 0; 61 | }; 62 | /* End PBXFrameworksBuildPhase section */ 63 | 64 | /* Begin PBXGroup section */ 65 | 9740EEB11CF90186004384FC /* Flutter */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 69 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 70 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 71 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 72 | ); 73 | name = Flutter; 74 | sourceTree = ""; 75 | }; 76 | 97C146E51CF9000F007C117D = { 77 | isa = PBXGroup; 78 | children = ( 79 | 9740EEB11CF90186004384FC /* Flutter */, 80 | 97C146F01CF9000F007C117D /* Runner */, 81 | 97C146EF1CF9000F007C117D /* Products */, 82 | F0ED1FDD3494ADC876381952 /* Pods */, 83 | E7FE6A5DAF08A55A32F2DEB2 /* Frameworks */, 84 | ); 85 | sourceTree = ""; 86 | }; 87 | 97C146EF1CF9000F007C117D /* Products */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 97C146EE1CF9000F007C117D /* Runner.app */, 91 | ); 92 | name = Products; 93 | sourceTree = ""; 94 | }; 95 | 97C146F01CF9000F007C117D /* Runner */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 5B2E6CCF2A69939400F62FA4 /* Runner.entitlements */, 99 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 100 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 101 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 102 | 97C147021CF9000F007C117D /* Info.plist */, 103 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 104 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 105 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 106 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 107 | ); 108 | path = Runner; 109 | sourceTree = ""; 110 | }; 111 | E7FE6A5DAF08A55A32F2DEB2 /* Frameworks */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | FB729ACCDC6AB769DE822843 /* Pods_Runner.framework */, 115 | ); 116 | name = Frameworks; 117 | sourceTree = ""; 118 | }; 119 | F0ED1FDD3494ADC876381952 /* Pods */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 8890351288EACD8D17DAB55C /* Pods-Runner.debug.xcconfig */, 123 | 52908F01A08EFE625339FBFC /* Pods-Runner.release.xcconfig */, 124 | BDBDB847D80D00ACA1C346B3 /* Pods-Runner.profile.xcconfig */, 125 | ); 126 | path = Pods; 127 | sourceTree = ""; 128 | }; 129 | /* End PBXGroup section */ 130 | 131 | /* Begin PBXNativeTarget section */ 132 | 97C146ED1CF9000F007C117D /* Runner */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 135 | buildPhases = ( 136 | 366CCC19BEB522528B319848 /* [CP] Check Pods Manifest.lock */, 137 | 9740EEB61CF901F6004384FC /* Run Script */, 138 | 97C146EA1CF9000F007C117D /* Sources */, 139 | 97C146EB1CF9000F007C117D /* Frameworks */, 140 | 97C146EC1CF9000F007C117D /* Resources */, 141 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 142 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 143 | ACD66D965573F7685D785BD3 /* [CP] Embed Pods Frameworks */, 144 | ); 145 | buildRules = ( 146 | ); 147 | dependencies = ( 148 | ); 149 | name = Runner; 150 | productName = Runner; 151 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 152 | productType = "com.apple.product-type.application"; 153 | }; 154 | /* End PBXNativeTarget section */ 155 | 156 | /* Begin PBXProject section */ 157 | 97C146E61CF9000F007C117D /* Project object */ = { 158 | isa = PBXProject; 159 | attributes = { 160 | LastUpgradeCheck = 1430; 161 | ORGANIZATIONNAME = ""; 162 | TargetAttributes = { 163 | 97C146ED1CF9000F007C117D = { 164 | CreatedOnToolsVersion = 7.3.1; 165 | LastSwiftMigration = 1100; 166 | }; 167 | }; 168 | }; 169 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 170 | compatibilityVersion = "Xcode 9.3"; 171 | developmentRegion = en; 172 | hasScannedForEncodings = 0; 173 | knownRegions = ( 174 | en, 175 | Base, 176 | ); 177 | mainGroup = 97C146E51CF9000F007C117D; 178 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 179 | projectDirPath = ""; 180 | projectRoot = ""; 181 | targets = ( 182 | 97C146ED1CF9000F007C117D /* Runner */, 183 | ); 184 | }; 185 | /* End PBXProject section */ 186 | 187 | /* Begin PBXResourcesBuildPhase section */ 188 | 97C146EC1CF9000F007C117D /* Resources */ = { 189 | isa = PBXResourcesBuildPhase; 190 | buildActionMask = 2147483647; 191 | files = ( 192 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 193 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 194 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 195 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 196 | ); 197 | runOnlyForDeploymentPostprocessing = 0; 198 | }; 199 | /* End PBXResourcesBuildPhase section */ 200 | 201 | /* Begin PBXShellScriptBuildPhase section */ 202 | 366CCC19BEB522528B319848 /* [CP] Check Pods Manifest.lock */ = { 203 | isa = PBXShellScriptBuildPhase; 204 | buildActionMask = 2147483647; 205 | files = ( 206 | ); 207 | inputFileListPaths = ( 208 | ); 209 | inputPaths = ( 210 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 211 | "${PODS_ROOT}/Manifest.lock", 212 | ); 213 | name = "[CP] Check Pods Manifest.lock"; 214 | outputFileListPaths = ( 215 | ); 216 | outputPaths = ( 217 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | shellPath = /bin/sh; 221 | 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"; 222 | showEnvVarsInLog = 0; 223 | }; 224 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 225 | isa = PBXShellScriptBuildPhase; 226 | alwaysOutOfDate = 1; 227 | buildActionMask = 2147483647; 228 | files = ( 229 | ); 230 | inputPaths = ( 231 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 232 | ); 233 | name = "Thin Binary"; 234 | outputPaths = ( 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | shellPath = /bin/sh; 238 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 239 | }; 240 | 9740EEB61CF901F6004384FC /* Run Script */ = { 241 | isa = PBXShellScriptBuildPhase; 242 | alwaysOutOfDate = 1; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | ); 246 | inputPaths = ( 247 | ); 248 | name = "Run Script"; 249 | outputPaths = ( 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | shellPath = /bin/sh; 253 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 254 | }; 255 | ACD66D965573F7685D785BD3 /* [CP] Embed Pods Frameworks */ = { 256 | isa = PBXShellScriptBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | inputFileListPaths = ( 261 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 262 | ); 263 | name = "[CP] Embed Pods Frameworks"; 264 | outputFileListPaths = ( 265 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | shellPath = /bin/sh; 269 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 270 | showEnvVarsInLog = 0; 271 | }; 272 | /* End PBXShellScriptBuildPhase section */ 273 | 274 | /* Begin PBXSourcesBuildPhase section */ 275 | 97C146EA1CF9000F007C117D /* Sources */ = { 276 | isa = PBXSourcesBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 280 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | }; 284 | /* End PBXSourcesBuildPhase section */ 285 | 286 | /* Begin PBXVariantGroup section */ 287 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 288 | isa = PBXVariantGroup; 289 | children = ( 290 | 97C146FB1CF9000F007C117D /* Base */, 291 | ); 292 | name = Main.storyboard; 293 | sourceTree = ""; 294 | }; 295 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 296 | isa = PBXVariantGroup; 297 | children = ( 298 | 97C147001CF9000F007C117D /* Base */, 299 | ); 300 | name = LaunchScreen.storyboard; 301 | sourceTree = ""; 302 | }; 303 | /* End PBXVariantGroup section */ 304 | 305 | /* Begin XCBuildConfiguration section */ 306 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 307 | isa = XCBuildConfiguration; 308 | buildSettings = { 309 | ALWAYS_SEARCH_USER_PATHS = NO; 310 | CLANG_ANALYZER_NONNULL = YES; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 316 | CLANG_WARN_BOOL_CONVERSION = YES; 317 | CLANG_WARN_COMMA = YES; 318 | CLANG_WARN_CONSTANT_CONVERSION = YES; 319 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 320 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 321 | CLANG_WARN_EMPTY_BODY = YES; 322 | CLANG_WARN_ENUM_CONVERSION = YES; 323 | CLANG_WARN_INFINITE_RECURSION = YES; 324 | CLANG_WARN_INT_CONVERSION = YES; 325 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 326 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 327 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 328 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 329 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 330 | CLANG_WARN_STRICT_PROTOTYPES = YES; 331 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 332 | CLANG_WARN_UNREACHABLE_CODE = YES; 333 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 334 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 335 | COPY_PHASE_STRIP = NO; 336 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 337 | ENABLE_NS_ASSERTIONS = NO; 338 | ENABLE_STRICT_OBJC_MSGSEND = YES; 339 | GCC_C_LANGUAGE_STANDARD = gnu99; 340 | GCC_NO_COMMON_BLOCKS = YES; 341 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 342 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 343 | GCC_WARN_UNDECLARED_SELECTOR = YES; 344 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 345 | GCC_WARN_UNUSED_FUNCTION = YES; 346 | GCC_WARN_UNUSED_VARIABLE = YES; 347 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 348 | MTL_ENABLE_DEBUG_INFO = NO; 349 | SDKROOT = iphoneos; 350 | SUPPORTED_PLATFORMS = iphoneos; 351 | TARGETED_DEVICE_FAMILY = "1,2"; 352 | VALIDATE_PRODUCT = YES; 353 | }; 354 | name = Profile; 355 | }; 356 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 357 | isa = XCBuildConfiguration; 358 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 359 | buildSettings = { 360 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 361 | CLANG_ENABLE_MODULES = YES; 362 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; 363 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 364 | DEVELOPMENT_TEAM = 5K2PUC9U4J; 365 | ENABLE_BITCODE = NO; 366 | INFOPLIST_FILE = Runner/Info.plist; 367 | LD_RUNPATH_SEARCH_PATHS = ( 368 | "$(inherited)", 369 | "@executable_path/Frameworks", 370 | ); 371 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample; 372 | PRODUCT_NAME = "$(TARGET_NAME)"; 373 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 374 | SWIFT_VERSION = 5.0; 375 | VERSIONING_SYSTEM = "apple-generic"; 376 | }; 377 | name = Profile; 378 | }; 379 | 97C147031CF9000F007C117D /* Debug */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | ALWAYS_SEARCH_USER_PATHS = NO; 383 | CLANG_ANALYZER_NONNULL = YES; 384 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 385 | CLANG_CXX_LIBRARY = "libc++"; 386 | CLANG_ENABLE_MODULES = YES; 387 | CLANG_ENABLE_OBJC_ARC = YES; 388 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 389 | CLANG_WARN_BOOL_CONVERSION = YES; 390 | CLANG_WARN_COMMA = YES; 391 | CLANG_WARN_CONSTANT_CONVERSION = YES; 392 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 393 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 394 | CLANG_WARN_EMPTY_BODY = YES; 395 | CLANG_WARN_ENUM_CONVERSION = YES; 396 | CLANG_WARN_INFINITE_RECURSION = YES; 397 | CLANG_WARN_INT_CONVERSION = YES; 398 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 399 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 400 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 401 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 402 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 403 | CLANG_WARN_STRICT_PROTOTYPES = YES; 404 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 405 | CLANG_WARN_UNREACHABLE_CODE = YES; 406 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 407 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 408 | COPY_PHASE_STRIP = NO; 409 | DEBUG_INFORMATION_FORMAT = dwarf; 410 | ENABLE_STRICT_OBJC_MSGSEND = YES; 411 | ENABLE_TESTABILITY = YES; 412 | GCC_C_LANGUAGE_STANDARD = gnu99; 413 | GCC_DYNAMIC_NO_PIC = NO; 414 | GCC_NO_COMMON_BLOCKS = YES; 415 | GCC_OPTIMIZATION_LEVEL = 0; 416 | GCC_PREPROCESSOR_DEFINITIONS = ( 417 | "DEBUG=1", 418 | "$(inherited)", 419 | ); 420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 422 | GCC_WARN_UNDECLARED_SELECTOR = YES; 423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 424 | GCC_WARN_UNUSED_FUNCTION = YES; 425 | GCC_WARN_UNUSED_VARIABLE = YES; 426 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 427 | MTL_ENABLE_DEBUG_INFO = YES; 428 | ONLY_ACTIVE_ARCH = YES; 429 | SDKROOT = iphoneos; 430 | TARGETED_DEVICE_FAMILY = "1,2"; 431 | }; 432 | name = Debug; 433 | }; 434 | 97C147041CF9000F007C117D /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | buildSettings = { 437 | ALWAYS_SEARCH_USER_PATHS = NO; 438 | CLANG_ANALYZER_NONNULL = YES; 439 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 440 | CLANG_CXX_LIBRARY = "libc++"; 441 | CLANG_ENABLE_MODULES = YES; 442 | CLANG_ENABLE_OBJC_ARC = YES; 443 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 444 | CLANG_WARN_BOOL_CONVERSION = YES; 445 | CLANG_WARN_COMMA = YES; 446 | CLANG_WARN_CONSTANT_CONVERSION = YES; 447 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 448 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 449 | CLANG_WARN_EMPTY_BODY = YES; 450 | CLANG_WARN_ENUM_CONVERSION = YES; 451 | CLANG_WARN_INFINITE_RECURSION = YES; 452 | CLANG_WARN_INT_CONVERSION = YES; 453 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 454 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 455 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 456 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 457 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 458 | CLANG_WARN_STRICT_PROTOTYPES = YES; 459 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 460 | CLANG_WARN_UNREACHABLE_CODE = YES; 461 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 462 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 463 | COPY_PHASE_STRIP = NO; 464 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 465 | ENABLE_NS_ASSERTIONS = NO; 466 | ENABLE_STRICT_OBJC_MSGSEND = YES; 467 | GCC_C_LANGUAGE_STANDARD = gnu99; 468 | GCC_NO_COMMON_BLOCKS = YES; 469 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 470 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 471 | GCC_WARN_UNDECLARED_SELECTOR = YES; 472 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 473 | GCC_WARN_UNUSED_FUNCTION = YES; 474 | GCC_WARN_UNUSED_VARIABLE = YES; 475 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 476 | MTL_ENABLE_DEBUG_INFO = NO; 477 | SDKROOT = iphoneos; 478 | SUPPORTED_PLATFORMS = iphoneos; 479 | SWIFT_COMPILATION_MODE = wholemodule; 480 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 481 | TARGETED_DEVICE_FAMILY = "1,2"; 482 | VALIDATE_PRODUCT = YES; 483 | }; 484 | name = Release; 485 | }; 486 | 97C147061CF9000F007C117D /* Debug */ = { 487 | isa = XCBuildConfiguration; 488 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 489 | buildSettings = { 490 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 491 | CLANG_ENABLE_MODULES = YES; 492 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; 493 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 494 | DEVELOPMENT_TEAM = 5K2PUC9U4J; 495 | ENABLE_BITCODE = NO; 496 | INFOPLIST_FILE = Runner/Info.plist; 497 | LD_RUNPATH_SEARCH_PATHS = ( 498 | "$(inherited)", 499 | "@executable_path/Frameworks", 500 | ); 501 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample; 502 | PRODUCT_NAME = "$(TARGET_NAME)"; 503 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 504 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 505 | SWIFT_VERSION = 5.0; 506 | VERSIONING_SYSTEM = "apple-generic"; 507 | }; 508 | name = Debug; 509 | }; 510 | 97C147071CF9000F007C117D /* Release */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 513 | buildSettings = { 514 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 515 | CLANG_ENABLE_MODULES = YES; 516 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; 517 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 518 | DEVELOPMENT_TEAM = 5K2PUC9U4J; 519 | ENABLE_BITCODE = NO; 520 | INFOPLIST_FILE = Runner/Info.plist; 521 | LD_RUNPATH_SEARCH_PATHS = ( 522 | "$(inherited)", 523 | "@executable_path/Frameworks", 524 | ); 525 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample; 526 | PRODUCT_NAME = "$(TARGET_NAME)"; 527 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 528 | SWIFT_VERSION = 5.0; 529 | VERSIONING_SYSTEM = "apple-generic"; 530 | }; 531 | name = Release; 532 | }; 533 | /* End XCBuildConfiguration section */ 534 | 535 | /* Begin XCConfigurationList section */ 536 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 537 | isa = XCConfigurationList; 538 | buildConfigurations = ( 539 | 97C147031CF9000F007C117D /* Debug */, 540 | 97C147041CF9000F007C117D /* Release */, 541 | 249021D3217E4FDB00AE95B9 /* Profile */, 542 | ); 543 | defaultConfigurationIsVisible = 0; 544 | defaultConfigurationName = Release; 545 | }; 546 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 547 | isa = XCConfigurationList; 548 | buildConfigurations = ( 549 | 97C147061CF9000F007C117D /* Debug */, 550 | 97C147071CF9000F007C117D /* Release */, 551 | 249021D4217E4FDB00AE95B9 /* Profile */, 552 | ); 553 | defaultConfigurationIsVisible = 0; 554 | defaultConfigurationName = Release; 555 | }; 556 | /* End XCConfigurationList section */ 557 | }; 558 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 559 | } 560 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Flutter Cloud Kit 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | flutter_cloud_kit_example 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /example/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /example/ios/Runner/Runner.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | aps-environment 6 | development 7 | com.apple.developer.icloud-container-identifiers 8 | 9 | iCloud.flutter_cloud_kit_example 10 | 11 | com.apple.developer.icloud-services 12 | 13 | CloudKit 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_cloud_kit/flutter_cloud_kit.dart'; 5 | import 'package:flutter_cloud_kit/types/cloud_ket_record.dart'; 6 | import 'package:flutter_cloud_kit/types/database_scope.dart'; 7 | 8 | const exampleContainerId = "iCloud.flutter_cloud_kit_example"; 9 | const exampleRecordType = "ExampleRecordType"; 10 | const databaseScope = CloudKitDatabaseScope.private; 11 | 12 | void main() { 13 | runApp(const FlutterCloudKitExample()); 14 | } 15 | 16 | class FlutterCloudKitExample extends StatefulWidget { 17 | const FlutterCloudKitExample({super.key}); 18 | 19 | @override 20 | State createState() => _FlutterCloudKitExampleState(); 21 | } 22 | 23 | class _FlutterCloudKitExampleState extends State { 24 | TextEditingController recordName = TextEditingController(); 25 | TextEditingController key = TextEditingController(); 26 | TextEditingController value = TextEditingController(); 27 | FlutterCloudKit cloudKit = FlutterCloudKit(containerId: exampleContainerId); 28 | List fetchedRecordsText = []; 29 | 30 | final _scaffoldKey = GlobalKey(); 31 | 32 | @override 33 | Widget build(BuildContext context) { 34 | return MaterialApp( 35 | home: Scaffold( 36 | key: _scaffoldKey, 37 | appBar: AppBar( 38 | title: const Text('Flutter cloud kit example'), 39 | ), 40 | body: Column( 41 | children: [ 42 | TextFormField( 43 | controller: recordName, 44 | decoration: const InputDecoration(hintText: 'Record name'), 45 | ), 46 | TextFormField( 47 | controller: key, 48 | decoration: const InputDecoration(hintText: 'Key'), 49 | ), 50 | TextFormField( 51 | controller: value, 52 | decoration: const InputDecoration(hintText: 'Value'), 53 | ), 54 | ElevatedButton( 55 | onPressed: () async { 56 | var record = {key.text: value.text}; 57 | try { 58 | await cloudKit.saveRecord( 59 | scope: databaseScope, 60 | recordType: exampleRecordType, 61 | record: record, 62 | recordName: recordName.text); 63 | _debugMessage('Successfully saved the record $record'); 64 | } catch (e) { 65 | _debugMessage('Failed to save the record: $e'); 66 | } 67 | }, 68 | child: const Text('Save'), 69 | ), 70 | ElevatedButton( 71 | onPressed: () async { 72 | var name = recordName.text; 73 | try { 74 | var fetchedRecord = await cloudKit.getRecord( 75 | scope: databaseScope, recordName: name); 76 | fetchedRecordsText = [ 77 | 'Fetched record:', 78 | _recordToString(fetchedRecord) 79 | ]; 80 | _debugMessage('Successfully got the record by name $name'); 81 | setState(() {}); 82 | } catch (e) { 83 | _debugMessage('Error getting record by name $name: $e'); 84 | } 85 | }, 86 | child: const Text('Get'), 87 | ), 88 | ElevatedButton( 89 | onPressed: () async { 90 | try { 91 | var fetchedRecordsByType = await cloudKit.getRecordsByType( 92 | scope: databaseScope, recordType: exampleRecordType); 93 | fetchedRecordsText = ['Fetched records:']; 94 | fetchedRecordsText.addAll( 95 | fetchedRecordsByType.map((e) => _recordToString(e))); 96 | _debugMessage( 97 | 'Successfully got ${fetchedRecordsByType.length} records by type'); 98 | setState(() {}); 99 | } catch (e) { 100 | _debugMessage("Error getting records by type: $e"); 101 | } 102 | }, 103 | child: const Text('Get all records by type'), 104 | ), 105 | ElevatedButton( 106 | onPressed: () async { 107 | var name = recordName.text; 108 | try { 109 | await cloudKit.deleteRecord( 110 | scope: databaseScope, recordName: name); 111 | _debugMessage('Successfully deleted record by name $name'); 112 | } catch (e) { 113 | _debugMessage('Error deleting the record $name: $e'); 114 | } 115 | }, 116 | child: const Text('Delete'), 117 | ), 118 | ElevatedButton( 119 | onPressed: () async { 120 | var accountStatus = await cloudKit.getAccountStatus(); 121 | _debugMessage('Current account status: $accountStatus'); 122 | }, 123 | child: const Text('Get account status'), 124 | ), 125 | Column( 126 | children: fetchedRecordsText 127 | .map((e) => Text(e, textAlign: TextAlign.center)) 128 | .toList()), 129 | ], 130 | )), 131 | ); 132 | } 133 | 134 | void _debugMessage(String message) { 135 | debugPrint(message); 136 | ScaffoldMessenger.of(_scaffoldKey.currentContext!).showSnackBar( 137 | SnackBar(content: Text(message)), 138 | ); 139 | } 140 | } 141 | 142 | String _recordToString(CloudKitRecord record) { 143 | var obj = { 144 | 'recordType': record.recordType, 145 | 'recordName': record.recordName, 146 | 'values': record.values 147 | }; 148 | return jsonEncode(obj); 149 | } 150 | -------------------------------------------------------------------------------- /example/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /example/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import flutter_cloud_kit 9 | 10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 11 | FlutterCloudKitPlugin.register(with: registry.registrar(forPlugin: "FlutterCloudKitPlugin")) 12 | } 13 | -------------------------------------------------------------------------------- /example/macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.14' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def flutter_root 13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) 14 | unless File.exist?(generated_xcode_build_settings_path) 15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" 16 | end 17 | 18 | File.foreach(generated_xcode_build_settings_path) do |line| 19 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 20 | return matches[1].strip if matches 21 | end 22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" 23 | end 24 | 25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 26 | 27 | flutter_macos_podfile_setup 28 | 29 | target 'Runner' do 30 | use_frameworks! 31 | use_modular_headers! 32 | 33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) 34 | target 'RunnerTests' do 35 | inherit! :search_paths 36 | end 37 | end 38 | 39 | post_install do |installer| 40 | installer.pods_project.targets.each do |target| 41 | flutter_additional_macos_build_settings(target) 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /example/macos/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - flutter_cloud_kit (0.0.1): 3 | - Flutter 4 | - FlutterMacOS 5 | - FlutterMacOS (1.0.0) 6 | 7 | DEPENDENCIES: 8 | - flutter_cloud_kit (from `Flutter/ephemeral/.symlinks/plugins/flutter_cloud_kit/darwin`) 9 | - FlutterMacOS (from `Flutter/ephemeral`) 10 | 11 | EXTERNAL SOURCES: 12 | flutter_cloud_kit: 13 | :path: Flutter/ephemeral/.symlinks/plugins/flutter_cloud_kit/darwin 14 | FlutterMacOS: 15 | :path: Flutter/ephemeral 16 | 17 | SPEC CHECKSUMS: 18 | flutter_cloud_kit: c204c1fd9ca6a2c13c29f1d20c5b29e7390c6053 19 | FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 20 | 21 | PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367 22 | 23 | COCOAPODS: 1.11.3 24 | -------------------------------------------------------------------------------- /example/macos/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXAggregateTarget section */ 10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { 11 | isa = PBXAggregateTarget; 12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; 13 | buildPhases = ( 14 | 33CC111E2044C6BF0003C045 /* ShellScript */, 15 | ); 16 | dependencies = ( 17 | ); 18 | name = "Flutter Assemble"; 19 | productName = FLX; 20 | }; 21 | /* End PBXAggregateTarget section */ 22 | 23 | /* Begin PBXBuildFile section */ 24 | 14696EDF825875DA034BB267 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9669DBFD2B69FB2379C438A9 /* Pods_Runner.framework */; }; 25 | 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; 26 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; 27 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; 28 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 29 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 30 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; 31 | ECBAD011C1944BA00A54529D /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BDEB12524787C93F336BBE0A /* Pods_RunnerTests.framework */; }; 32 | /* End PBXBuildFile section */ 33 | 34 | /* Begin PBXContainerItemProxy section */ 35 | 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */; 38 | proxyType = 1; 39 | remoteGlobalIDString = 33CC10EC2044A3C60003C045; 40 | remoteInfo = Runner; 41 | }; 42 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { 43 | isa = PBXContainerItemProxy; 44 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */; 45 | proxyType = 1; 46 | remoteGlobalIDString = 33CC111A2044C6BA0003C045; 47 | remoteInfo = FLX; 48 | }; 49 | /* End PBXContainerItemProxy section */ 50 | 51 | /* Begin PBXCopyFilesBuildPhase section */ 52 | 33CC110E2044A8840003C045 /* Bundle Framework */ = { 53 | isa = PBXCopyFilesBuildPhase; 54 | buildActionMask = 2147483647; 55 | dstPath = ""; 56 | dstSubfolderSpec = 10; 57 | files = ( 58 | ); 59 | name = "Bundle Framework"; 60 | runOnlyForDeploymentPostprocessing = 0; 61 | }; 62 | /* End PBXCopyFilesBuildPhase section */ 63 | 64 | /* Begin PBXFileReference section */ 65 | 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 67 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 68 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; 69 | 33CC10ED2044A3C60003C045 /* flutter_cloud_kit_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = flutter_cloud_kit_example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 70 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 71 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 72 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 73 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; 74 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; 75 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; 76 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; 77 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; 78 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; 79 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 80 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; 81 | 497891BE32BD18B295A80917 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; 82 | 6667DEAE2401D20BD1C76D4A /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; 83 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; 84 | 8624D8D41661C4AD7693E5CB /* 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 = ""; }; 85 | 8CBA11EF6DE58B00FF1EF6E2 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; 86 | 9669DBFD2B69FB2379C438A9 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; 88 | BDEB12524787C93F336BBE0A /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 89 | D54B5063AABC3FE886A3EA34 /* 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 = ""; }; 90 | F8C50101A7F2D2D52C721D44 /* 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 = ""; }; 91 | /* End PBXFileReference section */ 92 | 93 | /* Begin PBXFrameworksBuildPhase section */ 94 | 331C80D2294CF70F00263BE5 /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | ECBAD011C1944BA00A54529D /* Pods_RunnerTests.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | 33CC10EA2044A3C60003C045 /* Frameworks */ = { 103 | isa = PBXFrameworksBuildPhase; 104 | buildActionMask = 2147483647; 105 | files = ( 106 | 14696EDF825875DA034BB267 /* Pods_Runner.framework in Frameworks */, 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | /* End PBXFrameworksBuildPhase section */ 111 | 112 | /* Begin PBXGroup section */ 113 | 331C80D6294CF71000263BE5 /* RunnerTests */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 331C80D7294CF71000263BE5 /* RunnerTests.swift */, 117 | ); 118 | path = RunnerTests; 119 | sourceTree = ""; 120 | }; 121 | 33BA886A226E78AF003329D5 /* Configs */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */, 125 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 126 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 127 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, 128 | ); 129 | path = Configs; 130 | sourceTree = ""; 131 | }; 132 | 33CC10E42044A3C60003C045 = { 133 | isa = PBXGroup; 134 | children = ( 135 | 33FAB671232836740065AC1E /* Runner */, 136 | 33CEB47122A05771004F2AC0 /* Flutter */, 137 | 331C80D6294CF71000263BE5 /* RunnerTests */, 138 | 33CC10EE2044A3C60003C045 /* Products */, 139 | D73912EC22F37F3D000D13A0 /* Frameworks */, 140 | B7B8DBB865B88FDE10238E09 /* Pods */, 141 | ); 142 | sourceTree = ""; 143 | }; 144 | 33CC10EE2044A3C60003C045 /* Products */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 33CC10ED2044A3C60003C045 /* flutter_cloud_kit_example.app */, 148 | 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, 149 | ); 150 | name = Products; 151 | sourceTree = ""; 152 | }; 153 | 33CC11242044D66E0003C045 /* Resources */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 33CC10F22044A3C60003C045 /* Assets.xcassets */, 157 | 33CC10F42044A3C60003C045 /* MainMenu.xib */, 158 | 33CC10F72044A3C60003C045 /* Info.plist */, 159 | ); 160 | name = Resources; 161 | path = ..; 162 | sourceTree = ""; 163 | }; 164 | 33CEB47122A05771004F2AC0 /* Flutter */ = { 165 | isa = PBXGroup; 166 | children = ( 167 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, 168 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, 169 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, 170 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, 171 | ); 172 | path = Flutter; 173 | sourceTree = ""; 174 | }; 175 | 33FAB671232836740065AC1E /* Runner */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */, 179 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, 180 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */, 181 | 33E51914231749380026EE4D /* Release.entitlements */, 182 | 33CC11242044D66E0003C045 /* Resources */, 183 | 33BA886A226E78AF003329D5 /* Configs */, 184 | ); 185 | path = Runner; 186 | sourceTree = ""; 187 | }; 188 | B7B8DBB865B88FDE10238E09 /* Pods */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 8624D8D41661C4AD7693E5CB /* Pods-Runner.debug.xcconfig */, 192 | F8C50101A7F2D2D52C721D44 /* Pods-Runner.release.xcconfig */, 193 | D54B5063AABC3FE886A3EA34 /* Pods-Runner.profile.xcconfig */, 194 | 8CBA11EF6DE58B00FF1EF6E2 /* Pods-RunnerTests.debug.xcconfig */, 195 | 497891BE32BD18B295A80917 /* Pods-RunnerTests.release.xcconfig */, 196 | 6667DEAE2401D20BD1C76D4A /* Pods-RunnerTests.profile.xcconfig */, 197 | ); 198 | path = Pods; 199 | sourceTree = ""; 200 | }; 201 | D73912EC22F37F3D000D13A0 /* Frameworks */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | 9669DBFD2B69FB2379C438A9 /* Pods_Runner.framework */, 205 | BDEB12524787C93F336BBE0A /* Pods_RunnerTests.framework */, 206 | ); 207 | name = Frameworks; 208 | sourceTree = ""; 209 | }; 210 | /* End PBXGroup section */ 211 | 212 | /* Begin PBXNativeTarget section */ 213 | 331C80D4294CF70F00263BE5 /* RunnerTests */ = { 214 | isa = PBXNativeTarget; 215 | buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 216 | buildPhases = ( 217 | 3212C525239A2B8461B15DCD /* [CP] Check Pods Manifest.lock */, 218 | 331C80D1294CF70F00263BE5 /* Sources */, 219 | 331C80D2294CF70F00263BE5 /* Frameworks */, 220 | 331C80D3294CF70F00263BE5 /* Resources */, 221 | ); 222 | buildRules = ( 223 | ); 224 | dependencies = ( 225 | 331C80DA294CF71000263BE5 /* PBXTargetDependency */, 226 | ); 227 | name = RunnerTests; 228 | productName = RunnerTests; 229 | productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; 230 | productType = "com.apple.product-type.bundle.unit-test"; 231 | }; 232 | 33CC10EC2044A3C60003C045 /* Runner */ = { 233 | isa = PBXNativeTarget; 234 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; 235 | buildPhases = ( 236 | B01D712DF083A692F5BF035A /* [CP] Check Pods Manifest.lock */, 237 | 33CC10E92044A3C60003C045 /* Sources */, 238 | 33CC10EA2044A3C60003C045 /* Frameworks */, 239 | 33CC10EB2044A3C60003C045 /* Resources */, 240 | 33CC110E2044A8840003C045 /* Bundle Framework */, 241 | 3399D490228B24CF009A79C7 /* ShellScript */, 242 | ECFCE0712D9637CB401D3B77 /* [CP] Embed Pods Frameworks */, 243 | ); 244 | buildRules = ( 245 | ); 246 | dependencies = ( 247 | 33CC11202044C79F0003C045 /* PBXTargetDependency */, 248 | ); 249 | name = Runner; 250 | productName = Runner; 251 | productReference = 33CC10ED2044A3C60003C045 /* flutter_cloud_kit_example.app */; 252 | productType = "com.apple.product-type.application"; 253 | }; 254 | /* End PBXNativeTarget section */ 255 | 256 | /* Begin PBXProject section */ 257 | 33CC10E52044A3C60003C045 /* Project object */ = { 258 | isa = PBXProject; 259 | attributes = { 260 | LastSwiftUpdateCheck = 0920; 261 | LastUpgradeCheck = 1430; 262 | ORGANIZATIONNAME = ""; 263 | TargetAttributes = { 264 | 331C80D4294CF70F00263BE5 = { 265 | CreatedOnToolsVersion = 14.0; 266 | TestTargetID = 33CC10EC2044A3C60003C045; 267 | }; 268 | 33CC10EC2044A3C60003C045 = { 269 | CreatedOnToolsVersion = 9.2; 270 | LastSwiftMigration = 1100; 271 | ProvisioningStyle = Automatic; 272 | SystemCapabilities = { 273 | com.apple.Sandbox = { 274 | enabled = 1; 275 | }; 276 | }; 277 | }; 278 | 33CC111A2044C6BA0003C045 = { 279 | CreatedOnToolsVersion = 9.2; 280 | ProvisioningStyle = Manual; 281 | }; 282 | }; 283 | }; 284 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; 285 | compatibilityVersion = "Xcode 9.3"; 286 | developmentRegion = en; 287 | hasScannedForEncodings = 0; 288 | knownRegions = ( 289 | en, 290 | Base, 291 | ); 292 | mainGroup = 33CC10E42044A3C60003C045; 293 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; 294 | projectDirPath = ""; 295 | projectRoot = ""; 296 | targets = ( 297 | 33CC10EC2044A3C60003C045 /* Runner */, 298 | 331C80D4294CF70F00263BE5 /* RunnerTests */, 299 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */, 300 | ); 301 | }; 302 | /* End PBXProject section */ 303 | 304 | /* Begin PBXResourcesBuildPhase section */ 305 | 331C80D3294CF70F00263BE5 /* Resources */ = { 306 | isa = PBXResourcesBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | }; 312 | 33CC10EB2044A3C60003C045 /* Resources */ = { 313 | isa = PBXResourcesBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, 317 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, 318 | ); 319 | runOnlyForDeploymentPostprocessing = 0; 320 | }; 321 | /* End PBXResourcesBuildPhase section */ 322 | 323 | /* Begin PBXShellScriptBuildPhase section */ 324 | 3212C525239A2B8461B15DCD /* [CP] Check Pods Manifest.lock */ = { 325 | isa = PBXShellScriptBuildPhase; 326 | buildActionMask = 2147483647; 327 | files = ( 328 | ); 329 | inputFileListPaths = ( 330 | ); 331 | inputPaths = ( 332 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 333 | "${PODS_ROOT}/Manifest.lock", 334 | ); 335 | name = "[CP] Check Pods Manifest.lock"; 336 | outputFileListPaths = ( 337 | ); 338 | outputPaths = ( 339 | "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | shellPath = /bin/sh; 343 | 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"; 344 | showEnvVarsInLog = 0; 345 | }; 346 | 3399D490228B24CF009A79C7 /* ShellScript */ = { 347 | isa = PBXShellScriptBuildPhase; 348 | alwaysOutOfDate = 1; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | ); 352 | inputFileListPaths = ( 353 | ); 354 | inputPaths = ( 355 | ); 356 | outputFileListPaths = ( 357 | ); 358 | outputPaths = ( 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | shellPath = /bin/sh; 362 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; 363 | }; 364 | 33CC111E2044C6BF0003C045 /* ShellScript */ = { 365 | isa = PBXShellScriptBuildPhase; 366 | buildActionMask = 2147483647; 367 | files = ( 368 | ); 369 | inputFileListPaths = ( 370 | Flutter/ephemeral/FlutterInputs.xcfilelist, 371 | ); 372 | inputPaths = ( 373 | Flutter/ephemeral/tripwire, 374 | ); 375 | outputFileListPaths = ( 376 | Flutter/ephemeral/FlutterOutputs.xcfilelist, 377 | ); 378 | outputPaths = ( 379 | ); 380 | runOnlyForDeploymentPostprocessing = 0; 381 | shellPath = /bin/sh; 382 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; 383 | }; 384 | B01D712DF083A692F5BF035A /* [CP] Check Pods Manifest.lock */ = { 385 | isa = PBXShellScriptBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | ); 389 | inputFileListPaths = ( 390 | ); 391 | inputPaths = ( 392 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 393 | "${PODS_ROOT}/Manifest.lock", 394 | ); 395 | name = "[CP] Check Pods Manifest.lock"; 396 | outputFileListPaths = ( 397 | ); 398 | outputPaths = ( 399 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 400 | ); 401 | runOnlyForDeploymentPostprocessing = 0; 402 | shellPath = /bin/sh; 403 | 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"; 404 | showEnvVarsInLog = 0; 405 | }; 406 | ECFCE0712D9637CB401D3B77 /* [CP] Embed Pods Frameworks */ = { 407 | isa = PBXShellScriptBuildPhase; 408 | buildActionMask = 2147483647; 409 | files = ( 410 | ); 411 | inputFileListPaths = ( 412 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 413 | ); 414 | name = "[CP] Embed Pods Frameworks"; 415 | outputFileListPaths = ( 416 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 417 | ); 418 | runOnlyForDeploymentPostprocessing = 0; 419 | shellPath = /bin/sh; 420 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 421 | showEnvVarsInLog = 0; 422 | }; 423 | /* End PBXShellScriptBuildPhase section */ 424 | 425 | /* Begin PBXSourcesBuildPhase section */ 426 | 331C80D1294CF70F00263BE5 /* Sources */ = { 427 | isa = PBXSourcesBuildPhase; 428 | buildActionMask = 2147483647; 429 | files = ( 430 | 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, 431 | ); 432 | runOnlyForDeploymentPostprocessing = 0; 433 | }; 434 | 33CC10E92044A3C60003C045 /* Sources */ = { 435 | isa = PBXSourcesBuildPhase; 436 | buildActionMask = 2147483647; 437 | files = ( 438 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, 439 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, 440 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, 441 | ); 442 | runOnlyForDeploymentPostprocessing = 0; 443 | }; 444 | /* End PBXSourcesBuildPhase section */ 445 | 446 | /* Begin PBXTargetDependency section */ 447 | 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { 448 | isa = PBXTargetDependency; 449 | target = 33CC10EC2044A3C60003C045 /* Runner */; 450 | targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; 451 | }; 452 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { 453 | isa = PBXTargetDependency; 454 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; 455 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; 456 | }; 457 | /* End PBXTargetDependency section */ 458 | 459 | /* Begin PBXVariantGroup section */ 460 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { 461 | isa = PBXVariantGroup; 462 | children = ( 463 | 33CC10F52044A3C60003C045 /* Base */, 464 | ); 465 | name = MainMenu.xib; 466 | path = Runner; 467 | sourceTree = ""; 468 | }; 469 | /* End PBXVariantGroup section */ 470 | 471 | /* Begin XCBuildConfiguration section */ 472 | 331C80DB294CF71000263BE5 /* Debug */ = { 473 | isa = XCBuildConfiguration; 474 | baseConfigurationReference = 8CBA11EF6DE58B00FF1EF6E2 /* Pods-RunnerTests.debug.xcconfig */; 475 | buildSettings = { 476 | BUNDLE_LOADER = "$(TEST_HOST)"; 477 | CURRENT_PROJECT_VERSION = 1; 478 | GENERATE_INFOPLIST_FILE = YES; 479 | MARKETING_VERSION = 1.0; 480 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample.RunnerTests; 481 | PRODUCT_NAME = "$(TARGET_NAME)"; 482 | SWIFT_VERSION = 5.0; 483 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/flutter_cloud_kit_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/flutter_cloud_kit_example"; 484 | }; 485 | name = Debug; 486 | }; 487 | 331C80DC294CF71000263BE5 /* Release */ = { 488 | isa = XCBuildConfiguration; 489 | baseConfigurationReference = 497891BE32BD18B295A80917 /* Pods-RunnerTests.release.xcconfig */; 490 | buildSettings = { 491 | BUNDLE_LOADER = "$(TEST_HOST)"; 492 | CURRENT_PROJECT_VERSION = 1; 493 | GENERATE_INFOPLIST_FILE = YES; 494 | MARKETING_VERSION = 1.0; 495 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample.RunnerTests; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | SWIFT_VERSION = 5.0; 498 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/flutter_cloud_kit_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/flutter_cloud_kit_example"; 499 | }; 500 | name = Release; 501 | }; 502 | 331C80DD294CF71000263BE5 /* Profile */ = { 503 | isa = XCBuildConfiguration; 504 | baseConfigurationReference = 6667DEAE2401D20BD1C76D4A /* Pods-RunnerTests.profile.xcconfig */; 505 | buildSettings = { 506 | BUNDLE_LOADER = "$(TEST_HOST)"; 507 | CURRENT_PROJECT_VERSION = 1; 508 | GENERATE_INFOPLIST_FILE = YES; 509 | MARKETING_VERSION = 1.0; 510 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample.RunnerTests; 511 | PRODUCT_NAME = "$(TARGET_NAME)"; 512 | SWIFT_VERSION = 5.0; 513 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/flutter_cloud_kit_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/flutter_cloud_kit_example"; 514 | }; 515 | name = Profile; 516 | }; 517 | 338D0CE9231458BD00FA5F75 /* Profile */ = { 518 | isa = XCBuildConfiguration; 519 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 520 | buildSettings = { 521 | ALWAYS_SEARCH_USER_PATHS = NO; 522 | CLANG_ANALYZER_NONNULL = YES; 523 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 524 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 525 | CLANG_CXX_LIBRARY = "libc++"; 526 | CLANG_ENABLE_MODULES = YES; 527 | CLANG_ENABLE_OBJC_ARC = YES; 528 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 529 | CLANG_WARN_BOOL_CONVERSION = YES; 530 | CLANG_WARN_CONSTANT_CONVERSION = YES; 531 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 532 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 533 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 534 | CLANG_WARN_EMPTY_BODY = YES; 535 | CLANG_WARN_ENUM_CONVERSION = YES; 536 | CLANG_WARN_INFINITE_RECURSION = YES; 537 | CLANG_WARN_INT_CONVERSION = YES; 538 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 539 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 540 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 541 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 542 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 543 | CODE_SIGN_IDENTITY = "-"; 544 | COPY_PHASE_STRIP = NO; 545 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 546 | ENABLE_NS_ASSERTIONS = NO; 547 | ENABLE_STRICT_OBJC_MSGSEND = YES; 548 | GCC_C_LANGUAGE_STANDARD = gnu11; 549 | GCC_NO_COMMON_BLOCKS = YES; 550 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 551 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 552 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 553 | GCC_WARN_UNUSED_FUNCTION = YES; 554 | GCC_WARN_UNUSED_VARIABLE = YES; 555 | MACOSX_DEPLOYMENT_TARGET = 10.14; 556 | MTL_ENABLE_DEBUG_INFO = NO; 557 | SDKROOT = macosx; 558 | SWIFT_COMPILATION_MODE = wholemodule; 559 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 560 | }; 561 | name = Profile; 562 | }; 563 | 338D0CEA231458BD00FA5F75 /* Profile */ = { 564 | isa = XCBuildConfiguration; 565 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 566 | buildSettings = { 567 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 568 | CLANG_ENABLE_MODULES = YES; 569 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 570 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; 571 | CODE_SIGN_STYLE = Automatic; 572 | COMBINE_HIDPI_IMAGES = YES; 573 | DEVELOPMENT_TEAM = 5K2PUC9U4J; 574 | INFOPLIST_FILE = Runner/Info.plist; 575 | LD_RUNPATH_SEARCH_PATHS = ( 576 | "$(inherited)", 577 | "@executable_path/../Frameworks", 578 | ); 579 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample; 580 | PROVISIONING_PROFILE_SPECIFIER = ""; 581 | SWIFT_VERSION = 5.0; 582 | }; 583 | name = Profile; 584 | }; 585 | 338D0CEB231458BD00FA5F75 /* Profile */ = { 586 | isa = XCBuildConfiguration; 587 | buildSettings = { 588 | CODE_SIGN_STYLE = Manual; 589 | PRODUCT_NAME = "$(TARGET_NAME)"; 590 | }; 591 | name = Profile; 592 | }; 593 | 33CC10F92044A3C60003C045 /* Debug */ = { 594 | isa = XCBuildConfiguration; 595 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 596 | buildSettings = { 597 | ALWAYS_SEARCH_USER_PATHS = NO; 598 | CLANG_ANALYZER_NONNULL = YES; 599 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 600 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 601 | CLANG_CXX_LIBRARY = "libc++"; 602 | CLANG_ENABLE_MODULES = YES; 603 | CLANG_ENABLE_OBJC_ARC = YES; 604 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 605 | CLANG_WARN_BOOL_CONVERSION = YES; 606 | CLANG_WARN_CONSTANT_CONVERSION = YES; 607 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 608 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 609 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 610 | CLANG_WARN_EMPTY_BODY = YES; 611 | CLANG_WARN_ENUM_CONVERSION = YES; 612 | CLANG_WARN_INFINITE_RECURSION = YES; 613 | CLANG_WARN_INT_CONVERSION = YES; 614 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 615 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 616 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 617 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 618 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 619 | CODE_SIGN_IDENTITY = "-"; 620 | COPY_PHASE_STRIP = NO; 621 | DEBUG_INFORMATION_FORMAT = dwarf; 622 | ENABLE_STRICT_OBJC_MSGSEND = YES; 623 | ENABLE_TESTABILITY = YES; 624 | GCC_C_LANGUAGE_STANDARD = gnu11; 625 | GCC_DYNAMIC_NO_PIC = NO; 626 | GCC_NO_COMMON_BLOCKS = YES; 627 | GCC_OPTIMIZATION_LEVEL = 0; 628 | GCC_PREPROCESSOR_DEFINITIONS = ( 629 | "DEBUG=1", 630 | "$(inherited)", 631 | ); 632 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 633 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 634 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 635 | GCC_WARN_UNUSED_FUNCTION = YES; 636 | GCC_WARN_UNUSED_VARIABLE = YES; 637 | MACOSX_DEPLOYMENT_TARGET = 10.14; 638 | MTL_ENABLE_DEBUG_INFO = YES; 639 | ONLY_ACTIVE_ARCH = YES; 640 | SDKROOT = macosx; 641 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 642 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 643 | }; 644 | name = Debug; 645 | }; 646 | 33CC10FA2044A3C60003C045 /* Release */ = { 647 | isa = XCBuildConfiguration; 648 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 649 | buildSettings = { 650 | ALWAYS_SEARCH_USER_PATHS = NO; 651 | CLANG_ANALYZER_NONNULL = YES; 652 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 653 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 654 | CLANG_CXX_LIBRARY = "libc++"; 655 | CLANG_ENABLE_MODULES = YES; 656 | CLANG_ENABLE_OBJC_ARC = YES; 657 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 658 | CLANG_WARN_BOOL_CONVERSION = YES; 659 | CLANG_WARN_CONSTANT_CONVERSION = YES; 660 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 661 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 662 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 663 | CLANG_WARN_EMPTY_BODY = YES; 664 | CLANG_WARN_ENUM_CONVERSION = YES; 665 | CLANG_WARN_INFINITE_RECURSION = YES; 666 | CLANG_WARN_INT_CONVERSION = YES; 667 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 668 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 669 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 670 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 671 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 672 | CODE_SIGN_IDENTITY = "-"; 673 | COPY_PHASE_STRIP = NO; 674 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 675 | ENABLE_NS_ASSERTIONS = NO; 676 | ENABLE_STRICT_OBJC_MSGSEND = YES; 677 | GCC_C_LANGUAGE_STANDARD = gnu11; 678 | GCC_NO_COMMON_BLOCKS = YES; 679 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 680 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 681 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 682 | GCC_WARN_UNUSED_FUNCTION = YES; 683 | GCC_WARN_UNUSED_VARIABLE = YES; 684 | MACOSX_DEPLOYMENT_TARGET = 10.14; 685 | MTL_ENABLE_DEBUG_INFO = NO; 686 | SDKROOT = macosx; 687 | SWIFT_COMPILATION_MODE = wholemodule; 688 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 689 | }; 690 | name = Release; 691 | }; 692 | 33CC10FC2044A3C60003C045 /* Debug */ = { 693 | isa = XCBuildConfiguration; 694 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 695 | buildSettings = { 696 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 697 | CLANG_ENABLE_MODULES = YES; 698 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 699 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; 700 | CODE_SIGN_STYLE = Automatic; 701 | COMBINE_HIDPI_IMAGES = YES; 702 | DEVELOPMENT_TEAM = 5K2PUC9U4J; 703 | INFOPLIST_FILE = Runner/Info.plist; 704 | LD_RUNPATH_SEARCH_PATHS = ( 705 | "$(inherited)", 706 | "@executable_path/../Frameworks", 707 | ); 708 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample; 709 | PROVISIONING_PROFILE_SPECIFIER = ""; 710 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 711 | SWIFT_VERSION = 5.0; 712 | }; 713 | name = Debug; 714 | }; 715 | 33CC10FD2044A3C60003C045 /* Release */ = { 716 | isa = XCBuildConfiguration; 717 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 718 | buildSettings = { 719 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 720 | CLANG_ENABLE_MODULES = YES; 721 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; 722 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; 723 | CODE_SIGN_STYLE = Automatic; 724 | COMBINE_HIDPI_IMAGES = YES; 725 | DEVELOPMENT_TEAM = 5K2PUC9U4J; 726 | INFOPLIST_FILE = Runner/Info.plist; 727 | LD_RUNPATH_SEARCH_PATHS = ( 728 | "$(inherited)", 729 | "@executable_path/../Frameworks", 730 | ); 731 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample; 732 | PROVISIONING_PROFILE_SPECIFIER = ""; 733 | SWIFT_VERSION = 5.0; 734 | }; 735 | name = Release; 736 | }; 737 | 33CC111C2044C6BA0003C045 /* Debug */ = { 738 | isa = XCBuildConfiguration; 739 | buildSettings = { 740 | CODE_SIGN_STYLE = Manual; 741 | PRODUCT_NAME = "$(TARGET_NAME)"; 742 | }; 743 | name = Debug; 744 | }; 745 | 33CC111D2044C6BA0003C045 /* Release */ = { 746 | isa = XCBuildConfiguration; 747 | buildSettings = { 748 | CODE_SIGN_STYLE = Automatic; 749 | PRODUCT_NAME = "$(TARGET_NAME)"; 750 | }; 751 | name = Release; 752 | }; 753 | /* End XCBuildConfiguration section */ 754 | 755 | /* Begin XCConfigurationList section */ 756 | 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 757 | isa = XCConfigurationList; 758 | buildConfigurations = ( 759 | 331C80DB294CF71000263BE5 /* Debug */, 760 | 331C80DC294CF71000263BE5 /* Release */, 761 | 331C80DD294CF71000263BE5 /* Profile */, 762 | ); 763 | defaultConfigurationIsVisible = 0; 764 | defaultConfigurationName = Release; 765 | }; 766 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { 767 | isa = XCConfigurationList; 768 | buildConfigurations = ( 769 | 33CC10F92044A3C60003C045 /* Debug */, 770 | 33CC10FA2044A3C60003C045 /* Release */, 771 | 338D0CE9231458BD00FA5F75 /* Profile */, 772 | ); 773 | defaultConfigurationIsVisible = 0; 774 | defaultConfigurationName = Release; 775 | }; 776 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { 777 | isa = XCConfigurationList; 778 | buildConfigurations = ( 779 | 33CC10FC2044A3C60003C045 /* Debug */, 780 | 33CC10FD2044A3C60003C045 /* Release */, 781 | 338D0CEA231458BD00FA5F75 /* Profile */, 782 | ); 783 | defaultConfigurationIsVisible = 0; 784 | defaultConfigurationName = Release; 785 | }; 786 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { 787 | isa = XCConfigurationList; 788 | buildConfigurations = ( 789 | 33CC111C2044C6BA0003C045 /* Debug */, 790 | 33CC111D2044C6BA0003C045 /* Release */, 791 | 338D0CEB231458BD00FA5F75 /* Profile */, 792 | ); 793 | defaultConfigurationIsVisible = 0; 794 | defaultConfigurationName = Release; 795 | }; 796 | /* End XCConfigurationList section */ 797 | }; 798 | rootObject = 33CC10E52044A3C60003C045 /* Project object */; 799 | } 800 | -------------------------------------------------------------------------------- /example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /example/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fuelet/flutter_cloud_kit/5a9ed9d3cc27dcee9996f3217519942a106037b3/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /example/macos/Runner/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = flutter_cloud_kit_example 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = app.fuelet.flutterCloudKitExample 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2023 app.fuelet. All rights reserved. 15 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /example/macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.aps-environment 6 | development 7 | com.apple.developer.icloud-container-identifiers 8 | 9 | iCloud.flutter_cloud_kit_example 10 | 11 | com.apple.developer.icloud-services 12 | 13 | CloudKit 14 | 15 | com.apple.security.app-sandbox 16 | 17 | com.apple.security.cs.allow-jit 18 | 19 | com.apple.security.network.server 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /example/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.aps-environment 6 | development 7 | com.apple.developer.icloud-container-identifiers 8 | 9 | iCloud.flutter_cloud_kit_example 10 | 11 | com.apple.developer.icloud-services 12 | 13 | CloudKit 14 | 15 | com.apple.security.app-sandbox 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /example/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "2.11.0" 12 | boolean_selector: 13 | dependency: transitive 14 | description: 15 | name: boolean_selector 16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.1.1" 20 | characters: 21 | dependency: transitive 22 | description: 23 | name: characters 24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "1.3.0" 28 | clock: 29 | dependency: transitive 30 | description: 31 | name: clock 32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "1.1.1" 36 | collection: 37 | dependency: transitive 38 | description: 39 | name: collection 40 | sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.17.2" 44 | cupertino_icons: 45 | dependency: "direct main" 46 | description: 47 | name: cupertino_icons 48 | sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "1.0.5" 52 | fake_async: 53 | dependency: transitive 54 | description: 55 | name: fake_async 56 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.3.1" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_cloud_kit: 66 | dependency: "direct main" 67 | description: 68 | path: ".." 69 | relative: true 70 | source: path 71 | version: "0.0.2" 72 | flutter_lints: 73 | dependency: "direct dev" 74 | description: 75 | name: flutter_lints 76 | sha256: "2118df84ef0c3ca93f96123a616ae8540879991b8b57af2f81b76a7ada49b2a4" 77 | url: "https://pub.dev" 78 | source: hosted 79 | version: "2.0.2" 80 | flutter_test: 81 | dependency: "direct dev" 82 | description: flutter 83 | source: sdk 84 | version: "0.0.0" 85 | lints: 86 | dependency: transitive 87 | description: 88 | name: lints 89 | sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" 90 | url: "https://pub.dev" 91 | source: hosted 92 | version: "2.0.1" 93 | matcher: 94 | dependency: transitive 95 | description: 96 | name: matcher 97 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" 98 | url: "https://pub.dev" 99 | source: hosted 100 | version: "0.12.16" 101 | material_color_utilities: 102 | dependency: transitive 103 | description: 104 | name: material_color_utilities 105 | sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" 106 | url: "https://pub.dev" 107 | source: hosted 108 | version: "0.5.0" 109 | meta: 110 | dependency: transitive 111 | description: 112 | name: meta 113 | sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" 114 | url: "https://pub.dev" 115 | source: hosted 116 | version: "1.9.1" 117 | path: 118 | dependency: transitive 119 | description: 120 | name: path 121 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" 122 | url: "https://pub.dev" 123 | source: hosted 124 | version: "1.8.3" 125 | plugin_platform_interface: 126 | dependency: transitive 127 | description: 128 | name: plugin_platform_interface 129 | sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" 130 | url: "https://pub.dev" 131 | source: hosted 132 | version: "2.1.4" 133 | sky_engine: 134 | dependency: transitive 135 | description: flutter 136 | source: sdk 137 | version: "0.0.99" 138 | source_span: 139 | dependency: transitive 140 | description: 141 | name: source_span 142 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 143 | url: "https://pub.dev" 144 | source: hosted 145 | version: "1.10.0" 146 | stack_trace: 147 | dependency: transitive 148 | description: 149 | name: stack_trace 150 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 151 | url: "https://pub.dev" 152 | source: hosted 153 | version: "1.11.0" 154 | stream_channel: 155 | dependency: transitive 156 | description: 157 | name: stream_channel 158 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" 159 | url: "https://pub.dev" 160 | source: hosted 161 | version: "2.1.1" 162 | string_scanner: 163 | dependency: transitive 164 | description: 165 | name: string_scanner 166 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 167 | url: "https://pub.dev" 168 | source: hosted 169 | version: "1.2.0" 170 | term_glyph: 171 | dependency: transitive 172 | description: 173 | name: term_glyph 174 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 175 | url: "https://pub.dev" 176 | source: hosted 177 | version: "1.2.1" 178 | test_api: 179 | dependency: transitive 180 | description: 181 | name: test_api 182 | sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" 183 | url: "https://pub.dev" 184 | source: hosted 185 | version: "0.6.0" 186 | vector_math: 187 | dependency: transitive 188 | description: 189 | name: vector_math 190 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 191 | url: "https://pub.dev" 192 | source: hosted 193 | version: "2.1.4" 194 | web: 195 | dependency: transitive 196 | description: 197 | name: web 198 | sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 199 | url: "https://pub.dev" 200 | source: hosted 201 | version: "0.1.4-beta" 202 | sdks: 203 | dart: ">=3.1.0-185.0.dev <4.0.0" 204 | flutter: ">=3.7.0" 205 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_cloud_kit_example 2 | description: Demonstrates how to use the flutter_cloud_kit plugin. 3 | publish_to: 'none' 4 | 5 | environment: 6 | sdk: '>=2.19.6 <3.0.0' 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | 12 | flutter_cloud_kit: 13 | path: ../ 14 | 15 | cupertino_icons: ^1.0.2 16 | 17 | dev_dependencies: 18 | flutter_test: 19 | sdk: flutter 20 | 21 | flutter_lints: ^2.0.0 22 | 23 | flutter: 24 | uses-material-design: true 25 | -------------------------------------------------------------------------------- /lib/flutter_cloud_kit.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_cloud_kit/types/cloud_ket_record.dart'; 2 | import 'package:flutter_cloud_kit/types/cloud_kit_account_status.dart'; 3 | import 'package:flutter_cloud_kit/types/database_scope.dart'; 4 | 5 | import 'flutter_cloud_kit_platform_interface.dart'; 6 | 7 | final _cloudKitIdentifierRegexp = RegExp(r'^[a-zA-Z]\w+$'); 8 | // couldn't use '*' instead of '+' in _cloudKitIdentifierRegexp because of the warning: 9 | // Your expression contains a pattern that is known to freeze the browser with Javascript compiled version. 10 | final _letterRegexp = RegExp(r'^[a-zA-Z]$'); 11 | 12 | // Needed because otherwise incorrect identifiers lead to Objective-C fatal errors 13 | // that crash the app 14 | // TODO: get rid of once Objective-C error handling is in place 15 | void validateCloudKitIdentifier(String identifier) { 16 | bool isValidIdentifier = _letterRegexp.hasMatch(identifier) || 17 | _cloudKitIdentifierRegexp.hasMatch(identifier); 18 | if (!isValidIdentifier) { 19 | throw Exception('Identifier "$identifier" is not valid for cloud kit'); 20 | } 21 | } 22 | 23 | class FlutterCloudKit { 24 | final String? containerId; 25 | 26 | FlutterCloudKit({this.containerId}); 27 | 28 | /// Gets the user's account status. 29 | Future getAccountStatus() { 30 | return FlutterCloudKitPlatform.instance 31 | .getAccountStatus(containerId: containerId); 32 | } 33 | 34 | /// Saves the [record] with [recordType] to a CloudKit database of the 35 | /// provided [scope]. 36 | /// [recordName] can also be specified. It's used for generating the record's 37 | /// id. If it's omitted, the id is generated by CloudKit. 38 | /// Throws if the [recordName] already exists for the provided [recordType]. 39 | Future saveRecord( 40 | {required CloudKitDatabaseScope scope, 41 | required String recordType, 42 | required Map record, 43 | String? recordName}) { 44 | validateCloudKitIdentifier(recordType); 45 | record.keys.forEach(validateCloudKitIdentifier); 46 | return FlutterCloudKitPlatform.instance.saveRecord( 47 | containerId: containerId, 48 | scope: scope, 49 | recordType: recordType, 50 | record: record, 51 | recordName: recordName); 52 | } 53 | 54 | /// Gets record from CloudKit database with the provided [scope]. 55 | /// [recordName] is used to generate the id to find the record by. 56 | Future getRecord( 57 | {required CloudKitDatabaseScope scope, required String recordName}) { 58 | return FlutterCloudKitPlatform.instance.getRecord( 59 | containerId: containerId, scope: scope, recordName: recordName); 60 | } 61 | 62 | /// Gets records by [recordType] from CloudKit database with the 63 | /// provided [scope]. 64 | /// Sorts the returned records by creation time in ascending order. 65 | /// Doesn't support pagination yet, just returns a single batch of the 66 | /// maximum size. 67 | Future> getRecordsByType( 68 | {required CloudKitDatabaseScope scope, required String recordType}) { 69 | return FlutterCloudKitPlatform.instance.getRecordsByType( 70 | containerId: containerId, scope: scope, recordType: recordType); 71 | } 72 | 73 | /// Deletes the record by [recordName] from CloudKit database with the 74 | /// provided [scope]. 75 | /// Throws if the record doesn't exist. 76 | Future deleteRecord( 77 | {required CloudKitDatabaseScope scope, required String recordName}) { 78 | return FlutterCloudKitPlatform.instance.deleteRecord( 79 | containerId: containerId, scope: scope, recordName: recordName); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /lib/flutter_cloud_kit_method_channel.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:flutter_cloud_kit/types/cloud_ket_record.dart'; 4 | import 'package:flutter_cloud_kit/types/cloud_kit_account_status.dart'; 5 | import 'package:flutter_cloud_kit/types/database_scope.dart'; 6 | 7 | import 'flutter_cloud_kit_platform_interface.dart'; 8 | 9 | /// An implementation of [FlutterCloudKitPlatform] that uses method channels. 10 | class MethodChannelFlutterCloudKit extends FlutterCloudKitPlatform { 11 | @visibleForTesting 12 | final methodChannel = const MethodChannel('app.fuelet.flutter_cloud_kit'); 13 | 14 | @override 15 | Future getAccountStatus({String? containerId}) async { 16 | final args = containerId == null ? {} : {'containerId': containerId}; 17 | int rawStatus = await methodChannel.invokeMethod('getAccountStatus', args); 18 | try { 19 | return CloudKitAccountStatus.values[rawStatus]; 20 | } catch (_) { 21 | return CloudKitAccountStatus.unknown; 22 | } 23 | } 24 | 25 | @override 26 | Future saveRecord( 27 | {String? containerId, 28 | required CloudKitDatabaseScope scope, 29 | required String recordType, 30 | required Map record, 31 | String? recordName}) async { 32 | var args = { 33 | 'databaseScope': scope.name, 34 | 'recordType': recordType, 35 | 'record': record 36 | }; 37 | if (containerId != null) { 38 | args['containerId'] = containerId; 39 | } 40 | if (recordName != null) { 41 | args['recordName'] = recordName; 42 | } 43 | await methodChannel.invokeMethod('saveRecord', args); 44 | } 45 | 46 | @override 47 | Future getRecord( 48 | {String? containerId, 49 | required CloudKitDatabaseScope scope, 50 | required String recordName}) async { 51 | var args = { 52 | 'databaseScope': scope.name, 53 | 'recordName': recordName, 54 | }; 55 | if (containerId != null) { 56 | args['containerId'] = containerId; 57 | } 58 | Map result = 59 | await methodChannel.invokeMethod('getRecord', args); 60 | 61 | return CloudKitRecord.fromMap(result); 62 | } 63 | 64 | @override 65 | Future> getRecordsByType( 66 | {String? containerId, 67 | required CloudKitDatabaseScope scope, 68 | required String recordType}) async { 69 | var args = { 70 | 'databaseScope': scope.name, 71 | 'recordType': recordType, 72 | }; 73 | if (containerId != null) { 74 | args['containerId'] = containerId; 75 | } 76 | 77 | List result = 78 | await methodChannel.invokeMethod('getRecordsByType', args); 79 | 80 | try { 81 | return result 82 | .map((e) => e as Map) 83 | .map(CloudKitRecord.fromMap) 84 | .toList(); 85 | } catch (e) { 86 | throw Exception('Cannot parse cloud kit response: $e'); 87 | } 88 | } 89 | 90 | @override 91 | Future deleteRecord( 92 | {String? containerId, 93 | required CloudKitDatabaseScope scope, 94 | required String recordName}) async { 95 | var args = { 96 | 'databaseScope': scope.name, 97 | 'recordName': recordName, 98 | }; 99 | if (containerId != null) { 100 | args['containerId'] = containerId; 101 | } 102 | await methodChannel.invokeMethod('deleteRecord', args); 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /lib/flutter_cloud_kit_platform_interface.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_cloud_kit/types/cloud_ket_record.dart'; 2 | import 'package:flutter_cloud_kit/types/cloud_kit_account_status.dart'; 3 | import 'package:flutter_cloud_kit/types/database_scope.dart'; 4 | import 'package:plugin_platform_interface/plugin_platform_interface.dart'; 5 | 6 | import 'flutter_cloud_kit_method_channel.dart'; 7 | 8 | abstract class FlutterCloudKitPlatform extends PlatformInterface { 9 | /// Constructs a FlutterCloudKitPlatform. 10 | FlutterCloudKitPlatform() : super(token: _token); 11 | 12 | static final Object _token = Object(); 13 | 14 | static FlutterCloudKitPlatform _instance = MethodChannelFlutterCloudKit(); 15 | 16 | /// The default instance of [FlutterCloudKitPlatform] to use. 17 | /// 18 | /// Defaults to [MethodChannelFlutterCloudKit]. 19 | static FlutterCloudKitPlatform get instance => _instance; 20 | 21 | /// Platform-specific implementations should set this with their own 22 | /// platform-specific class that extends [FlutterCloudKitPlatform] when 23 | /// they register themselves. 24 | static set instance(FlutterCloudKitPlatform instance) { 25 | PlatformInterface.verifyToken(instance, _token); 26 | _instance = instance; 27 | } 28 | 29 | Future getAccountStatus({String? containerId}) { 30 | throw UnimplementedError('getAccountStatus() has not been implemented.'); 31 | } 32 | 33 | Future saveRecord( 34 | {String? containerId, 35 | required CloudKitDatabaseScope scope, 36 | required String recordType, 37 | required Map record, 38 | String? recordName}) { 39 | throw UnimplementedError('saveRecord() has not been implemented.'); 40 | } 41 | 42 | Future getRecord( 43 | {String? containerId, 44 | required CloudKitDatabaseScope scope, 45 | required String recordName}) { 46 | throw UnimplementedError('getRecord() has not been implemented.'); 47 | } 48 | 49 | Future> getRecordsByType( 50 | {String? containerId, 51 | required CloudKitDatabaseScope scope, 52 | required String recordType}) { 53 | throw UnimplementedError('getRecordsByType() has not been implemented.'); 54 | } 55 | 56 | Future deleteRecord( 57 | {String? containerId, 58 | required CloudKitDatabaseScope scope, 59 | required String recordName}) { 60 | throw UnimplementedError('deleteRecord() has not been implemented.'); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /lib/types/cloud_ket_record.dart: -------------------------------------------------------------------------------- 1 | Map _parseRecord(Object? record) { 2 | return (record as Map) 3 | .map((key, value) => MapEntry(key.toString(), value)); 4 | } 5 | 6 | class CloudKitRecord { 7 | final String recordType; 8 | final String recordName; 9 | final Map values; 10 | 11 | CloudKitRecord( 12 | {required this.recordType, 13 | required this.recordName, 14 | required this.values}); 15 | 16 | factory CloudKitRecord.fromMap(Map map) { 17 | try { 18 | return CloudKitRecord( 19 | recordType: map['recordType'] as String, 20 | recordName: map['recordName'] as String, 21 | values: _parseRecord(map['record'])); 22 | } catch (e) { 23 | throw Exception('Cannot parse cloud kit response: $e'); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /lib/types/cloud_kit_account_status.dart: -------------------------------------------------------------------------------- 1 | enum CloudKitAccountStatus { 2 | /// CloudKit can’t determine the status of the user’s iCloud account. 3 | couldNotDetermine(0), 4 | 5 | /// The user’s iCloud account is available. 6 | available(1), 7 | 8 | /// The system denies access to the user’s iCloud account. 9 | restricted(2), 10 | 11 | /// The device doesn’t have an iCloud account. 12 | noAccount(3), 13 | 14 | /// The user’s iCloud account is temporarily unavailable. 15 | temporarilyUnavailable(4), 16 | 17 | /// Unknown status 18 | unknown(99); 19 | 20 | const CloudKitAccountStatus(this.value); 21 | 22 | final num value; 23 | } 24 | -------------------------------------------------------------------------------- /lib/types/database_scope.dart: -------------------------------------------------------------------------------- 1 | enum CloudKitDatabaseScope { public, private, shared } 2 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_cloud_kit 2 | description: Plugin for interaction with Apple CloudKit 3 | version: 0.0.3 4 | homepage: https://github.com/Fuelet/flutter_cloud_kit 5 | 6 | environment: 7 | sdk: '>=2.19.6 <3.0.0' 8 | flutter: ">=3.7.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | plugin_platform_interface: ^2.0.2 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | flutter_lints: ^2.0.0 19 | 20 | flutter: 21 | plugin: 22 | platforms: 23 | ios: 24 | pluginClass: FlutterCloudKitPlugin 25 | sharedDarwinSource: true 26 | macos: 27 | pluginClass: FlutterCloudKitPlugin 28 | sharedDarwinSource: true 29 | --------------------------------------------------------------------------------