Skip to content

Commit

Permalink
Fix/podspec file issues (#2383)
Browse files Browse the repository at this point in the history
* Move podspec to root folder

* Copy podspec file to lib as well
  • Loading branch information
ethanshar authored Dec 27, 2022
1 parent e59bac4 commit 87641d8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
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

0 comments on commit 87641d8

Please sign in to comment.