Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Can I exclude a dependent plugin from being added to my build?

Discussion in 'Android' started by karyll, Mar 26, 2021.

  1. karyll


    Apr 4, 2017
    I'm using admob to display ads in my app and I'm trying to add mediation.
    admob can be added with either the full package or a lite version

    I am using the lite sdk

    The UnityMediationDependencies.xml which comes with the unity mediation plugin, because of dependent plugins, is adding the full play-servies-ads package to my build.
    this *.pom file I got from the repository link which shows (i think) what gets included automatically with the above xml definition

    What I want to achieve is have in my project the ads.mediation, and androidx.annotation packages but NOT the package.

    Is there any way to write some code in the UnityMediationDependencies.xml that removes the play-services-ads package from the build?

    I've read about exclusions but I do not know how to apply them or even if it's possible to.
    - Victor