-
Notifications
You must be signed in to change notification settings - Fork 2
/
react-native-creativekit.podspec
35 lines (30 loc) · 1.28 KB
/
react-native-creativekit.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
35
# 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/maxschmeling/react-native-creativekit.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 = "ReactNativeCreativeKit"
s.version = version
s.summary = package["description"]
s.homepage = "https://maxschmeling.github.io/react-native-creativekit"
s.documentation_url = "https://maxschmeling.github.io/react-native-creativekit/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 "SnapSDK/SCSDKCreativeKit", "1.6.8"
s.dependency "React"
end