Skip to content

Commit 65eade9

Browse files
authored
fix: package.swift tweaks
1 parent 69b28ef commit 65eade9

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

Package.swift

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
// swift-tools-version: 6.0
2-
// AUTO-SCAFFOLDED by react-native spm scaffold — safe to edit & commit via patch-package.
3-
// AUTO-SCAFFOLDED-VERSION: 19
4-
// Cache slot: 0.87.0/dual-flavor
5-
// Edit the contents below if needed and re-run `npx patch-package <dep-name>`
6-
// to persist across `npm install`. To regenerate from the podspec, remove
7-
// this file (or just this marker) and re-run `npx react-native spm scaffold`.
8-
//
9-
// Package references are plain relative paths, computed when this file was
10-
// scaffolded. They stay correct because the file is re-scaffolded per app
11-
// and cache slot, and any node_modules relayout reinstalls this package
12-
// (dropping the file) anyway.
132

143
import PackageDescription
154

@@ -28,6 +17,12 @@ let package = Package(
2817
name: "ReactNativeEnrichedHtml",
2918
dependencies: [.product(name: "ReactHeaders", package: "ReactNative"), .product(name: "ReactNativeHeaders", package: "ReactNative"), .product(name: "ReactNativeDependenciesHeaders", package: "ReactNative"), .product(name: "ReactAppHeaders", package: "React-GeneratedCode")],
3019
path: ".",
20+
exclude: [
21+
"node_modules",
22+
"android",
23+
"lib",
24+
"src",
25+
],
3126
sources: [
3227
"cpp/GumboParser/GumboParser.h",
3328
"cpp/parser/GumboNormalizer.c",

react-native-spm-prefix.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// AUTO-SCAFFOLDED by react-native spm scaffold — mirrors CocoaPods' default
2-
// prefix header so ObjC sources that rely on an implicit Foundation/UIKit
3-
// import compile under SPM (which has no prefix-header mechanism). Safe to
4-
// delete + regenerate via `npx react-native spm scaffold`.
51
#ifdef __OBJC__
62
#import <Foundation/Foundation.h>
73
#if __has_include(<UIKit/UIKit.h>)

0 commit comments

Comments
 (0)