Skip to content

Commit

Permalink
Remade podspec
Browse files Browse the repository at this point in the history
Remade podspec so it sits more inline with standard podspec, takes most infomation from package.json
  • Loading branch information
Chris Burns committed Apr 14, 2018
1 parent 36bc6f0 commit d85d70d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
24 changes: 0 additions & 24 deletions ios/NfcManager.podspec

This file was deleted.

18 changes: 18 additions & 0 deletions react-native-nfc-manager.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require "json"

json = File.read(File.join(__dir__, "package.json"))
package = JSON.parse(json).deep_symbolize_keys

Pod::Spec.new do |s|
s.name = package[:name]
s.version = package[:version]
s.license = { type: "MIT" }
s.homepage = "https://github.com/whitedogg13/react-native-nfc-manager"
s.authors = package[:author]
s.summary = package[:description]
s.source = { git: package[:repository][:url] }
s.source_files = "ios/**/*.{h,m}"
s.platform = :ios, "8.0"

s.dependency "React"
end

0 comments on commit d85d70d

Please sign in to comment.