Skip to content

Commit d99e5fa

Browse files
authored
version 1.3.0 (#236)
1 parent 283dbd7 commit d99e5fa

File tree

13 files changed

+55
-28
lines changed

13 files changed

+55
-28
lines changed

Assets/AppCenter/Editor/AppCenterPostBuild.cs

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,36 +143,32 @@ public static void InjectCodeToFile(string appFilePath, string appFileName, stri
143143
return;
144144
}
145145
var appAdditionsFolder = AppCenterSettingsContext.AppCenterPath + "/AppCenter/Plugins/WSA/Push/AppAdditions";
146-
var codeToInsert = File.ReadAllText(Path.Combine(appAdditionsFolder, codeToInsertFileName));
147146
var commentText = "App Center Push code:";
148-
codeToInsert = "\n // " + commentText + "\n" + codeToInsert;
147+
var codeToInsert = Environment.NewLine + " // " + commentText + Environment.NewLine
148+
+ File.ReadAllText(Path.Combine(appAdditionsFolder, codeToInsertFileName));
149149
var fileText = File.ReadAllText(appFilePath);
150-
var regex = new Regex(searchRegex);
151-
var matches = regex.Match(fileText);
152150
if (fileText.Contains(commentText))
153151
{
154152
if (fileText.Contains(codeToInsert))
155153
{
156-
Debug.Log(string.Format("AppCenterPostBuild.InjectCodeToFile - Code file [{0}], already containts the injection code. Will not re-inject", appFileName));
154+
Debug.LogFormat("App Center Push: Code file `{0}` already contains the injection code. Will not re-inject", appFilePath);
157155
}
158156
else
159157
{
160-
Debug.LogWarning(string.Format("AppCenterPostBuild.InjectCodeToFile - Code file [{0}], already containts the injection code but it does not match the latest code injecttion. Plese refer to the code injection file {1}", appFileName, codeToInsertFileName));
158+
Debug.LogWarningFormat("App Center Push: Code file `{0}` already contains the injection code but it does not match the latest code injection. Please rebuild the project into an empty folder", appFilePath);
161159
}
162-
163160
return;
164161
}
162+
var regex = new Regex(searchRegex);
163+
var matches = regex.Match(fileText);
165164
if (matches.Success)
166165
{
167166
var codeToReplace = matches.ToString();
168-
if (!fileText.Contains(commentText))
167+
if (includeSearchText)
169168
{
170-
if (includeSearchText)
171-
{
172-
codeToInsert = codeToReplace + codeToInsert;
173-
}
174-
fileText = fileText.Replace(codeToReplace, codeToInsert);
169+
codeToInsert = codeToReplace + codeToInsert;
175170
}
171+
fileText = fileText.Replace(codeToReplace, codeToInsert);
176172
File.WriteAllText(appFilePath, fileText);
177173
}
178174
else

Assets/AppCenter/Plugins/AppCenterSDK/Analytics/Shared/Analytics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Microsoft.AppCenter.Unity.Analytics
1717
public class Analytics
1818
{
1919
// Used by App Center Unity Editor Extensions: https://github.com/Microsoft/AppCenter-SDK-Unity-Extension
20-
public const string AnalyticsSDKVersion = "1.2.1";
20+
public const string AnalyticsSDKVersion = "1.3.0";
2121

2222
public static void PrepareEventHandlers()
2323
{

Assets/AppCenter/Plugins/AppCenterSDK/Core/Shared/WrapperSdk.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static class WrapperSdk
1313
private static bool _hasAttemptedToGetRuntimeVersion;
1414

1515
public const string Name = "appcenter.unity";
16-
public const string WrapperSdkVersion = "1.2.1";
16+
public const string WrapperSdkVersion = "1.3.0";
1717

1818
internal static string WrapperRuntimeVersion
1919
{

Assets/AppCenter/Plugins/AppCenterSDK/Crashes/Shared/Crashes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.AppCenter.Unity.Crashes
2121
public class Crashes
2222
{
2323
// Used by App Center Unity Editor Extensions: https://github.com/Microsoft/AppCenter-SDK-Unity-Extension
24-
public const string CrashesSDKVersion = "1.2.1";
24+
public const string CrashesSDKVersion = "1.3.0";
2525
private static bool _reportUnhandledExceptions = false;
2626
private static readonly object _objectLock = new object();
2727

Assets/AppCenter/Plugins/AppCenterSDK/Distribute/Shared/Distribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Microsoft.AppCenter.Unity.Distribute
1717
public class Distribute
1818
{
1919
// Used by App Center Unity Editor Extensions: https://github.com/Microsoft/AppCenter-SDK-Unity-Extension
20-
public const string DistributeSDKVersion = "1.2.1";
20+
public const string DistributeSDKVersion = "1.3.0";
2121

2222
public static void PrepareEventHandlers()
2323
{

Assets/AppCenter/Plugins/AppCenterSDK/Push/Shared/Push.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Microsoft.AppCenter.Unity.Push
1717
public class Push
1818
{
1919
// Used by App Center Unity Editor Extensions: https://github.com/Microsoft/AppCenter-SDK-Unity-Extension
20-
public const string PushSDKVersion = "1.2.1";
20+
public const string PushSDKVersion = "1.3.0";
2121
private static readonly object _lockObject = new object();
2222
private static bool _needsReplay = true;
2323

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# App Center SDK for Unity Change Log
22

3+
## Release 1.3.0
4+
5+
**Breaking changes**
6+
7+
* Handler for an event `Crashes.FailedToSendErrorReport` must now contain additional parameter with type `Microsoft.AppCenter.Unity.Crashes.Models.Exception`
8+
9+
**Android**
10+
11+
* **[Bug fix]** All of the callbacks and events of the class `Crashes` are now correctly work on Android
12+
13+
**iOS**
14+
15+
* **[Bug fix]** Crash error report is now contains correct information about the device
16+
* **[Bug fix]** Fix incorrect values of properties `ErrorReport.AppStartTime` and `ErrorReport.AppErrorTime` on iOS
17+
18+
**UWP**
19+
20+
* **[Bug fix]** Hidden some of the warnings in Unity Editor console when using App Center Unity SDK
21+
* **[Bug fix]** Fix warnings in Unity Editor console when building app with `IL2CPP` scripting backend and `XAML` build type
22+
23+
___
24+
325
## Release 1.2.1
426

527
**UWP**

RELEASE.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# Release 1.2.1
1+
# Release 1.3.0
22

3-
**UWP**
3+
**Breaking changes**
44

5-
* App Center SDK for Unity now uses the latest native App Center SDK for .NET version 1.12.0
6-
* **[Bug fix]** Fix UWP app build when using the Push package
5+
* Handler for an event `Crashes.FailedToSendErrorReport` must now contain additional parameter with type `Microsoft.AppCenter.Unity.Crashes.Models.Exception`
76

87
**Android**
98

10-
* **[Bug fix]** Fixed `Crashes.GenerateTestCrash` method, which now correctly crashes the application when it is built with "Development Build" checkbox
9+
* **[Bug fix]** All of the callbacks and events of the class `Crashes` are now correctly work on Android
10+
11+
**iOS**
12+
13+
* **[Bug fix]** Crash error report is now contains correct information about the device
14+
* **[Bug fix]** Fix incorrect values of properties `ErrorReport.AppStartTime` and `ErrorReport.AppErrorTime` on iOS
15+
16+
**UWP**
17+
18+
* **[Bug fix]** Hidden some of the warnings in Unity Editor console when using App Center Unity SDK
19+
* **[Bug fix]** Fix warnings in Unity Editor console when building app with `IL2CPP` scripting backend and `XAML` build type

UnityPackageSpecs/AppCenter.unitypackagespec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<package name="AppCenter" version="1.2.1">
2+
<package name="AppCenter" version="1.3.0">
33
<include>
44
<!-- Editor related files -->
55
<file path="Assets/AppCenter/Editor" />

UnityPackageSpecs/AppCenterAnalytics.unitypackagespec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<package name="AppCenterAnalytics" version="1.2.1" needsCore="true">
2+
<package name="AppCenterAnalytics" version="1.3.0" needsCore="true">
33
<include>
44
<!-- Shared files -->
55
<file path="Assets/AppCenter/Plugins/AppCenterSDK/Analytics/Shared" />

0 commit comments

Comments
 (0)