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

sharpcaster on android #215

Closed
noelitc opened this issue Feb 7, 2023 · 12 comments
Closed

sharpcaster on android #215

noelitc opened this issue Feb 7, 2023 · 12 comments
Labels

Comments

@noelitc
Copy link

noelitc commented Feb 7, 2023

Hi,
Thanks fo your help before. Because sharpcaster uses Microsoft.Extensions.DependencyInjection; ,does that mean it wont comile and run on android?
regards
Noel

@noelitc
Copy link
Author

noelitc commented Feb 7, 2023

also is there example of just sending a text message to a custom reciever?

@noelitc
Copy link
Author

noelitc commented Feb 7, 2023

Hi,
When I said android I meant Unity built for android.
regards
Noel

@Tapanila
Copy link
Owner

Tapanila commented Feb 8, 2023

Not sure about Unity as I haven't ever tried using Sharpcaster with Unity.
If you have sample project/tutorial that I can compile and debug on Windows 11 machine for Unity I can try does this work there.

@noelitc
Copy link
Author

noelitc commented Feb 8, 2023

Here is a sample Unity Project I made with with sharpcaster.
https://github.com/noelitc/sharpcastertest

@noelitc
Copy link
Author

noelitc commented Feb 8, 2023

hi,
Sorry to is the correct one
https://github.com/noelitc/sharpCasterTestUnity

@Tapanila
Copy link
Owner

Tapanila commented Feb 8, 2023

I noticed that I had old packages.config files in repository and removed those.
Not sure how to use the new package references on unity but if you start using those it should just work.

If you need to keep using packages.config then you can just add this there:
<package id="Microsoft.Extensions.DependencyInjection" version="7.0.0" />

My understanding is that Microsoft.Extensions.DependencyInjection should work fine on Unity.

@noelitc
Copy link
Author

noelitc commented Feb 8, 2023

Thanks. but that had no impact. is Microsoft.Extensions.DependencyInjection core to the project. Could I implement a simpler approach for my particular need. I just want to send a text message to the chromecast?

@Tapanila
Copy link
Owner

Tapanila commented Feb 8, 2023

You would need to replace the dependency injection that I use with something else. It's only used in one place so shouldn't be too hard to replace it.

@Tapanila
Copy link
Owner

Tapanila commented Feb 8, 2023

Seems like if you get the Microsoft.Extensions.DependencyInjection Downloaded it works pretty well. After that it seems to require to switch from .net standard 2.1 to .net framework since dynamic isn't supported on .net standard 2.1.

I opened a pull request to your repo where I can get it compile without warnings but not sure at all does it really work

@noelitc
Copy link
Author

noelitc commented Feb 8, 2023

yes I used unity nuget to get Microsoft.Extensions.DependencyInjection . it compiles now without warnings but when build for android it hangs on moving processing map file...

@Tapanila
Copy link
Owner

Tapanila commented Feb 8, 2023

Okay. Then I have no idea :(

@stale stale bot added the wontfix label Apr 9, 2023
@stale
Copy link

stale bot commented Apr 17, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants