libs: Bump gplyapi to 3.5.0
* Map versionCode as Long * Handle all cases of immutable object modification Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -19,18 +19,8 @@
|
||||
|
||||
package com.aurora.extensions
|
||||
|
||||
import com.aurora.gplayapi.data.models.File
|
||||
import com.aurora.gplayapi.data.models.PlayFile
|
||||
|
||||
fun <T> MutableList<T>.flushAndAdd(list: List<T>) {
|
||||
clear()
|
||||
addAll(list)
|
||||
}
|
||||
|
||||
fun <T> MutableSet<T>.flushAndAdd(list: Set<T>) {
|
||||
clear()
|
||||
addAll(list)
|
||||
}
|
||||
|
||||
fun List<File>.requiresObbDir(): Boolean {
|
||||
return this.any { it.type == File.FileType.OBB || it.type == File.FileType.PATCH }
|
||||
fun List<PlayFile>.requiresObbDir(): Boolean {
|
||||
return this.any { it.type == PlayFile.Type.OBB }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user