mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-12 08:49:08 +01:00
fixes from the inspector project
This commit is contained in:
parent
760d1116a1
commit
ad2ea8095b
@ -118,10 +118,12 @@ object Extension {
|
|||||||
val extensionRecord: ResultRow = transaction {
|
val extensionRecord: ResultRow = transaction {
|
||||||
ExtensionTable.select { ExtensionTable.apkName eq apkName }.firstOrNull()
|
ExtensionTable.select { ExtensionTable.apkName eq apkName }.firstOrNull()
|
||||||
} ?: {
|
} ?: {
|
||||||
|
transaction {
|
||||||
ExtensionTable.insert {
|
ExtensionTable.insert {
|
||||||
it[this.apkName] = apkName
|
it[this.apkName] = apkName
|
||||||
}
|
}
|
||||||
ExtensionTable.select { ExtensionTable.apkName eq apkName }.firstOrNull()!!
|
ExtensionTable.select { ExtensionTable.apkName eq apkName }.firstOrNull()!!
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
val extensionId = extensionRecord[ExtensionTable.id]
|
val extensionId = extensionRecord[ExtensionTable.id]
|
||||||
@ -140,7 +142,7 @@ object Extension {
|
|||||||
dex2jar(dexFilePath, jarFilePath, fileNameWithoutType)
|
dex2jar(dexFilePath, jarFilePath, fileNameWithoutType)
|
||||||
|
|
||||||
// clean up
|
// clean up
|
||||||
File(apkFilePath).delete()
|
// File(apkFilePath).delete()
|
||||||
File(dexFilePath).delete()
|
File(dexFilePath).delete()
|
||||||
|
|
||||||
// update sources of the extension
|
// update sources of the extension
|
||||||
|
Loading…
x
Reference in New Issue
Block a user