update version code

This commit is contained in:
Evan You
2025-03-26 11:57:37 +08:00
parent 6a5576d1b0
commit 87ddd8f19e
3 changed files with 9 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ android {
applicationId = "com.donut.mixfile"
minSdk = 26
targetSdk = 35
versionCode = 87
versionCode = 88
versionName = "1.12.5"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

View File

@@ -154,14 +154,12 @@ class FileService : Service() {
}
private fun createNotificationChannel() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val serviceChannel = NotificationChannel(
CHANNEL_ID,
"局域网文件服务器",
NotificationManager.IMPORTANCE_DEFAULT
)
val manager = getSystemService(NotificationManager::class.java)
manager.createNotificationChannel(serviceChannel)
}
val serviceChannel = NotificationChannel(
CHANNEL_ID,
"局域网文件服务器",
NotificationManager.IMPORTANCE_DEFAULT
)
val manager = getSystemService(NotificationManager::class.java)
manager.createNotificationChannel(serviceChannel)
}
}

View File

@@ -57,6 +57,7 @@ abstract class Uploader(val name: String) {
}
open suspend fun genHead(client: HttpClient): ByteArray? = null
private fun encryptBytes(head: ByteArray, fileData: ByteArray, key: ByteArray): ByteArray {
return head + (encryptAES(fileData, key))
}