Skip to content

Commit 69c8b4b

Browse files
committed
Android NavigatorDappBrowser
1 parent faa326e commit 69c8b4b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Assets/ParticleNetwork/Mobile/Modules/GUI/ParticleWalletGUI.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,19 +265,17 @@ public static void NavigatorSwap(string fromTokenAddress = "", string toTokenAdd
265265
}
266266

267267
/// <summary>
268-
/// Open Swap page
268+
/// Open DappBrowser page
269269
/// </summary>
270-
/// <param name="fromTokenAddress">From token address, default value is empty</param>
271-
public static void NavigatorDappBrowser(string url)
270+
public static void NavigatorDappBrowser([CanBeNull] string url)
272271
{
273272
var json = JsonConvert.SerializeObject(new JObject
274273
{
275274
{ "url", url },
276275
});
277276
Debug.Log(json);
278277
#if UNITY_ANDROID && !UNITY_EDITOR
279-
// todo
280-
ParticleNetwork.CallNative("navigatorSwap",json);
278+
ParticleNetwork.CallNative("navigatorDappBrowser",url);
281279
#elif UNITY_IOS &&!UNITY_EDITOR
282280
ParticleNetworkIOSBridge.navigatorDappBrowser(json);
283281
#else

Assets/Plugins/Android/launcherTemplate.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies {
88
}
99
}
1010
implementation project(':unityLibrary')
11-
def sdkVersion = "1.3.6" //find the latest version of the sdk here:https://search.maven.org/search?q=g:network.particle
11+
def sdkVersion = "1.3.7" //find the latest version of the sdk here:https://search.maven.org/search?q=g:network.particle
1212

1313
//tips
1414
//auth-service and auth-service-tiramisu are the same library,

0 commit comments

Comments
 (0)