chore(cocoapods): add .podspec file to get cocoapods support

This commit is contained in:
Marten Klitzke 2016-07-27 15:08:07 +02:00
parent 5fa3e0e542
commit 2a7065d975
No known key found for this signature in database
GPG Key ID: D74D2011ADCB1E94

17
RNI18n.podspec Normal file
View File

@ -0,0 +1,17 @@
require 'json'
version = JSON.parse(File.read('package.json'))["version"]
Pod::Spec.new do |s|
s.name = "RNI18n"
s.version = version
s.homepage = "https://github.com/AlexanderZaytsev/react-native-i18n"
s.summary = "React Native + i18n.js"
s.license = "MIT"
s.author = { "Alexander Zaytsev" => "alexander@say26.com" }
s.platform = :ios, "7.0"
s.source = { git: "https://github.com/AlexanderZaytsev/react-native-i18n.git", tag: s.version.to_s }
s.source_files = 'RNI18n/*.{h,m}'
s.preserve_paths = "**/*.js"
s.dependency 'React'
end