Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/podspec file issues #2383

Merged
merged 2 commits into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Copy podspec file to lib as well
  • Loading branch information
ethanshar committed Dec 19, 2022
commit 103d0d58243209736375b5dcd1c121c63642f19d
22 changes: 22 additions & 0 deletions lib/ReactNativeUiLib.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = "ReactNativeUiLib"
s.version = package['version']
s.summary = "React Native UI Library"

s.authors = "Wix.com"
s.homepage = package['homepage']
s.license = package['license']
s.platforms = { :ios => "9.0", :tvos => "9.2" }

s.module_name = 'ReactNativeUiLib'

s.source = { :git => "https://github.com/wix/react-native-ui-lib.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m}"

s.dependency 'React'
s.frameworks = 'UIKit'
end
3 changes: 2 additions & 1 deletion react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
dependency: {
platforms: {
// TODO: Once we upgrade to RN69 we should try using podspecPath again, for now I moved ReactNativeUiLib.podspec file to the root - it seems to work
/* TODO: Once we upgrade to RN69 we should try using podspecPath again, for now I copied ReactNativeUiLib.podspec file to the root - it seems to work
I copied it, because we need it for both the main uilib and the uilib-native package */
// ios: {
// podspecPath: './lib/ReactNativeUiLib.podspec'
// },
Expand Down