Skip to content

Commit

Permalink
Merge pull request #56 from farktronix/master
Browse files Browse the repository at this point in the history
Add iOS support for RealmConverter
  • Loading branch information
bmunkholm authored Nov 13, 2020
2 parents abd771e + a836443 commit 7620605
Show file tree
Hide file tree
Showing 29 changed files with 1,082 additions and 311 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ xcuserdata/
## Other
*.moved-aside
*.xcuserstate
.DS_Store

## Obj-C/Swift specific
*.hmap
Expand Down
22 changes: 17 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
language: objective-c
osx_image: xcode8.3
osx_image: xcode12
cache:
cocoapods: true
bundler: true
xcode_workspace: RealmConverter.xcworkspace
env: CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO COMPILER_INDEX_STORE_ENABLE=NO
install:
- bundle install
- pod install --repo-update
script:
- set -o pipefail && xcodebuild -workspace "RealmConverter.xcworkspace" -scheme "RealmConverter" clean test | xcpretty
- pod lib lint
- pod install
matrix:
include:
- xcode_scheme: RealmConverterMacOS
xcode_sdk: macosx
xcode_destination: platform=macOS

- xcode_scheme: RealmConverteriOS
xcode_sdk: iphonesimulator
env: CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO COMPILER_INDEX_STORE_ENABLE=NO ONLY_ACTIVE_ARCH=NO
xcode_destination: platform=iOS Simulator,name=iPhone 11 Pro Max
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source 'https://rubygems.org'

gem 'cocoapods'
gem 'xcpretty'
gem 'xcpretty-travis-formatter'
83 changes: 46 additions & 37 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,74 +1,83 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.5)
activesupport (4.2.8)
CFPropertyList (3.0.0)
activesupport (4.2.11.1)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (1.0.1)
cocoapods (1.2.0)
atomos (0.1.3)
claide (1.0.2)
cocoapods (1.7.1)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.1, < 2.0)
cocoapods-core (= 1.2.0)
cocoapods-deintegrate (>= 1.0.1, < 2.0)
cocoapods-downloader (>= 1.1.3, < 2.0)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.7.1)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.2.2, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.1.2, < 2.0)
cocoapods-trunk (>= 1.3.1, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored (~> 1.2)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 2.0.1)
fourflusher (>= 2.2.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.5.5)
molinillo (~> 0.6.6)
nap (~> 1.0)
ruby-macho (~> 0.2.5)
xcodeproj (>= 1.4.1, < 2.0)
cocoapods-core (1.2.0)
activesupport (>= 4.0.2, < 5)
ruby-macho (~> 1.4)
xcodeproj (>= 1.8.2, < 2.0)
cocoapods-core (1.7.1)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.3)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.2.2)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.1.2)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.3.1)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
netrc (~> 0.11)
cocoapods-try (1.1.0)
colored (1.2)
colored2 (3.1.2)
concurrent-ruby (1.1.5)
escape (0.0.4)
fourflusher (2.0.1)
fourflusher (2.3.0)
fuzzy_match (2.0.4)
gh_inspector (1.0.3)
i18n (0.8.1)
minitest (5.10.1)
molinillo (0.5.7)
nanaimo (0.2.3)
gh_inspector (1.1.3)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
minitest (5.11.3)
molinillo (0.6.6)
nanaimo (0.2.6)
nap (1.1.0)
netrc (0.7.8)
ruby-macho (0.2.6)
netrc (0.11.0)
rouge (2.0.7)
ruby-macho (1.4.0)
thread_safe (0.3.6)
tzinfo (1.2.3)
tzinfo (1.2.5)
thread_safe (~> 0.1)
xcodeproj (1.4.3)
CFPropertyList (~> 2.3.3)
activesupport (>= 3)
claide (>= 1.0.1, < 2.0)
xcodeproj (1.10.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.3)
nanaimo (~> 0.2.6)
xcpretty (0.3.0)
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.0)
xcpretty (~> 0.2, >= 0.0.7)

PLATFORMS
ruby

DEPENDENCIES
cocoapods
xcpretty
xcpretty-travis-formatter

BUNDLED WITH
1.14.5
1.17.1
37 changes: 29 additions & 8 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
platform :osx, '10.9'
use_frameworks!

