create-react-native-library 0.46.0 → 0.47.0

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.46.0",
3
+ "version": "0.47.0",
4
4
  "description": "CLI to scaffold React Native libraries",
5
5
  "keywords": [
6
6
  "react-native",
@@ -30,7 +30,7 @@
30
30
  "templates"
31
31
  ],
32
32
  "engines": {
33
- "node": ">= 18.0.0"
33
+ "node": ">= 20.0.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public",
@@ -65,5 +65,5 @@
65
65
  "@types/validate-npm-package-name": "^3.0.3",
66
66
  "@types/yargs": "^17.0.10"
67
67
  },
68
- "gitHead": "0bacd58eab2ce56f20be84009aa6f4315dd95c52"
68
+ "gitHead": "f06514d852d578df98008b0ce87de69e0fde59bd"
69
69
  }
@@ -5,7 +5,7 @@ runs:
5
5
  using: composite
6
6
  steps:
7
7
  - name: Setup Node.js
8
- uses: actions/setup-node@v3
8
+ uses: actions/setup-node@v4
9
9
  with:
10
10
  node-version-file: .nvmrc
11
11
 
@@ -15,7 +15,7 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - name: Checkout
18
- uses: actions/checkout@v3
18
+ uses: actions/checkout@v4
19
19
 
20
20
  - name: Setup
21
21
  uses: ./.github/actions/setup
@@ -30,7 +30,7 @@ jobs:
30
30
  runs-on: ubuntu-latest
31
31
  steps:
32
32
  - name: Checkout
33
- uses: actions/checkout@v3
33
+ uses: actions/checkout@v4
34
34
 
35
35
  - name: Setup
36
36
  uses: ./.github/actions/setup
@@ -42,7 +42,7 @@ jobs:
42
42
  runs-on: ubuntu-latest
43
43
  steps:
44
44
  - name: Checkout
45
- uses: actions/checkout@v3
45
+ uses: actions/checkout@v4
46
46
 
47
47
  - name: Setup
48
48
  uses: ./.github/actions/setup
@@ -57,7 +57,7 @@ jobs:
57
57
  TURBO_CACHE_DIR: .turbo/android
58
58
  steps:
59
59
  - name: Checkout
60
- uses: actions/checkout@v3
60
+ uses: actions/checkout@v4
61
61
 
62
62
  - name: Setup
63
63
  uses: ./.github/actions/setup
@@ -80,7 +80,7 @@ jobs:
80
80
 
81
81
  - name: Install JDK
82
82
  if: env.turbo_cache_hit != 1
83
- uses: actions/setup-java@v3
83
+ uses: actions/setup-java@v4
84
84
  with:
85
85
  distribution: 'zulu'
86
86
  java-version: '17'
@@ -113,7 +113,7 @@ jobs:
113
113
  TURBO_CACHE_DIR: .turbo/ios
114
114
  steps:
115
115
  - name: Checkout
116
- uses: actions/checkout@v3
116
+ uses: actions/checkout@v4
117
117
 
118
118
  - name: Setup
119
119
  uses: ./.github/actions/setup
@@ -169,7 +169,7 @@ jobs:
169
169
  runs-on: ubuntu-latest
170
170
  steps:
171
171
  - name: Checkout
172
- uses: actions/checkout@v3
172
+ uses: actions/checkout@v4
173
173
 
174
174
  - name: Setup
175
175
  uses: ./.github/actions/setup
@@ -1 +1 @@
1
- v18
1
+ v20
@@ -1,6 +1,7 @@
1
1
  buildscript {
2
- // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
- def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["<%- project.name -%>_kotlinVersion"]
2
+ ext.getExtOrDefault = {name ->
3
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['<%- project.name -%>_' + name]
4
+ }
4
5
 
5
6
  repositories {
6
7
  google()
@@ -8,16 +9,18 @@ buildscript {
8
9
  }
9
10
 
10
11
  dependencies {
11
- classpath "com.android.tools.build:gradle:7.2.1"
12
+ classpath "com.android.tools.build:gradle:8.7.2"
12
13
  // noinspection DifferentKotlinGradleVersion
13
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
14
15
  }
15
16
  }
16
17
 
18
+ <% if (project.cpp) { -%>
17
19
  def reactNativeArchitectures() {
18
20
  def value = rootProject.getProperties().get("reactNativeArchitectures")
19
21
  return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
20
22
  }
23
+ <% } -%>
21
24
 
22
25
  def isNewArchitectureEnabled() {
23
26
  return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
@@ -30,10 +33,6 @@ if (isNewArchitectureEnabled()) {
30
33
  apply plugin: "com.facebook.react"
31
34
  }
32
35
 
33
- def getExtOrDefault(name) {
34
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["<%- project.name -%>_" + name]
35
- }
36
-
37
36
  def getExtOrIntegerDefault(name) {
38
37
  return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["<%- project.name -%>_" + name]).toInteger()
39
38
  }
@@ -131,10 +130,7 @@ repositories {
131
130
  def kotlin_version = getExtOrDefault("kotlinVersion")
132
131
 
133
132
  dependencies {
134
- // For < 0.71, this will be from the local maven repo
135
- // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
136
- //noinspection GradleDynamicVersion
137
- implementation "com.facebook.react:react-native:+"
133
+ implementation "com.facebook.react:react-android"
138
134
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
139
135
  }
140
136
 
@@ -1,5 +1,5 @@
1
- <%- project.name -%>_kotlinVersion=1.7.0
2
- <%- project.name -%>_minSdkVersion=21
3
- <%- project.name -%>_targetSdkVersion=31
4
- <%- project.name -%>_compileSdkVersion=31
5
- <%- project.name -%>_ndkversion=21.4.7075529
1
+ <%- project.name -%>_kotlinVersion=2.0.21
2
+ <%- project.name -%>_minSdkVersion=24
3
+ <%- project.name -%>_targetSdkVersion=34
4
+ <%- project.name -%>_compileSdkVersion=35
5
+ <%- project.name -%>_ndkversion=27.1.12297006
@@ -20,6 +20,7 @@ Pod::Spec.new do |s|
20
20
  s.source_files = "ios/**/*.{h,m,mm,swift}"
21
21
  <% } else if (project.arch !== "legacy") { -%>
22
22
  s.source_files = "ios/**/*.{h,m,mm,cpp}"
23
+ s.private_header_files = "ios/generated/**/*.h"
23
24
  <% } else { -%>
24
25
  s.source_files = "ios/**/*.{h,m,mm}"
25
26
  <% } -%>