Skip to content

Commit

Permalink
feat: Altfire tracker add getStackTraceElements (#43)
Browse files Browse the repository at this point in the history
* feat: Add getStackTraceElements method to Tracker class

* fix: Add altfire_tracker library and update import in tracker_test
  • Loading branch information
naipaka authored Dec 26, 2023
1 parent f91aa75 commit a05488a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/altfire_tracker/lib/src/tracker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ class Tracker {
]);
}

/// Returns a list of StackTraceElements from a StackTrace.
List<Map<String, String>> getStackTraceElements(StackTrace stackTrace) =>
getStackTraceElements(stackTrace);

/// Set the user ID.
Future<void> setUserId(String userId) async {
await Future.wait([
Expand Down
2 changes: 1 addition & 1 deletion packages/altfire_tracker/test/src/tracker_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:isolate';

import 'package:altfire_tracker/tracker.dart';
import 'package:altfire_tracker/altfire_tracker.dart';
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
import 'package:flutter/material.dart';
Expand Down

0 comments on commit a05488a

Please sign in to comment.