You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android
ℹ Please replace these two lines with the SDK version.
e.g. ios and android
What did you do?
I install the latest 6.15.0 on one branch, then check out an older branch using 6.13.1. From this point on the sdk returns 404 when initializing as is pointing to the latest backend on 6.15.0. It returns 404 because the app_id passed doesn't match as we use different app ids in debug.
ℹ Please replace these two lines with what you did.
pnpm install
What did you expect to happen?
I'd expect the plugin to read its own package json file, rather than crawl the npm cache.
ℹ Please replace these two lines with what you expected to happen.
Reading its own package.json
What happened instead?
Read the wrong package.json
Please provide any other relevant information.
The text was updated successfully, but these errors were encountered:
👋 Hi @charlisi and Thank you for reaching out to us.
In order for us to provide optimal support, please submit a ticket to our support team at [email protected].
When submitting the ticket, please specify:
Hey @charlisi
Quick note on the branch switching issue: The lock file (package-lock.json or yarn.lock) overrides package.json for dependency versions to ensure consistent installs. This might cause inconsistencies when you switch to an older branch because the lock file will still reference newer versions.
When you checkout the older branch, the package manager checks the lock file and sees that it specifies the version "^6.15.0" for the "appsflyer-capacitor-plugin" plugin. This means that npm or Yarn will attempt to install version 6.15.0, even if the version specified in the package.json file is "^6.13.1". This is because the caret symbol (^) allows for compatible version updates within the same major version.
For the older branch to install the correct plugin versions:
Remove the lock file from your directory.
Run npm install or yarn install to regenerate the lock file based on the current package.json.
Switch to the older branch.
As lock files are usually under version control, coordinate with your team on any changes.
Your monorepo project structure might contribute to the issue. I've made enhancements to the getPackageJsonPath() method and our Gradle script for better support. If issues persist, set the APPSFLYER_PACKAGE_JSON_PATH in variables.gradle as per our docs on GitHub for v6.15.2 which will be released in the following day.
If such Gradle issues continue, we might reconsider this feature to avoid future conflicts at the expense of update efficiency.
Report
Plugin Version
Any version
On what Platform are you having the issue?
Android
ℹ Please replace these two lines with the SDK version.
e.g. ios and android
What did you do?
I install the latest 6.15.0 on one branch, then check out an older branch using 6.13.1. From this point on the sdk returns 404 when initializing as is pointing to the latest backend on 6.15.0. It returns 404 because the app_id passed doesn't match as we use different app ids in debug.
ℹ Please replace these two lines with what you did.
pnpm install
What did you expect to happen?
I'd expect the plugin to read its own package json file, rather than crawl the npm cache.
ℹ Please replace these two lines with what you expected to happen.
Reading its own package.json
What happened instead?
Read the wrong package.json
Please provide any other relevant information.
The text was updated successfully, but these errors were encountered: