Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oscb committed Apr 11, 2024
1 parent 082420f commit 4330ab9
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion example/lib/config.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const writeKey = 'INSERT WRITE KEY';
const writeKey = 'tUFhPdeE4S9M722Xc44mydRhj0BX9GXB';
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:analytics_example/config.dart';
import 'package:segment_analytics/config.dart';
import 'package:segment_analytics/event.dart';
import 'package:segment_analytics/state.dart';
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:analytics_example/main.dart';
import 'package:segment_analytics_example/main.dart';

void main() {
testWidgets('Verify Platform version', (WidgetTester tester) async {
Expand Down
4 changes: 4 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
- Strongly typed, including User Traits and Context objects and plugin settings
- Fully asynchronous and concurrency safe state and persistence management
- Example app showing off usage of the SDK

## 1.0.2

- Fixed an issue with EU Workspaces not respecting the proper apiHost
4 changes: 2 additions & 2 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ In your `pubspec.yaml` remove the `analytics` package and use `segment_analytics
+ segment_analytics: ^1.0.1
```

In your dart files change the imports from `package:analytics` to `package:segment_analytics`:
In your dart files change the imports from `package:segment_analytics` to `package:segment_analytics`:

```diff
- import 'package:analytics/client.dart';
- import 'package:segment_analytics/client.dart';
+ import 'package:segment_analytics/client.dart';
```

Expand Down
2 changes: 1 addition & 1 deletion packages/core/lib/utils/http_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class HTTPClient {
/// - batch: The array of the events, considered a batch of events.
/// - completion: The closure executed when done. Passes if the task should be retried or not if failed.
Future<bool> startBatchUpload(String writeKey, List<RawEvent> batch,
{String? host = null}) async {
{String? host}) async {
final apihost = _analytics.target!.state.configuration.state.apiHost ??
host ??
defaultAPIHost;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: segment_analytics
description: The hassle-free way to add Segment analytics to your Flutter app.
version: 1.0.1
version: 1.0.2
homepage: https://github.com/segmentio/analytics_flutter#readme
repository: https://github.com/segmentio/analytics_flutter/tree/main/packages/core#readme
issue_tracker: https://github.com/segmentio/analytics_flutter/issues
Expand Down
8 changes: 4 additions & 4 deletions packages/core/test/analytics_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:analytics/analytics.dart';
import 'package:analytics/analytics_platform_interface.dart';
import 'package:analytics/logger.dart';
import 'package:analytics/state.dart';
import 'package:segment_analytics/analytics.dart';
import 'package:segment_analytics/analytics_platform_interface.dart';
import 'package:segment_analytics/logger.dart';
import 'package:segment_analytics/state.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
Expand Down
8 changes: 4 additions & 4 deletions packages/core/test/utils/http_client_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:analytics/analytics.dart';
import 'package:analytics/logger.dart';
import 'package:analytics/state.dart';
import 'package:analytics/utils/http_client.dart';
import 'package:segment_analytics/analytics.dart';
import 'package:segment_analytics/logger.dart';
import 'package:segment_analytics/state.dart';
import 'package:segment_analytics/utils/http_client.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:http/http.dart';
Expand Down

0 comments on commit 4330ab9

Please sign in to comment.