Skip to content

Commit 57af8d7

Browse files
authored
Merge pull request #42 from rfadeev/41-pbxsourcetree-type-compilation-errors-when-ios-build-support-module-is-not-installed
Resolve "PBXSourceTree type compilation errors when iOS Build Support module is not installed"
2 parents 21eb816 + 367843e commit 57af8d7

32 files changed

Lines changed: 44 additions & 37 deletions

Assets/Stickers/Editor/StickerEditor.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
using System;
21
using System.Collections.Generic;
32
using System.IO;
43
using System.Linq;
54
using System.Reflection;
65
using UnityEditor;
76
using UnityEngine;
7+
using Agens.Stickers;
88

9-
namespace Agens.Stickers
9+
namespace Agens.StickersEditor
1010
{
1111
[CustomEditor(typeof(Sticker))]
12-
public class StickerEditor : UnityEditor.Editor
12+
public class StickerEditor : Editor
1313
{
1414
private SerializedProperty Frames;
1515
private SerializedProperty Sequence;
@@ -19,12 +19,12 @@ public class StickerEditor : UnityEditor.Editor
1919

2020
private static GUIContent[] s_PlayIcons = new GUIContent[2];
2121

22-
private List<UnityEditor.Editor> textureEditors;
22+
private List<Editor> textureEditors;
2323

2424
private MethodInfo RepaintMethod;
2525
private object GUIView;
2626

27-
private UnityEditor.Editor currentTextureEditor
27+
private Editor currentTextureEditor
2828
{
2929
get
3030
{
@@ -173,7 +173,7 @@ public override void OnInteractivePreviewGUI(Rect r, GUIStyle background)
173173
{
174174
if (RepaintMethod == null)
175175
{
176-
var type = typeof(UnityEditor.Editor).Assembly.GetType("UnityEditor.GUIView");
176+
var type = typeof(Editor).Assembly.GetType("UnityEditor.GUIView");
177177
var prop = type.GetProperty("current", BindingFlags.Static | BindingFlags.Public);
178178
GUIView = prop.GetValue(null, null);
179179
RepaintMethod = GUIView.GetType().GetMethod("Repaint", BindingFlags.Public | BindingFlags.Instance);
@@ -203,7 +203,7 @@ private void CreateTextureEditor()
203203
{
204204
var sticker = serializedObject;
205205
var frames = sticker.FindProperty("Frames");
206-
textureEditors = new List<UnityEditor.Editor>(frames.arraySize);
206+
textureEditors = new List<Editor>(frames.arraySize);
207207
for (int i = 0; i < frames.arraySize; i++)
208208
{
209209
var firstFrame = frames.GetArrayElementAtIndex(i);

Assets/Stickers/Editor/StickerEditorUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Globalization;
22

3-
namespace Agens.Stickers
3+
namespace Agens.StickersEditor
44
{
55
public static class StickerEditorUtility
66
{

Assets/Stickers/Editor/StickerPackEditor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32
using System.IO;
43
using System.Linq;
54
using System.Reflection;
65
using UnityEditor;
76
using UnityEditor.AnimatedValues;
87
using UnityEditorInternal;
98
using UnityEngine;
9+
using Agens.Stickers;
1010
using Object = UnityEngine.Object;
1111
#if UNITY_5_5_OR_NEWER
1212
using UnityEngine.Profiling;
1313
#endif
1414

15-
namespace Agens.Stickers
15+
namespace Agens.StickersEditor
1616
{
1717
[CustomEditor(typeof(StickerPack))]
18-
public class StickerPackEditor : UnityEditor.Editor
18+
public class StickerPackEditor : Editor
1919
{
2020

2121
public static readonly int[] ValidSizes = new int[3] {300, 408, 618};
@@ -648,7 +648,7 @@ private void RepaintView()
648648
{
649649
if (repaintMethod == null)
650650
{
651-
var type = typeof(UnityEditor.Editor).Assembly.GetType("UnityEditor.GUIView");
651+
var type = typeof(Editor).Assembly.GetType("UnityEditor.GUIView");
652652
var prop = type.GetProperty("current", BindingFlags.Static | BindingFlags.Public);
653653
guiView = prop.GetValue(null, null);
654654
repaintMethod = guiView.GetType().GetMethod("Repaint", BindingFlags.Public | BindingFlags.Instance);

Assets/Stickers/Editor/StickerTest.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
using System.IO;
2-
using Agens;
3-
using UnityEngine;
4-
using UnityEditor;
1+
using UnityEditor;
52
using NUnit.Framework;
3+
using Agens.Stickers;
64

7-
namespace Agens.Stickers
5+
namespace Agens.StickersEditor
86
{
97
public class StickerTest
108
{

Assets/Stickers/Editor/StickersBuildPostProcess.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using UnityEditor;
22
using UnityEditor.Callbacks;
33

4-
namespace Agens.Stickers
4+
namespace Agens.StickersEditor
55
{
66
public class StickersBuildPostprocessor
77
{

Assets/Stickers/Editor/StickersExport.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
using System.IO;
44
using System.Linq;
55
using UnityEditor;
6-
using UnityEditor.iOS.Xcode.Stickers;
6+
using Agens.Stickers;
7+
using Agens.StickersEditor.UnityEditor.iOS.Xcode;
78
using Application = UnityEngine.Application;
89

9-
namespace Agens.Stickers
10+
namespace Agens.StickersEditor
1011
{
1112
public static class StickersExport
1213
{

Assets/Stickers/Editor/Xcode.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Stickers/Editor/AssetCatalog.cs renamed to Assets/Stickers/Editor/Xcode/AssetCatalog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.IO;
44
using System.Linq;
55

6-
namespace UnityEditor.iOS.Xcode.Stickers
6+
namespace Agens.StickersEditor.UnityEditor.iOS.Xcode
77
{
88
internal class DeviceTypeRequirement
99
{
File renamed without changes.

Assets/Stickers/Editor/JsonParser.cs renamed to Assets/Stickers/Editor/Xcode/JsonParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text;
55
using System.Linq;
66

7-
namespace UnityEditor.iOS.Xcode.Stickers
7+
namespace Agens.StickersEditor.UnityEditor.iOS.Xcode
88
{
99
public class JsonElement
1010
{

0 commit comments

Comments
 (0)