├── .gitignore ├── .travis.yml ├── CoreDataMigration-Example.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── CoreDataMigration-Example.xcscheme ├── CoreDataMigration-Example ├── Application │ ├── AppDelegate.swift │ └── Info.plist ├── CoreData │ ├── CoreDataManager.swift │ ├── Migration │ │ ├── CoreDataMigrationStep.swift │ │ ├── CoreDataMigrationVersion.swift │ │ ├── CoreDataMigrator.swift │ │ ├── Mappings │ │ │ └── Migration2to3ModelMapping.xcmappingmodel │ │ │ │ └── xcmapping.xml │ │ └── Policies │ │ │ └── Post2ToPost3MigrationPolicy.swift │ └── Model │ │ └── CoreDataMigration_Example.xcdatamodeld │ │ ├── .xccurrentversion │ │ ├── CoreDataMigration_Example 2.xcdatamodel │ │ └── contents │ │ ├── CoreDataMigration_Example 3.xcdatamodel │ │ └── contents │ │ ├── CoreDataMigration_Example 4.xcdatamodel │ │ └── contents │ │ └── CoreDataMigration_Example.xcdatamodel │ │ └── contents ├── Extensions │ ├── FileManager │ │ └── FileManager+ApplicationSupport.swift │ ├── NSManagedObjectModel │ │ ├── NSManagedObjectModel+Compatible.swift │ │ └── NSManagedObjectModel+Resource.swift │ ├── NSPersistentStoreCoordinator │ │ └── NSPersistentStoreCoordinator+SQLite.swift │ └── UIColor │ │ ├── UIColor+Hex.swift │ │ └── UIColor+Random.swift ├── Resources │ └── Assets.xcassets │ │ └── AppIcon.appiconset │ │ └── Contents.json ├── Storyboards │ ├── AppLoading.storyboard │ └── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard └── ViewControllers │ ├── Loading │ └── AppLoadingViewController.swift │ ├── Posts │ ├── PostTableViewCell.swift │ └── PostsViewController.swift │ ├── Viewer │ ├── PostSectionViewerTableViewCell.swift │ └── PostViewerViewController.swift │ └── Writer │ ├── PostSectionWriterTableViewCell.swift │ └── PostWriterViewController.swift ├── CoreDataMigration-ExampleTests ├── Helpers │ ├── FileManager+Helper.swift │ └── NSManagedObjectContext+Helper.swift ├── Supporting Files │ └── Info.plist └── Tests │ ├── CoreData │ ├── Manager │ │ └── CoreDataManagerTests.swift │ └── Migration │ │ ├── CoreDataMigratorTests.swift │ │ └── Models │ │ ├── CoreDataMigration_Example_1.sqlite │ │ ├── CoreDataMigration_Example_2.sqlite │ │ └── CoreDataMigration_Example_3.sqlite │ └── Mocks │ └── MockCoreDataMigrator.swift ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md └── fastlane ├── Fastfile └── README.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/.travis.yml -------------------------------------------------------------------------------- /CoreDataMigration-Example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /CoreDataMigration-Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /CoreDataMigration-Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /CoreDataMigration-Example.xcodeproj/xcshareddata/xcschemes/CoreDataMigration-Example.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example.xcodeproj/xcshareddata/xcschemes/CoreDataMigration-Example.xcscheme -------------------------------------------------------------------------------- /CoreDataMigration-Example/Application/AppDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Application/AppDelegate.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/Application/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Application/Info.plist -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/CoreDataManager.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/CoreDataManager.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Migration/CoreDataMigrationStep.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Migration/CoreDataMigrationStep.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Migration/CoreDataMigrationVersion.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Migration/CoreDataMigrationVersion.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Migration/CoreDataMigrator.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Migration/CoreDataMigrator.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Migration/Mappings/Migration2to3ModelMapping.xcmappingmodel/xcmapping.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Migration/Mappings/Migration2to3ModelMapping.xcmappingmodel/xcmapping.xml -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Migration/Policies/Post2ToPost3MigrationPolicy.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Migration/Policies/Post2ToPost3MigrationPolicy.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/.xccurrentversion -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/CoreDataMigration_Example 2.xcdatamodel/contents: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/CoreDataMigration_Example 2.xcdatamodel/contents -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/CoreDataMigration_Example 3.xcdatamodel/contents: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/CoreDataMigration_Example 3.xcdatamodel/contents -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/CoreDataMigration_Example 4.xcdatamodel/contents: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/CoreDataMigration_Example 4.xcdatamodel/contents -------------------------------------------------------------------------------- /CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/CoreDataMigration_Example.xcdatamodel/contents: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/CoreData/Model/CoreDataMigration_Example.xcdatamodeld/CoreDataMigration_Example.xcdatamodel/contents -------------------------------------------------------------------------------- /CoreDataMigration-Example/Extensions/FileManager/FileManager+ApplicationSupport.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Extensions/FileManager/FileManager+ApplicationSupport.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/Extensions/NSManagedObjectModel/NSManagedObjectModel+Compatible.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Extensions/NSManagedObjectModel/NSManagedObjectModel+Compatible.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/Extensions/NSManagedObjectModel/NSManagedObjectModel+Resource.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Extensions/NSManagedObjectModel/NSManagedObjectModel+Resource.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/Extensions/NSPersistentStoreCoordinator/NSPersistentStoreCoordinator+SQLite.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Extensions/NSPersistentStoreCoordinator/NSPersistentStoreCoordinator+SQLite.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/Extensions/UIColor/UIColor+Hex.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Extensions/UIColor/UIColor+Hex.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/Extensions/UIColor/UIColor+Random.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Extensions/UIColor/UIColor+Random.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /CoreDataMigration-Example/Storyboards/AppLoading.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Storyboards/AppLoading.storyboard -------------------------------------------------------------------------------- /CoreDataMigration-Example/Storyboards/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Storyboards/Base.lproj/LaunchScreen.storyboard -------------------------------------------------------------------------------- /CoreDataMigration-Example/Storyboards/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/Storyboards/Base.lproj/Main.storyboard -------------------------------------------------------------------------------- /CoreDataMigration-Example/ViewControllers/Loading/AppLoadingViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/ViewControllers/Loading/AppLoadingViewController.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/ViewControllers/Posts/PostTableViewCell.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/ViewControllers/Posts/PostTableViewCell.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/ViewControllers/Posts/PostsViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/ViewControllers/Posts/PostsViewController.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/ViewControllers/Viewer/PostSectionViewerTableViewCell.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/ViewControllers/Viewer/PostSectionViewerTableViewCell.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/ViewControllers/Viewer/PostViewerViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/ViewControllers/Viewer/PostViewerViewController.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/ViewControllers/Writer/PostSectionWriterTableViewCell.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/ViewControllers/Writer/PostSectionWriterTableViewCell.swift -------------------------------------------------------------------------------- /CoreDataMigration-Example/ViewControllers/Writer/PostWriterViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-Example/ViewControllers/Writer/PostWriterViewController.swift -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Helpers/FileManager+Helper.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Helpers/FileManager+Helper.swift -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Helpers/NSManagedObjectContext+Helper.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Helpers/NSManagedObjectContext+Helper.swift -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Supporting Files/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Supporting Files/Info.plist -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Tests/CoreData/Manager/CoreDataManagerTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Tests/CoreData/Manager/CoreDataManagerTests.swift -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Tests/CoreData/Migration/CoreDataMigratorTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Tests/CoreData/Migration/CoreDataMigratorTests.swift -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Tests/CoreData/Migration/Models/CoreDataMigration_Example_1.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Tests/CoreData/Migration/Models/CoreDataMigration_Example_1.sqlite -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Tests/CoreData/Migration/Models/CoreDataMigration_Example_2.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Tests/CoreData/Migration/Models/CoreDataMigration_Example_2.sqlite -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Tests/CoreData/Migration/Models/CoreDataMigration_Example_3.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Tests/CoreData/Migration/Models/CoreDataMigration_Example_3.sqlite -------------------------------------------------------------------------------- /CoreDataMigration-ExampleTests/Tests/Mocks/MockCoreDataMigrator.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/CoreDataMigration-ExampleTests/Tests/Mocks/MockCoreDataMigrator.swift -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "fastlane", "2.104.0" 4 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/README.md -------------------------------------------------------------------------------- /fastlane/Fastfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/fastlane/Fastfile -------------------------------------------------------------------------------- /fastlane/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wibosco/CoreDataMigrationRevised-Example/HEAD/fastlane/README.md --------------------------------------------------------------------------------