Skip to content

Commit

Permalink
Merge pull request #36 from microsoft/auth-extension
Browse files Browse the repository at this point in the history
version 1.2.0 Auth module
  • Loading branch information
jaeklim committed Sep 13, 2019
2 parents 77f5063 + f9b3ff7 commit 02bfe06
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# App Center SDK for Unity Editor Extensions Change Log

## Release 1.2.0

* **[Feature]** App Center Unity SDK Auth package support

## Release 1.1.2

* **[Bug fix]** Fixed UI controls positioning and scrollbar behavior
Expand Down
5 changes: 2 additions & 3 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Release 1.1.2
## Release 1.2.0

* **[Bug fix]** Fixed UI controls positioning and scrollbar behavior
* **[Bug fix]** Fixed package update logic for some of the old App Center Unity SDK package versions
* **[Feature]** App Center Unity SDK Auth package support
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ private static string WriteResultFile(string url, byte[] response)
{
fileName = AppCenterEditorHelper.ANALYTICS_SDK_DOWNLOAD_PATH;
}
else if (url.IndexOf("AppCenterAuth-v") > -1)
{
fileName = AppCenterEditorHelper.AUTH_SDK_DOWNLOAD_PATH;
}
else if (url.IndexOf("AppCenterCrashes-v") > -1)
{
fileName = AppCenterEditorHelper.CRASHES_SDK_DOWNLOAD_PATH;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
namespace AppCenterEditor
{
public class AppCenterAuthPackage : AppCenterSDKPackage
{
private const string AuthLatestDownload = "https://mobilecentersdkdev.blob.core.windows.net/sdk/AppCenterAuthLatest.unitypackage";
private const string AuthDownloadFormat = "https://github.com/Microsoft/AppCenter-SDK-Unity/releases/download/{0}/AppCenterAuth-v{0}.unitypackage";

public static AppCenterAuthPackage Instance = new AppCenterAuthPackage();

public override string Name { get { return "Auth"; } }

protected override bool IsSupportedForWSA { get { return false; } }

public override string TypeName { get { return "Microsoft.AppCenter.Unity.Auth.Auth"; } }

public override string VersionFieldName { get { return "AuthSDKVersion"; } }

public override string DownloadLatestUrl { get { return AuthLatestDownload; } }

public override string DownloadUrlFormat { get { return AuthDownloadFormat; } }

protected override bool IsSdkPackageSupported()
{
return true;
}

private AppCenterAuthPackage()
{
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public abstract class AppCenterSDKPackage
public static IEnumerable<AppCenterSDKPackage> SupportedPackages = new AppCenterSDKPackage[]
{
AppCenterAnalyticsPackage.Instance,
AppCenterAuthPackage.Instance,
AppCenterCrashesPackage.Instance,
AppCenterDistributePackage.Instance,
AppCenterPushPackage.Instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public static partial class AppCenterEditorHelper
public static string DEFAULT_SDK_LOCATION_PATH = Application.dataPath + "/AppCenter";
public static string MSG_SPIN_BLOCK = "{\"useSpinner\":true, \"blockUi\":true }";
public static string ANALYTICS_SDK_DOWNLOAD_PATH = "/Resources/AppCenterAnalyticsUnitySdk.unitypackage";
public static string AUTH_SDK_DOWNLOAD_PATH = "/Resources/AppCenterAuthUnitySdk.unitypackage";
public static string CRASHES_SDK_DOWNLOAD_PATH = "/Resources/AppCenterCrashesUnitySdk.unitypackage";
public static string DISTRIBUTE_SDK_DOWNLOAD_PATH = "/Resources/AppCenterDistributeUnitySdk.unitypackage";
public static string EDEX_UPGRADE_PATH = "/Resources/AppCenterUnityEditorExtensions.unitypackage";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{
public static partial class AppCenterEditorHelper
{
public static string EDEX_VERSION = "1.1.2";
public static string EDEX_VERSION = "1.2.0";
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<package name="AppCenterEditorExtensions" version="1.1.2">
<package name="AppCenterEditorExtensions" version="1.2.0">
<include>
<file path="Assets/AppCenterEditorExtensions" />
</include>
Expand Down
Empty file modified build.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion tools/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake" version="0.30.0" />
<package id="Cake" version="0.34.1" />
</packages>

0 comments on commit 02bfe06

Please sign in to comment.