-
Notifications
You must be signed in to change notification settings - Fork 2
/
MMMCommonCore.podspec
45 lines (37 loc) · 1.26 KB
/
MMMCommonCore.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
#
# MMMCommonCore. Part of MMMTemple.
# Copyright (C) 2015-2020 MediaMonks. All rights reserved.
#
Pod::Spec.new do |s|
s.name = "MMMCommonCore"
s.version = "1.16.2"
s.summary = "Small bits and pieces reused in many pods from MMMTemple"
s.description = s.summary
s.homepage = "https://github.com/mediamonks/#{s.name}"
s.license = "MIT"
s.authors = "MediaMonks"
s.source = { :git => "https://github.com/mediamonks/#{s.name}.git", :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
s.watchos.deployment_target = '4.0'
s.tvos.deployment_target = '9.0'
s.subspec 'ObjC' do |ss|
ss.source_files = [ "Sources/#{s.name}ObjC/*.{h,m}" ]
ss.exclude_files = [ "Sources/#{s.name}ObjC/include/#{s.name}ObjC.h" ]
end
s.swift_versions = '5.4'
s.static_framework = true
s.pod_target_xcconfig = {
"DEFINES_MODULE" => "YES"
}
s.subspec 'Swift' do |ss|
ss.source_files = [ "Sources/#{s.name}/*.swift" ]
ss.dependency "#{s.name}/ObjC"
end
s.test_spec 'Tests' do |ss|
ss.source_files = "Tests/*.{m,swift}"
# Well, it does not, but otherwise we cannot override any settings (e.g. excluded archs for M1) via Podfile,
# because there won't be a target corresponding to the app host.
ss.requires_app_host = true
end
s.default_subspec = 'ObjC', 'Swift'
end