Skip to content

Commit

Permalink
Version 0.1.73 - fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsarkar committed Sep 4, 2020
1 parent 0bf3095 commit 20c89b0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.72] - 2020-09-04

### Changed
- Fixed compilation error on making builds

## [0.1.72] - 2020-08-16

### Changed
Expand Down
4 changes: 3 additions & 1 deletion Editor/NeilSarkar.VioletUI.Editor.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"references": [
"GUID:6f301220edcc84749a65b36e4025ea3a"
],
"includePlatforms": [],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
Expand Down
4 changes: 3 additions & 1 deletion Runtime/Navigation/Navigator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void LoadScreens() {
#if UNITY_EDITOR
EditorApplication.ExitPlaymode();
#else
throw new VioletException($"{screen.name} does not have a valid ScreenId. ScreenId contains {string.Join(", ", Enum.GetNames(typeof(ScreenId)))}"");
throw new VioletException($"{screen.name} does not have a valid ScreenId. ScreenId contains {string.Join(", ", Enum.GetNames(typeof(ScreenId)))}");
#endif
}

Expand Down Expand Up @@ -266,6 +266,8 @@ void Regenerate() {
void RegenerateEnums() {
WantsRegenerate?.Invoke(GetComponentsInChildren<VioletScreen>(true));
}
#else
void RegenerateEnums() {}
#endif
}
}
8 changes: 4 additions & 4 deletions Runtime/Navigation/VioletScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ async UniTask<bool> Animate(string trigger, CancellationToken token = default) {
return true;
}

public static string Sanitize(string s) {
return s.Replace(" ", "");
}

#if UNITY_EDITOR
List<string> TriggerNames() {
var animator = GetComponent<Animator>();
Expand All @@ -106,10 +110,6 @@ public void Update() {

string prefabPath = "";

public static string Sanitize(string s) {
return s.Replace(" ", "");
}

public void PackPrefab() {
var path = string.IsNullOrEmpty(prefabPath) ? $"Assets/Menus/{name}.prefab" : prefabPath;
PrefabUtility.SaveAsPrefabAssetAndConnect(gameObject, path, InteractionMode.AutomatedAction);
Expand Down
4 changes: 2 additions & 2 deletions Runtime/PrefabApplier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ public void UpdatePrefabs() {
isAutosaving = false;
}
}
#endif
}
}
#endif
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.neilsarkar.violetui",
"version": "0.1.72",
"version": "0.1.73",
"displayName": "Violet UI",
"description": "State-based rendering with live updates in the Unity Editor",
"unity": "2019.4",
Expand Down

0 comments on commit 20c89b0

Please sign in to comment.