-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
JSPatch.podspec
72 lines (62 loc) · 2.74 KB
/
JSPatch.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
Pod::Spec.new do |s|
s.name = "JSPatch"
s.version = "1.1.3"
s.summary = "JSPatch bridge Objective-C and JavaScript. You can call any" \
" Objective-C class and method in JavaScript by just" \
" including a small engine."
s.description = <<-DESC
JSPatch bridges Objective-C and JavaScript using the
Objective-C runtime. You can call any Objective-C class and
method in JavaScript by just including a small engine.
That makes the APP obtaining the power of script language:
add modules or replacing Objective-C codes to fix bugs dynamically.
DESC
s.homepage = "https://github.com/bang590/JSPatch"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "bang" => "bang590@gmail.com" }
s.social_media_url = "https://twitter.com/bang590"
s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'
s.osx.deployment_target = '10.9'
s.source = { :git => "https://github.com/bang590/JSPatch.git", :tag => s.version }
s.frameworks = "Foundation"
s.weak_framework = "JavaScriptCore"
s.default_subspec = 'Core'
s.subspec 'Core' do |ss|
ss.ios.source_files = "JSPatch/*.{h,m}"
ss.tvos.source_files = "JSPatch/*.{h,m}"
ss.osx.source_files = "JSPatch/*.{h,m}"
ss.public_header_files = "JSPatch/*.h"
ss.resources = "JSPatch/*.js"
end
s.subspec "Extensions" do |ss|
ss.ios.source_files = "Extensions/*"
ss.ios.public_header_files = "Extensions/*.h"
ss.dependency 'JSPatch/Core'
end
s.subspec "JPCFunction" do |ss|
ss.ios.source_files = "Extensions/JPCFunction/**/*", "Extensions/JPLibffi/**/*.{h,m}"
ss.ios.public_header_files = "Extensions/JPCFunction/**/*.h", "Extensions/JPLibffi/**/*.h"
ss.vendored_libraries = 'Extensions/JPLibffi/libffi/libffi.a'
ss.dependency 'JSPatch/Core'
end
s.subspec "JPBlock" do |ss|
ss.ios.source_files = "Extensions/JPBlock/**/*", "Extensions/JPLibffi/**/*.{h,m}"
ss.ios.public_header_files = "Extensions/JPBlock/**/*.h", "Extensions/JPLibffi/**/*.h"
ss.vendored_libraries = 'Extensions/JPLibffi/libffi/libffi.a'
ss.dependency 'JSPatch/Core'
end
s.subspec "JPCFunctionBinder" do |ss|
ss.ios.source_files = "Extensions/JPCFunctionBinder/**/*"
ss.ios.public_header_files = "Extensions/JPCFunctionBinder/**/*.h"
ss.dependency 'JSPatch/Core'
end
s.subspec 'Loader' do |ss|
ss.ios.source_files = "Loader/**/*.{h,m,c}"
ss.tvos.source_files = "Loader/**/*.{h,m,c}"
ss.ios.public_header_files = "Loader/*.h"
ss.tvos.public_header_files = "Loader/*.h"
ss.dependency 'JSPatch/Core'
ss.library = 'z'
end
end