BranchMetrics / unity-branch-deep-linking-attribution

The Branch Unity SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/apps/unity/
MIT License
118 stars 24 forks source link

'ToInt32', 'ToSingle', 'ToChar', 'ToDouble' does not exist in 'Convert' namespace #217

Open BhaumikSurani opened 2 months ago

BhaumikSurani commented 2 months ago

Describe the bug

After importing "BranchUnityWrapper.unitypackage" start getting errors

Screenshot 2024-06-25 at 8 04 39 PM

Assets/Branch/BranchLinkProperties.cs(88,21): error CS0234: The type or namespace name 'ToInt32' does not exist in the namespace 'Convert' (are you missing an assembly reference?)
Assets/Branch/MiniJSON.cs(509,23): error CS0234: The type or namespace name 'ToInt32' does not exist in the namespace 'Convert' (are you missing an assembly reference?)
Assets/Branch/MiniJSON.cs(540,21): error CS0234: The type or namespace name 'ToDouble' does not exist in the namespace 'Convert' (are you missing an assembly reference?)
Assets/Branch/BranchContentMetadata.cs(348,15): error CS0234: The type or namespace name 'ToSingle' does not exist in the namespace 'Convert' (are you missing an assembly reference?)
Assets/Branch/MiniJSON.cs(316,13): error CS0234: The type or namespace name 'ToChar' does not exist in the namespace 'Convert' (are you missing an assembly reference?)

Steps to reproduce

  1. Download "BranchUnityWrapper.unitypackage" from https://github.com/BranchMetrics/unity-branch-deep-linking-attribution/releases/download/2.0.0/BranchUnityWrapper.unitypackage
  2. Double click and install

Expected behavior

Not Display any error in imported files

SDK Version

2.0.0

Unity Version

2022.3.29f1

Make and Model

Unity Editor Simulator Apple iPhone 11

OS

Unity Editor OS

Additional Information/Context

In Player Setting Using ".NET Standard 2.1" Screenshot 2024-06-25 at 8 11 37 PM