From 01e113ca099d8b3c3ce44a8997f7b183de80506d Mon Sep 17 00:00:00 2001 From: xiaowusky Date: Thu, 1 Jun 2023 11:55:32 +0800 Subject: [PATCH] =?UTF-8?q?desc:=E5=8D=87=E7=BA=A7=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 3 + app/src/main/AndroidManifest.xml | 4 + .../watcher/ui/ChooseParamsActivity.kt | 42 ++++++++ .../watcher/ui/QueryDataActivity.kt | 8 ++ .../watcher/ui/WarnDataActivity.kt | 5 + .../res/layout/activity_choose_params.xml | 97 +++++++++++++++++++ .../main/res/layout/activity_query_data.xml | 1 + app/src/main/res/layout/activity_warndata.xml | 1 + app/src/main/res/values/arrays.xml | 16 +++ app/src/main/res/values/strings.xml | 7 -- build.gradle | 2 +- buildCommon/commonLibConfig.gradle | 2 +- .../com/common/commonlib/net/BaseObserve.kt | 2 +- library-push/build.gradle | 9 +- 14 files changed, 186 insertions(+), 13 deletions(-) create mode 100644 app/src/main/java/com/yinuo/safetywatcher/watcher/ui/ChooseParamsActivity.kt create mode 100644 app/src/main/res/layout/activity_choose_params.xml create mode 100644 app/src/main/res/values/arrays.xml diff --git a/app/build.gradle b/app/build.gradle index 0d4b2b8..c0f2105 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,6 +46,7 @@ dependencies { implementation 'com.github.bumptech.glide:glide:4.12.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'androidx.lifecycle:lifecycle-reactivestreams:2.4.1' + //libs implementation project(path: ':library-ijkplayer') implementation project(path: ':library-serialPort') implementation project(path: ':library-common') @@ -53,6 +54,8 @@ dependencies { implementation rootProject.ext.dependencies.jxl // 时间日期选择控件 implementation 'com.github.loper7:DateTimePicker:0.6.3' + implementation('androidx.activity:activity:1.7.2') + implementation('androidx.activity:activity-ktx:1.7.2') implementation 'com.google.android.material:material:1.5.0' annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.0.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c55da72..4d8f392 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -90,6 +90,10 @@ android:name=".watcher.ui.HistoryVideoActivity" android:exported="false" android:screenOrientation="landscape" /> + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_query_data.xml b/app/src/main/res/layout/activity_query_data.xml index 4b60c9e..ea56b49 100644 --- a/app/src/main/res/layout/activity_query_data.xml +++ b/app/src/main/res/layout/activity_query_data.xml @@ -18,6 +18,7 @@ android:textSize="@dimen/_32dp" /> + + + 时间 + 属性 + + 单位 + + + + 催化燃烧 + 电化学传感器 + 红外测量 + PID光离子 + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 05f9808..39a59c0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -39,11 +39,4 @@ 确认 当前时间 修改筛选条件 - - - 时间 - 属性 - - 单位 - diff --git a/build.gradle b/build.gradle index 7994902..b5d2f24 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:7.1.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/buildCommon/commonLibConfig.gradle b/buildCommon/commonLibConfig.gradle index 2892488..5ef6240 100644 --- a/buildCommon/commonLibConfig.gradle +++ b/buildCommon/commonLibConfig.gradle @@ -11,7 +11,7 @@ project.ext { ] versions = [ - compileSdkVersion : 31, + compileSdkVersion : 33, buildToolsVersion : "33.0.3", minSdkVersion : 24, targetSdkVersion : 28, diff --git a/library-common/src/main/java/com/common/commonlib/net/BaseObserve.kt b/library-common/src/main/java/com/common/commonlib/net/BaseObserve.kt index ea87db8..629b1d4 100644 --- a/library-common/src/main/java/com/common/commonlib/net/BaseObserve.kt +++ b/library-common/src/main/java/com/common/commonlib/net/BaseObserve.kt @@ -49,7 +49,7 @@ open class BaseObserve : ITypedCommon { * @param observable 可订阅 * @param callBack 请求回调 */ - fun observe(observable: Observable?, callBack: RequestCallBack?) { + fun observe(observable: Observable?, callBack: RequestCallBack?) { if (observable == null) { Logger.e("BaseObserve", "observe observable is null") return diff --git a/library-push/build.gradle b/library-push/build.gradle index ed48801..7639844 100644 --- a/library-push/build.gradle +++ b/library-push/build.gradle @@ -15,9 +15,12 @@ repositories { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') testImplementation 'junit:junit:4.13.2' - implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' - implementation 'androidx.lifecycle:lifecycle-reactivestreams:2.4.1' - annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.0.0' + + implementation('androidx.core:core:1.10.1') + implementation('androidx.annotation:annotation:1.6.0') + implementation('androidx.lifecycle:lifecycle-reactivestreams:2.6.1') + implementation('androidx.lifecycle:lifecycle-common:2.6.1') + implementation('androidx.lifecycle:lifecycle-livedata:2.6.1') implementation(name: 'libuvccamera-release', ext: 'aar') { exclude module: 'support-v4'