Bugly
This commit is contained in:
ALEXTANG
2023-04-19 17:49:29 +08:00
parent 4db704930d
commit d5826551b4
5 changed files with 42 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
namespace TEngine
using UnityEngine;
namespace TEngine
{
public class BuglyManager
{
@@ -18,11 +20,11 @@
BuglyAgent.InitWithAppId (config.androidId);
#endif
BuglyAgent.EnableExceptionHandler();
Log.Info($"Init Bugly Successes");
Debug.Log($"Init Bugly Successes");
}
else
{
Log.Fatal("Init Bugly Fatal buglyConfig.asset is null!");
Debug.LogError("Init Bugly Fatal buglyConfig.asset is null!");
}
}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3f513275928c09f42ad6c2cbdd56cbec
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,19 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: acf9017ac21e41dc97f7c328c0d6017f, type: 3}
m_Name: BuglyConfig
m_EditorClassIdentifier:
channelId: TEngine
androidId: 100001
androidKey: TEngine
iosId: 100001
iosKey: TEngine

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 574540cb1bee6a247aa8a2539b87b0fb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -109,6 +109,8 @@ namespace TEngine
{
base.Awake();
BuglyManager.Instance.Init(Resources.Load<BuglyConfig>("BuglyConfig"));
GameTime.StartFrame();
InitTextHelper();