forked from BaiduMobileAnalysis/baidumobstat-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRCTBaiduMobStat.podspec
More file actions
80 lines (63 loc) · 3.44 KB
/
Copy pathRCTBaiduMobStat.podspec
File metadata and controls
80 lines (63 loc) · 3.44 KB
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
#
# Be sure to run `pod spec lint RCTBaiduMobStat.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
require 'json'
pjson = JSON.parse(File.read('package.json'))
Pod::Spec.new do |spec|
spec.name = "RCTBaiduMobStat"
spec.version = pjson["version"]
spec.summary = "RCTBaiduMobStat For Timektettle."
spec.description = pjson["description"]
spec.homepage = pjson["homepage"]
spec.license = pjson["license"]
spec.platforms = { :ios => "10.0" }
spec.author = { "licoba" => "licoba@163.com" }
spec.source = { :git => "https://github.com/licoba/baidumobstat-react-native.git", :tag => "#{spec.version}" }
spec.source_files = 'ios/RCTBaiduMobStat/*.{h,m}'
spec.preserve_paths = "**/*.js"
# spec.source_files = "Classes", "Classes/**/*.{h,m}"
# spec.exclude_files = "Classes/Exclude"
# spec.header_dir = "RCTBaiduMobStat"
spec.public_header_files = "ios/RCTBaiduMobStat/*.h"
###### 此处设置依赖
spec.static_framework = true
spec.ios.vendored_frameworks = 'ios/RCTBaiduMobStat/UserFeedBack.framework'
spec.ios.vendored_libraries = 'ios/RCTBaiduMobStat/*.a'
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# A list of resources included with the Pod. These are copied into the
# target bundle with a build phase script. Anything else will be cleaned.
# You can preserve files from being cleaned, please don't preserve
# non-essential files like tests, examples and documentation.
#
# spec.resource = "icon.png"
# spec.resources = "Resources/*.png"
# spec.preserve_paths = "FilesToSave", "MoreFilesToSave"
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Link your library with frameworks, or libraries. Libraries do not include
# the lib prefix of their name.
#
# spec.framework = "SomeFramework"
# spec.frameworks = "SomeFramework", "AnotherFramework"
# spec.library = "iconv"
# spec.libraries = "iconv", "xml2"
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If your library depends on compiler flags you can set them in the xcconfig hash
# where they will only apply to your library. If you depend on other Podspecs
# you can include multiple dependencies to ensure it works.
# spec.requires_arc = true
# 使用这个来配置头文件搜索路径
# spec.xcconfig = { "HEADER_SEARCH_PATHS" => "${PODS_ROOT}/Headers/Public/RCTBaiduMobStat" }
# # spec.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "${PODS_ROOT}/Headers/Public/RCTBaiduMobStat" }
# spec.pod_target_xcconfig = {
# "USE_HEADERMAP" => "YES",
# "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Public/RCTBaiduMobStat\""
# }
spec.dependency 'React'
end