updated android-example to 1.5.0 latest

This commit is contained in:
strawmanbobi
2025-10-19 20:27:40 +08:00
parent 3fa6df58c3
commit 903d9bb796
30 changed files with 169 additions and 116 deletions

View File

@@ -3,10 +3,10 @@ apply plugin: 'com.android.library'
android {
signingConfigs {
}
compileSdkVersion 33
compileSdk 36
defaultConfig {
minSdkVersion 19
targetSdkVersion 33
minSdkVersion 26
targetSdkVersion 36
}
buildTypes {
release {
@@ -20,7 +20,7 @@ android {
}
dependencies {
api files('libs/gson-2.8.0.jar')
api files('libs/okhttp-3.7.0.jar')
api files('libs/okio-1.12.0.jar')
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
implementation 'com.squareup.okio:okio:3.4.0'
implementation 'com.google.code.gson:gson:2.13.2'
}

View File

@@ -1,6 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application android:allowBackup="true" android:supportsRtl="true">

View File

@@ -42,7 +42,7 @@ public class WebAPIs {
// download bin from OSS
private static final String IR_BIN_FILE_PREFIX = "irda_";
private static final String IR_BIN_FILE_SUFFIX = ".bin";
private static final String IR_BIN_DOWNLOAD_PREFIX = "http://irext-debug.oss-cn-hangzhou.aliyuncs.com/";
private static final String IR_BIN_DOWNLOAD_PREFIX = "https://irext-release.oss-cn-hangzhou.aliyuncs.com/";
private static final String SERVICE_SIGN_IN = "/app/app_login";
private static final String SERVICE_LIST_CATEGORIES = "/indexing/list_categories";
@@ -79,6 +79,7 @@ public class WebAPIs {
}
private InputStream getFileByteStreamByURL(String url) throws IOException {
Log.d(TAG, "download remote binary file, url = " + url);
Request request = new Request.Builder()
.url(url)
.get()