Skip to content

Commit

Permalink
Merge pull request #51 from appspector/hotfix/fix-user-agent
Browse files Browse the repository at this point in the history
Fix the issue with an incorrect User Agent
  • Loading branch information
Dimdron authored Sep 20, 2021
2 parents 5250451 + 1f53f43 commit f3941ae
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.8.1 20 Sep 2021
* Fix the issue with incorrect User-Agent

## 0.8.0 09 Sep 2021
* Support Flutter 2.5

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ API keys required for the SDK initialisation will be available on the Apps setti
## Add AppSpector plugin to pubspec.yaml
```yaml
dependencies
appspector: '0.8.0'
appspector: '0.8.1'
```
## Initialize AppSpector plugin
Expand Down
35 changes: 30 additions & 5 deletions lib/src/http/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,44 @@ class AppSpectorHttpClient implements HttpClient {
AppSpectorHttpClient(this._httpClient, this._uidGenerator);

@override
late bool autoUncompress;
get autoUncompress => _httpClient.autoUncompress;

@override
Duration? connectionTimeout;
set autoUncompress(value) {
_httpClient.autoUncompress = value;
}

@override
get connectionTimeout => _httpClient.connectionTimeout;

@override
set connectionTimeout(value) {
_httpClient.connectionTimeout = value;
}

@override
late Duration idleTimeout;
get idleTimeout => _httpClient.idleTimeout;

@override
int? maxConnectionsPerHost;
set idleTimeout(value) {
_httpClient.idleTimeout = value;
}

@override
String? userAgent;
get maxConnectionsPerHost => _httpClient.maxConnectionsPerHost;

@override
set maxConnectionsPerHost(value) {
_httpClient.maxConnectionsPerHost = value;
}

@override
get userAgent => _httpClient.userAgent;

@override
set userAgent(value) {
_httpClient.userAgent = value;
}

@override
void addCredentials(
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: appspector
description: A plugin that integrate AppSpector to your Flutter project.
version: 0.8.0
description: Flutter Plugin that integrate AppSpector to your mobile project. It provides remote access to application data to simplify developing process.
version: 0.8.1
homepage: https://github.com/appspector/flutter-plugin

environment:
Expand Down

0 comments on commit f3941ae

Please sign in to comment.