-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathSentryCapacitor.podspec
More file actions
31 lines (27 loc) · 1.11 KB
/
SentryCapacitor.podspec
File metadata and controls
31 lines (27 loc) · 1.11 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
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'SentryCapacitor'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = package['repository']['url']
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
s.dependency 'Sentry', '9.3.0'
s.dependency 'Capacitor'
if File.exist?('../../@capacitor/core/package.json') == false
# If Capacitor was not found (could happen when using Yarn PNP), fallback to the
# required minimum version of Capacitor 8.
miniOSVersion = '15.0'
else
capacitorPackage = JSON.parse(File.read(File.join(__dir__, '../../@capacitor/core/package.json')))
capacitorVersion = capacitorPackage['version']
# Gets capacitor major version (9, 8, 7 ,...)
majorVersion = capacitorVersion.split('.').first.to_i
miniOSVersion = '15.0' # Capacitor 8 or higher.
end
s.ios.deployment_target = miniOSVersion
s.swift_version = '5.1'
end