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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

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:
    383
    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:
    383
    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,669
    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:
    383
    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:
    9
    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"