Skip to content

Commit

Permalink
Android NavigatorDappBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
Houn committed Dec 4, 2023
1 parent faa326e commit 69c8b4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,19 +265,17 @@ public static void NavigatorSwap(string fromTokenAddress = "", string toTokenAdd
}

/// <summary>
/// Open Swap page
/// Open DappBrowser page
/// </summary>
/// <param name="fromTokenAddress">From token address, default value is empty</param>
public static void NavigatorDappBrowser(string url)
public static void NavigatorDappBrowser([CanBeNull] string url)
{
var json = JsonConvert.SerializeObject(new JObject
{
{ "url", url },
});
Debug.Log(json);
#if UNITY_ANDROID && !UNITY_EDITOR
// todo
ParticleNetwork.CallNative("navigatorSwap",json);
ParticleNetwork.CallNative("navigatorDappBrowser",url);
#elif UNITY_IOS &&!UNITY_EDITOR
ParticleNetworkIOSBridge.navigatorDappBrowser(json);
#else
Expand Down
2 changes: 1 addition & 1 deletion Assets/Plugins/Android/launcherTemplate.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
}
}
implementation project(':unityLibrary')
def sdkVersion = "1.3.6" //find the latest version of the sdk here:https://search.maven.org/search?q=g:network.particle
def sdkVersion = "1.3.7" //find the latest version of the sdk here:https://search.maven.org/search?q=g:network.particle

//tips
//auth-service and auth-service-tiramisu are the same library,
Expand Down

0 comments on commit 69c8b4b

Please sign in to comment.