filterCompatible
Deprecated
This function cannot provide adequate grouped structures of split packages and proper cancellation support. Migrate to SplitPackage. Usage of this function will become an error in the next minor release.
Replace with
import ru.solrudev.ackpine.splits.SplitPackage.Companion.toSplitPackage
this.toSplitPackage().filterCompatible(context)
Returns a sequence containing only APK splits which are the most compatible with the device.
If exact device's screen density, ABI or locale doesn't appear in the splits, nearest matching split is chosen.
This function will call Context.getApplicationContext internally, so it's safe to pass in any Context.
This operation is equivalent to sortedByCompatibility(context).filterCompatible()
.
The operation is intermediate and stateful.
Deprecated
This function cannot provide adequate grouped structures of split packages and proper cancellation support. Migrate to SplitPackage. Usage of this function will become an error in the next minor release. An equivalent for an already sorted SplitPackage would be SplitPackage.filterPreferred().
Replace with
import ru.solrudev.ackpine.splits.SplitPackage.Companion.toSplitPackage
this.toSplitPackage().filterCompatible(context)
Returns a sequence containing only APK splits which are the most compatible with the device.
The operation is intermediate and stateless.
Deprecated
This function cannot provide adequate grouped structures of split packages. Migrate to SplitPackage. Usage of this function will become an error in the next minor release.
Replace with
import ru.solrudev.ackpine.splits.SplitPackage.Companion.toSplitPackage
this.toSplitPackage().filterCompatible(context)
Returns a list containing only APK splits which are the most compatible with the device.
If exact device's screen density, ABI or locale doesn't appear in the splits, nearest matching split is chosen.
This function will call Context.getApplicationContext internally, so it's safe to pass in any Context.
This operation is equivalent to sortedByCompatibility(context).filterCompatible()
.
Deprecated
This function cannot provide adequate grouped structures of split packages. Migrate to SplitPackage. Usage of this function will become an error in the next minor release. An equivalent for an already sorted split package would be filterPreferred().
Replace with
import ru.solrudev.ackpine.splits.SplitPackage.Companion.toSplitPackage
this.toSplitPackage().sortedByCompatibility(context).filterPreferred()
Returns a list containing only APK splits which are the most compatible with the device.