Skip to content

Commit

Permalink
New user agent based on core package
Browse files Browse the repository at this point in the history
  • Loading branch information
mugikhan committed Nov 12, 2024
1 parent e1ba4a4 commit 8dafdae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ String powerSyncUserAgent() {
}
// Ideally we'd get an OS version as well, but that's a little complex.
// Platform.operatingSystemVersion is very verbose.
return 'powersync-dart/$libraryVersion $dart ${Platform.operatingSystem}';
return 'powersync-dart-core/$libraryVersion $dart ${Platform.operatingSystem}';
}

Map<String, String> userAgentHeaders() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:powersync_core/src/version.dart';

String powerSyncUserAgent() {
return 'powersync-dart/$libraryVersion Dart (flutter-web)';
return 'powersync-dart-core/$libraryVersion Dart (flutter-web)';
}

Map<String, String> userAgentHeaders() {
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync_core/lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const String libraryVersion = '1.9.3';
const String libraryVersion = '0.0.1';
2 changes: 1 addition & 1 deletion tool/update_version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:io';
import 'package:yaml/yaml.dart';

void main() {
final pubspecFile = File('packages/powersync/pubspec.yaml');
final pubspecFile = File('packages/powersync_core/pubspec.yaml');
final pubspecContent = pubspecFile.readAsStringSync();
final yaml = loadYaml(pubspecContent);
final version = yaml['version'];
Expand Down

0 comments on commit 8dafdae

Please sign in to comment.