Search Unity

Exclude DLLs from release build

Discussion in 'Editor & General Support' started by TriNityGER, Oct 19, 2018.

  1. TriNityGER

    TriNityGER

    Joined:
    Sep 1, 2017
    Posts:
    29
    Hey guys,

    So we're using JIRA Dlls for automated reporting of bugs during testing. Obviously we don't want to include these DLLs in a release build! Is there any way to exclude these DLLs during release build?
     
  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    Yes, just select the DLLs from your project tab in Unity, then adjust your platform settings in the inspector to exclude the DLLs from non-editor platforms.
     
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    just wondering if you can post a link to this integration? is this an official integration with JIRA? would like to try it out myself
     
  4. TriNityGER

    TriNityGER

    Joined:
    Sep 1, 2017
    Posts:
    29
    Check out this project: https://bitbucket.org/farmas/atlassian.net-sdk/wiki/Home

    @Gambit-MSplitz These are the only settings I can adjust in the inspector:


    As you can see, I can only exclude the whole platform, not specific build configurations.
    I would like to exclude the DLLs from the release build. So an exclude option for Android_Release would be nice. Any ideas?
     
  5. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    You can create your own custom build tools to help you with that.

    We did something similar since we support both Android (google play) and Amazon app store (which is essentially an Android build, but has a few changes).
     
  6. TriNityGER

    TriNityGER

    Joined:
    Sep 1, 2017
    Posts:
    29
    Sounds good, can you give me a few more infos on that?
     
  7. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Sure. What kind of configurations are you setting and how are they defined?

    I will post a code snippet after u reply to match what you need.
     
  8. WurzelPurzel

    WurzelPurzel

    Joined:
    Sep 20, 2014
    Posts:
    4
    Sorry to necro this one, but I would like to exclude my steam_api.dll from non steam builds, so builds that don't have STEAMWORKS_NET scripting define set or builds that have STEAMWORKS_NET and DISABLESTEAMWORKS scripting defines set.

    How would I go about this?