From 5e4adb94b5069107fe6cc8919e7999e43a93c8bd Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Sun, 24 Sep 2023 21:19:07 +0700 Subject: [PATCH] Update Android templates --- codegen/Templates/android/README.mustache | 1 + codegen/Templates/android/apiException.mustache | 4 ++-- submodules/android | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/codegen/Templates/android/README.mustache b/codegen/Templates/android/README.mustache index c4e0079..89ca636 100644 --- a/codegen/Templates/android/README.mustache +++ b/codegen/Templates/android/README.mustache @@ -1,5 +1,6 @@ # {{artifactId}} +[![Build Android App](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-android/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-android/actions/workflows/build.yml) ![API version: {{appVersion}}](https://img.shields.io/badge/api-v{{appVersion}}-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-barcode-cloud/aspose-barcode-cloud-android)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-android) diff --git a/codegen/Templates/android/apiException.mustache b/codegen/Templates/android/apiException.mustache index 5991fa8..e4d1981 100644 --- a/codegen/Templates/android/apiException.mustache +++ b/codegen/Templates/android/apiException.mustache @@ -219,7 +219,7 @@ class MainActivity : AppCompatActivity() { stopRecognizeAnimation() var message = e.message + ": " + e.details - if (e.code == 0) { + if (e.httpCode == 0) { message = "Check ClientId and ClientSecret in ApiClient $message" } showErrorMessage(message) @@ -264,7 +264,7 @@ class MainActivity : AppCompatActivity() { } catch (e: ApiException) { runOnUiThread { var message = e.message + ": " + e.details - if (e.code == 0) { + if (e.httpCode == 0) { message = "Check ClientId and ClientSecret in ApiClient $message" } showErrorMessage(message) diff --git a/submodules/android b/submodules/android index 7d5cdc7..4fcf036 160000 --- a/submodules/android +++ b/submodules/android @@ -1 +1 @@ -Subproject commit 7d5cdc793cf04afef4594d11e6f40d1b2b301a67 +Subproject commit 4fcf03617c9ecfa401bde4dfc94a741aec872bcb