Skip to content

Commit

Permalink
Fixing package resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
mzaks committed Nov 21, 2019
1 parent c82a871 commit e20cfcb
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
3 changes: 2 additions & 1 deletion Editor/FlexBufferBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
using FlexBuffers;

public class FlexBufferTreeWindow : EditorWindow
{
Expand Down Expand Up @@ -58,7 +59,7 @@ void OnGUI ()
_treeView?.OnGUI(new Rect(0, 80, position.width, position.height - 80));
}

[MenuItem("Assets/FlexBuffer Browser")]
[MenuItem("Tools/FlexBuffers/FlexBuffer Browser")]
static void ShowWidnow()
{
var window = GetWindow<FlexBufferTreeWindow> ();
Expand Down
2 changes: 1 addition & 1 deletion Editor/FlxQuery.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine.Video;
using FlexBuffers;

namespace FlexBuffers
{
Expand Down
4 changes: 1 addition & 3 deletions Editor/FlxQueryParser.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Runtime.Remoting.Contexts;
using System.Text;
using JetBrains.Annotations;
using UnityEditor.OSXStandalone;
using FlexBuffers;

namespace FlexBuffers
{
Expand Down
7 changes: 3 additions & 4 deletions Editor/ImportAsFlexBuffer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using System.IO;
using FlexBuffers;
using UnityEditor;
using UnityEngine;

public static class ImportAsFlexBuffer
{
[MenuItem("Assets/JSON as FlexBuffer...")]
[MenuItem("Tools/FlexBuffers/JSON as FlexBuffer...")]
static void ImportJson()
{
string jsonPath = EditorUtility.OpenFilePanel("Select JSON file", "", "json");
Expand Down Expand Up @@ -34,7 +33,7 @@ static void ImportJson()
}
}

[MenuItem("Assets/CSV as FlexBuffer...")]
[MenuItem("Tools/FlexBuffers/CSV as FlexBuffer...")]
static void ImportCsv()
{
string csvPath = EditorUtility.OpenFilePanel("Select CSV file", "", "csv");
Expand Down Expand Up @@ -65,7 +64,7 @@ static void ImportCsv()
}
}

[MenuItem("Assets/XML as FlexBuffer...")]
[MenuItem("Tools/FlexBuffers/XML as FlexBuffer...")]
static void ImportXML()
{
string xmlPath = EditorUtility.OpenFilePanel("Select XML file", "", "xml");
Expand Down
8 changes: 6 additions & 2 deletions Editor/Unity.FlexBuffers.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "FlexBuffersEditor",
"references": [],
"includePlatforms": [],
"references": [
"GUID:1a82e366e6a014b228ca1f953480ed08"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
Expand Down
4 changes: 2 additions & 2 deletions Runtime/FlexBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ private void AddDynamicVector(IEnumerable values)
var start = StartVector();
var typed = true;
var prevType = -1;
foreach (dynamic value in values)
foreach (object value in values)
{
var currentType = this.AddDynamic(value);

Expand Down Expand Up @@ -496,7 +496,7 @@ private bool ShouldFlip(StackValue v1, StackValue v2)
return false;
}

private Type AddDynamic(dynamic value)
private Type AddDynamic(object value)
{
switch (value)
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": {
"name": "Maxim Zaks",
"email": "[email protected]",
"url": "https://github.com/mzaks/FlexBuffersUnity"
"url": "https://github.com/mzaks"
}
}

0 comments on commit e20cfcb

Please sign in to comment.