Skip to content

Commit

Permalink
feat: Remove from the init function of ImpaktfullAnalyticsUtil and Im…
Browse files Browse the repository at this point in the history
…paktfullCrashReportingUtil
  • Loading branch information
vanlooverenkoen committed Feb 20, 2025
1 parent 7f87657 commit b15ae11
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.14.0

## BREAKING

- Remove `enabled` from the init function of ImpaktfullAnalyticsUtil and ImpaktfullCrashReportingUtil

# 0.13.0

## BREAKING
Expand Down
4 changes: 1 addition & 3 deletions lib/src/util/analytics/analytics_util.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
abstract class ImpaktfullAnalyticsUtil {
Future<void> init({
bool enabled = false,
});
Future<void> init();

Future<void> setEnabled(bool enabled);

Expand Down
6 changes: 2 additions & 4 deletions lib/src/util/analytics/multi_instance_analytics_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ class MultiInstanceAnalyticsUtil extends ImpaktfullAnalyticsUtil {
);

@override
Future<void> init({bool enabled = false}) async {
Future<void> init() async {
await Future.wait(analyticsUtils.map(
(util) => util.init(
enabled: enabled,
),
(util) => util.init(),
));
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/util/crash_reporting/crash_reporting_util.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
abstract class ImpaktfullCrashReportingUtil {
Future<void> init({bool enabled = false});
Future<void> init();

Future<void> setEnabled(bool enabled);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ class MultiInstanceCrashReportingUtil extends ImpaktfullCrashReportingUtil {
);

@override
Future<void> init({bool enabled = false}) async {
Future<void> init() async {
await Future.wait(
crashReportingUtils.map(
(util) => util.init(
enabled: enabled,
),
(util) => util.init(),
),
);
}
Expand Down

0 comments on commit b15ae11

Please sign in to comment.