mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-18 13:40:41 +08:00
5b614995b8
chore(ios): modify hippy.podspec file
49 lines
2.3 KiB
Ruby
49 lines
2.3 KiB
Ruby
#
|
|
# Be sure to run `pod lib lint hippy.podspec --verbose --use-libraries' to ensure this is a
|
|
# valid spec before submitting.
|
|
#
|
|
# Any lines starting with a # are optional, but their use is encouraged
|
|
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
|
|
#
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = 'hippy'
|
|
s.version = '2.2.0'
|
|
s.summary = 'Hippy library for iOS'
|
|
|
|
# This description is used to generate tags and improve search results.
|
|
# * Think: What does it do? Why did you write it? What is the focus?
|
|
# * Try to keep it short, snappy and to the point.
|
|
# * Write the description between the DESC delimiters below.
|
|
# * Finally, don't worry about the indent, CocoaPods strips it!
|
|
|
|
s.description = <<-DESC
|
|
Hippy is an open source framework created by Tencent.
|
|
Hippy enables web developer to create iOS,Android and Web applications with no significant difference between these three platform,
|
|
by using their existing React or Vue knowledge.
|
|
Hippy makes plenty of optimizations in app statup speed,reusable components,rendering efficiency and so on.
|
|
DESC
|
|
s.homepage = 'http://hippyjs.org'
|
|
s.license = { :type => 'Apache2', :file => 'LICENSE' }
|
|
s.author = { 'mengyanluo' => 'mengyanluo@tencent.com' }
|
|
s.source = {:git => 'https://github.com/Tencent/Hippy.git', :tag => s.version}
|
|
s.ios.deployment_target = '8.0'
|
|
s.source_files = 'ios/sdk/**/*.{h,m,c,mm,s,cpp,cc}'
|
|
s.public_header_files = 'ios/sdk/**/*.h'
|
|
s.default_subspec = 'core'
|
|
|
|
s.subspec 'core' do |cores|
|
|
cores.source_files = 'core/**/*.{h,cc}'
|
|
cores.exclude_files = ['core/include/core/napi/v8','core/src/napi/v8','core/js','core/third_party/base/src/platform/adr']
|
|
cores.libraries = 'c++'
|
|
#this setting causes 'There are header files outside of the header_mappings_dir'
|
|
# cores.header_mappings_dir = 'core/include/'
|
|
cores.xcconfig = {'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/hippy/core/third_party/base/include/ ${PODS_ROOT}/hippy/core/include/'}
|
|
end
|
|
|
|
if ENV['hippy_use_frameworks']
|
|
else
|
|
s.user_target_xcconfig = {'OTHER_LDFLAGS' => '-force_load "${PODS_CONFIGURATION_BUILD_DIR}/hippy/libhippy.a"'}
|
|
end
|
|
end
|