Skip to content

Commit

Permalink
Merge pull request #98 from solrudev/develop
Browse files Browse the repository at this point in the history
0.9.2
  • Loading branch information
solrudev authored Dec 19, 2024
2 parents 0265f0f + b01b4a7 commit 4bca22f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Ackpine depends on Jetpack libraries, so it's necessary to declare the `google()

```kotlin
dependencies {
val ackpineVersion = "0.9.1"
val ackpineVersion = "0.9.2"
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 @@ -135,8 +135,6 @@ internal class SessionBasedInstallConfirmationActivity : InstallActivity(TAG, st
when {
// Confirmation is a preapproval on API >= 34.
isPreapproval -> finish()
// User has cancelled install permission request or hasn't granted permission.
!canInstallPackages -> abortSession("Install permission denied")
// User hasn't confirmed installation because confirmation activity didn't appear after permission request.
isSessionStuck && isInstallPermissionStatusChanged && wasOnTopOnStart -> launchInstallActivity()
// Session proceeded normally.
Expand All @@ -145,6 +143,8 @@ internal class SessionBasedInstallConfirmationActivity : InstallActivity(TAG, st
// gets updated almost like the installation was confirmed even though it wasn't and no result is received
// from PackageInstallerStatusReceiver.
isSessionAlive && !isSessionStuck -> finish()
// User has cancelled install permission request or hasn't granted permission.
!canInstallPackages -> abortSession("Install permission denied")
// User has dismissed confirmation activity.
isSessionAlive && isActivityCancelled -> abortSession()
// There was some error while installing which is not handled in PackageInstallerStatusReceiver,
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.9.2 (2024-12-19)
--------------------------

### Bug fixes and improvements

- Fix `SESSION_BASED` installer session completing with "Install permission denied" failure when performing a self-update if install permission was not granted because it was unnecessary.

Version 0.9.1 (2024-12-14)
--------------------------

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.9.1"
val ackpineVersion = "0.9.2"
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=9
PATCH_VERSION=1
PATCH_VERSION=2
SUFFIX=
SNAPSHOT=false

0 comments on commit 4bca22f

Please sign in to comment.