create-react-native-library 0.51.0 → 0.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-react-native-library",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "description": "CLI to scaffold React Native libraries",
5
5
  "keywords": [
6
6
  "react-native",
@@ -66,5 +66,5 @@
66
66
  "@types/validate-npm-package-name": "^3.0.3",
67
67
  "@types/yargs": "^17.0.10"
68
68
  },
69
- "gitHead": "240421d76c10b1cf7d040bf88983f70cc7edd3bb"
69
+ "gitHead": "6445bc65a77a57e2a760e6a92eeaeb727d40c574"
70
70
  }
@@ -63,6 +63,5 @@ body:
63
63
  attributes:
64
64
  label: Reproducible example repository
65
65
  description: Please provide a link to a repository on GitHub with a reproducible example.
66
- render: js
67
66
  validations:
68
67
  required: true
@@ -151,32 +151,14 @@ jobs:
151
151
  with:
152
152
  xcode-version: ${{ env.XCODE_VERSION }}
153
153
 
154
- - name: Restore cocoapods
155
- if: env.turbo_cache_hit != 1
156
- id: cocoapods-cache
157
- uses: actions/cache/restore@v4
158
- with:
159
- path: |
160
- **/ios/Pods
161
- key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
162
- restore-keys: |
163
- ${{ runner.os }}-cocoapods-
164
-
165
154
  - name: Install cocoapods
166
155
  if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
167
156
  run: |
168
157
  cd example
169
158
  bundle install
159
+ bundle exec pod repo update --verbose
170
160
  bundle exec pod install --project-directory=ios
171
161
 
172
- - name: Cache cocoapods
173
- if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
174
- uses: actions/cache/save@v4
175
- with:
176
- path: |
177
- **/ios/Pods
178
- key: ${{ steps.cocoapods-cache.outputs.cache-key }}
179
-
180
162
  - name: Build example for iOS
181
163
  run: |
182
164
  yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
@@ -13,17 +13,33 @@ Pod::Spec.new do |s|
13
13
  s.platforms = { :ios => min_ios_version_supported }
14
14
  s.source = { :git => "<%- repo -%>.git", :tag => "#{s.version}" }
15
15
 
16
+ <% if (project.moduleConfig !== "nitro-modules") { -%>
16
17
  <% if (project.swift) { -%>
17
18
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
19
  <% } else { -%>
19
20
  s.source_files = "ios/**/*.{h,m,mm,cpp}"
20
21
  s.private_header_files = "ios/**/*.h"
21
22
  <% } -%>
23
+ <% } -%>
24
+
22
25
  <% if (project.moduleConfig === "nitro-modules") { -%>
26
+ s.source_files = [
27
+ "ios/**/*.{swift}",
28
+ "ios/**/*.{m,mm}",
29
+ "cpp/**/*.{hpp,cpp}",
30
+ ]
31
+
32
+ s.pod_target_xcconfig = {
33
+ # C++ compiler flags, mainly for folly.
34
+ "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES"
35
+ }
36
+
37
+ s.dependency 'React-jsi'
38
+ s.dependency 'React-callinvoker'
23
39
 
24
40
  load 'nitrogen/generated/ios/<%- project.name -%>+autolinking.rb'
25
41
  add_nitrogen_files(s)
26
42
  <% } -%>
27
43
 
28
- install_modules_dependencies(s)
44
+ install_modules_dependencies(s)
29
45
  end
@@ -1,19 +0,0 @@
1
- #import <React/RCTViewManager.h>
2
- #import <React/RCTUIManager.h>
3
- #import "RCTBridge.h"
4
-
5
- @interface <%- project.name -%>ViewManager : RCTViewManager
6
- @end
7
-
8
- @implementation <%- project.name -%>ViewManager
9
-
10
- RCT_EXPORT_MODULE(<%- project.name -%>View)
11
-
12
- - (UIView *)view
13
- {
14
- return [[UIView alloc] init];
15
- }
16
-
17
- RCT_EXPORT_VIEW_PROPERTY(color, NSString)
18
-
19
- @end