chore: upgrade dependencies (#1401)

This commit is contained in:
Benjamin
2023-10-26 07:25:12 -07:00
committed by oSumAtrIX
parent 34cf848baa
commit 89addf3f78
5 changed files with 14 additions and 11 deletions

View File

@@ -9,7 +9,10 @@ import java.io.File
class PatchBundle(private val loader: Iterable<Patch<*>>, val integrations: File?) {
constructor(bundleJar: File, integrations: File?) : this(
object : Iterable<Patch<*>> {
private fun load(): Iterable<Patch<*>> = PatchBundleLoader.Dex(bundleJar, optimizedDexDirectory = null)
private fun load(): Iterable<Patch<*>> {
bundleJar.setReadOnly()
return PatchBundleLoader.Dex(bundleJar, optimizedDexDirectory = null)
}
override fun iterator(): Iterator<Patch<*>> = load().iterator()
},