fixes from the inspector project

This commit is contained in:
Aria Moradi 2021-04-03 15:09:48 +04:30
parent 760d1116a1
commit ad2ea8095b

View File

@ -118,10 +118,12 @@ object Extension {
val extensionRecord: ResultRow = transaction {
ExtensionTable.select { ExtensionTable.apkName eq apkName }.firstOrNull()
} ?: {
transaction {
ExtensionTable.insert {
it[this.apkName] = apkName
}
ExtensionTable.select { ExtensionTable.apkName eq apkName }.firstOrNull()!!
}
}()
val extensionId = extensionRecord[ExtensionTable.id]
@ -140,7 +142,7 @@ object Extension {
dex2jar(dexFilePath, jarFilePath, fileNameWithoutType)
// clean up
File(apkFilePath).delete()
// File(apkFilePath).delete()
File(dexFilePath).delete()
// update sources of the extension