diff --git a/CHANGELOG.md b/CHANGELOG.md index b8dfe9e4..0f037c8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Backtrace Unity Release Notes +## Version 2.1.1 + +- UPM modifications - fixed editor assembly definition, +- Hiding Documentation and Scripts folders +- Added Mac and Rider files to .gitignore +- Moved Backtrace Configuration create menu deeper into the hierarchy + ## Version 2.1.0 - UPM support - changed project structure and divide Backtrae-unity plugin into assemblies. diff --git a/Documentation~/images/dialog-box.PNG b/Documentation~/images/dialog-box.PNG index 737c3d7f..30cbbee6 100644 Binary files a/Documentation~/images/dialog-box.PNG and b/Documentation~/images/dialog-box.PNG differ diff --git a/Editor/BacktraceMenu.cs b/Editor/BacktraceMenu.cs deleted file mode 100644 index e7753ae2..00000000 --- a/Editor/BacktraceMenu.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using Backtrace.Unity.Model; -using System.IO; -using System.Linq; -using UnityEditor; -using UnityEngine; - -namespace Backtrace.Unity.Editor -{ - public class BacktraceMenu - { - public const string DEFAULT_CONFIGURATION_NAME = "Backtrace Configuration"; - public const string DEFAULT_EXTENSION_NAME = ".asset"; - public const string DEFAULT_CLIENT_CONFIGURATION_NAME = DEFAULT_CONFIGURATION_NAME + DEFAULT_EXTENSION_NAME; - - [MenuItem("Assets/Create/Backtrace/Configuration")] - public static void CreateClientConfigurationFile() - { - CreateAsset(DEFAULT_CLIENT_CONFIGURATION_NAME); - } - - private static void CreateAsset(string fileName) where T : ScriptableObject - { - T asset = ScriptableObject.CreateInstance(); - var currentProjectPath = AssetDatabase.GetAssetPath(Selection.activeObject); - if (string.IsNullOrEmpty(currentProjectPath)) - { - currentProjectPath = "Assets"; - } - else if (File.Exists(currentProjectPath)) - { - currentProjectPath = Path.GetDirectoryName(currentProjectPath); - } - var destinationPath = Path.Combine(currentProjectPath, fileName); - if (File.Exists(destinationPath)) - { - var files = Directory.GetFiles(currentProjectPath); - var lastFileIndex = files - .Where(n => - Path.GetFileNameWithoutExtension(n).StartsWith(DEFAULT_CONFIGURATION_NAME) && - Path.GetExtension(n) == DEFAULT_EXTENSION_NAME) - .Select(n => - { - int startIndex = n.IndexOf('(') + 1; - int endIndex = n.IndexOf(')'); - int result; - if (startIndex != 0 && endIndex != -1 && int.TryParse(n.Substring(startIndex, endIndex - startIndex), out result)) - { - return result; - } - return 0; - }) - .DefaultIfEmpty().Max(); - - lastFileIndex++; - destinationPath = Path.Combine(currentProjectPath, - string.Format("{0}({1}){2}", DEFAULT_CONFIGURATION_NAME, lastFileIndex, DEFAULT_EXTENSION_NAME)); - } - Debug.Log(string.Format("Generating new Backtrace configuration file available in path: {0}", - destinationPath)); - AssetDatabase.CreateAsset(asset, destinationPath); - AssetDatabase.SaveAssets(); - Selection.activeObject = asset; - } - } -} \ No newline at end of file diff --git a/Editor/BacktraceMenu.cs.meta b/Editor/BacktraceMenu.cs.meta deleted file mode 100644 index b0889f99..00000000 --- a/Editor/BacktraceMenu.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3811bf8505be7f5499c0242df98f38a0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/README.md b/README.md index 320d2f56..2924006e 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,13 @@ List of steps necessary to setup full Backtrace Unity integration. ## Integrating into your project -- Under the Assets Menu, there is now a Backtrace -> Configuration option. Choose that option (or Right click on empty space and select from the menu box) to have a Backtrace Configuration is generated in the Assets folder. You can drag and drop generated asset file into Backtrace Client configuration window. - ![Backtrace menu dialog box](./Documentation/images/dialog-box.PNG) +- Under the Assets Menu "Create" option, there is now a Backtrace -> Configuration option. Choose that option (or Right click on empty space and select from the menu box) to have a Backtrace Configuration is generated in the Assets folder. You can drag and drop generated asset file into Backtrace Client configuration window. + ![Backtrace menu dialog box](./Documentation~/images/dialog-box.PNG) - Next, select an object from the Scene Hierarchy to associate the Backtrace reporting client to. In the example below, we use the Manager object., Using the Inspector panel, click the Add Component button and search for the Backtrace Client object. - Within the Backtrace Client panel, there is a Backtrace Configuration field. Drag and drop the Backtrace Configuration from the Assets folder to that field. More fields will appear for you to fill in to configure the Backtrace Client and Offline Database options. - ![Backtrace configuration window](./Documentation/images/unity-basic-configuration.PNG) + ![Backtrace configuration window](./Documentation~/images/unity-basic-configuration.PNG) - Provide valid Backtrace client configuration and start using library! - ![Full Backtrace configuration](./Documentation/images/client-setup.PNG) + ![Full Backtrace configuration](./Documentation~/images/client-setup.PNG) Watch this 1 minute silent video to see the Integration and Configuration in action. The first 20 seconds of the video shows the above Integrating steps, and the second part shows details of the below Client and Database Settings - https://player.vimeo.com/video/300051476 @@ -229,7 +229,7 @@ backtraceDatabase.Clear(); #### Deduplication Backtrace unity integration allows you to aggregate the same reports and send only one message to Backtrace Api. As a developer you can choose deduplication options. Please use `DeduplicationStrategy` enum to setup possible deduplication rules in Unity UI: -![Backtrace deduplicaiton setup](./Documentation/images/deduplication-setup.PNG) +![Backtrace deduplicaiton setup](./Documentation~/images/deduplication-setup.PNG) Deduplication strategy types: diff --git a/Runtime/Model/BacktraceConfiguration.cs b/Runtime/Model/BacktraceConfiguration.cs index 6c77ba53..c0042334 100644 --- a/Runtime/Model/BacktraceConfiguration.cs +++ b/Runtime/Model/BacktraceConfiguration.cs @@ -6,7 +6,7 @@ namespace Backtrace.Unity.Model { [Serializable] - [CreateAssetMenu(fileName = "New Backtrace Configuration", menuName = "Backtrace/Configuration", order = 0)] + [CreateAssetMenu(fileName = "Backtrace Configuration", menuName = "Backtrace/Configuration", order = 0)] public class BacktraceConfiguration : ScriptableObject { /// diff --git a/Runtime/Model/BacktraceData.cs b/Runtime/Model/BacktraceData.cs index 2ebdc8d9..90c467d8 100644 --- a/Runtime/Model/BacktraceData.cs +++ b/Runtime/Model/BacktraceData.cs @@ -194,7 +194,7 @@ private void SetReportInformation() LangVersion = "Mono"; #endif - AgentVersion = "2.1.0"; + AgentVersion = "2.1.1"; Classifier = Report.ExceptionTypeReport ? new[] { Report.Classifier } : null; } } diff --git a/package.json b/package.json index 3cdd2583..cf2f9f04 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "io.backtrace.unity", "displayName": "Backtrace", - "version": "2.1.0", + "version": "2.1.1", "unity": "2017.1", "description": "Backtrace's integration with Unity games allows customers to capture and report handled and unhandled Unity exceptions to their Backtrace instance, instantly offering the ability to prioritize and debug software errors.", "keywords": [