AppsFlyerSDK / appsflyer-capacitor-plugin

AppsFlyer SDK plugin for Capacitor
MIT License
15 stars 25 forks source link

Can't find package.json #108

Closed charlisi closed 7 months ago

charlisi commented 8 months ago

Report

Plugin Version

appsflyer-capacitor-plugin@^6.10.3

On what Platform are you having the issue?

android

What did you do?

rush add -p "appsflyer-capacitor-plugin@^6.10.3 npx cap sync npx cap build android

What did you expect to happen?

Dependencies installed

What happened instead?

Error message saying can't find your package.json

Please provide any other relevant information.

The solution should be easy and self contained so it works on any kind of repo. In the android build.gradle file: Why don't you do "$buildFile/../../package.json" instead of "$rootDir/../node_modules/appsflyer-capacitor-plugin/package.json" ? Then you don't need workarounds in project that integrates with your SDK.

pazlavi commented 8 months ago

The fix is scheduled for the upcoming release (probably 2nd half ofFebruary). For now you can use this version:

npm install appsflyer-capacitor-plugin@6.12.1-alpha-monorepo
pazlavi commented 7 months ago

Fixed in 6.13.0