From 7368616735cdb4d3110c04a5fc19800327b5e3ed Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 26 Apr 2022 10:18:03 +0200 Subject: [PATCH 1/2] fix(android): should work now --- .../android/java/com/nativescript/https/OkHttpResponse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/platforms/android/java/com/nativescript/https/OkHttpResponse.java b/plugin/platforms/android/java/com/nativescript/https/OkHttpResponse.java index 8226635..e89e052 100644 --- a/plugin/platforms/android/java/com/nativescript/https/OkHttpResponse.java +++ b/plugin/platforms/android/java/com/nativescript/https/OkHttpResponse.java @@ -19,6 +19,8 @@ import okhttp3.Response; import okhttp3.Headers; +import org.json.JSONObject; + public class OkHttpResponse { private final static String TAG = "OkHttpResponse"; private ResponseBody responseBody; @@ -458,11 +460,9 @@ public void run() { public static int getStatusCode(Response response) { return response.code(); } - public static String getMessage(Response response) { return response.message(); } - public static String getHeaders(Response response) throws Exception { JSONObject obj = new JSONObject(); Headers headers = response.headers(); From 6c6ad711a0ffcf12bcb9eff808ba74b83356d195 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 26 Apr 2022 10:18:33 +0200 Subject: [PATCH 2/2] v4.0.4 --- CHANGELOG.md | 6 ++++++ lerna.json | 2 +- plugin/CHANGELOG.md | 6 ++++++ plugin/package.json | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51b2b3f..29ba44c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.0.4](https://github.com/nativescript-community/https/compare/v4.0.3...v4.0.4) (2022-04-26) + +### Bug Fixes + +* **android:** should work now ([7368616](https://github.com/nativescript-community/https/commit/7368616735cdb4d3110c04a5fc19800327b5e3ed)) + ## [4.0.3](https://github.com/nativescript-community/https/compare/v4.0.2...v4.0.3) (2022-04-26) ### Bug Fixes diff --git a/lerna.json b/lerna.json index ce727ab..bc61992 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "4.0.3", + "version": "4.0.4", "command": { "publish": { "conventionalCommits": true diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index ce8b8e8..1b4465a 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.0.4](https://github.com/nativescript-community/https/compare/v4.0.3...v4.0.4) (2022-04-26) + +### Bug Fixes + +* **android:** should work now ([7368616](https://github.com/nativescript-community/https/commit/7368616735cdb4d3110c04a5fc19800327b5e3ed)) + ## [4.0.3](https://github.com/nativescript-community/https/compare/v4.0.2...v4.0.3) (2022-04-26) ### Bug Fixes diff --git a/plugin/package.json b/plugin/package.json index a019508..0b39eec 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/https", - "version": "4.0.3", + "version": "4.0.4", "description": "Nativescript plugin for gestures", "main": "index", "sideEffects": false,