|
1 | 1 | Pod::Spec.new do |s| |
2 | 2 | s.name = "GeoFire" |
3 | | - s.version = "4.0.2" |
| 3 | + s.version = "4.1.0" |
4 | 4 | s.summary = "Realtime location queries with Firebase." |
5 | 5 | s.homepage = "https://github.com/firebase/geofire-objc" |
6 | 6 | s.license = { :type => 'MIT', :file => 'LICENSE' } |
7 | 7 | s.author = "Firebase" |
8 | 8 | s.source = { :git => "https://github.com/firebase/geofire-objc.git", :tag => 'v' + s.version.to_s } |
9 | | - s.source_files = "GeoFire/**/*.{h,m}" |
10 | | - s.documentation_url = "https://geofire-ios.firebaseapp.com/docs/" |
11 | 9 | s.ios.deployment_target = '10.0' |
12 | | - s.ios.dependency 'Firebase/Database', '~> 7.8.0' |
13 | | - s.frameworks = 'CoreLocation', 'FirebaseDatabase' |
14 | 10 | s.requires_arc = true |
15 | | - s.static_framework = true |
| 11 | + s.default_subspec = 'Database' |
| 12 | + |
| 13 | + s.subspec 'Database' do |db| |
| 14 | + db.ios.dependency 'Firebase/Database', '~> 7.8.0' |
| 15 | + db.ios.dependency 'GeoFire/Utils' |
| 16 | + db.public_header_files = "GeoFire/API/*.h" |
| 17 | + db.source_files = "GeoFire/Implementation/*.{hm}" |
| 18 | + db.frameworks = 'FirebaseDatabase' |
| 19 | + end |
16 | 20 |
|
17 | 21 | s.subspec 'Utils' do |utils| |
18 | | - utils.source_files = [ |
19 | | - "GeoFire/**/GFUtils*.[mh]", |
20 | | - "GeoFire/**/GFGeoQueryBounds*.[mh]", |
21 | | - "GeoFire/**/GFGeoHashQuery*.[mh]", |
22 | | - "GeoFire/**/GFGeoHash*.[mh]", |
23 | | - "GeoFire/**/GFBase32Utils*.[mh]", |
24 | | - ] |
| 22 | + utils.source_files = "GeoFire/Utils/*.{hm}" |
25 | 23 | utils.frameworks = 'CoreLocation' |
26 | 24 | end |
27 | 25 | end |
0 commit comments