Skip to content

Commit

Permalink
chore: Make podspec read values from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Jun 9, 2023
1 parent 73a79c7 commit db38a3d
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions CapacitorCommunityCameraPreview.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
require 'json'

Pod::Spec.new do |s|
s.name = 'CapacitorCommunityCameraPreview'
s.version = '2.0.0'
s.summary = 'Camera preview'
s.license = 'MIT'
s.homepage = 'https://github.com/capacitor-community/camera-preview.git'
s.author = 'Ariel Hernandez Musa'
s.source = { :git => 'https://github.com/capacitor-community/camera-preview.git', :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '13.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
end
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = 'CapacitorCommunityCameraPreview'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = 'https://github.com/capacitor-community/camera-preview.git'
s.author = package['author']
s.source = { :git => 'https://github.com/capacitor-community/camera-preview.git', :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '13.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
end

0 comments on commit db38a3d

Please sign in to comment.