diff --git a/MultipleImagePicker.podspec b/MultipleImagePicker.podspec index 50a6fee..3dc2ed9 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 58a05d6..2d9a8c1 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 3fdf8ea..3ace47f 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'), + }, }, }, }