From 4eabae1c57c2b2681f2558097685ab8ab75ac289 Mon Sep 17 00:00:00 2001 From: song <> Date: Sat, 29 Nov 2025 19:56:08 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E8=AE=A9=20@baronha/react-native-multipl?= =?UTF-8?q?e-image-picker=20=E5=9C=A8=E6=96=B0=E6=9E=B6=E6=9E=84=E4=B8=8B?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E8=B7=91=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MultipleImagePicker.podspec | 13 ++++++++----- package.json | 15 +++++++++------ react-native.config.js | 17 +++++++++-------- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git a/MultipleImagePicker.podspec b/MultipleImagePicker.podspec index 50a6fee2..3dc2ed9a 100644 --- a/MultipleImagePicker.podspec +++ b/MultipleImagePicker.podspec @@ -27,14 +27,17 @@ Pod::Spec.new do |s| } - s.dependency "HXPhotoPicker/Picker", "4.2.4" - s.dependency "HXPhotoPicker/Camera/Lite", "4.2.4" - s.dependency "HXPhotoPicker/Editor", "4.2.4" + # Track HXPhotoPicker 5.x (use latest compatible patch) + s.dependency "HXPhotoPicker/Picker", "~> 5.0" + s.dependency "HXPhotoPicker/Camera/Lite", "~> 5.0" + s.dependency "HXPhotoPicker/Editor", "~> 5.0" s.pod_target_xcconfig = { # C++ compiler flags, mainly for folly. "CLANG_CXX_LANGUAGE_STANDARD" => "c++20", - "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES FOLLY_MOBILE" + "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES FOLLY_MOBILE", + # Ensure Objective-C categories (+load) are linked for Nitro autolinking. + "OTHER_LDFLAGS" => "$(inherited) -ObjC" } if ENV["USE_FRAMEWORKS"] @@ -52,4 +55,4 @@ Pod::Spec.new do |s| s.dependency 'React-callinvoker' install_modules_dependencies(s) -end \ No newline at end of file +end diff --git a/package.json b/package.json index 58a05d64..2d9a8c12 100644 --- a/package.json +++ b/package.json @@ -60,22 +60,25 @@ "devDependencies": { "@react-native/eslint-config": "^0.75.2", "@types/jest": "^29.5.12", - "@types/react": "^18.3.4", + "@types/react": "^19.2.7", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", - "nitro-codegen": "0.25.2", + "nitro-codegen": "^0.29.4", "prettier": "^3.3.3", - "react": "^18.3.1", - "react-native": "^0.75.2", + "react": "19.1.0", + "react-native": "0.81.5", "react-native-builder-bob": "^0.30.0", - "react-native-nitro-modules": "0.25.2", - "typescript": "^5.5.4" + "react-native-nitro-modules": "^0.31.10", + "typescript": "^5.9.3" }, "peerDependencies": { "react": "*", "react-native": "*" }, + "dependencies": { + "react-native-nitro-modules": "^0.31.10" + }, "eslintConfig": { "root": true, "extends": [ diff --git a/react-native.config.js b/react-native.config.js index 3fdf8eaa..3ace47f9 100644 --- a/react-native.config.js +++ b/react-native.config.js @@ -1,16 +1,17 @@ // https://github.com/react-native-community/cli/blob/main/docs/dependencies.md +const path = require('path') + module.exports = { dependency: { platforms: { - /** - * @type {import('@react-native-community/cli-types').IOSDependencyParams} - */ - ios: {}, - /** - * @type {import('@react-native-community/cli-types').AndroidDependencyParams} - */ - android: {}, + ios: { + // Help autolinking find the podspec when using file:../ or symlinked installs. + podspecPath: path.join(__dirname, 'MultipleImagePicker.podspec'), + }, + android: { + sourceDir: path.join(__dirname, 'android'), + }, }, }, }