Skip to content

Commit 9518a2f

Browse files
authored
pass SDK and version number to server, v0.5.0 (#14)
* pass SDK and version number to server, v0.5.0 * missing files and formatting * make format * line length comment for VSCode
1 parent 344e6ad commit 9518a2f

File tree

8 files changed

+41
-9
lines changed

8 files changed

+41
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# CHANGELOG
22

3+
## 0.5.0
4+
5+
* major update with new event system
6+
* supports simulcast for iOS
7+
* support for background audio for iOS
8+
* support for protocol 3, subscriber as primary connection
9+
* improved audio management for iOS, mic indicator only when audio tracks published
10+
* fires TrackUnpublished for local tracks
11+
* fixed occasional crashes during publishing
12+
313
## 0.4.1
414

515
* fixed video rendering blank after widget changes

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ proto:
1010
fi \
1111
}
1212

13-
.PHONY: proto
13+
format:
14+
flutter format --set-exit-if-changed -l 100 .
15+
16+
.PHONY: proto format

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,19 @@ These controls are accessible on the `RemoteTrackPublication` object.
277277

278278
For more info, see [Subscriber controls](https://docs.livekit.io/guides/room/receive#subscriber-controls).
279279

280+
## Development
281+
282+
The project is configured to lint with line length of 100. If using VS Code, set the following in your `settings.json`
283+
284+
```json
285+
"dart.lineLength": 100,
286+
"[dart]": {
287+
"editor.rulers": [
288+
100
289+
]
290+
}
291+
```
292+
280293
## License
281294

282295
Apache License 2.0

example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ packages:
113113
name: flutter_webrtc
114114
url: "https://pub.dartlang.org"
115115
source: hosted
116-
version: "0.6.9"
116+
version: "0.6.10"
117117
google_fonts:
118118
dependency: "direct main"
119119
description:
@@ -155,7 +155,7 @@ packages:
155155
path: ".."
156156
relative: true
157157
source: path
158-
version: "0.4.1"
158+
version: "0.5.0"
159159
logging:
160160
dependency: "direct main"
161161
description:

lib/src/utils.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'extensions.dart';
66
import 'options.dart';
77
import 'track/options.dart';
88
import 'types.dart';
9+
import 'version.dart';
910

1011
extension UriExt on Uri {
1112
bool get isSecureScheme => ['https', 'wss'].contains(scheme);
@@ -36,6 +37,8 @@ class Utils {
3637
if (options != null) 'auto_subscribe': options.autoSubscribe ? '1' : '0',
3738
if (reconnect) 'reconnect': '1',
3839
'protocol': protocol.toStringValue(),
40+
'sdk': 'flutter',
41+
'version': clientVersion,
3942
},
4043
);
4144
}
@@ -45,7 +48,9 @@ class Utils {
4548
int height,
4649
) {
4750
final double aspect = width / height;
48-
if ((aspect - 16.0 / 9.0).abs() < (aspect - 4.0 / 3.0).abs()) return VideoParameters.presets169;
51+
if ((aspect - 16.0 / 9.0).abs() < (aspect - 4.0 / 3.0).abs()) {
52+
return VideoParameters.presets169;
53+
}
4954
return VideoParameters.presets43;
5055
}
5156

lib/src/version.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const clientVersion = '0.5.0';

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ packages:
101101
name: flutter_webrtc
102102
url: "https://pub.dartlang.org"
103103
source: hosted
104-
version: "0.6.9"
104+
version: "0.6.10"
105105
http:
106106
dependency: "direct main"
107107
description:

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: livekit_client
22
description: Flutter Client SDK for LiveKit
3-
version: 0.4.1
3+
version: 0.5.0
44
homepage: https://livekit.io
55

66
environment:
@@ -10,13 +10,13 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
13+
1414
http: ^0.13.3
1515
logging: ^1.0.2
1616
uuid: ^3.0.4
1717
synchronized: ^3.0.0
18-
protobuf: ^2.0.0
19-
flutter_webrtc: ^0.6.9
18+
protobuf: ^2.0.0
19+
flutter_webrtc: ^0.6.10
2020

2121
dev_dependencies:
2222
flutter_test:

0 commit comments

Comments
 (0)