Skip to content

Commit

Permalink
chore: set library
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Mar 1, 2024
1 parent 9fd2b0c commit 7773a7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/constants.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Constants {
static const packageName = "amplitude-flutter";
static const packageVersion = "3.16.1";
static const packageVersion = "4.0.0-beta.0";
static const identify_event = "\$identify";
static const group_identify_event = "\$groupidentify";
static const revenue_event = "revenue_amount";
Expand Down
3 changes: 2 additions & 1 deletion lib/events/base_event.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:amplitude_flutter/constants.dart';
import 'package:amplitude_flutter/events/plan.dart';
import 'event_options.dart';
import 'ingestion_metadata.dart';
Expand Down Expand Up @@ -37,7 +38,7 @@ class BaseEvent extends EventOptions {
String? appSetId,
String? androidId,
String? language,
String? library,
String library = "${Constants.packageName}/${Constants.packageVersion}",
String? ip,
Plan? plan,
IngestionMetadata? ingestionMetadata,
Expand Down
1 change: 1 addition & 0 deletions test/amplitude_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void main() {
final testEvent = BaseEvent(eventType: "testEvent");
final testEventMap = {
"event_type": "testEvent",
"library": "${Constants.packageName}/${Constants.packageVersion}",
"attempts": 0,
};
final testPrice = 3.99;
Expand Down

0 comments on commit 7773a7d

Please sign in to comment.