0.8.0
Dependencies
- Extracted
ackpine-resources
artifact, which is now depended upon byackpine-core
.
Bug fixes and improvements
-
NotificationString
is superseded byResolvableString
to accommodate stable string resources resolution.ResolvableString
is now located inackpine-resources
artifact and can also be used separately for general app needs.NotificationString
is deprecated and will be removed in next minor release.To migrate
NotificationString.resource()
usages toResolvableString
, create classes inheriting fromResolvableString.Resource
like this:// Old NotificationString.resource(R.string.install_message, fileName) // New class InstallMessage(fileName: String) : ResolvableString.Resource(fileName) { override fun stringId() = R.string.install_message private companion object { private const val serialVersionUID = 4749568844072243110L } } InstallMessage(fileName)
Note that this requires to purge internal database because of incompatible changes, so all previous sessions will be cleared when Ackpine is updated to 0.8.0.
-
NotificationData
now requires an instance ofDrawableId
class instead of integer drawable resource ID for icon to accommodate stable drawable resources resolution. -
Don't hardcode a condition in implementation of
SESSION_BASED
sessions when Android'sPackageInstaller.Session
fails without report. It should possibly improve reliability on different devices. -
Fix progress bars on install screen not using latest value in sample apps.
-
Disable cancel button when session's state is Committed in sample apps.
Public API changes
- Breaking:
NotificationData
,NotificationData.Builder
andNotificationDataDsl
now requireResolvableString
instead ofNotificationString
astitle
andcontentText
type.NotificationString
is deprecated with an error deprecation level and will be removed in next minor release. - Breaking:
NotificationData
,NotificationData.Builder
andNotificationDataDsl
now requireDrawableId
instead of integer asicon
type. - Added
ResolvableString
sealed interface inackpine-resources
module. - Added
DrawableId
interface inackpine-core
module.