From 92fb6614da0fbccb2e6e02d1a647b6a3d7a1daba Mon Sep 17 00:00:00 2001 From: Dmitry Sovgyr Date: Mon, 20 Sep 2021 13:58:12 +0300 Subject: [PATCH 1/3] Fix overriding of HttpClient properties --- lib/src/http/client.dart | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) 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( From fc2e6ee36b443b9a36984825b372fb886070899c Mon Sep 17 00:00:00 2001 From: Dmitry Sovgyr Date: Mon, 20 Sep 2021 14:01:38 +0300 Subject: [PATCH 2/3] Update readme and version --- CHANGELOG.md | 3 +++ README.md | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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/pubspec.yaml b/pubspec.yaml index 9d7f159..b0a39cb 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 +version: 0.8.1 homepage: https://github.com/appspector/flutter-plugin environment: From 1f53f43136d714fdab97226e8bcf7f6d356e7d63 Mon Sep 17 00:00:00 2001 From: Dmitry Sovgyr Date: Mon, 20 Sep 2021 14:15:47 +0300 Subject: [PATCH 3/3] Update package description --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index b0a39cb..ae31c42 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: appspector -description: A plugin that integrate AppSpector to your Flutter project. +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