Skip to content

Commit 8dafdae

Browse files
committed
New user agent based on core package
1 parent e1ba4a4 commit 8dafdae

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/powersync_core/lib/src/user_agent/user_agent_native.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ String powerSyncUserAgent() {
1010
}
1111
// Ideally we'd get an OS version as well, but that's a little complex.
1212
// Platform.operatingSystemVersion is very verbose.
13-
return 'powersync-dart/$libraryVersion $dart ${Platform.operatingSystem}';
13+
return 'powersync-dart-core/$libraryVersion $dart ${Platform.operatingSystem}';
1414
}
1515

1616
Map<String, String> userAgentHeaders() {

packages/powersync_core/lib/src/user_agent/user_agent_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:powersync_core/src/version.dart';
22

33
String powerSyncUserAgent() {
4-
return 'powersync-dart/$libraryVersion Dart (flutter-web)';
4+
return 'powersync-dart-core/$libraryVersion Dart (flutter-web)';
55
}
66

77
Map<String, String> userAgentHeaders() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const String libraryVersion = '1.9.3';
1+
const String libraryVersion = '0.0.1';

tool/update_version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'dart:io';
22
import 'package:yaml/yaml.dart';
33

44
void main() {
5-
final pubspecFile = File('packages/powersync/pubspec.yaml');
5+
final pubspecFile = File('packages/powersync_core/pubspec.yaml');
66
final pubspecContent = pubspecFile.readAsStringSync();
77
final yaml = loadYaml(pubspecContent);
88
final version = yaml['version'];

0 commit comments

Comments
 (0)