mirror of
https://github.com/ovrport/app.git
synced 2026-10-26 19:19:56 -04:00
Release 1.2.1 (#21)
* Change patch name * Can't checkout exception * Make bitmap mutable in BitmapIconResizer * Change version checkout handling * Change modal bottomsheet height * Fix strings file formatting * Bump version
This commit is contained in:
1 parent
2287b68396
commit
c50c431a7e
9 files changed
+25
-27
No files matched your search
@@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "moe.crx"
|
||||
version = "1.2.0"
|
||||
version = "1.2.1"
|
||||
|
||||
dependencies {
|
||||
implementation(libs.android.tools.build)
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.reandroid.archive.ArchiveFile
|
||||
import com.reandroid.archive.FileInputSource
|
||||
import com.reandroid.archive.io.ZipFileInput
|
||||
import moe.crx.overport.config.OverportPatchedInfo
|
||||
import moe.crx.overport.utils.CantCheckoutException
|
||||
import moe.crx.overport.utils.NameFormatter
|
||||
import moe.crx.overport.versions.VersionManager
|
||||
import org.jf.baksmali.Baksmali
|
||||
@@ -51,14 +52,8 @@ class PatcherContext(
|
||||
}
|
||||
|
||||
fun checkout() {
|
||||
var successful = VersionManager(patcherDirectory).checkout(overportVersion)
|
||||
|
||||
if (successful == null) {
|
||||
successful = VersionManager(patcherDirectory).checkout("latest")
|
||||
}
|
||||
|
||||
checkNotNull(successful)
|
||||
overportVersion = successful
|
||||
overportVersion = VersionManager(patcherDirectory).checkout(overportVersion)
|
||||
?: throw CantCheckoutException("Can't checkout an overport release. Please, check your internet connection or choose another version.")
|
||||
}
|
||||
|
||||
fun prepare(stream: InputStream) {
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
package moe.crx.overport.utils
|
||||
|
||||
class CantCheckoutException(message: String) : IllegalStateException(message)
|
||||
@@ -10,7 +10,7 @@ class VersionManager(val workingDirectory: File) {
|
||||
|
||||
companion object {
|
||||
val json = Json { ignoreUnknownKeys = true }
|
||||
const val VERSION = "1.2.0"
|
||||
const val VERSION = "1.2.1"
|
||||
|
||||
private fun isVersionLower(left: String, right: String): Boolean {
|
||||
val (lY, lM, lD) = left.substringBeforeLast('-').split('.').map { it.toInt() }
|
||||
|
||||
Reference in new issue
Block a user