From 518589f47a52d288bfd2a7173f455f3f308cd5da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Thu, 7 Nov 2024 11:10:10 +0100 Subject: [PATCH] feat: ship codegen generated specs --- example/ios/Podfile.lock | 6 +++--- package.json | 12 +++++------- .../@react-native+codegen+0.76.0.patch | 0 react-native-draco.podspec | 2 +- 4 files changed, 9 insertions(+), 11 deletions(-) rename {example/patches => patches}/@react-native+codegen+0.76.0.patch (100%) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 3fd40a1..e23046a 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1837,7 +1837,7 @@ SPEC CHECKSUMS: React-Mapbuffer: b0b4ace5b62b269f3838df26ba2d8b4f39f90783 React-microtasksnativemodule: 0b7db04c18f6bb01ef5b1f9007c3229abecc35dd react-native-blob-util: e6a3b23a99ac2c3d9fa48722db049a1e1808efc2 - react-native-draco: a5b96516aa5730b6500d31f5a56de03aa58cc973 + react-native-draco: 991258c154c8ad912b15d15707282636344ec198 React-nativeconfig: 72c10ff34863148ef90df9c9c8eacba99d2faaaa React-NativeModulesApple: 5ec49182fa000b2215ee1bed03e2867f8323ccf5 React-perflogger: 073c7a8a436b3fe724f1df34e9d1f3db1d25fe74 @@ -1868,10 +1868,10 @@ SPEC CHECKSUMS: ReactNativeHost: a27bb5af1c4d73dd3e80cc7ce295407f414e0e8c ReactTestApp-DevSupport: 1e39530b4a8602e7138a5b9dfafe41d3a78382ff ReactTestApp-Resources: ef64fb77d09031eba0ada7240f39d4579fa02361 - Resources: 1be6baca2388aacddcc0328ea6ee3de074eef20d + Resources: d39dc58dd16fbcc7cfb0f8b0a62679feac55bc05 SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 Yoga: f8ec45ce98bba1bc93dd28f2ee37215180e6d2b6 -PODFILE CHECKSUM: 88db05552cc61eb79b2fccb6f3e09940db6299a2 +PODFILE CHECKSUM: b64ce096b3bdd3e5e69e58c42f23d8ebdc23a054 COCOAPODS: 1.15.2 diff --git a/package.json b/package.json index e49b6c7..69f3ec0 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "types": "./lib/typescript/commonjs/src/index.d.ts", "default": "./lib/commonjs/index.js" } - } + }, + "package.json": "./package.json" }, "files": [ "src", @@ -186,14 +187,11 @@ }, "codegenConfig": { "name": "RNDracoSpec", - "type": "all", + "type": "modules", "jsSrcsDir": "src", + "includesGeneratedCode": true, "outputDir": { - "ios": "ios/generated", - "android": "android/generated" - }, - "android": { - "javaPackageName": "com.draco" + "ios": "ios/generated" } }, "create-react-native-library": { diff --git a/example/patches/@react-native+codegen+0.76.0.patch b/patches/@react-native+codegen+0.76.0.patch similarity index 100% rename from example/patches/@react-native+codegen+0.76.0.patch rename to patches/@react-native+codegen+0.76.0.patch diff --git a/react-native-draco.podspec b/react-native-draco.podspec index 5814f4d..37cdfe8 100644 --- a/react-native-draco.podspec +++ b/react-native-draco.podspec @@ -14,7 +14,7 @@ Pod::Spec.new do |s| s.platforms = { :ios => min_ios_version_supported } s.source = { :git => "https://github.com/callstack/react-native-draco.git", :tag => "#{s.version}" } - s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}" + s.source_files = "ios/**/*.{h,m,mm,cpp}", "cpp/**/*.{hpp,cpp,c,h}" s.pod_target_xcconfig = { 'HEADER_SEARCH_PATHS' => '$(PODS_TARGET_SRCROOT)/libs/include',