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

Added a FilePickerWrapper for MacOS #977

Merged
merged 10 commits into from
May 28, 2024
Merged

Added a FilePickerWrapper for MacOS #977

merged 10 commits into from
May 28, 2024

Conversation

kantagara
Copy link
Contributor

@kantagara kantagara commented May 27, 2024

Adding file picker functionality for macOS.
Closes #974

sneakzttv and others added 7 commits April 30, 2024 21:57
* contribution edits

* condition to run tests fixed

* typo fix

* use deploy key for push

* bot makes push instead of actor

* fixed syntax

* setup ssh keys added

* different way for setting up ssh

* only play mode tests

* reverted ssh setup method

* run workflow on dev not main!

* revert pre commit check branch and change post push action branch to dev

* added ssh key for checkout

* removed tests for faster iteration

* put back publish dlls

* check if latest commit isn't from github actions to avoid recursive actions

* small syntax fix

* small syntax fix 2

* replace conditional fix for loop issue with commit skip ci keyword in message

* put tests back in

* on push workflow call now back to from main

* test again

* reverted actor from bot to user and removed ssh setup

* revert post push workflow file target back to main

* chore: fix typos (#918)

Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Metamask SDK fixes (#922)

* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* made main package testable, revert due to a mistake

* Sign verify and WebGL login logout issue fixed for metamask

---------

Co-authored-by: robGG1997 <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Package built-in dependencies fix (#925)

* Package built-in dependencies fix

* Added polling and timeout to GetTransaction method
Introduced DelayUtil

---------

Co-authored-by: oleksandr <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Fixing sample script comments (#930)

* Fixes to stabilize the head (#927)

* contribution edits

* condition to run tests fixed

* typo fix

* use deploy key for push

* bot makes push instead of actor

* fixed syntax

* setup ssh keys added

* different way for setting up ssh

* only play mode tests

* reverted ssh setup method

* run workflow on dev not main!

* revert pre commit check branch and change post push action branch to dev

* added ssh key for checkout

* removed tests for faster iteration

* put back publish dlls

* check if latest commit isn't from github actions to avoid recursive actions

* small syntax fix

* small syntax fix 2

* replace conditional fix for loop issue with commit skip ci keyword in message

* put tests back in

* on push workflow call now back to from main

* test again

* reverted actor from bot to user and removed ssh setup

* revert post push workflow file target back to main

* chore: fix typos (#918)

Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Metamask SDK fixes (#922)

* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* made main package testable, revert due to a mistake

* Sign verify and WebGL login logout issue fixed for metamask

---------

Co-authored-by: robGG1997 <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Package built-in dependencies fix (#925)

* Package built-in dependencies fix

* Added polling and timeout to GetTransaction method
Introduced DelayUtil

---------

Co-authored-by: oleksandr <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Fixing sample script comments

Fixing sample script comments as they were set to 1155 instead of 721

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Ramp fix (#931)

* Fixes to stabilize the head (#927)

* contribution edits

* condition to run tests fixed

* typo fix

* use deploy key for push

* bot makes push instead of actor

* fixed syntax

* setup ssh keys added

* different way for setting up ssh

* only play mode tests

* reverted ssh setup method

* run workflow on dev not main!

* revert pre commit check branch and change post push action branch to dev

* added ssh key for checkout

* removed tests for faster iteration

* put back publish dlls

* check if latest commit isn't from github actions to avoid recursive actions

* small syntax fix

* small syntax fix 2

* replace conditional fix for loop issue with commit skip ci keyword in message

* put tests back in

* on push workflow call now back to from main

* test again

* reverted actor from bot to user and removed ssh setup

* revert post push workflow file target back to main

* chore: fix typos (#918)

Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Metamask SDK fixes (#922)

* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* made main package testable, revert due to a mistake

* Sign verify and WebGL login logout issue fixed for metamask

---------

Co-authored-by: robGG1997 <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Package built-in dependencies fix (#925)

* Package built-in dependencies fix

* Added polling and timeout to GetTransaction method
Introduced DelayUtil

---------

Co-authored-by: oleksandr <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Ramp fix

Fixed ramp via conditional compilation to avoid changing the folder structure of samples.

* Amending

Cleaner implementation of compilation directives

* Amend

Amend

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Sneakz/typo fix (#933)

Update DisableGameObjectIfServiceNotActive.cs

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: sneakzttv <[email protected]>
* contribution edits

* condition to run tests fixed

* typo fix

* use deploy key for push

* bot makes push instead of actor

* fixed syntax

* setup ssh keys added

* different way for setting up ssh

* only play mode tests

* reverted ssh setup method

* run workflow on dev not main!

* revert pre commit check branch and change post push action branch to dev

* added ssh key for checkout

* removed tests for faster iteration

* put back publish dlls

* check if latest commit isn't from github actions to avoid recursive actions

* small syntax fix

* small syntax fix 2

* replace conditional fix for loop issue with commit skip ci keyword in message

* put tests back in

* on push workflow call now back to from main

* test again

* reverted actor from bot to user and removed ssh setup

* revert post push workflow file target back to main

* chore: fix typos (#918)

Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Metamask SDK fixes (#922)

* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* made main package testable, revert due to a mistake

* Sign verify and WebGL login logout issue fixed for metamask

---------

Co-authored-by: robGG1997 <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Package built-in dependencies fix (#925)

* Package built-in dependencies fix

* Added polling and timeout to GetTransaction method
Introduced DelayUtil

---------

Co-authored-by: oleksandr <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Fixing sample script comments (#930)

* Fixes to stabilize the head (#927)

* contribution edits

* condition to run tests fixed

* typo fix

* use deploy key for push

* bot makes push instead of actor

* fixed syntax

* setup ssh keys added

* different way for setting up ssh

* only play mode tests

* reverted ssh setup method

* run workflow on dev not main!

* revert pre commit check branch and change post push action branch to dev

* added ssh key for checkout

* removed tests for faster iteration

* put back publish dlls

* check if latest commit isn't from github actions to avoid recursive actions

* small syntax fix

* small syntax fix 2

* replace conditional fix for loop issue with commit skip ci keyword in message

* put tests back in

* on push workflow call now back to from main

* test again

* reverted actor from bot to user and removed ssh setup

* revert post push workflow file target back to main

* chore: fix typos (#918)

Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Metamask SDK fixes (#922)

* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* made main package testable, revert due to a mistake

* Sign verify and WebGL login logout issue fixed for metamask

---------

Co-authored-by: robGG1997 <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Package built-in dependencies fix (#925)

* Package built-in dependencies fix

* Added polling and timeout to GetTransaction method
Introduced DelayUtil

---------

Co-authored-by: oleksandr <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Fixing sample script comments

Fixing sample script comments as they were set to 1155 instead of 721

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Ramp fix (#931)

* Fixes to stabilize the head (#927)

* contribution edits

* condition to run tests fixed

* typo fix

* use deploy key for push

* bot makes push instead of actor

* fixed syntax

* setup ssh keys added

* different way for setting up ssh

* only play mode tests

* reverted ssh setup method

* run workflow on dev not main!

* revert pre commit check branch and change post push action branch to dev

* added ssh key for checkout

* removed tests for faster iteration

* put back publish dlls

* check if latest commit isn't from github actions to avoid recursive actions

* small syntax fix

* small syntax fix 2

* replace conditional fix for loop issue with commit skip ci keyword in message

* put tests back in

* on push workflow call now back to from main

* test again

* reverted actor from bot to user and removed ssh setup

* revert post push workflow file target back to main

* chore: fix typos (#918)

Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Metamask SDK fixes (#922)

* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* made main package testable, revert due to a mistake

* Sign verify and WebGL login logout issue fixed for metamask

---------

Co-authored-by: robGG1997 <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Package built-in dependencies fix (#925)

* Package built-in dependencies fix

* Added polling and timeout to GetTransaction method
Introduced DelayUtil

---------

Co-authored-by: oleksandr <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Ramp fix

Fixed ramp via conditional compilation to avoid changing the folder structure of samples.

* Amending

Cleaner implementation of compilation directives

* Amend

Amend

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>

* Sneakz/typo fix (#933)

Update DisableGameObjectIfServiceNotActive.cs

* Removing Sygma from ILoginProvider

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Auto Commit [skip ci]
- Duplicate Packages Samples
- Publish DLL Dependencies

* Update ILoginProvider.cs

---------

Co-authored-by: robGG1997 <[email protected]>
Co-authored-by: Snoppy <[email protected]>
Co-authored-by: Robel Getnet Geremew <[email protected]>
Co-authored-by: rob1997 <[email protected]>
Co-authored-by: kantagara <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: oleksandr <[email protected]>
Co-authored-by: oleksandrchainsafe <[email protected]>
Co-authored-by: Nikola Garabandic <[email protected]>
Co-authored-by: sneakzttv <[email protected]>
* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* made main package testable, revert due to a mistake

* version updated

* check/test push

* typo fix

* updated version

* install latest docker

* changed cache version

* reverted cache version and added custom image

* reverted test changes

---------

Co-authored-by: robGG1997 <[email protected]>
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.

Previous build error is not appearing anymore, but I see this new error when building in XCode:

Screenshot 2024-05-27 at 4 14 59 PM

@kantagara
Copy link
Contributor Author

@juans-chainsafe fixed it.

@sneakzttv sneakzttv added the ready-to-merge Ready to Merge PR - this'll trigger required checks label May 28, 2024
@oleksandrchainsafe
Copy link
Contributor

i think you might want to merge to dev not main

@kantagara kantagara changed the base branch from main to dev May 28, 2024 11:46
@kantagara
Copy link
Contributor Author

And you are right about that :D

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.

Now it builds, and Im able to upload metadata in iOS but not a image, this is the error when I click "Upload Image" sample:

File picking is not implemented for this platform.
<GetImageData>d__3:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start(TStateMachine&)
UploadPlatforms:GetImageData()
Web3Unity.Scripts.Library.IPFS.<UploadImage>d__2:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start(TStateMachine&)
Web3Unity.Scripts.Library.IPFS.IPFS:UploadImage(IPFSUploadRequestModel)
<IPFSUploadImage>d__11:MoveNext()
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start(TStateMachine&)
IPFSCalls:IPFSUploadImage()
UnityEngine.Events.UnityEvent:Invoke()
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
UnityEngine.EventSystems.StandaloneInputModule:Process()

Error uploading image: System.ArgumentException: Cannot create a multipart form file section without body data
  at UnityEngine.Networking.MultipartFormFileSection..ctor (System.String name, System.Byte[] data, System.String fileName, System.String contentType) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.Upload (System.String apiKey, System.String bucketId, System.String filename, System.Byte[] content, System.String contentType) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.Upload (System.String apiKey, System.String bucketId, System.String filename, System.Byte[] content, System.String contentType) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.UploadImage (ChainSafe.Gaming.UnityPackage.Model.IPFSUploadRequestModel request) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.UploadImage (ChainSafe.Gaming.UnityPackage.Model.IPFSUploadRequestModel request) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 
--- End of stack trace from previous location where exception was thrown ---

  at Web3Unity.Scripts.Library.IPFS.IPFS.UploadImage (ChainSafe.Gaming.UnityPackage.Model.IPFSUploadRequestModel request) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.UploadImage (ChainSafe.Gaming.UnityPackage.Model.IPFSUploadRequestModel request) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 
ArgumentException: Cannot create a multipart form file section without body data
  at UnityEngine.Networking.MultipartFormFileSection..ctor (System.String name, System.Byte[] data, System.String fileName, System.String contentType) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.Upload (System.String apiKey, System.String bucketId, System.String filename, System.Byte[] content, System.String contentType) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.Upload (System.String apiKey, System.String bucketId, System.String filename, System.Byte[] content, System.String contentType) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.UploadImage (ChainSafe.Gaming.UnityPackage.Model.IPFSUploadRequestModel request) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.UploadImage (ChainSafe.Gaming.UnityPackage.Model.IPFSUploadRequestModel request) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 
--- End of stack trace from previous location where exception was thrown ---

  at Web3Unity.Scripts.Library.IPFS.IPFS.UploadImage (ChainSafe.Gaming.UnityPackage.Model.IPFSUploadRequestModel request) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at Web3Unity.Scripts.Library.IPFS.IPFS.UploadImage (ChainSafe.Gaming.UnityPackage.Model.IPFSUploadRequestModel request) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 
--- End of stack trace from previous location where exception was thrown ---

  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at IPFSCalls.IPFSUploadImage () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 
--- End of stack trace from previous location where exception was thrown ---

@kantagara @sneakzttv

@kantagara
Copy link
Contributor Author

That is because this is for MacOS, not iOS :)

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.

Working in Desktop and WebGL ✅
Amazing!

@kantagara kantagara merged commit b40fdb3 into dev May 28, 2024
@kantagara kantagara deleted the nikola/mac-ipfs branch May 28, 2024 14:35
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

5 participants