Skip to content

Commit 898a834

Browse files
Update gradle-conventions to v0.0.81 (#28)
* Update gradle-conventions to v0.0.81 * Fix detekt violations --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Eliezer Graber <[email protected]>
1 parent 12ccdcf commit 898a834

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compose-permissionx/src/androidMain/kotlin/com/eygraber/compose/permissionx/OpenAppSettings.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ internal fun Context.openAppSettings(permission: String?) {
3434
*/
3535
private fun Context.findActivity(): Activity {
3636
var context = this
37-
while (context is ContextWrapper) {
37+
while(context is ContextWrapper) {
3838
if (context is Activity) return context
3939
context = context.baseContext
4040
}
41-
throw IllegalStateException("Permissions should be called in the context of an Activity")
41+
error("Permissions should be called in the context of an Activity")
4242
}

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android-sdk-target = "35"
99

1010
compose = "1.7.5"
1111

12-
conventions = "0.0.79"
12+
conventions = "0.0.81"
1313

1414
detekt = "1.23.7"
1515
detektEygraber = "1.0.11"

settings.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencyResolutionManagement {
4545
}
4646

4747
plugins {
48-
id("com.eygraber.conventions.settings") version "0.0.79"
48+
id("com.eygraber.conventions.settings") version "0.0.81"
4949
id("com.gradle.develocity") version "3.18.2"
5050
}
5151

0 commit comments

Comments
 (0)