flutter_tencent_bugly 1.0.0
flutter_tencent_bugly: ^1.0.0 copied to clipboard
A lightweight Flutter monitoring plugin for Tencent Bugly, focusing on mobile application exception capture and operational data analysis.
1.0.0 #
Initial release of flutter_tencent_bugly, a lightweight Flutter plugin wrapping Tencent Bugly
for exception capture and operational data analysis.
Features #
initwith a common config plus per-platform configs — Android / iOS are initialized independently, only when the corresponding config is passed.- User and device metadata:
setUserId,setUserTag,setDeviceID,setVersion, plus Android-onlysetDeviceModel,setChannelandsetPackageName. putUserDatafor custom key-value data attached to crash reports.postExceptionfor reporting caught exceptions with type and extra data.logfor custom logs uploaded with crash reports, with fiveLogLevels mapped to Bugly's native log-level constants on both platforms.runGuardedfor Dart-side global exception capture: wraps the app inrunZonedGuardedand reports Flutter framework exceptions (FlutterError.onError) and uncaught async exceptions (PlatformDispatcher.onError). Supports a customonExceptionhook, afilterPatternexclusion regex, andreportInDebugModegating. Previously registered error handlers are chained instead of replaced.
Android #
- Bugly
crashreport4.1.9.3 from Maven, minSdk 24. - Configurable ANR monitoring (
enableCatchAnrTrace,enableRecordAnrMainStack), init delay (reportDelay) and log upload (isLogUpload).
iOS #
- Vendored
Bugly.xcframework, supporting both CocoaPods and Swift Package Manager. - Configurable block monitoring (
blockMonitorEnable,blockMonitorTimeout), in-process symbolication, abnormal-termination detection, view controller tracking and report log level (reportLogLevel).
Miscellaneous #
- Example app demonstrating the full API surface.
- Unit tests for the Dart method channel and the Android native side.