Skip to content

Commit

Permalink
Merge pull request #61 from solrudev/develop
Browse files Browse the repository at this point in the history
0.5.5
  • Loading branch information
solrudev authored Apr 29, 2024
2 parents 0a6a2d9 + b0a2bf9 commit 0d5201a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Ackpine depends on Jetpack libraries, so it's necessary to declare the `google()

```kotlin
dependencies {
val ackpineVersion = "0.5.4"
val ackpineVersion = "0.5.5"
implementation("ru.solrudev.ackpine:ackpine-core:$ackpineVersion")

// optional - Kotlin extensions and Coroutines support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ internal class SessionBasedInstallSession internal constructor(
private var sessionCallback: PackageInstaller.SessionCallback? = null

init {
initialize(initialState, initialProgress, serialExecutor)
}

private fun initialize(
initialState: Session.State<InstallFailure>,
initialProgress: Progress,
serialExecutor: Executor
) {
if (initialState.isTerminal) {
return
}
if (initialProgress.progress >= 81) { // means that actual installation is ongoing or is completed
notifyCommitted() // block clients from committing
}
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Change Log
==========

Version 0.5.5 (2024-04-29)
--------------------------

### Bug fixes and improvements

- Fix some internal state of `SESSION_BASED` package installer session when it's in terminal state and is being initialized on retrieval from `PackageInstaller`.

Version 0.5.4 (2024-04-26)
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Ackpine depends on Jetpack libraries, so it's necessary to declare the `google()

```kotlin
dependencies {
val ackpineVersion = "0.5.4"
val ackpineVersion = "0.5.5"
implementation("ru.solrudev.ackpine:ackpine-core:$ackpineVersion")

// optional - Kotlin extensions and Coroutines support
Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MAJOR_VERSION=0
MINOR_VERSION=5
PATCH_VERSION=4
PATCH_VERSION=5
SUFFIX=
SNAPSHOT=false

0 comments on commit 0d5201a

Please sign in to comment.