Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from magiclabs/fix/add-voltstro-dependency
Browse files Browse the repository at this point in the history
Add voltstro dependency references
  • Loading branch information
Ethella authored Apr 2, 2024
2 parents 0b5264c + 73dd30b commit 3ada7bd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
6 changes: 4 additions & 2 deletions Packages/link.magic.unity.sdk/Runtime/Magic.Sdk.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
"name": "Magic.Sdk",
"rootNamespace": "",
"references": [
"unity-webview"
"unity-webview",
"VoltstroStudios.UnityWebBrowser"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"Newtonsoft.Json.dll",
"Nethereum.JsonRpc.Client.dll"
"Nethereum.JsonRpc.Client.dll",
"VoltstroStudios.UnityWebBrowser.Shared.dll"
],
"autoReferenced": true,
"defineConstraints": [],
Expand Down
4 changes: 2 additions & 2 deletions Packages/link.magic.unity.sdk/Runtime/Magic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public Magic(string apikey, EthNetwork network = EthNetwork.Mainnet, string loca
Auth = new AuthModule(Provider);
}

public Magic(string apikey, CustomNodeConfiguration config, string locale = "en-US", GameObject canvas = null)
public Magic(string apikey, CustomNodeConfiguration config, string locale = "en-US", GameObject macCanvas = null)
{
var urlBuilder = new UrlBuilder(apikey, config, locale);
UrlBuilder.Instance = urlBuilder;

Provider = new RpcProvider(urlBuilder, canvas);
Provider = new RpcProvider(urlBuilder, macCanvas);
User = new UserModule(Provider);
Auth = new AuthModule(Provider);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Collections;
using System.Collections.Generic;
using MagicSDK.Provider;
using UnityEngine;
using VoltstroStudios.UnityWebBrowser;
using VoltstroStudios.UnityWebBrowser.Core;
using VoltstroStudios.UnityWebBrowser.Shared.Core;
Expand Down
7 changes: 0 additions & 7 deletions Packages/link.magic.unity.sdk/link.magic.unity.sdk.sln.meta

This file was deleted.

2 changes: 1 addition & 1 deletion Packages/link.magic.unity.sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "link.magic.unity.sdk",
"displayName": "Magic Unity SDK",
"description": "The Magic Unity SDK provides access to Magic Key Management System and interact with Blockchain.",
"version": "3.1.0",
"version": "3.1.1",
"unity": "2021.3",
"author": {
"name": "Magic Labs Inc."
Expand Down

0 comments on commit 3ada7bd

Please sign in to comment.