forked from ConnectSDK/Connect-SDK-iOS-Lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CastConnectSDK.podspec
101 lines (85 loc) · 4.59 KB
/
CastConnectSDK.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# frozen_string_literal: true
Pod::Spec.new do |spec|
spec.name = 'CastConnectSDK'
spec.version = '2.1.0'
spec.summary = 'Connect SDK iOS Lite'
spec.description = <<-DESC
Connect SDK is an open source framework that connects your mobile apps with multiple TV platforms.
DESC
spec.homepage = 'https://github.com/globoi/Connect-SDK-iOS-Lite.git'
spec.license = { type: 'proprietary', file: 'LICENSE' }
spec.author = { 'globoID Mobile' => 'globoid.mobile@g.globo' }
spec.module_name = 'CastConnectSDK'
spec.source = { :git => 'https://github.com/globoi/Connect-SDK-iOS-Lite.git', :tag => spec.version.to_s, :submodules => true }
spec.platforms = { ios: '7.1' }
spec.xcconfig = { 'OTHER_LDFLAGS': '$(inherited) -ObjC' }
spec.requires_arc = true
spec.prefix_header_contents = <<-PREFIX
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
// Copyright (c) 2015 LG Electronics.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#define CONNECT_SDK_VERSION @"#{spec.version}"
// Uncomment this line to enable SDK logging
//#define CONNECT_SDK_ENABLE_LOG
#ifndef kConnectSDKWirelessSSIDChanged
#define kConnectSDKWirelessSSIDChanged @"Connect_SDK_Wireless_SSID_Changed"
#endif
#ifdef CONNECT_SDK_ENABLE_LOG
// credit: http://stackoverflow.com/a/969291/2715
#ifdef DEBUG
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define DLog(...)
#endif
#else
# define DLog(...)
#endif
PREFIX
spec.static_framework = true
spec.libraries = 'z', 'icucore'
spec.subspec 'Core' do |sub|
sub.source_files = [
'ConnectSDKDefaultPlatforms.h',
'core/**/*.{h,m}'
]
sub.exclude_files = [
'core/Frameworks/asi-http-request/External/Reachability/*.{h,m}',
'core/Frameworks/asi-http-request/Classes/*.{h,m}',
'core/ConnectSDK*Tests/**/*',
]
sub.requires_arc = true
sub.dependency 'CastConnectSDK/no-arc'
end
spec.subspec 'no-arc' do |sub|
sub.source_files = [
'core/Frameworks/asi-http-request/External/Reachability/*.{h,m}',
'core/Frameworks/asi-http-request/Classes/*.{h,m}'
]
sub.requires_arc = false
sub.compiler_flags = '-w'
end
spec.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64',
}
spec.user_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64',
}
end