Search Unity

Bug: Custom Proguard File shows as gradleTemplate.properties?

Discussion in 'Android' started by tessellation, Apr 14, 2021.

  1. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    390
    In the latest Unity 2020.3.3f1 (LTS) the proguard user file is forced to be grandleTemplate.properties. In previous versions of Unity (2018 LTS), I could select a custom user txt file. Unity documentation isn't explaining this. What am I missing?

    Screen Shot 2021-04-14 at 3.30.45 PM.png
    See above the last setting "Custom Proguard File."
     
    jdell64 likes this.
  2. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    390
    Anyone at Unity know what's going on? I'm going to check gradleOut and see what's being generated when USER_PROGUARD is replaced in the gradle template, during the build.
     
    Last edited: Apr 20, 2021
  3. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,920
    Thats a bug in UI
     
  4. rainbowmimizu

    rainbowmimizu

    Joined:
    Sep 19, 2017
    Posts:
    5
    I'm also confused about this bug, too.(Unity 2020.3.5f1)
    I assume it's still using proguard-user file, although UI shows gradleTemplate.properties.
     
  5. jdell64

    jdell64

    Joined:
    Mar 15, 2017
    Posts:
    13
    So if this is a UI bug, are you still able to set the proguard file?
     
  6. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    390
    Yes, I believe it still uses the proguard-user file even though it says gradleTemplate.
     
    jdell64 likes this.
  7. DadNapper

    DadNapper

    Joined:
    Jan 13, 2018
    Posts:
    10
    Caught this bug as well. You can tell it's working because it generates the "proguard-user.txt" file when you tick the "Custom Proguard File"