AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
278 stars 198 forks source link

Package react-native-appsflyer contains invalid configuration: "dependency.platforms.ios.podspecPath" #458

Closed youknownix closed 1 year ago

youknownix commented 1 year ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-appsflyer@6.10.2 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-appsflyer/react-native.config.js b/node_modules/react-native-appsflyer/react-native.config.js
index dfbe81b..1f279b3 100644
--- a/node_modules/react-native-appsflyer/react-native.config.js
+++ b/node_modules/react-native-appsflyer/react-native.config.js
@@ -3,7 +3,7 @@ const path = require('path');
 module.exports = {
   dependency: {
     platforms: {
-      ios: { podspecPath: path.join(__dirname, 'react-native-appsflyer.podspec') },
       android: {
         packageImportPath: 'import com.appsflyer.reactnative.RNAppsFlyerPackage;',
         packageInstance: 'new RNAppsFlyerPackage()',

This issue body was partially generated by patch-package.

amit-kremer93 commented 1 year ago

There is a MR related to this: https://github.com/AppsFlyerSDK/appsflyer-react-native-plugin/pull/434 We need to check first how this change will impact older versions of RN in different apps. We will update when it will be fixed. Thx!