target 'RealmConverter' do
pod 'Realm', '~> 3.0.0-rc.1'
def shared_pods
pod 'Realm'
pod 'PathKit'
pod 'CSwiftV'
end

target 'RealmConverterMacOS' do
use_frameworks!
platform :osx, '10.9'
shared_pods
pod 'TGSpreadsheetWriter'

target 'RealmConverterTests' do
inherit! :search_paths
end
target 'RealmConverterTestsMacOS' do
inherit! :search_paths
end
end

target 'RealmConverteriOS' do
use_frameworks!
platform :ios, '10.0'
shared_pods

target 'RealmConverterTestsiOS' do
inherit! :search_paths
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
34 changes: 21 additions & 13 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
PODS:
- CSwiftV (0.0.7)
- PathKit (0.8.0)
- Realm (3.0.0-beta.4):
- Realm/Headers (= 3.0.0-beta.4)
- Realm/Headers (3.0.0-beta.4)
- SSZipArchive (2.0.7)
- CSwiftV (0.0.9)
- PathKit (1.0.0)
- Realm (10.1.2):
- Realm/Headers (= 10.1.2)
- Realm/Headers (10.1.2)
- SSZipArchive (2.2.3)
- TGSpreadsheetWriter (1.0.2):
- SSZipArchive

DEPENDENCIES:
- CSwiftV
- PathKit
- Realm (~> 3.0.0-beta)
- Realm
- TGSpreadsheetWriter

SPEC REPOS:
trunk:
- CSwiftV
- PathKit
- Realm
- SSZipArchive
- TGSpreadsheetWriter

SPEC CHECKSUMS:
CSwiftV: 602a0cb1df5f758d6005eacb6472c9bc752a7e7c
PathKit: dcab05d701474011aae0e40cf892298a831f63d6
Realm: 61978a10127ec9a4638f0df4d48a08b5e1ded77e
SSZipArchive: 8c197761d66bd33e7f8b5b51ee57dff303971150
CSwiftV: 8dde426ad2a4f645bdfb513b8aa878d555aeff60
PathKit: 364e0de7fb5adb142aecab4e112187e5548fc4b6
Realm: 031fdd4be7094d01b43af1a5e49766ab644bb800
SSZipArchive: 62d4947b08730e4cda640473b0066d209ff033c9
TGSpreadsheetWriter: 09bbb2c18a111a11c94ff9c1af2320e2530c958e

PODFILE CHECKSUM: aab8f0ee39391fc035200c10a8bda5a0a4c3698e
PODFILE CHECKSUM: 7968dd07c3a2aadd7e89074a3d67001289e192ef

COCOAPODS: 1.3.1
COCOAPODS: 1.10.0
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ Realm Converter is an open source software utility framework to make it easier
to get data both in and out of Realm.
It has been built in Swift, but can also be easily utilized in Objective-C projects.

It is still in heavy development, with refinements and new formats being
added to it over time.

## Technical Requirements

OS X 10.9 and above.
macOS: 10.9 or later
iOS: 10.0 or later

## Features

Expand Down
13 changes: 9 additions & 4 deletions RealmConverter.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
Pod::Spec.new do |s|
s.name = 'RealmConverter'
s.version = '0.5.0'
s.version = '0.5.3'
s.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
s.summary = 'A library that provides the ability to import/export Realm files from a variety of data container formats.'
s.homepage = 'https://realm.io'
s.author = { 'Realm' => '[email protected]' }
s.source = { :git => 'https:/realm/realm-cocoa-converter.git', :tag => s.version.to_s }
s.requires_arc = true
s.platform = :osx, '10.9'

s.osx.deployment_target = '10.9'
s.ios.deployment_target = '10.0'
s.swift_version = '5.0'

s.source_files = 'RealmConverter/**/*.{swift,h,m,c}'
s.dependency 'Realm', '~> 3.0.0-rc.1'

s.dependency 'Realm', '~> 10.0'
s.dependency 'PathKit'
s.dependency 'CSwiftV'
s.dependency 'SSZipArchive'
s.dependency 'TGSpreadsheetWriter'
s.osx.dependency 'TGSpreadsheetWriter'
end
Loading

0 comments on commit 7620605

Please sign in to comment.