updated android-example to 1.5.0 latest
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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">
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user