Skip to content

Instantly share code, notes, and snippets.

@lamvd0101
Created November 2, 2022 03:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lamvd0101/3ab8ab3850a5aeef54e81bdb62e3e646 to your computer and use it in GitHub Desktop.
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = package['name']
s.module_name = package['name']
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.source = { :git => package['repository']['url'] }
s.vendored_frameworks = "Frameworks/*"
s.resource_bundles = {
package['name'] => ["Rescources/*"],
}
s.library = 'c++'
s.xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
'CLANG_CXX_LIBRARY' => 'libc++'
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment