Skip to content

Commit 54b1a11

Browse files
committed
release: 3.0.1
1 parent f030ace commit 54b1a11

8 files changed

Lines changed: 82 additions & 41 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "TheBestLoggerSample.CrashReporting.Editor",
3+
"rootNamespace": "",
4+
"references": [],
5+
"includePlatforms": [
6+
"Editor"
7+
],
8+
"excludePlatforms": [],
9+
"allowUnsafeCode": false,
10+
"overrideReferences": false,
11+
"precompiledReferences": [],
12+
"autoReferenced": true,
13+
"defineConstraints": [],
14+
"versionDefines": [],
15+
"noEngineReferences": false
16+
}

DevAccelerationSystem.DemoProject/Assets/TheBestLoggerSample/Scripts/CrashReporting/Editor/TheBestLoggerSample.CrashReporting.Editor.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DevAccelerationSystem.DemoProject/Assets/TheBestLoggerSample/Scripts/TheBestLoggerSample.asmdef

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"GUID:6bf1f0333af8e44dc928aa47e215e637",
66
"GUID:fb39b46eaa5c14376bed507a86769a11",
77
"GUID:24a6b1b95a95d4788aa4272afca8e979",
8-
"GUID:2bafac87e7f4b9b418d9448d219b01ab"
8+
"GUID:2bafac87e7f4b9b418d9448d219b01ab",
9+
"GUID:f51ebe6a0ceec4240a699833d6309b23"
910
],
1011
"includePlatforms": [],
1112
"excludePlatforms": [],
@@ -22,4 +23,4 @@
2223
}
2324
],
2425
"noEngineReferences": false
25-
}
26+
}

DevAccelerationSystem/Assets/TheBestLogger/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
## [Unreleased]
44
- No unreleased entries yet.
55

6+
## [3.0.1] - 2026-05-04
7+
- Fixed Apple-system logger native bridge compilation on Apple player targets by restoring valid access to the imported native entry points.
8+
- Fixed `OpenSearchLogTarget` diagnostics error logging so player builds no longer reference the editor-only reflective Unity Console logger.
9+
- Fixed the `StabilityHub` iOS crash-reporting preprocess build step so builds no longer throw when the monitoring configuration asset is missing.
10+
- Fixed tracked demo-project sample assembly wiring so the crash-reporting postprocess script stays editor-only and the `UniTask` exception sample resolves the `UniTask` assembly correctly.
11+
612
## [3.0.0] - 2026-05-03
713
- Breaking change: removed the public `GetCurrentLogTargetConfigurations()` API.
814
- Breaking change: removed the public typed runtime-update APIs based on `LogTargetConfiguration` objects.

DevAccelerationSystem/Assets/TheBestLogger/Runtime/Core/LogTarget/AppleSystemLogTarget/AppleSystemLogTarget.cs

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,31 @@ public void LogError(string category, string message)
5252
TheBestLogger_AppleSystemLogError(category, message);
5353
#endif
5454
}
55+
56+
#if (UNITY_IOS || UNITY_STANDALONE_OSX) && !UNITY_EDITOR
57+
[DllImport("__Internal")]
58+
private static extern void TheBestLogger_initAppleSystemLogger(string subsystem, string category);
59+
60+
[DllImport("__Internal")]
61+
private static extern void TheBestLogger_AppleSystemLogDefault(string category, string message);
62+
63+
[DllImport("__Internal")]
64+
private static extern void TheBestLogger_AppleSystemLogInfo(string category, string message);
65+
66+
[DllImport("__Internal")]
67+
private static extern void TheBestLogger_AppleSystemLogDebug(string category, string message);
68+
69+
[DllImport("__Internal")]
70+
private static extern void TheBestLogger_AppleSystemLogError(string category, string message);
71+
72+
[DllImport("__Internal")]
73+
private static extern void TheBestLogger_AppleSystemLogFault(string category, string message);
74+
75+
[DllImport("__Internal")]
76+
private static extern void TheBestLogger_AppleSystemLogFormatted(string category,
77+
string format,
78+
string arg1);
79+
#endif
5580
}
5681

5782
internal enum AppleSystemLogMethod
@@ -208,31 +233,5 @@ internal static void ResetTestHooks()
208233
{
209234
Bridge = DefaultBridge;
210235
}
211-
212-
#if (UNITY_IOS || UNITY_STANDALONE_OSX) && !UNITY_EDITOR
213-
[DllImport("__Internal")]
214-
private static extern void TheBestLogger_initAppleSystemLogger(string subsystem, string category);
215-
216-
[DllImport("__Internal")]
217-
private static extern void TheBestLogger_AppleSystemLogDefault(string category, string message);
218-
219-
[DllImport("__Internal")]
220-
private static extern void TheBestLogger_AppleSystemLogInfo(string category, string message);
221-
222-
[DllImport("__Internal")]
223-
private static extern void TheBestLogger_AppleSystemLogDebug(string category, string message);
224-
225-
[DllImport("__Internal")]
226-
private static extern void TheBestLogger_AppleSystemLogError(string category, string message);
227-
228-
[DllImport("__Internal")]
229-
private static extern void TheBestLogger_AppleSystemLogFault(string category, string message);
230-
231-
[DllImport("__Internal")]
232-
private static extern void TheBestLogger_AppleSystemLogFormatted(string category,
233-
string format,
234-
string arg1);
235-
#endif
236-
237236
}
238237
}

DevAccelerationSystem/Assets/TheBestLogger/Runtime/Examples/LogTargets/OpenSearch/OpenSearchLogTarget.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ private void PostLog(string url, byte[] jsonData)
209209
#if UNITY_EDITOR || THEBESTLOGGER_DIAGNOSTICS_ENABLED
210210
var payloadString = Utf8NoBom.GetString(jsonData, 0, jsonData.Length);
211211
var messageError = $"Can not write log into opensearchtarget because error result: {request.result}, error: {request.error}, response: {request.downloadHandler?.text}\nsent:{payloadString}";
212+
#if UNITY_EDITOR
212213
ReflectiveUnityEditorConsoleLogger.LogToConsoleDirectly(messageError, LogType.Error);
214+
#endif
213215
Diagnostics.Write(messageError);
214216
#endif
215217
}

DevAccelerationSystem/Assets/TheBestLogger/Runtime/StabilityHub/Monitoring/CrashReporter/PlatformImpl/CrashReporteriOS/Editor/EnableCrashReportPostProcessBuild.cs

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,30 @@ public class CrashReportingPreprocessBuildStep : IPreprocessBuildWithReport
1212

1313
public void OnPreprocessBuild(BuildReport report)
1414
{
15-
if (report.summary.platform == BuildTarget.iOS)
15+
if (report.summary.platform != BuildTarget.iOS)
1616
{
17-
var config = StabilityHub.StabilityHubService.MonitoringConfig;
18-
var crashReporterModuleConfiguration = config.CrashReporterModule;
19-
if (crashReporterModuleConfiguration.AutoProjectSettingsSetup)
20-
{
21-
Debug.Log(
22-
"OnPreprocessBuild " + nameof(CrashReportingPreprocessBuildStep) + " " + report.summary.platform + " at path "
23-
+ report.summary.outputPath);
24-
25-
var enabled = crashReporterModuleConfiguration.Enabled && crashReporterModuleConfiguration.IOS.Enabled;
26-
EnableCrashReporting(enabled);
27-
}
17+
return;
2818
}
19+
20+
var config = StabilityHub.StabilityHubService.MonitoringConfig;
21+
if (config == null)
22+
{
23+
Debug.LogWarning(nameof(CrashReportingPreprocessBuildStep) +
24+
" skipped crash reporter auto setup because no MonitoringConfiguration asset was loaded.");
25+
return;
26+
}
27+
28+
var crashReporterModuleConfiguration = config.CrashReporterModule;
29+
if (!crashReporterModuleConfiguration.AutoProjectSettingsSetup)
30+
{
31+
return;
32+
}
33+
34+
Debug.Log(
35+
"OnPreprocessBuild " + nameof(CrashReportingPreprocessBuildStep) + " " + report.summary.platform + " at path "
36+
+ report.summary.outputPath);
37+
38+
EnableCrashReporting(config.IsIOSCrashReporterModuleEnabled);
2939
}
3040

3141
public static void EnableCrashReporting(bool enabled)

DevAccelerationSystem/Assets/TheBestLogger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.foxsterdev.thebestlogger",
33
"displayName": "TheBestLogger",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"unity": "2022.3",
66
"keywords": [
77
"unity",

0 commit comments

Comments
 (0)