cleanup
This commit is contained in:
parent
4aae6e0c81
commit
f6790ff22c
|
@ -1,14 +0,0 @@
|
|||
package com.vanced.manager.utils
|
||||
|
||||
import java.io.File
|
||||
import java.io.FileInputStream
|
||||
import java.io.InputStream
|
||||
|
||||
open class FileInfo(val name: String, val fileSize: Long, val file: File? = null) {
|
||||
|
||||
open fun getInputStream(): InputStream =
|
||||
if (file!= null)
|
||||
FileInputStream(file)
|
||||
else
|
||||
throw NotImplementedError("need some way to create InputStream")
|
||||
}
|
|
@ -22,7 +22,10 @@ import com.vanced.manager.utils.AppUtils.vancedRootPkg
|
|||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import java.io.*
|
||||
import java.io.File
|
||||
import java.io.FileInputStream
|
||||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
import java.util.*
|
||||
import java.util.regex.Pattern
|
||||
|
||||
|
@ -58,7 +61,6 @@ object PackageHelper {
|
|||
return false
|
||||
}
|
||||
|
||||
|
||||
fun getPkgNameRoot(app: String): String {
|
||||
return when (app) {
|
||||
"vanced" -> vancedRootPkg
|
||||
|
|
Loading…
Reference in New Issue