Skip to content

Commit 3dfd93e

Browse files
committed
updated the podspec to contain sub specs
1 parent 0af4c28 commit 3dfd93e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

SHModelObject.podspec

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SHModelObject"
3-
s.version = "1.0.8"
3+
s.version = "1.0.9"
44
s.summary = "`SHModelObject` a utility class that reads NSDictionary and populates the instance variables and properties automatically."
55

66
s.description = <<-DESC
@@ -13,11 +13,24 @@ Pod::Spec.new do |s|
1313
s.license = {:type => 'MIT'}
1414
s.author = { "Shan Ul Haq" => "[email protected]" }
1515

16-
s.platform = :ios
16+
s.platform = :ios, '7.0'
1717
s.source = { :git => "https://github.com/grevolution/SHModelObject.git", :tag => s.version }
1818

1919
s.requires_arc = true
2020
s.source_files = 'SHModelObject/SHModelObject/*.{h,m}'
2121
s.exclude_files = 'Classes/Exclude'
22+
s.dependency 'Realm'
23+
24+
s.subspec 'Core' do |core|
25+
core.source_files = 'SHModelObject/SHModelObject/SHModelObject.{h,m}' , 'SHModelObject/SHModelObject/SHConstants.h' ,
26+
'SHModelObject/SHModelObject/SHModelSerialization.h'
27+
core.platform = :ios
28+
end
29+
30+
s.subspec 'Realm' do |realm|
31+
realm.source_files = 'SHModelObject/SHModelObject/SHRealmObject.{h,m}' , 'SHModelObject/SHModelObject/SHConstants.h' , 'SHModelObject/SHModelObject/SHModelSerialization.h'
32+
realm.platform = :ios, '7.0'
33+
realm.dependency 'Realm'
34+
end
2235

2336
end

0 commit comments

Comments
 (0)