diff --git a/Habitica/build.gradle b/Habitica/build.gradle
index 16647435e..5b640b68c 100644
--- a/Habitica/build.gradle
+++ b/Habitica/build.gradle
@@ -60,7 +60,7 @@ dependencies {
implementation "com.amplitude:analytics-android:$amplitude_version"
//Tests
- testImplementation 'androidx.test:core:1.5.0'
+ testImplementation 'androidx.test:core:1.6.1'
testImplementation "io.mockk:mockk:$mockk_version"
testImplementation "io.mockk:mockk-android:$mockk_version"
testImplementation "io.kotest:kotest-runner-junit5:$kotest_version"
@@ -71,18 +71,18 @@ dependencies {
}
androidTestImplementation "com.kaspersky.android-components:kaspresso-compose-support:1.5.1"
- androidTestImplementation 'androidx.test:runner:1.5.2'
- androidTestImplementation 'androidx.test:rules:1.5.0'
- debugImplementation 'androidx.fragment:fragment-testing:1.8.0'
- androidTestImplementation 'androidx.test:core-ktx:1.5.0'
- debugImplementation "androidx.test:monitor:1.6.1"
- androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.5'
+ androidTestImplementation 'androidx.test:runner:1.6.2'
+ androidTestImplementation 'androidx.test:rules:1.6.1'
+ debugImplementation 'androidx.fragment:fragment-testing:1.8.2'
+ androidTestImplementation 'androidx.test:core-ktx:1.6.1'
+ debugImplementation "androidx.test:monitor:1.7.2"
+ androidTestImplementation 'androidx.test.ext:junit-ktx:1.2.1'
androidTestImplementation "io.mockk:mockk-android:$mockk_version"
androidTestImplementation "io.mockk:mockk-agent:$mockk_version"
androidTestImplementation "io.kotest:kotest-assertions-core:$kotest_version"
androidTestImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
- androidTestUtil("androidx.test:orchestrator:1.4.2")
+ androidTestUtil("androidx.test:orchestrator:1.5.0")
implementation 'com.facebook.shimmer:shimmer:0.5.0'
@@ -105,16 +105,18 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
- implementation "androidx.fragment:fragment-ktx:1.8.0"
+ implementation "androidx.fragment:fragment-ktx:1.8.2"
implementation "androidx.paging:paging-runtime-ktx:$paging_version"
implementation "androidx.paging:paging-compose:$paging_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
implementation "androidx.compose.material3:material3:1.2.1"
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
- implementation 'com.google.android.play:core:1.10.3'
- implementation 'androidx.activity:activity-compose:1.9.0'
+ implementation 'com.google.android.play:review:2.0.1'
+ implementation 'com.google.android.play:review-ktx:2.0.1'
+
+ implementation 'androidx.activity:activity-compose:1.9.1'
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
implementation "androidx.compose.animation:animation:$compose_version"
implementation "androidx.compose.ui:ui-text-google-fonts:$compose_version"
diff --git a/Habitica/res/values/strings.xml b/Habitica/res/values/strings.xml
index ccccc1682..418a3b7fd 100644
--- a/Habitica/res/values/strings.xml
+++ b/Habitica/res/values/strings.xml
@@ -1537,6 +1537,8 @@
Unlocks %d Gold-purchasable Gems per month
+2 Gems each month
Popular
+ Choose Member
+ Cleared Cache
- You
diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/activities/SkillMemberActivity.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/activities/SkillMemberActivity.kt
index 51ab885fc..64f29d937 100644
--- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/activities/SkillMemberActivity.kt
+++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/activities/SkillMemberActivity.kt
@@ -14,6 +14,7 @@ import com.habitrpg.android.habitica.ui.viewmodels.MainUserViewModel
import com.habitrpg.common.habitica.helpers.ExceptionHandler
import com.habitrpg.common.habitica.helpers.launchCatching
import dagger.hilt.android.AndroidEntryPoint
+import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.filterNotNull
import kotlinx.coroutines.flow.flatMapLatest
import kotlinx.coroutines.flow.map
@@ -46,8 +47,10 @@ class SkillMemberActivity : BaseActivity() {
super.onCreate(savedInstanceState)
setupToolbar(findViewById(R.id.toolbar))
loadMemberList()
+ title = getString(R.string.choose_member)
}
+ @OptIn(ExperimentalCoroutinesApi::class)
private fun loadMemberList() {
binding.recyclerView.layoutManager = LinearLayoutManager(this)
viewAdapter = PartyMemberRecyclerViewAdapter()
@@ -66,7 +69,7 @@ class SkillMemberActivity : BaseActivity() {
.map { it?.party?.id }
.filterNotNull()
.take(1)
- .onEach { socialRepository.getPartyMembers(it) }
+ .onEach { socialRepository.retrievePartyMembers(it, true) }
.flatMapLatest { socialRepository.getPartyMembers(it) }
.collect { viewAdapter?.data = it }
}
diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/preferences/PreferencesFragment.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/preferences/PreferencesFragment.kt
index 98db95d23..a6023a96b 100644
--- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/preferences/PreferencesFragment.kt
+++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/preferences/PreferencesFragment.kt
@@ -225,6 +225,10 @@ class PreferencesFragment :
HabiticaBaseApplication.deleteDatabase(context)
lifecycleScope.launchCatching {
userRepository.retrieveUser(true, true)
+ (activity as? SnackbarActivity)?.showSnackbar(
+ content = context.getString(R.string.cleared_cache),
+ displayType = HabiticaSnackbar.SnackbarDisplayType.SUCCESS,
+ )
reloadContent(true)
}
}
diff --git a/build.gradle b/build.gradle
index 46109e976..5ebdc1495 100644
--- a/build.gradle
+++ b/build.gradle
@@ -23,7 +23,7 @@ buildscript {
kotest_version = '5.6.2'
kotlin_version = '1.9.24'
ktlint_version = '1.2.1'
- lifecycle_version = '2.8.2'
+ lifecycle_version = '2.8.4'
markwon_version = '4.6.2'
mockk_version = '1.13.4'
moshi_version = '1.15.0'
diff --git a/version.properties b/version.properties
index 71396ca9c..e811a3107 100644
--- a/version.properties
+++ b/version.properties
@@ -1,2 +1,2 @@
NAME=4.5.0
-CODE=8031
\ No newline at end of file
+CODE=8051
\ No newline at end of file