React.podspec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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"
  17. s.version = version
  18. s.summary = package["description"]
  19. s.description = <<-DESC
  20. React Native apps are built using the React JS
  21. framework, and render directly to native UIKit
  22. elements using a fully asynchronous architecture.
  23. There is no browser and no HTML. We have picked what
  24. we think is the best set of features from these and
  25. other technologies to build what we hope to become
  26. the best product development framework available,
  27. with an emphasis on iteration speed, developer
  28. delight, continuity of technology, and absolutely
  29. beautiful and fast products with no compromises in
  30. quality or capability.
  31. DESC
  32. s.homepage = "https://reactnative.dev/"
  33. s.license = package["license"]
  34. s.author = "Facebook, Inc. and its affiliates"
  35. s.platforms = { :ios => "10.0", :tvos => "10.0" }
  36. s.source = source
  37. s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
  38. s.cocoapods_version = ">= 1.2.0"
  39. s.dependency "React-Core", version
  40. s.dependency "React-Core/DevSupport", version
  41. s.dependency "React-Core/RCTWebSocket", version
  42. s.dependency "React-RCTActionSheet", version
  43. s.dependency "React-RCTAnimation", version
  44. s.dependency "React-RCTBlob", version
  45. s.dependency "React-RCTImage", version
  46. s.dependency "React-RCTLinking", version
  47. s.dependency "React-RCTNetwork", version
  48. s.dependency "React-RCTSettings", version
  49. s.dependency "React-RCTText", version
  50. s.dependency "React-RCTVibration", version
  51. end