The Unity SDK has internal functions that call deprecated functions (and wrap them with warning-disable). ChartboostMediationAndroid.cs, for example. This feels like either it should be converted to use the non-deprecated versions, or the function making these calls should also be deprecated. IOS calls have been fixed so they do not trigger internal warnings. We have also enabled -warnaserror to detect this issues in the future.
Type of change
[x] Bug fix (fixes an issue)
[ ] New feature (adds functionality)
[x] Refactor / Maintenance (refactoring code to be cleaner/easier to maintain)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Title
[HB-6541][HB6646] Fix Calling Deprecated Functions
Description
The Unity SDK has internal functions that call deprecated functions (and wrap them with warning-disable). ChartboostMediationAndroid.cs, for example. This feels like either it should be converted to use the non-deprecated versions, or the function making these calls should also be deprecated. IOS calls have been fixed so they do not trigger internal warnings. We have also enabled
-warnaserror
to detect this issues in the future.Type of change
Checklist: