Unity-Technologies / com.unity.mobile.notifications

Mobile Notifications Package
https://docs.unity3d.com/Packages/com.unity.mobile.notifications@2.1/manual/index.html
Other
131 stars 42 forks source link

Android proguard seetings #259

Closed aurimasc closed 1 year ago

aurimasc commented 1 year ago

https://jira.unity3d.com/browse/MNB-38 Add proguard settings for notifications during post process. Otherwise if you enabled minification in player settings, notifications will not work because Java code will be obfuscated. The convention currently is to make stuff used from C# public, some constants are made such as a result.

To test: enable minification in Player Settings publishing section and try both release and development builds. Take a random sample of actions in Main test project. All should work as expected. Not specific to Unity version nor device nor Android version, but as two runs are required, probably good idea to do them on different Unity versions.