diff --git "a/pic/\350\257\264\346\230\216/show_app_1.svg" "b/pic/\350\257\264\346\230\216/show_app_1.svg" new file mode 100644 index 00000000..d8886765 --- /dev/null +++ "b/pic/\350\257\264\346\230\216/show_app_1.svg" @@ -0,0 +1,15 @@ + + + Layer 1 + Scrcpy_android + + + + + + 欢迎使用Scrcpy_android + 本软件基于开源项目scrcpy + 实现了Scrcpy安卓客户端 + + + \ No newline at end of file diff --git a/scrcpy_android/app/build.gradle b/scrcpy_android/app/build.gradle index 4caa9caf..d7c661cb 100644 --- a/scrcpy_android/app/build.gradle +++ b/scrcpy_android/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "top.saymzx.scrcpy_android" minSdk 23 targetSdk 33 - versionCode 84 - versionName "8.4" + versionCode 85 + versionName "8.5" resConfigs "zh" resConfigs "xhdpi" ndk { @@ -46,8 +46,6 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.recyclerview:recyclerview:1.3.0' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1' - implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' - implementation("dev.mobile:dadb:1.2.6") } diff --git a/scrcpy_android/app/src/main/AndroidManifest.xml b/scrcpy_android/app/src/main/AndroidManifest.xml index b069d6ae..b7cc464f 100644 --- a/scrcpy_android/app/src/main/AndroidManifest.xml +++ b/scrcpy_android/app/src/main/AndroidManifest.xml @@ -5,10 +5,8 @@ - - deviceHeight) deviceWidth = deviceWidth xor deviceHeight xor deviceWidth.also { deviceHeight = it } // 数据库管理 - dbHelper = DbHelper(main, "scrcpy_android.db", 4) + dbHelper = DbHelper(main, "scrcpy_android.db", 5) deviceAdapter = DeviceAdapter(main) // 从数据库获取设备列表 val cursor = dbHelper.readableDatabase.query("DevicesDb", null, null, null, null, null, null) @@ -65,7 +72,8 @@ class AppData : ViewModel() { cursor.getInt(cursor.getColumnIndex("fps")), cursor.getInt(cursor.getColumnIndex("videoBit")), cursor.getInt(cursor.getColumnIndex("setResolution")) == 1, - cursor.getInt(cursor.getColumnIndex("defaultFull")) == 1 + cursor.getInt(cursor.getColumnIndex("defaultFull")) == 1, + cursor.getInt(cursor.getColumnIndex("floatNav")) == 1 ) ) } while (cursor.moveToNext()) @@ -92,7 +100,8 @@ class AppData : ViewModel() { loading.findViewById(R.id.loading_text).text = text if (isCanCancel) { loading.findViewById