Coder Social home page Coder Social logo

appcenter-sdk-unity-extension's Introduction

App Center Unity Editor Extensions

Welcome to the home of App Center Unity Editor Extension plugin, the best interface for viewing and configuring our App Center Unity SDK. We will be adding to this platform as App Center's Unity SDK features grow.

App Center Editor Extension

Features:

  • Automated SDK installation, upgrading & removal - Now pain free!
  • Easy to follow help links - Link to Release Notes

Setup:

  1. Download this Asset Package and import into a new or existing project.
  2. Open the Editor Extensions via the Unity menu: Window > App Center > Editor Extensions
  3. Editor Extensions will automatically detect if you have a App Center SDK installed.

How it works:

App Center Editor Extensions is a stand-alone Unity plug-in that streamlines getting started with App Center. All of the Editor Extensions code lives in editor folders within your Unity Project. This prevents any of the editor code from being compiled into the game build.

Ongoing Development:

Editor Extensions is an attempt to make a first class App Center development experience within the Unity Editor. We consider this project a sandbox and are always open to feedback from our community developers.

A word of caution:

You may move our plugin folder around; however, we discourage renaming the root(AppCenterEditorExtensions) folder. This may cause the relative links within the plugin to break.

Copyright and Licensing Information:

Apache License -- Version 2.0, January 2004 http://www.apache.org/licenses/

License Details available in LICENSE.txt

appcenter-sdk-unity-extension's People

Contributors

alex-oreshko avatar alexmerzlikin avatar anatolypristensky avatar andrewbranch avatar dmitriykirakosyan avatar evgeny-pol avatar guperrot avatar ilyashumihin avatar jaeklim avatar joemellin avatar kostya-zhidovinov avatar matkovivan avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar olmisa avatar owlstronaut avatar thewulf7 avatar vvechkanov avatar yuqche avatar yuyaohu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appcenter-sdk-unity-extension's Issues

AppCenterEditorHelper.uiStyle is null on 2019.2

I just added the SDK into my project, when I open the Window>App center, the editor tab is blank and a handful of errors show up in the console, pasted below for reference. Looks like the uiStyle set up in the AppCenterEditorHeloper is being read as null, I've tried plugging a couple of leaks or doing a handful of small quick workarounds, but have quickly found that uiStyle isn't something that can be easily bypassed. I may have perhaps have messed up when implementing the sdk? when I downloaded and unzipped the package, I did so in a plugins folder of my project's root folder (though the plugins folder is still within the project of course)? I didn't see any notes anywhere saying that anything but the AppCenterEditorExtensions Folder should be in the root.

I'm using Unity 2019.2.4 and downloaded the current version of the App Center SDK (3.0).

uiStyle == null error

NullReferenceException: Object reference not set to an instance of an object
AppCenterEditor.AppCenterEditorMenu.DrawMenu () (at Assets/ARPlugins/AppCenter-SDK-Unity-Extension-develop/Source/Assets/AppCenterEditorExtensions/Editor/Scripts/Panels/AppCenterEditorMenu.cs:22)

unknown error

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Let me know if there's anything else that would be helpful for troubleshooting. Thanks all

App center API uses deprecated APIs

The App center API makes use of WWW which is deprecated in 2018 and in projects using "warnings as errors" this results in compile errors

The SDK should be updated to UnityWebRequest
This issue applies to
AppCenterEditorHttp.cs
EditorCoroutine.cs

I've worked around this issue for now using #pragma but this should be fixed properly

UnityWebRequest.isHttpError is obsolete

Description

I'm using the latest version of the AppCenter SDK (4.3.0 and Editor Extension 3.0.0). Newer versions of Unity are showing the errors:
Assets\AppCenterEditorExtensions\Editor\Scripts\AppCenterEditorSDK\AppCenterEditorHttp.cs(78,22): warning CS0618: 'UnityWebRequest.isHttpError' is obsolete: 'UnityWebRequest.isHttpError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ProtocolError) instead.'

