-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-native-video-composer.podspec
34 lines (29 loc) · 1.23 KB
/
react-native-video-composer.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
version = package['version']
source = { :git => 'https://github.com/clipisode/react-native-video-composer.git' }
if version.end_with? == '-pre'
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
source[:commit] = `git rev-parse HEAD`.strip
else
# source[:tag] = "v#{version}"
source[:branch] = "master"
end
Pod::Spec.new do |s|
s.name = "ReactNativeVideoComposer"
s.version = version
s.summary = package["description"]
s.homepage = "https://clipisode.github.io/react-native-video-composer"
s.documentation_url = "https://clipisode.github.io/react-native-video-composer/docs"
s.license = package["license"]
s.author = "Max Schmeling"
s.platforms = { :ios => "10.0" }
s.source = source
s.source_files = "ios/**/*.{h,m,swift}"
s.dependency "React"
end