React-ART.podspec 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (c) Facebook, Inc. and its affiliates.
  2. #
  3. # This source code is licensed under the MIT license found in the
  4. # LICENSE file in the root directory of this source tree.
  5. require "json"
  6. package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
  7. version = package['version']
  8. source = { :git => 'https://github.com/facebook/react-native.git' }
  9. if version == '1000.0.0'
  10. # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
  11. source[:commit] = `git rev-parse HEAD`.strip
  12. else
  13. source[:tag] = "v#{version}"
  14. end
  15. Pod::Spec.new do |s|
  16. s.name = "React-ART"
  17. s.version = version
  18. s.summary = "A library for drawing vector graphics."
  19. s.homepage = "https://reactnative.dev/"
  20. s.license = package["license"]
  21. s.author = "Facebook, Inc. and its affiliates"
  22. s.platforms = { :ios => "10.0", :tvos => "10.0" }
  23. s.source = source
  24. s.source_files = "**/*.{m}"
  25. s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
  26. s.header_dir = "ART"
  27. s.dependency "React-Core/ARTHeaders", version
  28. end