Giter VIP home page Giter VIP logo

Comments (4)

wfhm avatar wfhm commented on June 13, 2024 2

Hello @v4dkou ,

These libraries are used for Inbox UI. Theoretically you can remove com.pushwoosh:pushwoosh-inbox and com.pushwoosh:pushwoosh-inbox-ui libs as well as mentioned above android-support dependencies, however we cannot guarantee it will work stable. As for '+' versions of dependencies, it intentionally used to prevent possible conflicts with other plugins that utilize play-services and android-support libs.

from pushwoosh-react-native-plugin.

v4dkou avatar v4dkou commented on June 13, 2024

Hello @wfhm ,

com.pushwoosh:pushwoosh-inbox-ui is deployed as a separate package in native Android SDK for a reason: not all users need it. Please consider splitting the packages for React Native as well.
This would also improve build times for iOS users.

Speaking of '+' versions of dependencies: they introduce conflicts, rather than prevent them, as there may be older versions of these dependencies used in the app at some point, and the PushWoosh plugin forces the latest one to be downloaded every time the project is built.
Having CI/CD builds failing after a month without touching the codebase is frustrating to say the least.

You could add a way to select our own library versions via Gradle ext. variables.
Use this article for reference:
https://medium.com/@ivan_m/use-variables-to-manage-gradle-android-dependencies-library-version-numbers-92f0e362a2fc

For other users affected by this issue, I would recommend a workaround using Gradle ResolutionStrategy
https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html

from pushwoosh-react-native-plugin.

wfhm avatar wfhm commented on June 13, 2024

@v4dkou

com.pushwoosh:pushwoosh-inbox-ui is deployed as a separate package in native Android SDK for a reason: not all users need it. Please consider splitting the packages for React Native as well.
This would also improve build times for iOS users.

Sure, this was already discussed within the team and it will most probably be done in the nearest future.

As for using ext., thank you for the suggestion. This indeed sounds like a solution to potential conflicts, however it leaves no possibility to specify default versions of dependencies, making integration more complicated. I will discuss it with the team and let you know if we will consider switching to using ext variables.

from pushwoosh-react-native-plugin.

v4dkou avatar v4dkou commented on June 13, 2024

@wfhm What did the team say?

from pushwoosh-react-native-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.