From d9a650ba89f21a0666232db50e1e70ea8d80f843 Mon Sep 17 00:00:00 2001 From: Hein Rutjes Date: Mon, 17 Jun 2019 20:02:23 +0200 Subject: [PATCH] Added podspec file for when using the new Cocoapods package system --- ios/RNMagicMove.podspec | 24 ------------------------ package.json | 1 + react-native-magic-move.podspec | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 24 deletions(-) delete mode 100644 ios/RNMagicMove.podspec create mode 100644 react-native-magic-move.podspec diff --git a/ios/RNMagicMove.podspec b/ios/RNMagicMove.podspec deleted file mode 100644 index e67060e..0000000 --- a/ios/RNMagicMove.podspec +++ /dev/null @@ -1,24 +0,0 @@ - -Pod::Spec.new do |s| - s.name = "RNMagicMove" - s.version = "1.0.0" - s.summary = "RNMagicMove" - s.description = <<-DESC - RNMagicMove - DESC - s.homepage = "" - s.license = "MIT" - # s.license = { :type => "MIT", :file => "FILE_LICENSE" } - s.author = { "author" => "author@domain.cn" } - s.platform = :ios, "7.0" - s.source = { :git => "https://github.com/author/RNMagicMove.git", :tag => "master" } - s.source_files = "RNMagicMove/**/*.{h,m}" - s.requires_arc = true - - - s.dependency "React" - #s.dependency "others" - -end - - \ No newline at end of file diff --git a/package.json b/package.json index 5eb55b0..bc1fc04 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "scene-transition" ], "repository": "https://github.com/IjzerenHein/react-native-magic-move", + "homepage": "https://github.com/IjzerenHein/react-native-magic-move#readme", "bugs": "https://github.com/IjzerenHein/react-native-magic-move/issues", "license": "MIT", "main": "src/index.js", diff --git a/react-native-magic-move.podspec b/react-native-magic-move.podspec new file mode 100644 index 0000000..72546ce --- /dev/null +++ b/react-native-magic-move.podspec @@ -0,0 +1,19 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = package['name'] + s.version = package['version'] + s.summary = package['description'] + s.license = package['license'] + + s.authors = package['author'] + s.homepage = package['homepage'] + s.platform = :ios, "8.0" + + s.source = { :git => "https://github.com/IjzerenHein/react-native-magic-move.git" } + s.source_files = "ios/**/*.{h,m}" + + s.dependency 'React' +end