-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathJaspersoftSDK.podspec
80 lines (69 loc) · 2.63 KB
/
JaspersoftSDK.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Pod::Spec.new do |s|
s.name = 'JaspersoftSDK'
s.version = '2.5'
s.summary = 'JaspersoftSDK - The simplest way to build JasperReports Server apps.'
s.description = <<-DESC
JaspersoftSDK for iOS is a set of Objective-C classes to easily connect
and consume the services provided by JasperReports Server
using the REST API (available in JasperReports Server 5.5.0 or greater).!
DESC
s.homepage = 'http://community.jaspersoft.com/project/mobile-sdk-ios'
s.license = { :type => 'GNU GPL v.3', :file => 'LICENSE.txt' }
s.author = 'TIBCO Software'
s.platform = :ios, '7.0'
s.source = { :git => 'https://github.com/Jaspersoft/js-ios-sdk.git', :tag => s.version.to_s }
s.public_header_files = "Sources/*.h"
s.framework = 'Foundation'
# Platform setup
s.requires_arc = true
s.ios.deployment_target = '7.0'
s.default_subspec = 'JSCore'
# Preserve the layout of headers in the Sources directory
s.header_mappings_dir = 'Sources'
### Subspecs
s.subspec 'JSCore' do |jscSpec|
jscSpec.dependency 'JaspersoftSDK/Resources'
jscSpec.dependency 'AFNetworking', '3.0.4'
jscSpec.dependency 'EasyMapping', '0.16.1'
jscSpec.subspec 'JSHelper' do |jshSpec|
jshSpec.source_files = 'Sources/JSHelper'
end
jscSpec.subspec 'JSObjectMappings' do |jsomSpec|
jsomSpec.source_files = 'Sources/JSObjectMappings'
end
jscSpec.subspec 'JSRestClient' do |jsrcSpec|
jsrcSpec.subspec 'KeychainItemWrapper' do |jskiwSpec|
jskiwSpec.source_files = 'Sources/JSRestClient/KeychainItemWrapper'
jskiwSpec.requires_arc = false
end
jsrcSpec.source_files = 'Sources/JSRestClient'
end
jscSpec.prefix_header_contents = <<-EOS
#import <Availability.h>
#import "JSConstants.h"
#import "JSUtils.h"
#import "NSString+JSURLEncodings.h"
#define _AFNETWORKING_PIN_SSL_CERTIFICATES_
#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <Security/Security.h>
#else
#import <SystemConfiguration/SystemConfiguration.h>
#import <CoreServices/CoreServices.h>
#import <Security/Security.h>
#endif
EOS
end
s.subspec 'Resources' do |resSpec|
resSpec.ios.resource_bundle = { 'JaspersoftSDK' => 'Resources/Localizable/*.lproj' }
end
s.subspec 'JSSecurity' do |jssSpec|
jssSpec.dependency 'JaspersoftSDK/JSCore'
jssSpec.source_files = 'Sources/JSSecurity.h', 'Sources/JSSecurity'
end
s.subspec 'JSReportExtention' do |jsreSpec|
jsreSpec.dependency 'JaspersoftSDK/JSCore'
jsreSpec.source_files = 'Sources/JSReportExtention.h', 'Sources/JSReportExtention'
end
end