diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c61d10..68d3b2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index c0884f0..76ffb31 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/src/http/client.dart b/lib/src/http/client.dart index cd4f7ea..f71af9d 100644 --- a/lib/src/http/client.dart +++ b/lib/src/http/client.dart @@ -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( diff --git a/pubspec.yaml b/pubspec.yaml index 9d7f159..ae31c42 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: