Skip to content

Commit 87641d8

Browse files
authored
Fix/podspec file issues (#2383)
* Move podspec to root folder * Copy podspec file to lib as well
1 parent e59bac4 commit 87641d8

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

ReactNativeUiLib.podspec

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
s.name = "ReactNativeUiLib"
7+
s.version = package['version']
8+
s.summary = "React Native UI Library"
9+
10+
s.authors = "Wix.com"
11+
s.homepage = package['homepage']
12+
s.license = package['license']
13+
s.platforms = { :ios => "9.0", :tvos => "9.2" }
14+
15+
s.module_name = 'ReactNativeUiLib'
16+
17+
s.source = { :git => "https://github.com/wix/react-native-ui-lib.git", :tag => "#{s.version}" }
18+
s.source_files = "ios/**/*.{h,m}"
19+
20+
s.dependency 'React'
21+
s.frameworks = 'UIKit'
22+
end

react-native.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module.exports = {
22
dependency: {
33
platforms: {
4-
ios: {
5-
podspecPath: './lib/ReactNativeUiLib.podspec'
6-
},
4+
/* 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
5+
I copied it, because we need it for both the main uilib and the uilib-native package */
6+
// ios: {
7+
// podspecPath: './lib/ReactNativeUiLib.podspec'
8+
// },
79
android: {
810
sourceDir: './lib/android/',
911
packageImportPath: `import com.wix.reactnativeuilib.highlighterview.HighlighterViewPackage;

0 commit comments

Comments
 (0)