sortedByCompatibility
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().sortedByCompatibility(context)
Returns a sequence that yields APK splits sorted according to their compatibility with the device.
This sort is not stable.
The most preferred APK splits will appear first. If exact device's screen density, ABI or locale doesn't appear in the splits, nearest matching split is chosen as a preferred one.
This function will call Context.getApplicationContext internally, so it's safe to pass in any Context.
The operation is intermediate and stateful.
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().sortedByCompatibility(context)
Returns a list containing APK splits sorted according to their compatibility with the device.
This sort is not stable.
The most preferred APK splits will appear first. If exact device's screen density, ABI or locale doesn't appear in the splits, nearest matching split is chosen as a preferred one.
This function will call Context.getApplicationContext internally, so it's safe to pass in any Context.