mirror of
https://github.com/InvertGeek/MixFile.git
synced 2026-06-01 09:01:05 +08:00
update version code
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user