Skip to content
This repository was archived by the owner on Jun 12, 2020. It is now read-only.

Commit abe5926

Browse files
authored
Merge pull request #16 from elyalvarado/fix-podspec-forward-slash-in-name
Fix installing using cocoapods
2 parents 03a97c3 + b08f65b commit abe5926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react-native-zendesk-support.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ json = File.read(File.join(__dir__, "package.json"))
44
package = JSON.parse(json).deep_symbolize_keys
55

66
Pod::Spec.new do |s|
7-
s.name = package[:name]
7+
s.name = package[:name].include?("/") ? package[:name].split("/").last : package[:name]
88
s.version = package[:version]
99
s.license = package[:license]
1010
s.authors = package[:author]
@@ -24,4 +24,4 @@ Pod::Spec.new do |s|
2424
s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }
2525

2626

27-
end
27+
end

0 commit comments

Comments
 (0)