Assets\AppCenterEditorExtensions\Editor\Scripts\AppCenterEditorSDK\AppCenterEditorHttp.cs(78,58): warning CS0618: 'UnityWebRequest.isNetworkError' is obsolete: 'UnityWebRequest.isNetworkError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ConnectionError) instead.'

Marked line:
if (!downloadRequest.WWW.isHttpError && !downloadRequest.WWW.isNetworkError)

Repro Steps

Please list the steps used to reproduce your issue.

  1. Install AppCenter SDK
  2. Wait until warnings show up in the console

Details

  1. Which SDK version are you using?
    4.3.0
  2. Which platform did you experience the issue on?
    Android >= 9, Windows >= 10, iOS >= 11, MacOS >= 10.13
  3. What device version did you see this error on? Were you using an emulator or a physical device?
    Desktop computer

Slow domain reload.

This plugin adds 600ms to domain reload time.

To measure:

  • Go to Preferences > Diagnostics > Core
  • Enable EnableDomainReloadTimings
  • Recompile the code trigger domain reload.
  • Check editor log file
InitializeOnLoad Startup: 606ms
	ProcessInitializeOnLoadAttribute(AppCenterEditor.AppCenterEditor+Startup, Assembly-CSharp-Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null): 606ms
		Assembly-CSharp-Editor.dll!::Startup..cctor(): 606ms
			GC.Alloc(48): 7ms in 75338 occurrences
			GC.Alloc(64): 1ms in 6918 occurrences

Android App crashes on startup

I have recently installed the App Center SDK via the Unity Editor Extension. I followed the readme and added the secrets for each of my platforms however my Android build now crashes on startup with the 'has stopped responding' error.

After completely uninstalling the SDK the app worked absolutely fine again. Is there anyway I can retrieve some sort of crash log to help you help me work this out?

I am using the latest 2019 version of Unity.

Thanks for your time.

Source control guidance

Since adding the SDK creates a lot of files in a folder that you'd normally have in source control, some guidance on which files to commit and which will be automatically regenerated when the project loads would be nice.

Unity high CPU usage

Before installing the AppCenter Editor Extensions, Unity Editor CPU usage was at steady state at around 10% while in focus. After installation of the editor extensions as well as the other supporting AppCenter SDK's, Unity Editor CPU usage goes to ~60%.

This was tested on Unity 2019.1.0f2, OSX.

Support AppCenter in other directories besides Application.dataPath

My project keeps external packages in a different folder than Application.dataPath, which breaks this extension. I'd be happy to write a pull request when I'm away from work this weekend. It looks like the issue is just in getting the GUI paths:

private static GUISkin GetUiStyle()
{
    var searchRoot = string.IsNullOrEmpty(EDEX_ROOT) ? Application.dataPath : EDEX_ROOT;
    var guiPaths = Directory.GetFiles(searchRoot, "AppCenterStyles.guiskin", SearchOption.AllDirectories);
    foreach (var eachPath in guiPaths)
    {
        var loadPath = eachPath.Substring(eachPath.LastIndexOf("Assets/"));
        return (GUISkin)AssetDatabase.LoadAssetAtPath(loadPath, typeof(GUISkin));
    }
    return null;
}

(Lines 43-53 in Editor/Scripts/Utils/AppCenterEditorHelper.cs)

Unity-Extension 1.1.2 "Remove SDK" not support appcenter-sdk-unity 2.1.0?

Hi,

The versions:
Unity 2018.2.21f1
AppCenter-SDK-Unity-Extension 1.1.2
appcenter-sdk-unity 2.1.0

Unity-Extension 1.1.2 "Remove SDK" not support appcenter-sdk-unity 2.1.0?
When I try to remove Push SDK, show errors.

Removing log:

