Skip to content
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

Merged
merged 7 commits into from
Jan 9, 2025
Merged

SDK warning fixes #1267

merged 7 commits into from
Jan 9, 2025

Conversation

sneakzttv
Copy link
Contributor

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.
image

No documentation changes are needed in this PR.

added SDK warning fixes.
@sneakzttv sneakzttv added ready-to-merge Ready to Merge PR - this'll trigger required checks documented Apply on Pull Request after documentation to allow merge labels Jan 8, 2025
@sneakzttv sneakzttv linked an issue Jan 8, 2025 that may be closed by this pull request
Copy link
Contributor

@juans-chainsafe juans-chainsafe left a 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

@sneakzttv
Copy link
Contributor Author

oh i must have missed them, will fix, sorry.

fixes
@sneakzttv
Copy link
Contributor Author

try that :) @juans-chainsafe

@sneakzttv sneakzttv added ready-to-merge Ready to Merge PR - this'll trigger required checks and removed ready-to-merge Ready to Merge PR - this'll trigger required checks labels Jan 9, 2025
@sneakzttv sneakzttv added ready-to-merge Ready to Merge PR - this'll trigger required checks and removed ready-to-merge Ready to Merge PR - this'll trigger required checks labels Jan 9, 2025
fixes
@sneakzttv sneakzttv added ready-to-merge Ready to Merge PR - this'll trigger required checks and removed ready-to-merge Ready to Merge PR - this'll trigger required checks labels Jan 9, 2025
Copy link
Contributor

@juans-chainsafe juans-chainsafe left a 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

@sneakzttv
Copy link
Contributor Author

solid, merging.

@sneakzttv sneakzttv merged commit 5ed8e71 into dev Jan 9, 2025
7 checks passed
@sneakzttv sneakzttv deleted the sneakz/warning-fixes branch January 9, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documented Apply on Pull Request after documentation to allow merge ready-to-merge Ready to Merge PR - this'll trigger required checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Polishing. Web3.Unity Script Warnings
3 participants