-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMoEngagePluginBase.podspec
More file actions
52 lines (43 loc) · 1.88 KB
/
MoEngagePluginBase.podspec
File metadata and controls
52 lines (43 loc) · 1.88 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
require 'json'
require 'ostruct'
Pod::Spec.new do |s|
config = JSON.parse(File.read('package.json'), {object_class: OpenStruct})
podspec_path = caller.find do |trace|
File.extname(trace.split(":")[0]).eql?('.podspec')
end.split(":")[0]
podspec = File.basename(podspec_path, File.extname(podspec_path))
package_index = config.packages.find_index { |package| package.name == podspec }
package = config.packages[package_index]
s.name = podspec
s.version = package.version
s.homepage = 'https://www.moengage.com'
s.documentation_url = 'https://developers.moengage.com'
s.license = { :type => 'Commercial', :file => 'LICENSE' }
s.author = { 'MobileDev' => 'mobiledevs@moengage.com' }
s.social_media_url = 'https://twitter.com/moengage'
s.source = {
:git => 'https://github.com/moengage/iOS-PluginBase.git',
:tag => package.tagPrefix + s.version.to_s
}
s.ios.deployment_target = '13.0'
s.swift_version = '5.0'
s.requires_arc = true
s.source_files = "Sources/#{s.name}/**/*.{swift}"
s.preserve_paths = "*.md", "LICENSE"
s.summary = 'MoEngage Plugin Base for Hybrid SDKs'
s.description = <<-DESC
MoEngage is a mobile marketing automation company. This framework is used by our plugins built for different hybrid frameworks i.e, Flutter, Cordova, React Native etc.
DESC
s.tvos.deployment_target = '13.0'
s.frameworks = 'UIKit', 'Foundation', 'UserNotifications'
s.dependency 'MoEngage-iOS-SDK', config.sdkVerMin
s.dependency 'MoEngage-iOS-SDK/InApps'
test_file_glob = "Tests/#{s.name}Tests/**/*.{swift}"
s.test_spec 'Tests' do |ts|
ts.ios.deployment_target = '13.0'
ts.tvos.deployment_target = '13.0'
ts.source_files = test_file_glob
ts.requires_app_host = true
s.scheme = { :code_coverage => true }
end unless Dir.glob(test_file_glob).empty?
end