Search Unity

Deactivating IAP for some platforms

Discussion in 'Unity IAP' started by Olivier-Tache, Nov 13, 2018.

  1. Olivier-Tache

    Olivier-Tache

    Joined:
    Feb 27, 2015
    Posts:
    21
    Hi,
    I'm developping a game for iOS/Windows/Mac with a single code base.

    On iOS, the game proposes in-app purchases using Unity IAP.

    On Windows and Mac, there is no in-app purchases, users can buy DLCs through Steam. Therefore, I'm trying to compile this version with Unity Analytics / IAP deactivated. I'm concerned that activating them would imply GPRD issues and I would prefer not to include unnecessary code/libraries in this build.
    After deactivating the services I had to deal with compilation issues that I could correct with compilator directives.
    However, I end up with the following message that I don't know how to deal with :

    So here is my question : is there a way to build the game for Windows/Mac with Analytics/IAP physically installed but deactivated ? I would like to avoid having to deal with separate branches for iOS and PCs.

    Thanks !