[App Center EdEx MSG426] Removing Push package...
UnityEngine.Debug:Log(Object)
AppCenterEditor.LocalLogger:LogWithTimeStamp(String) (at Assets/AppCenterEditorExtensions/Editor/Scripts/Utils/LocalLogger.cs:10)
AppCenterEditor.AppCenterSDKPackage:RemovePackage(Boolean) (at Assets/AppCenterEditorExtensions/Editor/Scripts/Panels/SDKPackage/AppCenterSDKPackage.cs:52)
AppCenterEditor.AppCenterSDKPackage:ShowPackageInstalledMenu() (at Assets/AppCenterEditorExtensions/Editor/Scripts/Panels/SDKPackage/AppCenterSDKPackage.cs:147)
AppCenterEditor.AppCenterEditorSDKTools:DisplayPackagePanel(AppCenterSDKPackage) (at Assets/AppCenterEditorExtensions/Editor/Scripts/Panels/AppCenterEditorSDKTools.cs:95)
AppCenterEditor.AppCenterEditor:OnGuiInternal() (at Assets/AppCenterEditorExtensions/Editor/AppCenterEditor.cs:146)
AppCenterEditor.AppCenterEditor:HideRepaintErrors(Action) (at Assets/AppCenterEditorExtensions/Editor/AppCenterEditor.cs:117)
AppCenterEditor.AppCenterEditor:OnGUI() (at Assets/AppCenterEditorExtensions/Editor/AppCenterEditor.cs:110)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Removing error log:

[App Center EdEx MSG491] App Center Editor Extensions: An unknown error occured and the Push SDK could not be removed.
UnityEngine.Debug:LogError(Object)
AppCenterEditor.LocalLogger:LogError(String) (at Assets/AppCenterEditorExtensions/Editor/Scripts/Utils/LocalLogger.cs:20)
AppCenterEditor.AppCenterEditor:StateUpdateHandler(EdExStates, String, String) (at Assets/AppCenterEditorExtensions/Editor/AppCenterEditor.cs:275)
AppCenterEditor.AppCenterEditor:RaiseStateUpdate(EdExStates, String, String) (at Assets/AppCenterEditorExtensions/Editor/AppCenterEditor.cs:219)
AppCenterEditor.AppCenterSDKPackage:RemovePackage(Boolean) (at Assets/AppCenterEditorExtensions/Editor/Scripts/Panels/SDKPackage/AppCenterSDKPackage.cs:109)
AppCenterEditor.AppCenterSDKPackage:ShowPackageInstalledMenu() (at Assets/AppCenterEditorExtensions/Editor/Scripts/Panels/SDKPackage/AppCenterSDKPackage.cs:147)
AppCenterEditor.AppCenterEditorSDKTools:DisplayPackagePanel(AppCenterSDKPackage) (at Assets/AppCenterEditorExtensions/Editor/Scripts/Panels/AppCenterEditorSDKTools.cs:95)
AppCenterEditor.AppCenterEditor:OnGuiInternal() (at Assets/AppCenterEditorExtensions/Editor/AppCenterEditor.cs:146)
AppCenterEditor.AppCenterEditor:HideRepaintErrors(Action) (at Assets/AppCenterEditorExtensions/Editor/AppCenterEditor.cs:117)
AppCenterEditor.AppCenterEditor:OnGUI() (at Assets/AppCenterEditorExtensions/Editor/AppCenterEditor.cs:110)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?) The following scene GameObjects were found: Coroutiner

Description

Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
The following scene GameObjects were found:
Coroutiner

Repro Steps

  1. Add the AppCenter behaviour to a gameobject in the launch scene.
  2. Launch the game.

Details

  1. Which SDK version are you using?
  2. Which platform did you experience the issue on?
    • Editor
  3. What device version did you see this error on? Were you using an emulator or a physical device?
    • Editor
  4. What third party plugins are you using?
  5. Please enable verbose logging for your app using Initial Log Level setting and include the logs here:
  6. Please share a screenshot of App Center Settings (without app secrets)
  7. Please share a screenshot of Build and Player Settings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.