-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK warning fixes #1267
SDK warning fixes #1267
Conversation
added SDK warning fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the warnings (except Countly of course) were fixed! but I still see some of them remaining:
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs(129,19): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs(138,19): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs(143,19): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs(14,99): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs(16,78): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs(17,37): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Editor/WebGLResourceEmbedding.cs(12,9): warning CS0618: 'PlayerSettings.SetPropertyBool(string, bool, BuildTargetGroup)' is obsolete: 'Use explicit API instead.'
The GUID inside 'Assets/Samples/web3.unity SDK MUD/3.0.6.meta' cannot be extracted by the YAML Parser. Attempting to extract it via string matching instead. Please verify the file does not contain unexpected data.
The GUID inside 'Packages/io.chainsafe.web3-unity.ramp/Editor.meta' cannot be extracted by the YAML Parser. Attempting to extract it via string matching instead. Please verify the file does not contain unexpected data.
Also, I can't build on WebGL, getting this error:
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/IPFS/UploadPlatforms.cs(70,13): error CS0103: The name 'ImageSelected' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/IPFS/UploadPlatforms.cs(72,9): error CS0103: The name 'ImageSelected' does not exist in the current context
/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/IPFS/UploadPlatforms.cs(91,13): error CS0103: The name 'ImageSelected' does not exist in the current context
oh i must have missed them, will fix, sorry. |
try that :) @juans-chainsafe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WebGL and iOS builds working correctly!
The only warnings present are the ones from Countly
solid, merging. |
Added SDK warning fixes:
Removed a few unused variables.
Enabled nullable references in the scripts that use them.
Changed some variables to conditional to stop warnings.
This should remove SDK warnings, moving onto countly warnings next.
Closes #1222
Testing:
Right click in the folder hierarchy and press reimport all to make everything recopile, this will refresh the warnings and display them in the console. There should only be countly warnings remaining.
No documentation changes are needed in this PR.