Skip to content

Fix/podspec file issues #2383

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

Merged
merged 2 commits into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
22 changes: 22 additions & 0 deletions 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
8 changes: 5 additions & 3 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module.exports = {
dependency: {
platforms: {
ios: {
podspecPath: './lib/ReactNativeUiLib.podspec'
},
/* 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'
// },
android: {
sourceDir: './lib/android/',
packageImportPath: `import com.wix.reactnativeuilib.highlighterview.HighlighterViewPackage;
Expand Down