From cc0421a5d9b1b7f19f6c8e39e4756b95345f1623 Mon Sep 17 00:00:00 2001
From: panlili2024 <14743743+panlili2024@user.noreply.gitee.com>
Date: 星期二, 25 二月 2025 18:04:23 +0800
Subject: [PATCH] sdk demo优化
---
HDLSDK/com.hdl.sdk/build.gradle | 59 ++++++++++++++++++++++++++++++++++++++---------------------
1 files changed, 38 insertions(+), 21 deletions(-)
diff --git a/HDLSDK/com.hdl.sdk/build.gradle b/HDLSDK/com.hdl.sdk/build.gradle
index f8964e7..92656b8 100644
--- a/HDLSDK/com.hdl.sdk/build.gradle
+++ b/HDLSDK/com.hdl.sdk/build.gradle
@@ -1,6 +1,6 @@
//鎵撳寘鐨�
apply plugin: 'com.android.library'
-apply plugin:'com.kezong.fat-aar'
+apply plugin: 'com.kezong.fat-aar'
android {
compileSdkVersion rootProject.compileSdkVersion
@@ -8,8 +8,8 @@
defaultConfig {
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
- versionCode 2
- versionName "1.0.13"
+ versionCode 119
+ versionName "1.1.9"
}
buildTypes {
debug {
@@ -27,14 +27,32 @@
implementation fileTree(include: ['*.jar'], dir: 'libs')
-// embed 'com.ezviz.sdk:ezviz-sdk:4.16.1'
-// embed(name: 'hdl-common-release',ext: 'aar')
-// embed(name: 'hdl-connect-release',ext: 'aar')
-// embed(name: 'hdl-socket-release',ext: 'aar')
+ embed 'com.hdl.hdlhttp:hxhttp:1.0.4'
- embed project(path: ':hdl-common', configuration:'default')
- embed project(path: ':hdl-connect', configuration:'default')
- embed project(path: ':hdl-socket', configuration:'default')
+// api 'androidx.appcompat:appcompat:1.3.1'
+// api 'com.google.android.material:material:1.4.0'
+
+ embed 'com.squareup.okhttp3:okhttp:4.9.1'
+ embed 'com.squareup.okhttp3:logging-interceptor:4.9.1'
+ embed 'com.squareup.okio:okio:2.8.0'
+ //retrofit
+ embed 'com.squareup.retrofit2:retrofit:2.9.0'
+ embed 'com.squareup.retrofit2:converter-scalars:2.9.0'
+ embed 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
+ embed 'io.reactivex.rxjava3:rxandroid:3.0.0'
+ embed 'io.reactivex.rxjava3:rxjava:3.1.1'
+ embed 'com.google.code.gson:gson:2.8.8'
+
+ embed 'com.trello.rxlifecycle4:rxlifecycle:4.0.2'
+ embed 'com.trello.rxlifecycle4:rxlifecycle-android:4.0.2'
+ embed 'com.trello.rxlifecycle4:rxlifecycle-android-lifecycle:4.0.2'
+
+ embed 'org.reactivestreams:reactive-streams:1.0.3'
+
+// embed(name: 'hxhttp_1.0.4_230201',ext: 'aar')
+
+ embed project(path: ':hdl-connect', configuration: 'default')
+
}
//鎵撳寘鐨�
@@ -43,7 +61,7 @@
repositories {
google()
jcenter()
- maven {url "https://plugins.gradle.org/m2/"}
+ maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
@@ -52,16 +70,15 @@
}
}
-//allprojects {
-// repositories {
-// flatDir{
-// dirs 'libs'
-// }
-// google()
-// jcenter()
-// }
-//}
-
+allprojects {
+ repositories {
+ flatDir {
+ dirs 'libs'
+ }
+ google()
+ jcenter()
+ }
+}
////杩愯鐨�
--
Gitblit v1.8.0