Skip to content

Commit 1be02b1

Browse files
committed
wakeup end
1 parent a63001b commit 1be02b1

File tree

9 files changed

+855
-2
lines changed

9 files changed

+855
-2
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ dependencies {
7979
implementation libs.androidx.core.ktx
8080
implementation libs.kotlinx.coroutines.android
8181
implementation libs.gson
82-
implementation 'com.tencent.iot.video:video-device-android:1.0.8'
82+
implementation 'com.tencent.iot.video:video-device-android:1.0.8-wakeup-SNAPSHOT'
8383
}

app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
android:exported="false"
7979
android:theme="@style/Theme.TWAppTheme" />
8080

81+
<activity
82+
android:name="com.example.ivdemo.WakeupActivity"
83+
android:configChanges="orientation|keyboardHidden|screenSize"
84+
android:exported="false"
85+
android:theme="@style/Theme.TWAppTheme" />
86+
8187
<provider
8288
android:name="androidx.core.content.FileProvider"
8389
android:authorities="${applicationId}.provider"

app/src/main/java/com/example/ivdemo/MainActivity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ class MainActivity : AppCompatActivity() {
7474
if (!checkDeviceInfo()) return@setOnClickListener
7575
startActivity(OTAUpgradeActivity::class.java)
7676
}
77+
btnWakeup.setOnClickListener {
78+
if (!checkDeviceInfo()) return@setOnClickListener
79+
startActivity(WakeupActivity::class.java)
80+
}
7781
btnSettingDevice.setOnClickListener {
7882
val dialog = DeviceSettingDialog(this@MainActivity)
7983
dialog.setDismissListener {
@@ -90,6 +94,7 @@ class MainActivity : AppCompatActivity() {
9094
binding.btnLoginDuplexVideo.updateOperate(isOperate)
9195
binding.btnTweCall.updateOperate(isOperate)
9296
binding.btnOtaUpgrade.updateOperate(isOperate)
97+
binding.btnWakeup.updateOperate(isOperate)
9398
}
9499

95100
override fun onRequestPermissionsResult(

0 commit comments

Comments
 (0)