├── .dir-locals.el ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug.yml │ ├── config.yml │ └── feature.yml ├── advanced-issue-labeler.yml ├── auto_assign.yml ├── no-response.yml └── workflows │ ├── Issue-Needs-Attention.yml │ ├── auto-assign.yml │ ├── build-binaries.yml │ ├── build-pr.yml │ ├── check-changelog.yml │ ├── issue-labeler.yml │ ├── lock-threads.yml │ ├── master-push.yml │ ├── no-response.yml │ └── publish-release.yml ├── .gitignore ├── .ruby-version ├── .swiftlint.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Carthage └── Realm.xcworkspace │ └── contents.xcworkspacedata ├── Configuration ├── Base.xcconfig ├── Debug.xcconfig ├── ObjectServerTests.xcconfig ├── Realm │ ├── PrivateSymbols.txt │ ├── Realm.xcconfig │ └── Tests.xcconfig ├── RealmSwift │ ├── RealmSwift.xcconfig │ └── Tests.xcconfig ├── Release.xcconfig ├── Static.xcconfig ├── SwiftUISyncTestHost.xcconfig ├── SwiftUISyncTests.xcconfig ├── SwiftUITestHost.xcconfig ├── SwiftUITests.xcconfig ├── TestBase.xcconfig └── TestHost.xcconfig ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── Package.swift ├── README.md ├── Realm.podspec ├── Realm.xcodeproj ├── Realm.xcworkspace │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── project.pbxproj └── xcshareddata │ ├── xcbaselines │ ├── 5D660FD71BE98C7C0021E04F.xcbaseline │ │ ├── 6890B8D9-CE81-403E-8EF6-B95A367D65B5.plist │ │ ├── B87A7896-8B70-4814-B20D-7CD723D62868.plist │ │ └── Info.plist │ └── E856D1DE195614A400FB2FCF.xcbaseline │ │ ├── 2EB6396F-9FD1-4243-AA83-2D9F9D4DD919.plist │ │ ├── 3AE81604-3FF9-49E2-A414-9B18BEEAE28F.plist │ │ ├── AAC6BA1A-785D-4850-B3EC-68BC9F1D3EEF.plist │ │ └── Info.plist │ └── xcschemes │ ├── CI.xcscheme │ ├── Download BaaS.xcscheme │ ├── Object Server Tests.xcscheme │ ├── Realm.xcscheme │ ├── RealmSwift.xcscheme │ ├── SwiftLint.xcscheme │ ├── SwiftUISyncTestHost.xcscheme │ ├── SwiftUISyncTests.xcscheme │ ├── SwiftUITestHost.xcscheme │ ├── SwiftUITests.xcscheme │ └── TestHost.xcscheme ├── Realm ├── NSError+RLMSync.h ├── NSError+RLMSync.m ├── ObjectServerTests │ ├── AsyncSyncTests.swift │ ├── ClientResetTests.swift │ ├── CombineSyncTests.swift │ ├── EventTests.swift │ ├── Object-Server-Tests-Bridging-Header.h │ ├── ObjectServerTests-Info.plist │ ├── RLMAsymmetricSyncServerTests.mm │ ├── RLMBSONTests.mm │ ├── RLMCollectionSyncTests.mm │ ├── RLMFlexibleSyncServerTests.mm │ ├── RLMMongoClientTests.mm │ ├── RLMObjectServerPartitionTests.mm │ ├── RLMObjectServerTests.mm │ ├── RLMServerTestObjects.h │ ├── RLMServerTestObjects.m │ ├── RLMSubscriptionTests.mm │ ├── RLMSyncTestCase.h │ ├── RLMSyncTestCase.mm │ ├── RLMUser+ObjectServerTests.h │ ├── RLMUser+ObjectServerTests.mm │ ├── RLMWatchTestUtility.h │ ├── RLMWatchTestUtility.m │ ├── RealmServer.swift │ ├── SwiftAsymmetricSyncServerTests.swift │ ├── SwiftCollectionSyncTests.swift │ ├── SwiftFlexibleSyncServerTests.swift │ ├── SwiftMongoClientTests.swift │ ├── SwiftObjectServerPartitionTests.swift │ ├── SwiftObjectServerTests.swift │ ├── SwiftServerObjects.swift │ ├── SwiftSyncTestCase.swift │ ├── SwiftUIServerTests.swift │ ├── TimeoutProxyServer.swift │ ├── WatchTestUtility.swift │ ├── certificates │ │ ├── ca-key.pem │ │ ├── ca.pem │ │ ├── localhost-cert-key.pem │ │ ├── localhost-cert.pem │ │ ├── localhost-other-cert.pem │ │ ├── localhost-other.cer │ │ ├── localhost.cer │ │ ├── not-localhost-cert.pem │ │ └── not-localhost.cer │ ├── config_overrides.json │ ├── include │ │ ├── RLMSyncTestCase.h │ │ └── RLMUser+ObjectServerTests.h │ └── setup_baas.rb ├── PrivacyInfo.xcprivacy ├── RLMAPIKeyAuth.h ├── RLMAPIKeyAuth.mm ├── RLMAccessor.h ├── RLMAccessor.hpp ├── RLMAccessor.mm ├── RLMAnalytics.hpp ├── RLMAnalytics.mm ├── RLMApp.h ├── RLMApp.mm ├── RLMApp_Private.h ├── RLMApp_Private.hpp ├── RLMArray.h ├── RLMArray.mm ├── RLMArray_Private.h ├── RLMArray_Private.hpp ├── RLMAsymmetricObject.h ├── RLMAsymmetricObject.mm ├── RLMAsyncTask.h ├── RLMAsyncTask.mm ├── RLMAsyncTask_Private.h ├── RLMBSON.h ├── RLMBSON.mm ├── RLMBSON_Private.hpp ├── RLMClassInfo.hpp ├── RLMClassInfo.mm ├── RLMCollection.h ├── RLMCollection.mm ├── RLMCollection_Private.h ├── RLMCollection_Private.hpp ├── RLMConstants.h ├── RLMConstants.m ├── RLMCredentials.h ├── RLMCredentials.mm ├── RLMCredentials_Private.hpp ├── RLMDecimal128.h ├── RLMDecimal128.mm ├── RLMDecimal128_Private.hpp ├── RLMDictionary.h ├── RLMDictionary.mm ├── RLMDictionary_Private.h ├── RLMDictionary_Private.hpp ├── RLMEmailPasswordAuth.h ├── RLMEmailPasswordAuth.mm ├── RLMEmbeddedObject.h ├── RLMEmbeddedObject.mm ├── RLMError.h ├── RLMError.mm ├── RLMError_Private.hpp ├── RLMEvent.h ├── RLMEvent.mm ├── RLMFindOneAndModifyOptions.h ├── RLMFindOneAndModifyOptions.mm ├── RLMFindOneAndModifyOptions_Private.hpp ├── RLMFindOptions.h ├── RLMFindOptions.mm ├── RLMFindOptions_Private.hpp ├── RLMGeospatial.h ├── RLMGeospatial.mm ├── RLMGeospatial_Private.hpp ├── RLMInitialSubscriptionsConfiguration.h ├── RLMInitialSubscriptionsConfiguration.m ├── RLMLogger.h ├── RLMLogger.mm ├── RLMLogger_Private.h ├── RLMManagedArray.mm ├── RLMManagedDictionary.mm ├── RLMManagedSet.mm ├── RLMMigration.h ├── RLMMigration.mm ├── RLMMigration_Private.h ├── RLMMongoClient.h ├── RLMMongoClient.mm ├── RLMMongoClient_Private.hpp ├── RLMMongoCollection.h ├── RLMMongoCollection.mm ├── RLMMongoCollection_Private.h ├── RLMMongoDatabase.h ├── RLMMongoDatabase_Private.hpp ├── RLMNetworkTransport.h ├── RLMNetworkTransport.mm ├── RLMNetworkTransport_Private.hpp ├── RLMObject.h ├── RLMObject.mm ├── RLMObjectBase.h ├── RLMObjectBase.mm ├── RLMObjectBase_Dynamic.h ├── RLMObjectBase_Private.h ├── RLMObjectId.h ├── RLMObjectId.mm ├── RLMObjectId_Private.hpp ├── RLMObjectSchema.h ├── RLMObjectSchema.mm ├── RLMObjectSchema_Private.h ├── RLMObjectSchema_Private.hpp ├── RLMObjectStore.h ├── RLMObjectStore.mm ├── RLMObject_Private.h ├── RLMObject_Private.hpp ├── RLMObservation.hpp ├── RLMObservation.mm ├── RLMPredicateUtil.hpp ├── RLMPredicateUtil.mm ├── RLMPrefix.h ├── RLMProperty.h ├── RLMProperty.mm ├── RLMProperty_Private.h ├── RLMProperty_Private.hpp ├── RLMProviderClient.h ├── RLMProviderClient.mm ├── RLMProviderClient_Private.hpp ├── RLMPushClient.h ├── RLMPushClient.mm ├── RLMPushClient_Private.hpp ├── RLMQueryUtil.hpp ├── RLMQueryUtil.mm ├── RLMRealm+Sync.h ├── RLMRealm+Sync.mm ├── RLMRealm.h ├── RLMRealm.mm ├── RLMRealmConfiguration.h ├── RLMRealmConfiguration.mm ├── RLMRealmConfiguration_Private.h ├── RLMRealmConfiguration_Private.hpp ├── RLMRealmUtil.hpp ├── RLMRealmUtil.mm ├── RLMRealm_Dynamic.h ├── RLMRealm_Private.h ├── RLMRealm_Private.hpp ├── RLMResults.h ├── RLMResults.mm ├── RLMResults_Private.h ├── RLMResults_Private.hpp ├── RLMScheduler.h ├── RLMScheduler.mm ├── RLMSchema.h ├── RLMSchema.mm ├── RLMSchema_Private.h ├── RLMSchema_Private.hpp ├── RLMSectionedResults.h ├── RLMSectionedResults.mm ├── RLMSectionedResults_Private.hpp ├── RLMSet.h ├── RLMSet.mm ├── RLMSet_Private.h ├── RLMSet_Private.hpp ├── RLMSwiftBridgingHeader.h ├── RLMSwiftCollectionBase.h ├── RLMSwiftCollectionBase.mm ├── RLMSwiftObject.h ├── RLMSwiftProperty.h ├── RLMSwiftSupport.h ├── RLMSwiftSupport.m ├── RLMSwiftValueStorage.h ├── RLMSwiftValueStorage.mm ├── RLMSyncConfiguration.h ├── RLMSyncConfiguration.mm ├── RLMSyncConfiguration_Private.h ├── RLMSyncConfiguration_Private.hpp ├── RLMSyncManager.h ├── RLMSyncManager.mm ├── RLMSyncManager_Private.hpp ├── RLMSyncSession.h ├── RLMSyncSession.mm ├── RLMSyncSession_Private.hpp ├── RLMSyncSubscription.h ├── RLMSyncSubscription.mm ├── RLMSyncSubscription_Private.h ├── RLMSyncSubscription_Private.hpp ├── RLMSyncUtil.mm ├── RLMSyncUtil_Private.hpp ├── RLMThreadSafeReference.h ├── RLMThreadSafeReference.mm ├── RLMThreadSafeReference_Private.hpp ├── RLMUUID.mm ├── RLMUUID_Private.hpp ├── RLMUpdateChecker.hpp ├── RLMUpdateChecker.mm ├── RLMUpdateResult.h ├── RLMUpdateResult.mm ├── RLMUpdateResult_Private.hpp ├── RLMUser.h ├── RLMUser.mm ├── RLMUserAPIKey.h ├── RLMUserAPIKey.mm ├── RLMUserAPIKey_Private.hpp ├── RLMUser_Private.h ├── RLMUser_Private.hpp ├── RLMUtil.hpp ├── RLMUtil.mm ├── RLMValue.h ├── RLMValue.mm ├── Realm-Info.plist ├── Realm.h ├── Realm.modulemap ├── Swift │ └── RLMSupport.swift ├── TestUtils │ ├── RLMChildProcessEnvironment.m │ ├── RLMMultiProcessTestCase.m │ ├── RLMTestCase.m │ ├── RLMTestObjects.m │ ├── RealmTestSupport.h │ ├── TestUtils.mm │ └── include │ │ ├── RLMAssertions.h │ │ ├── RLMChildProcessEnvironment.h │ │ ├── RLMMultiProcessTestCase.h │ │ ├── RLMTestCase.h │ │ ├── RLMTestObjects.h │ │ └── TestUtils.h └── Tests │ ├── ArrayPropertyTests.m │ ├── AsyncTests.mm │ ├── CompactionTests.m │ ├── Decimal128Tests.m │ ├── DictionaryPropertyTests.m │ ├── DynamicTests.m │ ├── EncryptionTests.mm │ ├── EnumeratorTests.m │ ├── InterprocessTests.m │ ├── KVOTests.mm │ ├── LinkTests.m │ ├── LinkingObjectsTests.mm │ ├── MigrationTests.mm │ ├── NotificationTests.m │ ├── ObjectCreationTests.mm │ ├── ObjectIdTests.m │ ├── ObjectInterfaceTests.m │ ├── ObjectSchemaTests.m │ ├── ObjectTests.m │ ├── PerformanceTests.m │ ├── PredicateUtilTests.mm │ ├── PrimitiveArrayPropertyTests.m │ ├── PrimitiveArrayPropertyTests.tpl.m │ ├── PrimitiveDictionaryPropertyTests.m │ ├── PrimitiveDictionaryPropertyTests.tpl.m │ ├── PrimitiveRLMValuePropertyTests.m │ ├── PrimitiveRLMValuePropertyTests.tpl.m │ ├── PrimitiveSetPropertyTests.m │ ├── PrimitiveSetPropertyTests.tpl.m │ ├── PropertyTests.m │ ├── QueryTests.m │ ├── RLMValueTests.m │ ├── RealmConfigurationTests.mm │ ├── RealmTests-Info.plist │ ├── RealmTests.mm │ ├── ResultsTests.m │ ├── SchemaTests.mm │ ├── SectionedResultsTests.m │ ├── SetPropertyTests.m │ ├── Swift │ ├── RLMSupport.swift │ ├── RLMTestCaseUtils.swift │ ├── RealmObjcSwiftTests-Info.plist │ ├── Swift-Tests-Bridging-Header.h │ ├── SwiftArrayPropertyTests.swift │ ├── SwiftArrayTests.swift │ ├── SwiftDynamicTests.swift │ ├── SwiftLinkTests.swift │ ├── SwiftObjectInterfaceTests.swift │ ├── SwiftPropertyTypeTest.swift │ ├── SwiftRLMDictionaryTests.swift │ ├── SwiftRealmTests.swift │ ├── SwiftSchemaTests.swift │ ├── SwiftSetPropertyTests.swift │ ├── SwiftSetTests.swift │ ├── SwiftTestObjects.swift │ └── SwiftUnicodeTests.swift │ ├── SwiftUISyncTestHost │ ├── ContentView.swift │ ├── Info.plist │ ├── SwiftUISyncTestHostApp.swift │ └── TestType.swift │ ├── SwiftUISyncTestHostUITests │ ├── Info.plist │ ├── SwiftUISyncTestHostUITests-Bridging-Header.h │ ├── SwiftUISyncTestHostUITests.entitlements │ └── SwiftUISyncTestHostUITests.swift │ ├── SwiftUITestHost │ ├── Info.plist │ ├── LaunchScreen.storyboard │ ├── Objects.swift │ └── SwiftUITestHostApp.swift │ ├── SwiftUITestHostUITests │ ├── Info.plist │ └── SwiftUITestHostUITests.swift │ ├── TestHost │ ├── Info.plist │ └── main.m │ ├── ThreadSafeReferenceTests.m │ ├── TransactionTests.m │ ├── UnicodeTests.m │ ├── UtilTests.mm │ ├── array_tests.py │ ├── dictionary_tests.py │ ├── file-format-version-10.realm │ ├── file-format-version-21.realm │ ├── fileformat-pre-null.realm │ ├── mixed_tests.py │ └── set_tests.py ├── RealmSwift.podspec ├── RealmSwift ├── Aliases.swift ├── AnyRealmValue.swift ├── App.swift ├── AsymmetricObject.swift ├── BSON.swift ├── Combine.swift ├── CustomPersistable.swift ├── Decimal128.swift ├── EmbeddedObject.swift ├── Error.swift ├── Events.swift ├── Geospatial.swift ├── Impl │ ├── BasicTypes.swift │ ├── CollectionAccess.swift │ ├── ComplexTypes.swift │ ├── KeyPathStrings.swift │ ├── ObjcBridgeable.swift │ ├── Persistable.swift │ ├── PropertyAccessors.swift │ ├── RealmCollectionImpl.swift │ └── SchemaDiscovery.swift ├── LinkingObjects.swift ├── List.swift ├── Map.swift ├── Migration.swift ├── MongoClient.swift ├── MutableSet.swift ├── Nonsync.swift ├── Object.swift ├── ObjectId.swift ├── ObjectSchema.swift ├── ObjectiveCSupport+AnyRealmValue.swift ├── ObjectiveCSupport+BSON.swift ├── ObjectiveCSupport+Sync.swift ├── ObjectiveCSupport.swift ├── Optional.swift ├── PersistedProperty.swift ├── PrivacyInfo.xcprivacy ├── Projection.swift ├── Property.swift ├── Query.swift ├── Realm.swift ├── RealmCollection.swift ├── RealmConfiguration.swift ├── RealmKeyedCollection.swift ├── RealmProperty.swift ├── RealmSwift-Info.plist ├── Results.swift ├── Schema.swift ├── SectionedResults.swift ├── SortDescriptor.swift ├── SwiftUI.swift ├── Sync.swift ├── SyncSubscription.swift ├── Tests │ ├── AnyRealmValueTests.swift │ ├── CodableTests.swift │ ├── CombineTests.swift │ ├── CompactionTests.swift │ ├── CustomColumnNameTests.swift │ ├── CustomObjectCreationTests.swift │ ├── CustomPersistableTestObjects.swift │ ├── Decimal128Tests.swift │ ├── GeospatialTests.swift │ ├── KVOTests.swift │ ├── KeyPathTests.swift │ ├── ListTests.swift │ ├── MapTests.swift │ ├── MigrationTests.swift │ ├── MixedCollectionTest.swift │ ├── ModernKVOTests.swift │ ├── ModernObjectAccessorTests.swift │ ├── ModernObjectCreationTests.swift │ ├── ModernObjectTests.swift │ ├── ModernTestObjects.swift │ ├── MutableSetTests.swift │ ├── ObjectAccessorTests.swift │ ├── ObjectCreationTests.swift │ ├── ObjectCustomPropertiesTests.swift │ ├── ObjectIdTests.swift │ ├── ObjectSchemaInitializationTests.swift │ ├── ObjectSchemaTests.swift │ ├── ObjectTests.swift │ ├── ObjectiveCSupportTests.swift │ ├── PerformanceTests.swift │ ├── PrimitiveListTests.swift │ ├── PrimitiveMapTests.swift │ ├── PrimitiveMutableSetTests.swift │ ├── ProjectedCollectTests.swift │ ├── ProjectionTests.swift │ ├── PropertyTests.swift │ ├── QueryTests.swift │ ├── QueryTests.swift.gyb │ ├── RealmCollectionTypeTests.swift │ ├── RealmConfigurationTests.swift │ ├── RealmPropertyTests.swift │ ├── RealmSwiftTests-BridgingHeader.h │ ├── RealmSwiftTests-Info.plist │ ├── RealmTests.swift │ ├── SchemaTests.swift │ ├── SectionedResultsTests.swift │ ├── SortDescriptorTests.swift │ ├── SwiftBSONTests.swift │ ├── SwiftLinkTests.swift │ ├── SwiftTestObjects.swift │ ├── SwiftUITests.swift │ ├── SwiftUnicodeTests.swift │ ├── TestCase.swift │ ├── TestUtils.swift │ ├── TestValueFactory.swift │ └── ThreadSafeReferenceTests.swift ├── ThreadSafeReference.swift └── Util.swift ├── SUPPORT.md ├── build.sh ├── contrib ├── Development.md ├── ReleaseProcess.md ├── SignXCFramework.md └── UpgradingXcode.md ├── dependencies.list ├── docs ├── README.md └── custom_head.html ├── examples ├── README.md ├── installation │ ├── .gitignore │ ├── Carthage.xcodeproj │ │ └── project.pbxproj │ ├── CocoaPods.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── App.xcscheme │ ├── CocoaPods.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── Podfile │ ├── Source │ │ ├── Assets.xcassets │ │ │ ├── AccentColor.colorset │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── ObjCImport.m │ │ ├── Preview Content │ │ │ └── Preview Assets.xcassets │ │ │ │ └── Contents.json │ │ ├── SwiftExample.entitlements │ │ └── SwiftExampleApp.swift │ ├── Static │ │ ├── StaticExample.xcodeproj │ │ │ ├── project.pbxproj │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── StaticExample.xcscheme │ │ └── StaticExample │ │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.xib │ │ │ └── Main.storyboard │ │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ └── main.m │ ├── SubRealm │ │ ├── SubRealm.podspec │ │ └── SubRealm.swift │ ├── SwiftPackageManager.notxcodeproj │ │ └── project.pbxproj │ ├── SwiftPackageManagerDynamic.notxcodeproj │ │ └── project.pbxproj │ ├── XCFramework.xcodeproj │ │ └── project.pbxproj │ └── build.rb ├── ios │ ├── objc │ │ ├── .gitignore │ │ ├── Backlink │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Backlink-Info.plist │ │ │ └── main.m │ │ ├── Common │ │ │ └── LaunchScreen.xib │ │ ├── Draw │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Draw-Info.plist │ │ │ ├── Draw.entitlements │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── RealmDraw-60@2x.png │ │ │ │ │ ├── RealmDraw-60@3x.png │ │ │ │ │ ├── RealmDraw-76.png │ │ │ │ │ ├── RealmDraw-76@2x.png │ │ │ │ │ └── RealmDraw-83.5@2x.png │ │ │ │ └── Pencils │ │ │ │ │ ├── Charcoal.imageset │ │ │ │ │ ├── Charcoal.png │ │ │ │ │ ├── Charcoal@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Dove.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Dove.png │ │ │ │ │ └── Dove@2x.png │ │ │ │ │ ├── Elephant.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Elephant.png │ │ │ │ │ └── Elephant@2x.png │ │ │ │ │ ├── Flamingo.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Flamingo.png │ │ │ │ │ └── Flamingo@2x.png │ │ │ │ │ ├── GrapeJelly.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── GrapeJelly.png │ │ │ │ │ └── GrapeJelly@2x.png │ │ │ │ │ ├── Indigo.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Indigo.png │ │ │ │ │ └── Indigo@2x.png │ │ │ │ │ ├── Melon.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Melon.png │ │ │ │ │ └── Melon@2x.png │ │ │ │ │ ├── Mulberry.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Mulberry.png │ │ │ │ │ └── Mulberry@2x.png │ │ │ │ │ ├── Peach.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Peach.png │ │ │ │ │ └── Peach@2x.png │ │ │ │ │ ├── SexySalmon.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── SexySalmon.png │ │ │ │ │ └── SexySalmon@2x.png │ │ │ │ │ └── Ultramarine.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Ultramarine.png │ │ │ │ │ └── Ultramarine@2x.png │ │ │ ├── Models │ │ │ │ ├── DrawPath.h │ │ │ │ ├── DrawPath.m │ │ │ │ ├── DrawPoint.h │ │ │ │ ├── DrawPoint.m │ │ │ │ ├── UIColor+Realm.h │ │ │ │ └── UIColor+Realm.m │ │ │ ├── Views │ │ │ │ ├── CanvasView.h │ │ │ │ ├── CanvasView.m │ │ │ │ ├── DrawView.h │ │ │ │ ├── DrawView.m │ │ │ │ ├── SwatchesView.h │ │ │ │ └── SwatchesView.m │ │ │ └── main.m │ │ ├── Encryption │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Encryption-Info.plist │ │ │ ├── LabelViewController.h │ │ │ ├── LabelViewController.m │ │ │ └── main.m │ │ ├── Extension │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Extension.entitlements │ │ │ ├── Info.plist │ │ │ ├── Tick.h │ │ │ ├── Tick.m │ │ │ └── main.m │ │ ├── GroupedTableView │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── LaunchImage.launchimage │ │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── TableViewController.h │ │ │ ├── TableViewController.m │ │ │ └── main.m │ │ ├── Migration │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Examples │ │ │ │ ├── Example_v0.h │ │ │ │ ├── Example_v1.h │ │ │ │ ├── Example_v2.h │ │ │ │ ├── Example_v3.h │ │ │ │ ├── Example_v4.h │ │ │ │ └── Example_v5.h │ │ │ ├── Migration-Info.plist │ │ │ ├── RealmTemplates │ │ │ │ ├── default-v0.realm │ │ │ │ ├── default-v1.realm │ │ │ │ ├── default-v2.realm │ │ │ │ ├── default-v3.realm │ │ │ │ ├── default-v4.realm │ │ │ │ └── default-v5.realm │ │ │ └── main.m │ │ ├── REST │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── REST-Info.plist │ │ │ ├── Venue.h │ │ │ ├── Venue.m │ │ │ └── main.m │ │ ├── RealmExamples.xcodeproj │ │ │ ├── project.pbxproj │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ ├── Backlink.xcscheme │ │ │ │ ├── Draw.xcscheme │ │ │ │ ├── Encryption.xcscheme │ │ │ │ ├── Extension.xcscheme │ │ │ │ ├── GroupedTableView.xcscheme │ │ │ │ ├── Migration.xcscheme │ │ │ │ ├── RACTableView.xcscheme │ │ │ │ ├── REST.xcscheme │ │ │ │ ├── Simple.xcscheme │ │ │ │ ├── TableView.xcscheme │ │ │ │ └── TodayExtension.xcscheme │ │ ├── RealmExamples.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ ├── RealmExamples.xcscmblueprint │ │ │ │ └── WorkspaceSettings.xcsettings │ │ ├── Simple │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Simple-Info.plist │ │ │ └── main.m │ │ ├── TableView │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── LaunchImage.launchimage │ │ │ │ │ └── Contents.json │ │ │ ├── TableView-Info.plist │ │ │ ├── TableViewController.h │ │ │ ├── TableViewController.m │ │ │ └── main.m │ │ └── TodayExtension │ │ │ ├── Info.plist │ │ │ ├── MainInterface.storyboard │ │ │ ├── TodayExtension.entitlements │ │ │ ├── TodayViewController.h │ │ │ └── TodayViewController.m │ └── swift │ │ ├── .gitignore │ │ ├── AppClip │ │ ├── AppClip.entitlements │ │ ├── AppClipApp.swift │ │ ├── Assets.xcassets │ │ │ ├── AccentColor.colorset │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── Preview Content │ │ │ └── Preview Assets.xcassets │ │ │ │ └── Contents.json │ │ └── appclip_ex.gif │ │ ├── AppClipParent │ │ ├── AppClipParent.entitlements │ │ ├── AppClipParentApp.swift │ │ ├── Assets.xcassets │ │ │ ├── AccentColor.colorset │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Constants.swift │ │ ├── ContentView.swift │ │ ├── DemoObject.swift │ │ ├── Info.plist │ │ └── Preview Content │ │ │ └── Preview Assets.xcassets │ │ │ └── Contents.json │ │ ├── AppleAuthentication │ │ ├── AppDelegate.swift │ │ ├── AppleAuthentication.entitlements │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Base.lproj │ │ │ └── LaunchScreen.storyboard │ │ ├── ContentView.swift │ │ ├── Info.plist │ │ ├── Preview Content │ │ │ └── Preview Assets.xcassets │ │ │ │ └── Contents.json │ │ ├── README.md │ │ └── SceneDelegate.swift │ │ ├── AsyncOpenSwiftUI │ │ ├── Assets.xcassets │ │ │ ├── AccentColor.colorset │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── AsyncOpenSwiftUI--iOS--Info.plist │ │ ├── AsyncOpenSwiftUI--macOS--Info.plist │ │ ├── AsyncOpenSwiftUIApp.swift │ │ └── ContentView.swift │ │ ├── Backlink │ │ ├── AppDelegate.swift │ │ └── Info.plist │ │ ├── Common │ │ └── LaunchScreen.xib │ │ ├── Encryption │ │ ├── AppDelegate.swift │ │ ├── Info.plist │ │ └── ViewController.swift │ │ ├── GettingStarted.playground │ │ ├── Contents.swift │ │ └── contents.xcplayground │ │ ├── GroupedTableView │ │ ├── AppDelegate.swift │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── LaunchImage.launchimage │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── TableViewController.swift │ │ ├── ListSwiftUI │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── Preview Content │ │ │ └── Preview Assets.xcassets │ │ │ │ └── Contents.json │ │ └── Views │ │ │ ├── App.swift │ │ │ └── ContentView.swift │ │ ├── Migration │ │ ├── AppDelegate.swift │ │ ├── Examples │ │ │ ├── Example_v0.swift │ │ │ ├── Example_v1.swift │ │ │ ├── Example_v2.swift │ │ │ ├── Example_v3.swift │ │ │ ├── Example_v4.swift │ │ │ └── Example_v5.swift │ │ ├── Info.plist │ │ ├── Migration.xcconfig │ │ ├── README.md │ │ └── RealmTemplates │ │ │ ├── default-v0.realm │ │ │ ├── default-v1.realm │ │ │ ├── default-v2.realm │ │ │ ├── default-v3.realm │ │ │ ├── default-v4.realm │ │ │ └── default-v5.realm │ │ ├── PlaygroundFrameworkWrapper │ │ ├── Info.plist │ │ └── PlaygroundFrameworkWrapper.swift │ │ ├── Projections │ │ ├── Assets.xcassets │ │ │ ├── AccentColor.colorset │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── ContentView.swift │ │ ├── Info.plist │ │ ├── Preview Content │ │ │ └── Preview Assets.xcassets │ │ │ │ └── Contents.json │ │ └── ProjectionsApp.swift │ │ ├── RealmExamples.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── AppClip.xcscheme │ │ │ ├── Backlink.xcscheme │ │ │ ├── Encryption.xcscheme │ │ │ ├── GroupedTableView.xcscheme │ │ │ ├── Migration.xcscheme │ │ │ ├── Simple.xcscheme │ │ │ └── TableView.xcscheme │ │ ├── RealmExamples.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ ├── RealmExamples.xcscmblueprint │ │ │ └── WorkspaceSettings.xcsettings │ │ ├── Simple │ │ ├── AppDelegate.swift │ │ └── Info.plist │ │ └── TableView │ │ ├── AppDelegate.swift │ │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── TableViewController.swift ├── osx │ └── objc │ │ ├── JSONImport │ │ ├── Person.h │ │ ├── Person.m │ │ ├── main.m │ │ └── persons.json │ │ ├── RealmExamples.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── JSONImport.xcscheme │ │ └── RealmExamples.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── WorkspaceSettings.xcsettings └── tvos │ ├── objc │ ├── DownloadCache │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Assets.xcassets │ │ │ ├── App Icon & Top Shelf Image.brandassets │ │ │ │ ├── App Icon - Large.imagestack │ │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Middle.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── App Icon - Small.imagestack │ │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Middle.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── Contents.json │ │ │ │ └── Top Shelf Image.imageset │ │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── LaunchImage.launchimage │ │ │ │ └── Contents.json │ │ ├── Base.lproj │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ ├── RepositoriesViewController.h │ │ ├── RepositoriesViewController.m │ │ ├── Repository.h │ │ ├── Repository.m │ │ ├── RepositoryCell.h │ │ ├── RepositoryCell.m │ │ └── main.m │ ├── PreloadedData │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Assets.xcassets │ │ │ ├── App Icon & Top Shelf Image.brandassets │ │ │ │ ├── App Icon - Large.imagestack │ │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Middle.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── App Icon - Small.imagestack │ │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Middle.imagestacklayer │ │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ │ └── Contents.json │ │ │ │ ├── Contents.json │ │ │ │ └── Top Shelf Image.imageset │ │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── LaunchImage.launchimage │ │ │ │ └── Contents.json │ │ ├── Base.lproj │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ ├── Place.h │ │ ├── Place.m │ │ ├── PlacesViewController.h │ │ ├── PlacesViewController.m │ │ ├── Seed Data │ │ │ └── Places.realm │ │ └── main.m │ ├── RealmExamples.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── DownloadCache.xcscheme │ │ │ └── PreloadedData.xcscheme │ └── RealmExamples.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── WorkspaceSettings.xcsettings │ └── swift │ ├── DownloadCache │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── App Icon & Top Shelf Image.brandassets │ │ │ ├── App Icon - Large.imagestack │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ │ ├── Contents.json │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ │ └── Middle.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ ├── App Icon - Small.imagestack │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ │ ├── Contents.json │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ │ └── Middle.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── Top Shelf Image.imageset │ │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── Base.lproj │ │ └── Main.storyboard │ ├── Info.plist │ ├── RepositoriesViewController.swift │ ├── Repository.swift │ └── RepositoryCell.swift │ ├── PreloadedData │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── App Icon & Top Shelf Image.brandassets │ │ │ ├── App Icon - Large.imagestack │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ │ ├── Contents.json │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ │ └── Middle.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ ├── App Icon - Small.imagestack │ │ │ │ ├── Back.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ │ ├── Contents.json │ │ │ │ ├── Front.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ │ └── Middle.imagestacklayer │ │ │ │ │ ├── Content.imageset │ │ │ │ │ └── Contents.json │ │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── Top Shelf Image.imageset │ │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── Base.lproj │ │ └── Main.storyboard │ ├── Info.plist │ ├── Place.swift │ ├── PlacesViewController.swift │ └── Seed Data │ │ └── Places.realm │ ├── RealmExamples.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── DownloadCache.xcscheme │ │ └── PreloadedData.xcscheme │ └── RealmExamples.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ ├── RealmExamples.xcscmblueprint │ └── WorkspaceSettings.xcsettings ├── include ├── Realm │ ├── NSError+RLMSync.h │ ├── RLMAPIKeyAuth.h │ ├── RLMAccessor.h │ ├── RLMApp.h │ ├── RLMApp_Private.h │ ├── RLMArray.h │ ├── RLMArray_Private.h │ ├── RLMAsymmetricObject.h │ ├── RLMAsyncTask.h │ ├── RLMAsyncTask_Private.h │ ├── RLMBSON.h │ ├── RLMCollection.h │ ├── RLMCollection_Private.h │ ├── RLMConstants.h │ ├── RLMCredentials.h │ ├── RLMDecimal128.h │ ├── RLMDictionary.h │ ├── RLMDictionary_Private.h │ ├── RLMEmailPasswordAuth.h │ ├── RLMEmbeddedObject.h │ ├── RLMError.h │ ├── RLMEvent.h │ ├── RLMFindOneAndModifyOptions.h │ ├── RLMFindOptions.h │ ├── RLMGeospatial.h │ ├── RLMInitialSubscriptionsConfiguration.h │ ├── RLMLogger.h │ ├── RLMLogger_Private.h │ ├── RLMMigration.h │ ├── RLMMongoClient.h │ ├── RLMMongoCollection.h │ ├── RLMMongoCollection_Private.h │ ├── RLMMongoDatabase.h │ ├── RLMNetworkTransport.h │ ├── RLMObject.h │ ├── RLMObjectBase.h │ ├── RLMObjectBase_Dynamic.h │ ├── RLMObjectBase_Private.h │ ├── RLMObjectId.h │ ├── RLMObjectSchema.h │ ├── RLMObjectSchema_Private.h │ ├── RLMObjectStore.h │ ├── RLMObject_Private.h │ ├── RLMProperty.h │ ├── RLMProperty_Private.h │ ├── RLMProviderClient.h │ ├── RLMPushClient.h │ ├── RLMRealm+Sync.h │ ├── RLMRealm.h │ ├── RLMRealmConfiguration.h │ ├── RLMRealmConfiguration_Private.h │ ├── RLMRealm_Dynamic.h │ ├── RLMRealm_Private.h │ ├── RLMResults.h │ ├── RLMResults_Private.h │ ├── RLMScheduler.h │ ├── RLMSchema.h │ ├── RLMSchema_Private.h │ ├── RLMSectionedResults.h │ ├── RLMSet.h │ ├── RLMSet_Private.h │ ├── RLMSwiftCollectionBase.h │ ├── RLMSwiftObject.h │ ├── RLMSwiftProperty.h │ ├── RLMSwiftValueStorage.h │ ├── RLMSyncConfiguration.h │ ├── RLMSyncConfiguration_Private.h │ ├── RLMSyncManager.h │ ├── RLMSyncSession.h │ ├── RLMSyncSubscription.h │ ├── RLMSyncSubscription_Private.h │ ├── RLMThreadSafeReference.h │ ├── RLMUpdateResult.h │ ├── RLMUser.h │ ├── RLMUserAPIKey.h │ ├── RLMUser_Private.h │ ├── RLMValue.h │ └── Realm.h └── module.modulemap ├── logo.png ├── media ├── favicon.ico ├── logo-dark.svg └── logo.svg ├── plugin ├── README.md ├── RealmPlugin.xcodeproj │ └── project.pbxproj ├── RealmPlugin │ ├── RLMPRealmPlugin.h │ ├── RLMPRealmPlugin.m │ ├── RLMPSimulatorManager.h │ ├── RLMPSimulatorManager.m │ ├── RealmPlugin-Info.plist │ ├── RealmPlugin-Prefix.pch │ └── en.lproj │ │ └── InfoPlist.strings ├── Templates │ ├── file_templates │ │ └── Realm Model Object.xctemplate │ │ │ ├── Objective-C │ │ │ ├── ___FILEBASENAME___.h │ │ │ └── ___FILEBASENAME___.m │ │ │ ├── Swift │ │ │ └── ___FILEBASENAME___.swift │ │ │ ├── TemplateIcon.icns │ │ │ └── TemplateInfo.plist │ └── install_templates.sh └── rlm_lldb.py └── scripts ├── create-release-package.rb ├── download-core.sh ├── generate-rlmversion.sh ├── github_release.rb ├── package_examples.rb ├── pr-ci-matrix.rb ├── release-matrix.rb ├── setup-cocoapods.sh └── swift-version.sh /.dir-locals.el: -------------------------------------------------------------------------------- 1 | ;; Project specific Emacs settings 2 | ((nil . ((c-basic-offset . 4) 3 | (indent-tabs-mode . nil) 4 | (c-file-style . "ellemtel") 5 | (c-file-offsets . ((innamespace . 0))) 6 | (show-trailing-whitespace . t)))) 7 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | CHANGELOG.md merge=union 2 | *.mm linguist-language=Objective-C 3 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: true 2 | contact_links: 3 | - name: General Questions and Inquiries 4 | url: https://www.mongodb.com/community/forums/tags/c/realm-sdks/58/swift 5 | about: Please ask general design/architecture questions in the community forums. 6 | - name: MongoDB Device Sync Production Issues 7 | url: https://support.mongodb.com/ 8 | about: Please report urgent production issues to the support portal directly. 9 | -------------------------------------------------------------------------------- /.github/auto_assign.yml: -------------------------------------------------------------------------------- 1 | addAssignees: author 2 | addReviewers: false 3 | runOnDraft: true 4 | -------------------------------------------------------------------------------- /.github/no-response.yml: -------------------------------------------------------------------------------- 1 | # Configuration for probot-no-response - https://github.com/probot/no-response 2 | 3 | # Number of days of inactivity before an Issue is closed for lack of response 4 | daysUntilClose: 14 5 | # Label requiring a response 6 | responseRequiredLabel: More-information-needed 7 | # Comment to post when closing an Issue for lack of response. Set to `false` to disable 8 | closeComment: > 9 | This issue has been automatically closed because there has been no response 10 | to our request for more information from the original author. With only the 11 | information that is currently in the issue, we don't have enough information 12 | to take action. Please reach out if you have or find the answers we need so 13 | that we can investigate further. 14 | -------------------------------------------------------------------------------- /.github/workflows/Issue-Needs-Attention.yml: -------------------------------------------------------------------------------- 1 | # NOTE: This is a common file that is overwritten by realm/ci-actions sync service 2 | # and should only be modified in that repository. 3 | 4 | name: Issue Needs Attention 5 | # This workflow is triggered on issue comments. 6 | on: 7 | issue_comment: 8 | types: created 9 | 10 | jobs: 11 | applyNeedsAttentionLabel: 12 | uses: realm/ci-actions/.github/workflows/issue-needs-attention.yml@main 13 | -------------------------------------------------------------------------------- /.github/workflows/auto-assign.yml: -------------------------------------------------------------------------------- 1 | # NOTE: This is a common file that is overwritten by realm/ci-actions sync service 2 | # and should only be modified in that repository. 3 | 4 | name: 'Auto Assign' 5 | on: 6 | pull_request: 7 | types: [opened] 8 | 9 | jobs: 10 | add-assignee: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: kentaro-m/auto-assign-action@248761c4feb3917c1b0444e33fad1a50093b9847 14 | -------------------------------------------------------------------------------- /.github/workflows/check-changelog.yml: -------------------------------------------------------------------------------- 1 | # NOTE: This is a common file that is overwritten by realm/ci-actions sync service 2 | # and should only be modified in that repository. 3 | 4 | name: "Check Changelog" 5 | on: 6 | pull_request: 7 | types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] 8 | 9 | jobs: 10 | changelog: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@v4 15 | with: 16 | submodules: false 17 | - name: Enforce Changelog 18 | uses: dangoslen/changelog-enforcer@c0b9fd225180a405c5f21f7a74b99e2eccc3e951 19 | with: 20 | skipLabels: no-changelog 21 | missingUpdateErrorMessage: Please add an entry in CHANGELOG.md or apply the 'no-changelog' label to skip this check. 22 | -------------------------------------------------------------------------------- /.github/workflows/lock-threads.yml: -------------------------------------------------------------------------------- 1 | name: 'Lock Threads' 2 | 3 | on: 4 | schedule: 5 | - cron: '0 * * * *' 6 | workflow_dispatch: 7 | 8 | permissions: 9 | issues: write 10 | pull-requests: write 11 | discussions: write 12 | 13 | concurrency: 14 | group: lock-threads 15 | 16 | jobs: 17 | action: 18 | runs-on: ubuntu-latest 19 | steps: 20 | - uses: dessant/lock-threads@v5 21 | with: 22 | issue-inactive-days: 30 23 | pr-inactive-days: 30 24 | log-output: true 25 | -------------------------------------------------------------------------------- /.github/workflows/no-response.yml: -------------------------------------------------------------------------------- 1 | # NOTE: This is a common file that is overwritten by realm/ci-actions sync service 2 | # and should only be modified in that repository. 3 | 4 | name: No Response 5 | 6 | # Both `issue_comment` and `scheduled` event types are required for this Action 7 | # to work properly. 8 | on: 9 | issue_comment: 10 | types: [created] 11 | schedule: 12 | # Schedule at 00:00 every day 13 | - cron: '0 0 * * *' 14 | 15 | jobs: 16 | noResponse: 17 | runs-on: ubuntu-latest 18 | steps: 19 | - uses: lee-dohm/no-response@v0.5.0 20 | with: 21 | token: ${{ github.token }} 22 | responseRequiredLabel: More-information-needed 23 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.3.4 2 | -------------------------------------------------------------------------------- /Carthage/Realm.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Configuration/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Base.xcconfig" 2 | 3 | COPY_PHASE_STRIP = NO; 4 | ENABLE_TESTABILITY = YES; 5 | GCC_OPTIMIZATION_LEVEL = 0; 6 | ONLY_ACTIVE_ARCH = YES; 7 | SWIFT_OPTIMIZATION_LEVEL = -Onone; 8 | OTHER_SWIFT_FLAGS = -Xfrontend -enable-actor-data-race-checks; 9 | 10 | GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 REALM_DEBUG REALM_HAVE_CONFIG REALM_ENABLE_SYNC __ASSERTMACROS__; 11 | -------------------------------------------------------------------------------- /Configuration/ObjectServerTests.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Realm/Tests.xcconfig" 2 | 3 | OTHER_LDFLAGS = -weak_framework Combine; 4 | SDKROOT = macosx; 5 | SUPPORTED_PLATFORMS = macosx; 6 | -------------------------------------------------------------------------------- /Configuration/Realm/PrivateSymbols.txt: -------------------------------------------------------------------------------- 1 | # Anything with a C++ mangled name 2 | __Z* 3 | # The Bid library used for decimal128 4 | ___bid* 5 | -------------------------------------------------------------------------------- /Configuration/Realm/Realm.xcconfig: -------------------------------------------------------------------------------- 1 | APPLICATION_EXTENSION_API_ONLY = YES; 2 | DEFINES_MODULE = YES; 3 | DYLIB_COMPATIBILITY_VERSION = 1; 4 | DYLIB_CURRENT_VERSION = 1; 5 | DYLIB_INSTALL_NAME_BASE = @rpath; 6 | FRAMEWORK_VERSION = A; 7 | HEADER_SEARCH_PATHS = $(inherited) $(DERIVED_FILE_DIR); 8 | INFOPLIST_FILE = Realm/Realm-Info.plist; 9 | MACH_O_TYPE = $(REALM_MACH_O_TYPE); 10 | MODULEMAP_FILE = $(SRCROOT)/Realm/Realm.modulemap; 11 | PRODUCT_BUNDLE_IDENTIFIER = io.Realm.${PRODUCT_NAME:rfc1034identifier}; 12 | PRODUCT_NAME = Realm; 13 | SKIP_INSTALL = YES; 14 | 15 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks; 16 | LD_RUNPATH_SEARCH_PATHS[sdk=macosx*] = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks; 17 | 18 | LINKER_FLAG_MACCATALYST_YES = -framework UIKit; 19 | LINKER_FLAG_MACCATALYST_NO = ; 20 | OTHER_LDFLAGS = $(REALM_SYMBOLS_FLAGS) -framework UIKit; 21 | OTHER_LDFLAGS[sdk=macosx*] = $(REALM_SYMBOLS_FLAGS) $(LINKER_FLAG_MACCATALYST_$(IS_MACCATALYST)); 22 | -------------------------------------------------------------------------------- /Configuration/Realm/Tests.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../TestBase.xcconfig" 2 | 3 | INFOPLIST_FILE = Realm/Tests/RealmTests-Info.plist; 4 | OTHER_CFLAGS = -fobjc-arc-exceptions; 5 | OTHER_LDFLAGS = -ObjC; 6 | 7 | SWIFT_OBJC_BRIDGING_HEADER = Realm/Tests/Swift/Swift-Tests-Bridging-Header.h; 8 | SWIFT_OPTIMIZATION_LEVEL = -Onone; 9 | 10 | EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = InterprocessTests.m SwiftSchemaTests.swift; 11 | EXCLUDED_SOURCE_FILE_NAMES[sdk=appletv*] = EncryptionTests.mm InterprocessTests.m SwiftSchemaTests.swift; 12 | EXCLUDED_SOURCE_FILE_NAMES[sdk=watch*] = *; 13 | -------------------------------------------------------------------------------- /Configuration/RealmSwift/RealmSwift.xcconfig: -------------------------------------------------------------------------------- 1 | SKIP_INSTALL = YES; 2 | 3 | DEFINES_MODULE = YES; 4 | DYLIB_COMPATIBILITY_VERSION = 1; 5 | DYLIB_CURRENT_VERSION = 1; 6 | DYLIB_INSTALL_NAME_BASE = @rpath; 7 | INFOPLIST_FILE = RealmSwift/RealmSwift-Info.plist; 8 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks; 9 | MACH_O_TYPE = $(REALM_MACH_O_TYPE); 10 | PRODUCT_BUNDLE_IDENTIFIER = io.realm.RealmSwit; 11 | PRODUCT_NAME = RealmSwift; 12 | 13 | REALM_BUILD_LIBRARY_FOR_DISTRIBUTION = NO; 14 | BUILD_LIBRARY_FOR_DISTRIBUTION = $(REALM_BUILD_LIBRARY_FOR_DISTRIBUTION); 15 | -------------------------------------------------------------------------------- /Configuration/RealmSwift/Tests.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../TestBase.xcconfig" 2 | 3 | INFOPLIST_FILE = RealmSwift/Tests/RealmSwiftTests-Info.plist; 4 | OTHER_LDFLAGS = -ObjC; 5 | SWIFT_OBJC_BRIDGING_HEADER = RealmSwift/Tests/RealmSwiftTests-BridgingHeader.h 6 | SWIFT_OPTIMIZATION_LEVEL = -Onone; 7 | SWIFT_STRICT_CONCURRENCY = targeted; 8 | 9 | EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = build/osx/*; 10 | EXCLUDED_SOURCE_FILE_NAMES[sdk=appletv*] = build/osx/*; 11 | EXCLUDED_SOURCE_FILE_NAMES[sdk=macosx*] = build/ios/*; 12 | 13 | -------------------------------------------------------------------------------- /Configuration/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Base.xcconfig" 2 | 3 | // As of beta 1 dSYM generation fails with the unhelpful error "warning: could 4 | // not find referenced DIE" (which seems to not actually be just a warning?) 5 | DEBUG_INFORMATION_FORMAT_1400 = dwarf-with-dsym; 6 | DEBUG_INFORMATION_FORMAT_1500 = dwarf; 7 | DEBUG_INFORMATION_FORMAT = $(DEBUG_INFORMATION_FORMAT_$(XCODE_VERSION_MAJOR)); 8 | 9 | ENABLE_NS_ASSERTIONS = NO; 10 | GCC_PREPROCESSOR_DEFINITIONS = REALM_HAVE_CONFIG REALM_ENABLE_SYNC __ASSERTMACROS__; 11 | LLVM_LTO = YES_THIN; 12 | VALIDATE_PRODUCT = YES; 13 | 14 | REALM_HIDE_SYMBOLS = NO; 15 | REALM_SYMBOLS_FLAGS_NO = ; 16 | REALM_SYMBOLS_FLAGS_YES = -Xlinker -unexported_symbols_list -Xlinker Configuration/Realm/PrivateSymbols.txt; 17 | REALM_SYMBOLS_FLAGS = $(REALM_SYMBOLS_FLAGS_$(REALM_HIDE_SYMBOLS)); 18 | -------------------------------------------------------------------------------- /Configuration/Static.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Release.xcconfig" 2 | 3 | REALM_MACH_O_TYPE = staticlib; 4 | LLVM_LTO = NO; 5 | GCC_PREPROCESSOR_DEFINITIONS = REALM_STATIC_FRAMEWORK REALM_HAVE_CONFIG REALM_ENABLE_SYNC __ASSERTMACROS__; 6 | -------------------------------------------------------------------------------- /Configuration/SwiftUISyncTestHost.xcconfig: -------------------------------------------------------------------------------- 1 | #include "TestHost.xcconfig" 2 | 3 | INFOPLIST_FILE = Realm/Tests/SwiftUISyncTestHost/Info.plist; 4 | SUPPORTED_PLATFORMS = macosx; 5 | -------------------------------------------------------------------------------- /Configuration/SwiftUISyncTests.xcconfig: -------------------------------------------------------------------------------- 1 | #include "SwiftUISyncTestHost.xcconfig" 2 | 3 | TEST_TARGET_NAME = SwiftUISyncTestHost; 4 | INFOPLIST_FILE = Realm/Tests/SwiftUISyncTestHostUITests/Info.plist; 5 | SDKROOT = macosx; 6 | SUPPORTED_PLATFORMS = macosx; 7 | CODE_SIGN_ENTITLEMENTS = Realm/Tests/SwiftUISyncTestHostUITests/SwiftUISyncTestHostUITests.entitlements; 8 | CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES; 9 | SWIFT_OBJC_BRIDGING_HEADER = Realm/Tests/SwiftUISyncTestHostUITests/SwiftUISyncTestHostUITests-Bridging-Header.h 10 | TEST_HOST[sdk=appletv*] = ; 11 | TEST_HOST[sdk=iphone*] = ; 12 | -------------------------------------------------------------------------------- /Configuration/SwiftUITestHost.xcconfig: -------------------------------------------------------------------------------- 1 | #include "TestHost.xcconfig" 2 | 3 | INFOPLIST_FILE = Realm/Tests/SwiftUITestHost/Info.plist; 4 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 5 | PRODUCT_BUNDLE_IDENTIFIER = io.realm.SwiftUITestHost; 6 | SUPPORTED_PLATFORMS = iphonesimulator iphoneos; 7 | -------------------------------------------------------------------------------- /Configuration/SwiftUITests.xcconfig: -------------------------------------------------------------------------------- 1 | #include "SwiftUITestHost.xcconfig" 2 | 3 | SDKROOT = iphoneos; 4 | TEST_TARGET_NAME = SwiftUITestHost; 5 | TEST_HOST[sdk=appletv*] = ; 6 | TEST_HOST[sdk=iphone*] = ; 7 | -------------------------------------------------------------------------------- /Configuration/TestBase.xcconfig: -------------------------------------------------------------------------------- 1 | SUPPORTED_PLATFORMS = macosx iphonesimulator iphoneos appletvos appletvsimulator xros xrsimulator; 2 | SKIP_INSTALL = YES; 3 | PRODUCT_NAME = $(TARGET_NAME); 4 | PRODUCT_BUNDLE_IDENTIFIER = io.Realm.${PRODUCT_NAME:rfc1034identifier}; 5 | 6 | LD_RUNPATH_SEARCH_PATHS[sdk=iphone*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks; 7 | LD_RUNPATH_SEARCH_PATHS[sdk=appletv*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks; 8 | LD_RUNPATH_SEARCH_PATHS[sdk=xr*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks; 9 | LD_RUNPATH_SEARCH_PATHS[sdk=macosx*] = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks; 10 | 11 | TEST_HOST[sdk=iphone*] = $(BUILT_PRODUCTS_DIR)/TestHost.app/TestHost; 12 | TEST_HOST[sdk=appletv*] = $(BUILT_PRODUCTS_DIR)/TestHost.app/TestHost; 13 | TEST_HOST[sdk=xr*] = $(BUILT_PRODUCTS_DIR)/TestHost.app/TestHost; 14 | 15 | MACOSX_DEPLOYMENT_TARGET = 13.0; 16 | WATCHOS_DEPLOYMENT_TARGET = 7.0; 17 | TVOS_DEPLOYMENT_TARGET = 14.0; 18 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 19 | -------------------------------------------------------------------------------- /Configuration/TestHost.xcconfig: -------------------------------------------------------------------------------- 1 | #include "TestBase.xcconfig" 2 | 3 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 4 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 5 | CLANG_MODULES_AUTOLINK = NO; 6 | CODE_SIGN_IDENTITY = "-"; 7 | COPY_PHASE_STRIP = NO; 8 | INFOPLIST_FILE = Realm/Tests/TestHost/Info.plist; 9 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; 10 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks; 11 | PRODUCT_NAME = $(TARGET_NAME); 12 | 13 | REALM_UI_FRAMEWORK_ = Cocoa; 14 | REALM_UI_FRAMEWORK_uikit = UIKit; 15 | 16 | OTHER_LDFLAGS[sdk=iphone*] = -framework UIKit; 17 | OTHER_LDFLAGS[sdk=appletv*] = -framework UIKit; 18 | OTHER_LDFLAGS[sdk=xr*] = -framework UIKit; 19 | OTHER_LDFLAGS[sdk=macosx*] = -framework $(REALM_UI_FRAMEWORK_$(RESOURCES_UI_FRAMEWORK_FAMILY)); 20 | 21 | PRINCIPAL_CLASS[sdk=iphone*] = UIApplication; 22 | PRINCIPAL_CLASS[sdk=appletv*] = UIApplication; 23 | PRINCIPAL_CLASS[sdk=xr*] = UIApplication; 24 | PRINCIPAL_CLASS[sdk=macosx*] = NSApplication; 25 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem 'cocoapods' 4 | gem 'fileutils' 5 | gem 'jazzy' 6 | gem 'jwt' 7 | gem 'octokit' 8 | gem 'pathname' 9 | -------------------------------------------------------------------------------- /Realm.xcodeproj/Realm.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Realm.xcodeproj/xcshareddata/xcbaselines/5D660FD71BE98C7C0021E04F.xcbaseline/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | runDestinationsByUUID 6 | 7 | 6890B8D9-CE81-403E-8EF6-B95A367D65B5 8 | 9 | targetArchitecture 10 | armv7s 11 | targetDevice 12 | 13 | modelCode 14 | iPhone5,1 15 | platformIdentifier 16 | com.apple.platform.iphoneos 17 | 18 | 19 | B87A7896-8B70-4814-B20D-7CD723D62868 20 | 21 | targetArchitecture 22 | arm64 23 | targetDevice 24 | 25 | modelCode 26 | iPad4,4 27 | platformIdentifier 28 | com.apple.platform.iphoneos 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Realm/ObjectServerTests/Object-Server-Tests-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "RLMChildProcessEnvironment.h" 20 | #import "RLMSyncTestCase.h" 21 | #import "RLMUser+ObjectServerTests.h" 22 | #import "RLMWatchTestUtility.h" 23 | #import "TestUtils.h" 24 | -------------------------------------------------------------------------------- /Realm/ObjectServerTests/ObjectServerTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Realm/ObjectServerTests/certificates/localhost-other.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/Realm/ObjectServerTests/certificates/localhost-other.cer -------------------------------------------------------------------------------- /Realm/ObjectServerTests/certificates/localhost.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/Realm/ObjectServerTests/certificates/localhost.cer -------------------------------------------------------------------------------- /Realm/ObjectServerTests/certificates/not-localhost.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/Realm/ObjectServerTests/certificates/not-localhost.cer -------------------------------------------------------------------------------- /Realm/ObjectServerTests/config_overrides.json: -------------------------------------------------------------------------------- 1 | { 2 | "events": { 3 | "database": { 4 | "maxCoordinatorChangeStreams": "50000" 5 | }, 6 | "log_forwarder": { 7 | "enabled": false 8 | }, 9 | "mediator": { 10 | "eventSubscriptionPollingPeriodSeconds": 2, 11 | "unownedEventSubscriptionPollingPeriodSeconds": 1, 12 | "staleOwnedJobPollingPeriodSec": 1 13 | }, 14 | "streams": { 15 | "eventSubscriptionPollingPeriodSec": 2, 16 | "eventSubscriptionHeartbeatPeriodSec": 1 17 | }, 18 | "translator": { 19 | "maxCoordinatorTranslators": 1000 20 | } 21 | }, 22 | "graphql": { 23 | "enabled": false 24 | }, 25 | "metrics": { 26 | "enabled": false 27 | }, 28 | "secretsManager": { 29 | "enabled": false 30 | }, 31 | "sync": { 32 | "allowSyncSessionTestCommands": true 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Realm/ObjectServerTests/include/RLMSyncTestCase.h: -------------------------------------------------------------------------------- 1 | ../RLMSyncTestCase.h -------------------------------------------------------------------------------- /Realm/ObjectServerTests/include/RLMUser+ObjectServerTests.h: -------------------------------------------------------------------------------- 1 | ../RLMUser+ObjectServerTests.h -------------------------------------------------------------------------------- /Realm/PrivacyInfo.xcprivacy: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSPrivacyTrackingDomains 6 | 7 | NSPrivacyCollectedDataTypes 8 | 9 | NSPrivacyAccessedAPITypes 10 | 11 | 12 | NSPrivacyAccessedAPITypeReasons 13 | 14 | C617.1 15 | 16 | NSPrivacyAccessedAPIType 17 | NSPrivacyAccessedAPICategoryFileTimestamp 18 | 19 | 20 | NSPrivacyAccessedAPITypeReasons 21 | 22 | E174.1 23 | 24 | NSPrivacyAccessedAPIType 25 | NSPrivacyAccessedAPICategoryDiskSpace 26 | 27 | 28 | NSPrivacyTracking 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Realm/RLMCredentials_Private.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2020 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "RLMCredentials.h" 20 | 21 | #import 22 | 23 | @interface RLMCredentials() 24 | @property (nonatomic, direct) realm::app::AppCredentials& appCredentials; 25 | @end 26 | -------------------------------------------------------------------------------- /Realm/RLMDecimal128_Private.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2020 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | namespace realm { 22 | class Decimal128; 23 | } 24 | 25 | RLM_DIRECT_MEMBERS 26 | @interface RLMDecimal128 () 27 | - (instancetype)initWithDecimal128:(realm::Decimal128)value; 28 | - (realm::Decimal128)decimal128Value; 29 | @end 30 | -------------------------------------------------------------------------------- /Realm/RLMFindOneAndModifyOptions_Private.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2020 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import 22 | 23 | @interface RLMFindOneAndModifyOptions () 24 | - (realm::app::MongoCollection::FindOneAndModifyOptions)_findOneAndModifyOptions; 25 | @end 26 | -------------------------------------------------------------------------------- /Realm/RLMNetworkTransport_Private.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2020 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "RLMNetworkTransport.h" 20 | 21 | namespace realm::app { 22 | struct Request; 23 | } 24 | 25 | RLMRequest *RLMRequestFromRequest(realm::app::Request const& request); 26 | -------------------------------------------------------------------------------- /Realm/RLMObjectId_Private.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2020 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | namespace realm { 22 | class ObjectId; 23 | } 24 | 25 | RLM_DIRECT_MEMBERS 26 | @interface RLMObjectId () 27 | @property (nonatomic, readonly) realm::ObjectId value; 28 | - (instancetype)initWithValue:(realm::ObjectId)value; 29 | @end 30 | -------------------------------------------------------------------------------- /Realm/RLMPredicateUtil.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2015 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | 18 | #import 19 | #import 20 | 21 | using ExpressionVisitor = std::function; 22 | NSPredicate *transformPredicate(NSPredicate *, ExpressionVisitor); 23 | -------------------------------------------------------------------------------- /Realm/RLMPushClient_Private.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2020 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "RLMPushClient.h" 20 | 21 | namespace realm::app { 22 | class PushClient; 23 | } 24 | 25 | RLM_DIRECT_MEMBERS 26 | @interface RLMPushClient () 27 | - (instancetype)initWithPushClient:(realm::app::PushClient&&)pushClient; 28 | @end 29 | -------------------------------------------------------------------------------- /Realm/RLMUpdateChecker.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | // Asynchronously check for updates to Realm if running on a simulator 20 | void RLMCheckForUpdates(); 21 | -------------------------------------------------------------------------------- /Realm/RLMUserAPIKey_Private.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2020 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import 22 | 23 | @interface RLMUserAPIKey () 24 | - (realm::app::App::UserAPIKey)_apiKey; 25 | - (instancetype)initWithUserAPIKey:(realm::app::App::UserAPIKey)userAPIKey; 26 | @end 27 | -------------------------------------------------------------------------------- /Realm/Realm-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 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 | FMWK 19 | CFBundleShortVersionString 20 | 10.54.4 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 10.54.4 25 | NSHumanReadableCopyright 26 | Copyright © 2014-2021 Realm. All rights reserved. 27 | NSPrincipalClass 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Realm/TestUtils/RealmTestSupport.h: -------------------------------------------------------------------------------- 1 | // A dummy module header to let us import RealmTestSupport in non-swiftpm builds 2 | #import "RLMChildProcessEnvironment.h" 3 | -------------------------------------------------------------------------------- /Realm/Tests/RealmTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Realm/Tests/Swift/RLMSupport.swift: -------------------------------------------------------------------------------- 1 | ../../Swift/RLMSupport.swift -------------------------------------------------------------------------------- /Realm/Tests/Swift/RealmObjcSwiftTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Realm/Tests/Swift/Swift-Tests-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "RLMTestObjects.h" 20 | #import "RLMMultiProcessTestCase.h" 21 | #import "TestUtils.h" 22 | -------------------------------------------------------------------------------- /Realm/Tests/SwiftUISyncTestHost/SwiftUISyncTestHostApp.swift: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2021 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | import SwiftUI 20 | import RealmSwift 21 | 22 | @main 23 | struct App: SwiftUI.App { 24 | var body: some Scene { 25 | return WindowGroup { 26 | MainView() 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Realm/Tests/SwiftUISyncTestHostUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Realm/Tests/SwiftUISyncTestHostUITests/SwiftUISyncTestHostUITests-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2021 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "RLMSyncTestCase.h" 20 | #import "RLMChildProcessEnvironment.h" 21 | #import "RLMUser+ObjectServerTests.h" 22 | #import "RLMApp_Private.h" 23 | #import "TestUtils.h" 24 | -------------------------------------------------------------------------------- /Realm/Tests/SwiftUISyncTestHostUITests/SwiftUISyncTestHostUITests.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Realm/Tests/SwiftUITestHost/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Realm/Tests/SwiftUITestHostUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Realm/Tests/TestHost/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TestHost 4 | // 5 | // Created by Thomas Goyne on 8/6/14. 6 | // Copyright (c) 2014 Realm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #if TARGET_OS_WATCH 12 | 13 | // watchOS doesn't support testing at this time. 14 | int main(int argc, const char *argv[]) { 15 | } 16 | 17 | #elif TARGET_OS_IPHONE || TARGET_OS_TV || TARGET_OS_MACCATALYST 18 | 19 | #import 20 | 21 | @interface RLMAppDelegate : UIResponder 22 | @property (strong, nonatomic) UIWindow *window; 23 | @end 24 | 25 | @implementation RLMAppDelegate 26 | @end 27 | 28 | int main(int argc, char *argv[]) { 29 | @autoreleasepool { 30 | return UIApplicationMain(argc, argv, NSStringFromClass([UIApplication class]), NSStringFromClass([RLMAppDelegate class])); 31 | } 32 | } 33 | 34 | #else 35 | 36 | #import 37 | 38 | int main(int argc, const char *argv[]) { 39 | @autoreleasepool { 40 | return NSApplicationMain(argc, argv); 41 | } 42 | } 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /Realm/Tests/file-format-version-10.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/Realm/Tests/file-format-version-10.realm -------------------------------------------------------------------------------- /Realm/Tests/file-format-version-21.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/Realm/Tests/file-format-version-21.realm -------------------------------------------------------------------------------- /Realm/Tests/fileformat-pre-null.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/Realm/Tests/fileformat-pre-null.realm -------------------------------------------------------------------------------- /RealmSwift/PrivacyInfo.xcprivacy: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSPrivacyTrackingDomains 6 | 7 | NSPrivacyCollectedDataTypes 8 | 9 | NSPrivacyAccessedAPITypes 10 | 11 | 12 | NSPrivacyAccessedAPITypeReasons 13 | 14 | C617.1 15 | 16 | NSPrivacyAccessedAPIType 17 | NSPrivacyAccessedAPICategoryFileTimestamp 18 | 19 | 20 | NSPrivacyAccessedAPITypeReasons 21 | 22 | E174.1 23 | 24 | NSPrivacyAccessedAPIType 25 | NSPrivacyAccessedAPICategoryDiskSpace 26 | 27 | 28 | NSPrivacyTracking 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /RealmSwift/RealmSwift-Info.plist: -------------------------------------------------------------------------------- 1 | ../Realm/Realm-Info.plist -------------------------------------------------------------------------------- /RealmSwift/Tests/RealmSwiftTests-BridgingHeader.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2015 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "TestUtils.h" 20 | #import "RLMAssertions.h" 21 | #import "RLMTestCase.h" 22 | -------------------------------------------------------------------------------- /RealmSwift/Tests/RealmSwiftTests-Info.plist: -------------------------------------------------------------------------------- 1 | ../../Realm/Tests/RealmTests-Info.plist -------------------------------------------------------------------------------- /contrib/SignXCFramework.md: -------------------------------------------------------------------------------- 1 | ## Signing the XCFramework 2 | 3 | By Apple's requirements, we should sign our release 4 | binaries so Xcode can validate it was signed by the same developer on every new version. 5 | 6 | Follow these steps to update the signing certificate in case of change or after the current used certificate has been revoke. 7 | 8 | 1. Create an Apple Distribution or Apple Development certificate from XCode's Settings/Accounts menu or from Apple's developer portal. 9 | 2. Export the given certificate with a distintic password, edit github's secret variable `P12_PASSWORD` with the new password. https://help.apple.com/xcode/mac/current/#/dev154b28f09 10 | 3. Generate a Base64 string from the exported certificate using 11 | ``` 12 | base64 -i BUILD_CERTIFICATE.p12 | pbcopy 13 | ``` 14 | 4. Edit github's secret variable `DEVELOPMENT_CERTIFICATE_BASE64` with the copied value. 15 | 5. Edit the current github's secret variable `SIGNING_IDENTITY` to the new identity associated to the exported certificate. 16 | 17 | -------------------------------------------------------------------------------- /dependencies.list: -------------------------------------------------------------------------------- 1 | VERSION=10.54.4 2 | REALM_CORE_VERSION=v14.14.0 3 | STITCH_VERSION=c794ec6e2b751ef0cb5ab35256b07f5fa0c74c3a 4 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | # Documentation 2 | 3 | ## Realm Swift 4 | 5 | The documentation can be found at [https://www.mongodb.com/docs/atlas/device-sdks/sdk/swift/](https://www.mongodb.com/docs/atlas/device-sdks/sdk/swift/). 6 | The API reference is located at [www.mongodb.com/docs/realm-sdks/swift/latest/](https://www.mongodb.com/docs/realm-sdks/swift/latest/). 7 | 8 | ## Realm Objective-C 9 | 10 | The documentation can be found at [https://www.mongodb.com/docs/atlas/device-sdks/sdk/swift/](https://www.mongodb.com/docs/atlas/device-sdks/sdk/swift/). 11 | The API reference is located at [www.mongodb.com/docs/realm-sdks/objc/latest](https://www.mongodb.com/docs/realm-sdks/objc/latest/). 12 | 13 | ## Generating Docs 14 | 15 | You can generate the API docs locally by running `sh build.sh docs` from the root of this repository. 16 | This requires installation of [jazzy](https://github.com/realm/jazzy/). 17 | You will find the output in `docs/swift_output/` and `docs/objc_output/`. 18 | -------------------------------------------------------------------------------- /examples/installation/.gitignore: -------------------------------------------------------------------------------- 1 | Podfile.lock 2 | Pods/ 3 | realm-objc-latest 4 | realm-swift-latest 5 | CocoaPodsExample.xcworkspace 6 | CocoaPodsDynamicExample.xcworkspace 7 | Cartfile.resolved 8 | SwiftPackageManager.xcodeproj 9 | SwiftPackageManagerDynamic.xcodeproj 10 | -------------------------------------------------------------------------------- /examples/installation/CocoaPods.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/installation/CocoaPods.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/installation/Podfile: -------------------------------------------------------------------------------- 1 | project 'CocoaPods.xcodeproj' 2 | use_modular_headers! 3 | 4 | os = (ENV['REALM_PLATFORM'] || :ios).to_sym 5 | if os == :catalyst 6 | os = :ios 7 | end 8 | version = case os 9 | when :osx then 10.15 10 | when :ios, :tvos then 12.0 11 | when :watchos then 5.0 12 | end 13 | target 'App' do 14 | platform os, version 15 | use_frameworks! unless ENV['REALM_BUILD_STATIC'] 16 | 17 | if ENV['REALM_TEST_RELEASE'] 18 | pod 'RealmSwift', ENV['REALM_TEST_RELEASE'] 19 | elsif ENV['REALM_TEST_BRANCH'] 20 | pod 'Realm', git: 'https://github.com/realm/realm-swift', branch: ENV['REALM_TEST_BRANCH'] 21 | pod 'RealmSwift', git: 'https://github.com/realm/realm-swift', branch: ENV['REALM_TEST_BRANCH'] 22 | else 23 | pod 'RealmSwift' 24 | end 25 | 26 | pod 'SubRealm', path: 'SubRealm' 27 | end 28 | -------------------------------------------------------------------------------- /examples/installation/Source/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /examples/installation/Source/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/installation/Source/ObjCImport.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2023 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface ObjcModel : RLMObject 22 | @property (nonatomic) int value; 23 | @end 24 | 25 | @implementation ObjcModel 26 | @end 27 | -------------------------------------------------------------------------------- /examples/installation/Source/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/installation/Source/SwiftExample.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/installation/Static/StaticExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /examples/installation/SubRealm/SubRealm.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "SubRealm" 3 | s.version = "1.0.0" 4 | s.summary = "Test Realm as a transitive dependency" 5 | s.homepage = "https://realm.io" 6 | s.author = { 'Realm' => 'realm-help@mongodb.com' } 7 | s.license = { type: 'Apache 2.0', file: '../../../LICENSE' } 8 | s.source = { git: 'https://github.com/realm/realm-swift.git', tag: "v#{s.version}" } 9 | s.swift_version = '5' 10 | s.ios.deployment_target = '12.0' 11 | s.osx.deployment_target = '10.15' 12 | s.watchos.deployment_target = '5.0' 13 | s.tvos.deployment_target = '12.0' 14 | s.visionos.deployment_target = '1.0' 15 | s.source_files = "*.swift" 16 | s.dependency 'RealmSwift' 17 | end 18 | -------------------------------------------------------------------------------- /examples/ios/objc/.gitignore: -------------------------------------------------------------------------------- 1 | Pods/ 2 | -------------------------------------------------------------------------------- /examples/ios/objc/Backlink/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/Backlink/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import "AppDelegate.h" 22 | 23 | int main(int argc, char * argv[]) 24 | { 25 | @autoreleasepool { 26 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Draw.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | keychain-access-groups 6 | 7 | $(AppIdentifierPrefix)io.realm.Draw 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-60@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-60@3x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-76.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-76@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/AppIcon.appiconset/RealmDraw-83.5@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Charcoal.imageset/Charcoal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Charcoal.imageset/Charcoal.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Charcoal.imageset/Charcoal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Charcoal.imageset/Charcoal@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Charcoal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Charcoal.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Charcoal@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Dove.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Dove.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Dove@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Dove.imageset/Dove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Dove.imageset/Dove.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Dove.imageset/Dove@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Dove.imageset/Dove@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Elephant.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Elephant.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Elephant@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Elephant.imageset/Elephant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Elephant.imageset/Elephant.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Elephant.imageset/Elephant@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Elephant.imageset/Elephant@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Flamingo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Flamingo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Flamingo@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Flamingo.imageset/Flamingo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Flamingo.imageset/Flamingo.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Flamingo.imageset/Flamingo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Flamingo.imageset/Flamingo@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/GrapeJelly.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "GrapeJelly.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "GrapeJelly@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/GrapeJelly.imageset/GrapeJelly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/GrapeJelly.imageset/GrapeJelly.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/GrapeJelly.imageset/GrapeJelly@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/GrapeJelly.imageset/GrapeJelly@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Indigo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Indigo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Indigo@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Indigo.imageset/Indigo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Indigo.imageset/Indigo.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Indigo.imageset/Indigo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Indigo.imageset/Indigo@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Melon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Melon.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Melon@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Melon.imageset/Melon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Melon.imageset/Melon.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Melon.imageset/Melon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Melon.imageset/Melon@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Mulberry.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Mulberry.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Mulberry@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Mulberry.imageset/Mulberry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Mulberry.imageset/Mulberry.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Mulberry.imageset/Mulberry@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Mulberry.imageset/Mulberry@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Peach.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Peach.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Peach@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Peach.imageset/Peach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Peach.imageset/Peach.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Peach.imageset/Peach@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Peach.imageset/Peach@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/SexySalmon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "SexySalmon.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "SexySalmon@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/SexySalmon.imageset/SexySalmon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/SexySalmon.imageset/SexySalmon.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/SexySalmon.imageset/SexySalmon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/SexySalmon.imageset/SexySalmon@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Ultramarine.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Ultramarine.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Ultramarine@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Ultramarine.imageset/Ultramarine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Ultramarine.imageset/Ultramarine.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Images.xcassets/Pencils/Ultramarine.imageset/Ultramarine@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Draw/Images.xcassets/Pencils/Ultramarine.imageset/Ultramarine@2x.png -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Models/DrawPoint.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | #import 21 | 22 | @interface DrawPoint : RLMObject 23 | 24 | @property double x; 25 | @property double y; 26 | 27 | @property (readonly) CGPoint cgPoint; 28 | 29 | @end 30 | 31 | RLM_COLLECTION_TYPE(DrawPoint) 32 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Models/DrawPoint.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "DrawPoint.h" 20 | 21 | @implementation DrawPoint 22 | 23 | - (CGPoint)cgPoint { 24 | return CGPointMake(self.x, self.y); 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Models/UIColor+Realm.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | #import 21 | 22 | @interface UIColor (Realm) 23 | + (NSDictionary *)realmColors; 24 | @end 25 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Views/CanvasView.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | #import 21 | 22 | @class DrawPath; 23 | 24 | @interface CanvasView : UIView 25 | 26 | @property (nonatomic, strong) RLMResults *paths; 27 | 28 | - (void)clearCanvas; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Views/DrawView.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface DrawView : UIView 22 | @end 23 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/Views/SwatchesView.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | #import "UIColor+Realm.h" 21 | 22 | @interface SwatchesView : UIScrollView 23 | 24 | @property (nonatomic, strong) NSString *selectedColor; 25 | @property (nonatomic, copy) void (^swatchColorChangedHandler)(void); 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /examples/ios/objc/Draw/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2016 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import "AppDelegate.h" 22 | 23 | int main(int argc, char * argv[]) 24 | { 25 | @autoreleasepool { 26 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/objc/Encryption/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/Encryption/LabelViewController.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface LabelViewController : UIViewController 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/ios/objc/Encryption/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import "AppDelegate.h" 22 | 23 | int main(int argc, char * argv[]) 24 | { 25 | @autoreleasepool { 26 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/objc/Extension/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2015 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | 26 | @end 27 | 28 | -------------------------------------------------------------------------------- /examples/ios/objc/Extension/Extension.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.application-groups 6 | 7 | group.io.realm.examples.extension 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ios/objc/Extension/Tick.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2015 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface Tick : RLMObject 22 | 23 | @property (nonatomic, strong) NSString *tickID; 24 | 25 | @property (nonatomic, assign) NSInteger count; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /examples/ios/objc/Extension/Tick.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2015 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "Tick.h" 20 | 21 | @implementation Tick 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/ios/objc/Extension/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import "AppDelegate.h" 22 | 23 | int main(int argc, char * argv[]) 24 | { 25 | @autoreleasepool { 26 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/objc/GroupedTableView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/GroupedTableView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /examples/ios/objc/GroupedTableView/TableViewController.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface TableViewController : UITableViewController 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/ios/objc/GroupedTableView/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import "AppDelegate.h" 22 | 23 | int main(int argc, char * argv[]) 24 | { 25 | @autoreleasepool { 26 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/objc/Migration/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2021 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/Migration/RealmTemplates/default-v0.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Migration/RealmTemplates/default-v0.realm -------------------------------------------------------------------------------- /examples/ios/objc/Migration/RealmTemplates/default-v1.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Migration/RealmTemplates/default-v1.realm -------------------------------------------------------------------------------- /examples/ios/objc/Migration/RealmTemplates/default-v2.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Migration/RealmTemplates/default-v2.realm -------------------------------------------------------------------------------- /examples/ios/objc/Migration/RealmTemplates/default-v3.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Migration/RealmTemplates/default-v3.realm -------------------------------------------------------------------------------- /examples/ios/objc/Migration/RealmTemplates/default-v4.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Migration/RealmTemplates/default-v4.realm -------------------------------------------------------------------------------- /examples/ios/objc/Migration/RealmTemplates/default-v5.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/objc/Migration/RealmTemplates/default-v5.realm -------------------------------------------------------------------------------- /examples/ios/objc/Migration/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2021 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | #import "AppDelegate.h" 21 | 22 | int main(int argc, char * argv[]) 23 | { 24 | @autoreleasepool { 25 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /examples/ios/objc/REST/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/REST/Venue.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | #import 21 | 22 | @interface Venue : RLMObject 23 | @property NSString * foursquareID; 24 | @property NSString * name; 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/REST/Venue.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "Venue.h" 20 | 21 | @implementation Venue 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/ios/objc/REST/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "AppDelegate.h" 20 | 21 | int main(int argc, char * argv[]) 22 | { 23 | @autoreleasepool { 24 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/ios/objc/RealmExamples.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/ios/objc/RealmExamples.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/ios/objc/RealmExamples.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/ios/objc/Simple/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/Simple/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import "AppDelegate.h" 22 | 23 | int main(int argc, char * argv[]) 24 | { 25 | @autoreleasepool { 26 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/objc/TableView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/ios/objc/TableView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /examples/ios/objc/TableView/TableViewController.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface TableViewController : UITableViewController 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/ios/objc/TableView/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | #import "AppDelegate.h" 22 | 23 | int main(int argc, char * argv[]) 24 | { 25 | @autoreleasepool { 26 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/objc/TodayExtension/TodayExtension.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.application-groups 6 | 7 | group.io.realm.examples.extension 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ios/objc/TodayExtension/TodayViewController.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2015 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface TodayViewController : UIViewController 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/ios/swift/.gitignore: -------------------------------------------------------------------------------- 1 | Pods/ 2 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClip/AppClip.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.associated-domains 6 | 7 | webcredentials:example.com 8 | appclips:example.com 9 | 10 | com.apple.developer.parent-application-identifiers 11 | 12 | $(AppIdentifierPrefix)io.realm.AppClip.AppClipParent 13 | 14 | com.apple.security.application-groups 15 | 16 | group.TEAM_ID.com.domain.APP_GROUP 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClip/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClip/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClip/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClip/appclip_ex.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/swift/AppClip/appclip_ex.gif -------------------------------------------------------------------------------- /examples/ios/swift/AppClipParent/AppClipParent.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.associated-domains 6 | 7 | appclips:example.com 8 | webcredentials:example.com 9 | 10 | com.apple.security.application-groups 11 | 12 | group.TEAM_ID.com.domain.APP_GROUP 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClipParent/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClipParent/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClipParent/Constants.swift: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2020 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | struct Constants { 20 | static let groupId = "group.TEAM_ID.com.domain.APP_GROUP" 21 | } 22 | -------------------------------------------------------------------------------- /examples/ios/swift/AppClipParent/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/AppleAuthentication/AppleAuthentication.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.applesignin 6 | 7 | Default 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ios/swift/AppleAuthentication/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/AppleAuthentication/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/AppleAuthentication/README.md: -------------------------------------------------------------------------------- 1 | # How to enable Apple Authentication via Atlas App Services 2 | 3 | * You first need to setup your app in Atlas App Services. Follow these instructions to get started: https://www.mongodb.com/docs/atlas/app-services/authentication/apple/ 4 | * Once that is done add Apple Sign In to your app's entitlements 5 | * Make sure your bundle ID matches the client id you used in Atlas App Services app. 6 | * Follow the code sample to understand the flow of the authentication cycle. 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/ios/swift/AsyncOpenSwiftUI/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /examples/ios/swift/AsyncOpenSwiftUI/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/AsyncOpenSwiftUI/AsyncOpenSwiftUI--iOS--Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LSRequiresIPhoneOS 6 | 7 | UIApplicationSceneManifest 8 | 9 | UIApplicationSupportsMultipleScenes 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/ios/swift/AsyncOpenSwiftUI/AsyncOpenSwiftUI--macOS--Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LSApplicationCategoryType 6 | public.app-category.developer-tools 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/ios/swift/AsyncOpenSwiftUI/AsyncOpenSwiftUIApp.swift: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2021 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | import SwiftUI 20 | 21 | @main 22 | struct AsyncOpenSwiftUIApp: App { 23 | var body: some Scene { 24 | WindowGroup { 25 | ContentView() 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/swift/Backlink/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UIRequiresFullScreen 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /examples/ios/swift/Encryption/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UIRequiresFullScreen 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /examples/ios/swift/GettingStarted.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /examples/ios/swift/ListSwiftUI/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/ios/swift/ListSwiftUI/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/ios/swift/ListSwiftUI/Views/App.swift: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2021 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | import Foundation 20 | import SwiftUI 21 | 22 | @main 23 | struct App: SwiftUI.App { 24 | var view: some View { 25 | ContentView() 26 | } 27 | 28 | var body: some Scene { 29 | WindowGroup { 30 | view 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /examples/ios/swift/Migration/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UIRequiresFullScreen 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /examples/ios/swift/Migration/RealmTemplates/default-v0.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/swift/Migration/RealmTemplates/default-v0.realm -------------------------------------------------------------------------------- /examples/ios/swift/Migration/RealmTemplates/default-v1.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/swift/Migration/RealmTemplates/default-v1.realm -------------------------------------------------------------------------------- /examples/ios/swift/Migration/RealmTemplates/default-v2.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/swift/Migration/RealmTemplates/default-v2.realm -------------------------------------------------------------------------------- /examples/ios/swift/Migration/RealmTemplates/default-v3.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/swift/Migration/RealmTemplates/default-v3.realm -------------------------------------------------------------------------------- /examples/ios/swift/Migration/RealmTemplates/default-v4.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/swift/Migration/RealmTemplates/default-v4.realm -------------------------------------------------------------------------------- /examples/ios/swift/Migration/RealmTemplates/default-v5.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/ios/swift/Migration/RealmTemplates/default-v5.realm -------------------------------------------------------------------------------- /examples/ios/swift/PlaygroundFrameworkWrapper/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /examples/ios/swift/PlaygroundFrameworkWrapper/PlaygroundFrameworkWrapper.swift: -------------------------------------------------------------------------------- 1 | // The PlaygroundFrameworkWrapper framework enables 2 | // a binary release of RealmSwift.framework to be used 3 | // in Xcode Playgrounds. 4 | -------------------------------------------------------------------------------- /examples/ios/swift/Projections/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /examples/ios/swift/Projections/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/Projections/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIApplicationSceneManifest 6 | 7 | UIApplicationSupportsMultipleScenes 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/ios/swift/Projections/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /examples/ios/swift/Projections/ProjectionsApp.swift: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2021 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | import SwiftUI 20 | 21 | @main 22 | struct ProjectionsApp: App { 23 | var body: some Scene { 24 | WindowGroup { 25 | ContentView() 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/ios/swift/RealmExamples.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ios/swift/RealmExamples.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/ios/swift/RealmExamples.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/ios/swift/Simple/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UIRequiresFullScreen 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /examples/ios/swift/TableView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UIRequiresFullScreen 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /examples/osx/objc/JSONImport/persons.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "John Coltrane", 4 | "birthdate": "September 23, 1926", 5 | "friendCount": 123456 6 | }, 7 | { 8 | "name": "Miles Davis", 9 | "birthdate": "May 26, 1926", 10 | "friendCount": 234567 11 | }, 12 | { 13 | "name": "Duke Ellington", 14 | "birthdate": "April 29, 1899", 15 | "friendCount": 345678 16 | } 17 | ] 18 | -------------------------------------------------------------------------------- /examples/osx/objc/RealmExamples.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/osx/objc/RealmExamples.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/AppDelegate.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "AppDelegate.h" 20 | 21 | @interface AppDelegate () 22 | 23 | @end 24 | 25 | @implementation AppDelegate 26 | 27 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 28 | return YES; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "assets" : [ 3 | { 4 | "size" : "1280x768", 5 | "idiom" : "tv", 6 | "filename" : "App Icon - Large.imagestack", 7 | "role" : "primary-app-icon" 8 | }, 9 | { 10 | "size" : "400x240", 11 | "idiom" : "tv", 12 | "filename" : "App Icon - Small.imagestack", 13 | "role" : "primary-app-icon" 14 | }, 15 | { 16 | "size" : "1920x720", 17 | "idiom" : "tv", 18 | "filename" : "Top Shelf Image.imageset", 19 | "role" : "top-shelf-image" 20 | } 21 | ], 22 | "info" : { 23 | "version" : 1, 24 | "author" : "xcode" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "landscape", 5 | "idiom" : "tv", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "9.0", 8 | "scale" : "1x" 9 | } 10 | ], 11 | "info" : { 12 | "version" : 1, 13 | "author" : "xcode" 14 | } 15 | } -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | arm64 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/RepositoriesViewController.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface RepositoriesViewController : UICollectionViewController 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Repository.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface Repository : RLMObject 22 | 23 | @property NSString *identifier; 24 | @property NSString *name; 25 | @property NSString *avatarURL; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/Repository.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "Repository.h" 20 | 21 | @implementation Repository 22 | 23 | + (NSString *)primaryKey { 24 | return @"identifier"; 25 | } 26 | 27 | + (NSArray *)requiredProperties { 28 | return @[@"identifier"]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/RepositoryCell.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface RepositoryCell : UICollectionViewCell 22 | 23 | @property (nonatomic, weak) IBOutlet UIImageView *avatarImageView; 24 | @property (nonatomic, weak) IBOutlet UILabel *titleLabel; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/RepositoryCell.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "RepositoryCell.h" 20 | 21 | @implementation RepositoryCell 22 | 23 | - (void)prepareForReuse { 24 | self.avatarImageView.image = nil; 25 | self.titleLabel.text = nil; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /examples/tvos/objc/DownloadCache/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | #import "AppDelegate.h" 21 | 22 | int main(int argc, char * argv[]) { 23 | @autoreleasepool { 24 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/AppDelegate.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow *window; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/AppDelegate.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "AppDelegate.h" 20 | 21 | @interface AppDelegate () 22 | 23 | @end 24 | 25 | @implementation AppDelegate 26 | 27 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 28 | return YES; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "assets" : [ 3 | { 4 | "size" : "1280x768", 5 | "idiom" : "tv", 6 | "filename" : "App Icon - Large.imagestack", 7 | "role" : "primary-app-icon" 8 | }, 9 | { 10 | "size" : "400x240", 11 | "idiom" : "tv", 12 | "filename" : "App Icon - Small.imagestack", 13 | "role" : "primary-app-icon" 14 | }, 15 | { 16 | "size" : "1920x720", 17 | "idiom" : "tv", 18 | "filename" : "Top Shelf Image.imageset", 19 | "role" : "top-shelf-image" 20 | } 21 | ], 22 | "info" : { 23 | "version" : 1, 24 | "author" : "xcode" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "landscape", 5 | "idiom" : "tv", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "9.0", 8 | "scale" : "1x" 9 | } 10 | ], 11 | "info" : { 12 | "version" : 1, 13 | "author" : "xcode" 14 | } 15 | } -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | arm64 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Place.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import "Place.h" 20 | 21 | @implementation Place 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/PlacesViewController.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface PlacesViewController : UITableViewController 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/Seed Data/Places.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/tvos/objc/PreloadedData/Seed Data/Places.realm -------------------------------------------------------------------------------- /examples/tvos/objc/PreloadedData/main.m: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | #import "AppDelegate.h" 21 | 22 | int main(int argc, char * argv[]) { 23 | @autoreleasepool { 24 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/tvos/objc/RealmExamples.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/tvos/objc/RealmExamples.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "assets" : [ 3 | { 4 | "size" : "1280x768", 5 | "idiom" : "tv", 6 | "filename" : "App Icon - Large.imagestack", 7 | "role" : "primary-app-icon" 8 | }, 9 | { 10 | "size" : "400x240", 11 | "idiom" : "tv", 12 | "filename" : "App Icon - Small.imagestack", 13 | "role" : "primary-app-icon" 14 | }, 15 | { 16 | "size" : "1920x720", 17 | "idiom" : "tv", 18 | "filename" : "Top Shelf Image.imageset", 19 | "role" : "top-shelf-image" 20 | } 21 | ], 22 | "info" : { 23 | "version" : 1, 24 | "author" : "xcode" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "landscape", 5 | "idiom" : "tv", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "9.0", 8 | "scale" : "1x" 9 | } 10 | ], 11 | "info" : { 12 | "version" : 1, 13 | "author" : "xcode" 14 | } 15 | } -------------------------------------------------------------------------------- /examples/tvos/swift/DownloadCache/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | arm64 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "layers" : [ 3 | { 4 | "filename" : "Front.imagestacklayer" 5 | }, 6 | { 7 | "filename" : "Middle.imagestacklayer" 8 | }, 9 | { 10 | "filename" : "Back.imagestacklayer" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "assets" : [ 3 | { 4 | "size" : "1280x768", 5 | "idiom" : "tv", 6 | "filename" : "App Icon - Large.imagestack", 7 | "role" : "primary-app-icon" 8 | }, 9 | { 10 | "size" : "400x240", 11 | "idiom" : "tv", 12 | "filename" : "App Icon - Small.imagestack", 13 | "role" : "primary-app-icon" 14 | }, 15 | { 16 | "size" : "1920x720", 17 | "idiom" : "tv", 18 | "filename" : "Top Shelf Image.imageset", 19 | "role" : "top-shelf-image" 20 | } 21 | ], 22 | "info" : { 23 | "version" : 1, 24 | "author" : "xcode" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "tv", 5 | "scale" : "1x" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "landscape", 5 | "idiom" : "tv", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "9.0", 8 | "scale" : "1x" 9 | } 10 | ], 11 | "info" : { 12 | "version" : 1, 13 | "author" : "xcode" 14 | } 15 | } -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | arm64 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/tvos/swift/PreloadedData/Seed Data/Places.realm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/examples/tvos/swift/PreloadedData/Seed Data/Places.realm -------------------------------------------------------------------------------- /examples/tvos/swift/RealmExamples.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/tvos/swift/RealmExamples.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /include/Realm/NSError+RLMSync.h: -------------------------------------------------------------------------------- 1 | ../../Realm/NSError+RLMSync.h -------------------------------------------------------------------------------- /include/Realm/RLMAPIKeyAuth.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMAPIKeyAuth.h -------------------------------------------------------------------------------- /include/Realm/RLMAccessor.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMAccessor.h -------------------------------------------------------------------------------- /include/Realm/RLMApp.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMApp.h -------------------------------------------------------------------------------- /include/Realm/RLMApp_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMApp_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMArray.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMArray.h -------------------------------------------------------------------------------- /include/Realm/RLMArray_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMArray_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMAsymmetricObject.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMAsymmetricObject.h -------------------------------------------------------------------------------- /include/Realm/RLMAsyncTask.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMAsyncTask.h -------------------------------------------------------------------------------- /include/Realm/RLMAsyncTask_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMAsyncTask_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMBSON.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMBSON.h -------------------------------------------------------------------------------- /include/Realm/RLMCollection.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMCollection.h -------------------------------------------------------------------------------- /include/Realm/RLMCollection_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMCollection_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMConstants.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMConstants.h -------------------------------------------------------------------------------- /include/Realm/RLMCredentials.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMCredentials.h -------------------------------------------------------------------------------- /include/Realm/RLMDecimal128.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMDecimal128.h -------------------------------------------------------------------------------- /include/Realm/RLMDictionary.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMDictionary.h -------------------------------------------------------------------------------- /include/Realm/RLMDictionary_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMDictionary_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMEmailPasswordAuth.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMEmailPasswordAuth.h -------------------------------------------------------------------------------- /include/Realm/RLMEmbeddedObject.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMEmbeddedObject.h -------------------------------------------------------------------------------- /include/Realm/RLMError.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMError.h -------------------------------------------------------------------------------- /include/Realm/RLMEvent.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMEvent.h -------------------------------------------------------------------------------- /include/Realm/RLMFindOneAndModifyOptions.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMFindOneAndModifyOptions.h -------------------------------------------------------------------------------- /include/Realm/RLMFindOptions.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMFindOptions.h -------------------------------------------------------------------------------- /include/Realm/RLMGeospatial.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMGeospatial.h -------------------------------------------------------------------------------- /include/Realm/RLMInitialSubscriptionsConfiguration.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMInitialSubscriptionsConfiguration.h -------------------------------------------------------------------------------- /include/Realm/RLMLogger.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMLogger.h -------------------------------------------------------------------------------- /include/Realm/RLMLogger_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMLogger_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMMigration.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMMigration.h -------------------------------------------------------------------------------- /include/Realm/RLMMongoClient.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMMongoClient.h -------------------------------------------------------------------------------- /include/Realm/RLMMongoCollection.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMMongoCollection.h -------------------------------------------------------------------------------- /include/Realm/RLMMongoCollection_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMMongoCollection_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMMongoDatabase.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMMongoDatabase.h -------------------------------------------------------------------------------- /include/Realm/RLMNetworkTransport.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMNetworkTransport.h -------------------------------------------------------------------------------- /include/Realm/RLMObject.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObject.h -------------------------------------------------------------------------------- /include/Realm/RLMObjectBase.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObjectBase.h -------------------------------------------------------------------------------- /include/Realm/RLMObjectBase_Dynamic.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObjectBase_Dynamic.h -------------------------------------------------------------------------------- /include/Realm/RLMObjectBase_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObjectBase_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMObjectId.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObjectId.h -------------------------------------------------------------------------------- /include/Realm/RLMObjectSchema.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObjectSchema.h -------------------------------------------------------------------------------- /include/Realm/RLMObjectSchema_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObjectSchema_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMObjectStore.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObjectStore.h -------------------------------------------------------------------------------- /include/Realm/RLMObject_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMObject_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMProperty.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMProperty.h -------------------------------------------------------------------------------- /include/Realm/RLMProperty_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMProperty_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMProviderClient.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMProviderClient.h -------------------------------------------------------------------------------- /include/Realm/RLMPushClient.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMPushClient.h -------------------------------------------------------------------------------- /include/Realm/RLMRealm+Sync.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMRealm+Sync.h -------------------------------------------------------------------------------- /include/Realm/RLMRealm.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMRealm.h -------------------------------------------------------------------------------- /include/Realm/RLMRealmConfiguration.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMRealmConfiguration.h -------------------------------------------------------------------------------- /include/Realm/RLMRealmConfiguration_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMRealmConfiguration_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMRealm_Dynamic.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMRealm_Dynamic.h -------------------------------------------------------------------------------- /include/Realm/RLMRealm_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMRealm_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMResults.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMResults.h -------------------------------------------------------------------------------- /include/Realm/RLMResults_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMResults_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMScheduler.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMScheduler.h -------------------------------------------------------------------------------- /include/Realm/RLMSchema.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSchema.h -------------------------------------------------------------------------------- /include/Realm/RLMSchema_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSchema_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMSectionedResults.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSectionedResults.h -------------------------------------------------------------------------------- /include/Realm/RLMSet.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSet.h -------------------------------------------------------------------------------- /include/Realm/RLMSet_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSet_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMSwiftCollectionBase.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSwiftCollectionBase.h -------------------------------------------------------------------------------- /include/Realm/RLMSwiftObject.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSwiftObject.h -------------------------------------------------------------------------------- /include/Realm/RLMSwiftProperty.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSwiftProperty.h -------------------------------------------------------------------------------- /include/Realm/RLMSwiftValueStorage.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSwiftValueStorage.h -------------------------------------------------------------------------------- /include/Realm/RLMSyncConfiguration.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSyncConfiguration.h -------------------------------------------------------------------------------- /include/Realm/RLMSyncConfiguration_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSyncConfiguration_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMSyncManager.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSyncManager.h -------------------------------------------------------------------------------- /include/Realm/RLMSyncSession.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSyncSession.h -------------------------------------------------------------------------------- /include/Realm/RLMSyncSubscription.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSyncSubscription.h -------------------------------------------------------------------------------- /include/Realm/RLMSyncSubscription_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMSyncSubscription_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMThreadSafeReference.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMThreadSafeReference.h -------------------------------------------------------------------------------- /include/Realm/RLMUpdateResult.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMUpdateResult.h -------------------------------------------------------------------------------- /include/Realm/RLMUser.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMUser.h -------------------------------------------------------------------------------- /include/Realm/RLMUserAPIKey.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMUserAPIKey.h -------------------------------------------------------------------------------- /include/Realm/RLMUser_Private.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMUser_Private.h -------------------------------------------------------------------------------- /include/Realm/RLMValue.h: -------------------------------------------------------------------------------- 1 | ../../Realm/RLMValue.h -------------------------------------------------------------------------------- /include/Realm/Realm.h: -------------------------------------------------------------------------------- 1 | ../../Realm/Realm.h -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/logo.png -------------------------------------------------------------------------------- /media/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/media/favicon.ico -------------------------------------------------------------------------------- /plugin/README.md: -------------------------------------------------------------------------------- 1 | # Realm Plugin 2 | 3 | The Realm Plugin for Xcode adds several useful features for developing with Realm: 4 | 5 | 1. A LLDB script which adds support for inspecting the property values of 6 | persisted RLMObjects in the debugger pane. 7 | 2. File templates for RLMObject subclasses. 8 | 3. A menu item in Xcode's 'File' menu to quickly launch the Realm Browser. 9 | Note that this item will only appear in Xcode 7 and in unsigned versions of 10 | Xcode 8 or later (not recommended). 11 | 12 | To install the Realm Plugin, open `RealmPlugin.xcodeproj` and Build. This will 13 | prompt for your password. After building the plugin, restart Xcode. 14 | -------------------------------------------------------------------------------- /plugin/RealmPlugin/RLMPRealmPlugin.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface RLMPRealmPlugin : NSObject 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /plugin/RealmPlugin/RealmPlugin-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #ifdef __OBJC__ 8 | #import 9 | #endif 10 | -------------------------------------------------------------------------------- /plugin/RealmPlugin/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /plugin/Templates/file_templates/Realm Model Object.xctemplate/Objective-C/___FILEBASENAME___.h: -------------------------------------------------------------------------------- 1 | // 2 | // ___FILENAME___ 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | //___COPYRIGHT___ 7 | // 8 | 9 | #import 10 | 11 | @interface ___FILEBASENAMEASIDENTIFIER___ : RLMObject 12 | <# Add properties here to define the model #> 13 | @end 14 | 15 | // This protocol enables typed collections. i.e.: 16 | // RLMArray<___FILEBASENAMEASIDENTIFIER___ *><___FILEBASENAMEASIDENTIFIER___> 17 | RLM_COLLECTION_TYPE(___FILEBASENAMEASIDENTIFIER___) 18 | -------------------------------------------------------------------------------- /plugin/Templates/file_templates/Realm Model Object.xctemplate/Objective-C/___FILEBASENAME___.m: -------------------------------------------------------------------------------- 1 | // 2 | // ___FILENAME___ 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | //___COPYRIGHT___ 7 | // 8 | 9 | #import "___FILEBASENAME___.h" 10 | 11 | @implementation ___FILEBASENAMEASIDENTIFIER___ 12 | 13 | // Specify default values for properties 14 | 15 | //+ (NSDictionary *)defaultPropertyValues 16 | //{ 17 | // return @{}; 18 | //} 19 | 20 | // Specify properties to ignore (Realm won't persist these) 21 | 22 | //+ (NSArray *)ignoredProperties 23 | //{ 24 | // return @[]; 25 | //} 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /plugin/Templates/file_templates/Realm Model Object.xctemplate/Swift/___FILEBASENAME___.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ___FILENAME___ 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // ___COPYRIGHT___ 7 | // 8 | 9 | import Foundation 10 | import RealmSwift 11 | 12 | class ___FILEBASENAMEASIDENTIFIER___: Object { 13 | 14 | // Specify properties to ignore (Realm won't persist these) 15 | 16 | // override static func ignoredProperties() -> [String] { 17 | // return [] 18 | // } 19 | } 20 | -------------------------------------------------------------------------------- /plugin/Templates/file_templates/Realm Model Object.xctemplate/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realm/realm-swift/712c52af6ae1aaca9aec83f1a14f4e5d48e3a24c/plugin/Templates/file_templates/Realm Model Object.xctemplate/TemplateIcon.icns -------------------------------------------------------------------------------- /plugin/Templates/install_templates.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/bin:/usr/bin:/usr/libexec 3 | 4 | FILE_TEMPLATES_DIR="$HOME/Library/Developer/Xcode/Templates/File Templates/Realm" 5 | mkdir -p "$FILE_TEMPLATES_DIR" 6 | 7 | for dir in "file_templates/*/" 8 | do 9 | cp -R ${dir%*/} "$FILE_TEMPLATES_DIR" 10 | done 11 | -------------------------------------------------------------------------------- /scripts/generate-rlmversion.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | : ${SRCROOT:?"generate-rlmversion.sh must be invoked as part of an Xcode script phase"} 4 | 5 | TEMPORARY_FILE="${TARGET_TEMP_DIR}/RLMVersion.h" 6 | DESTINATION_FILE="${DERIVED_FILE_DIR}/RLMVersion.h" 7 | 8 | echo "#define REALM_COCOA_VERSION @\"$(sh build.sh get-version)\"" > ${TEMPORARY_FILE} 9 | 10 | if ! cmp -s "${TEMPORARY_FILE}" "${DESTINATION_FILE}"; then 11 | echo "Updating ${DESTINATION_FILE}" 12 | cp "${TEMPORARY_FILE}" "${DESTINATION_FILE}" 13 | fi 14 | -------------------------------------------------------------------------------- /scripts/setup-cocoapods.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -euo pipefail 4 | source_root="$(dirname "$0")/.." 5 | readonly source_root 6 | 7 | if [ ! -f "$source_root/core/version.txt" ]; then 8 | sh "$source_root/scripts/download-core.sh" 9 | fi 10 | 11 | rm -rf "$source_root/include" 12 | mkdir -p "$source_root/include" 13 | cp -R "$source_root/core/realm-monorepo.xcframework/ios-arm64/Headers" "$source_root/include/core" 14 | 15 | mkdir -p "$source_root/include" 16 | cp "$source_root/Realm/"*.h "$source_root/Realm/"*.hpp "$source_root/include" 17 | echo "#define REALM_IOPLATFORMUUID @\"$(sh $source_root/build.sh get-ioplatformuuid)\"" >> "$source_root/Realm/RLMAnalytics.hpp" 18 | --------------------------------------------------------------------------------