Skip to content

Commit

Permalink
Update dependency com.android.tools.build:gradle to v8.2.0 (#4828)
Browse files Browse the repository at this point in the history
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[com.android.tools.build:gradle](https://developer.android.com/studio/build)
([source](https://android.googlesource.com/platform/tools/base)) |
`8.1.4` -> `8.2.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.android.tools.build:gradle/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.android.tools.build:gradle/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.android.tools.build:gradle/8.1.4/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.android.tools.build:gradle/8.1.4/8.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - "after 12am and before 2am on the
first day of the month" in timezone Asia/Kolkata, Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/simpledotorg/simple-android).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sasikanth Miriyampalli <[email protected]>
  • Loading branch information
renovate[bot] and msasikanth authored Dec 1, 2023
1 parent 8d8de95 commit 1eb085e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Internal

- Migrate alert facility change sheet to use Mobius loop
- Bump AGP to v8.2.0

### Fixes

Expand Down
5 changes: 4 additions & 1 deletion app/src/main/java/org/simple/clinic/home/HomeScreen.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.simple.clinic.home

import android.Manifest
import android.content.Context
import android.content.Intent
import android.net.Uri
Expand Down Expand Up @@ -149,7 +150,9 @@ class HomeScreen :
setupHelpClicks()

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
hotEvents.onNext(RequestNotificationPermission())
hotEvents.onNext(RequestNotificationPermission(
permissionString = Manifest.permission.POST_NOTIFICATIONS
))
}

// Keyboard stays open after login finishes, not sure why.
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/org/simple/clinic/home/HomeScreenEvent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ data class CurrentFacilityLoaded(val facility: Facility) : HomeScreenEvent()

data class OverdueAppointmentCountUpdated(val overdueAppointmentCount: Int) : HomeScreenEvent()

@RequiresApi(Build.VERSION_CODES.TIRAMISU)
data class RequestNotificationPermission(
override var permission: Optional<RuntimePermissionResult> = Optional.empty(),
override val permissionString: String = Manifest.permission.POST_NOTIFICATIONS,
override val permissionString: String,
override val permissionRequestCode: Int = 1
) : HomeScreenEvent(), RequiresPermission
1 change: 0 additions & 1 deletion app/src/main/java/org/simple/clinic/patient/Gender.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ sealed class Gender : Parcelable {
@Parcelize
data class Unknown(val actualValue: String) : Gender()

@VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
object TypeAdapter : SafeEnumTypeAdapter<Gender>(
knownMappings = mapOf(
Male to "male",
Expand Down
12 changes: 9 additions & 3 deletions app/src/test/java/org/simple/clinic/home/HomeScreenUpdateTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import com.spotify.mobius.test.NextMatchers.hasNoEffects
import com.spotify.mobius.test.NextMatchers.hasNoModel
import com.spotify.mobius.test.UpdateSpec
import com.spotify.mobius.test.UpdateSpec.assertThatNext
import java.util.Optional
import org.junit.Test
import org.simple.clinic.platform.util.RuntimePermissionResult.DENIED
import org.simple.clinic.platform.util.RuntimePermissionResult.GRANTED
import java.util.Optional

class HomeScreenUpdateTest {

Expand All @@ -17,7 +17,10 @@ class HomeScreenUpdateTest {
val defaultModel = HomeScreenModel.create()
UpdateSpec(HomeScreenUpdate())
.given(defaultModel)
.whenEvent(RequestNotificationPermission(permission = Optional.of(GRANTED)))
.whenEvent(RequestNotificationPermission(
permission = Optional.of(GRANTED),
permissionString = "NOTIFICATION_PERMISSION"
))
.then(assertThatNext(
hasNoModel(),
hasNoEffects()
Expand All @@ -29,7 +32,10 @@ class HomeScreenUpdateTest {
val defaultModel = HomeScreenModel.create()
UpdateSpec(HomeScreenUpdate())
.given(defaultModel)
.whenEvent(RequestNotificationPermission(permission = Optional.of(DENIED)))
.whenEvent(RequestNotificationPermission(
permission = Optional.of(DENIED),
permissionString = "NOTIFICATION_PERMISSION"
))
.then(assertThatNext(
hasNoModel(),
hasEffects(ShowNotificationPermissionDenied)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ksp = "1.9.10-1.0.13"
sqlCipher = "4.5.4"

[libraries]
android-gradle-plugin = "com.android.tools.build:gradle:8.1.4"
android-gradle-plugin = "com.android.tools.build:gradle:8.2.0"
android-desugaring = "com.android.tools:desugar_jdk_libs:1.2.3"

androidx-annotation-annotation = "androidx.annotation:annotation:1.5.0"
Expand Down

0 comments on commit 1eb085e

Please sign in to comment.