yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
891 stars 131 forks source link

Namespace error when building projects for PC #106

Closed hippogamesunity closed 3 years ago

hippogamesunity commented 3 years ago

Hi! When I switch platform to PC (Mono) and try building my project I've got the error:

Assets\Plugins\NativeShare\NativeShare.cs(4,7): error CS0246: The type or namespace name 'NativeShareNamespace' could not be found (are you missing a using directive or an assembly reference?)

Can be fixed by adding #if UNITY_ANDROID || UNITY_IOS.

yasirkula commented 3 years ago

Does the latest version on GitHub have the same issue?

hippogamesunity commented 3 years ago

Yes, got the error right after today's update.

yasirkula commented 3 years ago

Yes, you are right. Dang it, first #93 and now this, so annoying. I'll fix it for good.

yasirkula commented 3 years ago

Closed in https://github.com/yasirkula/UnityNativeShare/commit/559bb87f8599072f5564bc0798edcc5036615b69, hopefully. I won't be surprised if it isn't.

Thanks for reporting it 👍

hippogamesunity commented 3 years ago

No problem, thanks for making the asset!