Skip to content

Commit 47cde89

Browse files
authored
android: update dependencies (#535)
Updates #cleanup Bumps our project dependencies to the latest versions. Verified that the project builds properly. Signed-off-by: Andrea Gottardo <[email protected]>
1 parent 5f19730 commit 47cde89

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

android/build.gradle

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
}
1212
}
1313
dependencies {
14-
classpath 'com.android.tools.build:gradle:8.5.1'
14+
classpath 'com.android.tools.build:gradle:8.6.1'
1515
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1616
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
1717
classpath("com.ncorti.ktfmt.gradle:plugin:0.17.0")
@@ -112,7 +112,7 @@ dependencies {
112112
implementation 'androidx.core:core-ktx:1.13.1'
113113
implementation "androidx.browser:browser:1.8.0"
114114
implementation "androidx.security:security-crypto:1.1.0-alpha06"
115-
implementation "androidx.work:work-runtime:2.9.0"
115+
implementation "androidx.work:work-runtime:2.9.1"
116116

117117
// Kotlin dependencies.
118118
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3"
@@ -123,20 +123,20 @@ dependencies {
123123
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
124124

125125
// Compose dependencies.
126-
def composeBom = platform('androidx.compose:compose-bom:2024.06.00')
126+
def composeBom = platform('androidx.compose:compose-bom:2024.09.03')
127127
implementation composeBom
128-
implementation 'androidx.compose.material3:material3:1.2.1'
129-
implementation 'androidx.compose.material:material-icons-core:1.6.8'
130-
implementation "androidx.compose.ui:ui:1.6.8"
131-
implementation "androidx.compose.ui:ui-tooling:1.6.8"
132-
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.3'
133-
implementation 'androidx.activity:activity-compose:1.9.0'
128+
implementation 'androidx.compose.material3:material3:1.3.0'
129+
implementation 'androidx.compose.material:material-icons-core:1.7.3'
130+
implementation "androidx.compose.ui:ui:1.7.3"
131+
implementation "androidx.compose.ui:ui-tooling:1.7.3"
132+
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.6'
133+
implementation 'androidx.activity:activity-compose:1.9.2'
134134
implementation "com.google.accompanist:accompanist-permissions:$accompanist_version"
135135
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
136136
implementation "androidx.core:core-splashscreen:1.1.0-rc01"
137137

138138
// Navigation dependencies.
139-
def nav_version = "2.7.7"
139+
def nav_version = "2.8.2"
140140
implementation "androidx.navigation:navigation-compose:$nav_version"
141141
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
142142

@@ -151,7 +151,7 @@ dependencies {
151151

152152
// Integration Tests
153153
androidTestImplementation composeBom
154-
androidTestImplementation 'androidx.test:runner:1.6.1'
154+
androidTestImplementation 'androidx.test:runner:1.6.2'
155155
androidTestImplementation 'androidx.test.ext:junit-ktx:1.2.1'
156156
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
157157
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
@@ -164,7 +164,7 @@ dependencies {
164164

165165
// Unit Tests
166166
testImplementation 'junit:junit:4.13.2'
167-
testImplementation 'org.mockito:mockito-core:5.4.0'
167+
testImplementation 'org.mockito:mockito-core:5.12.0'
168168
testImplementation 'org.mockito:mockito-inline:5.2.0'
169169
testImplementation 'org.mockito.kotlin:mockito-kotlin:5.4.0'
170170

android/src/main/java/com/tailscale/ipn/ui/view/Avatar.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import androidx.compose.foundation.layout.size
1010
import androidx.compose.foundation.shape.CircleShape
1111
import androidx.compose.material.icons.Icons
1212
import androidx.compose.material.icons.filled.Person
13-
import androidx.compose.material.ripple.rememberRipple
1413
import androidx.compose.material3.Icon
14+
import androidx.compose.material3.ripple
1515
import androidx.compose.runtime.Composable
1616
import androidx.compose.runtime.remember
1717
import androidx.compose.ui.Alignment
@@ -33,7 +33,7 @@ fun Avatar(profile: IpnLocal.LoginProfile?, size: Int = 50, action: (() -> Unit)
3333
modifier =
3434
modifier.clickable(
3535
interactionSource = remember { MutableInteractionSource() },
36-
indication = rememberRipple(bounded = false),
36+
indication = ripple(bounded = false),
3737
onClick = action)
3838
}
3939
Icon(

android/src/main/java/com/tailscale/ipn/ui/view/SharedViews.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import androidx.compose.foundation.layout.width
1313
import androidx.compose.material.icons.Icons
1414
import androidx.compose.material.icons.automirrored.filled.ArrowBack
1515
import androidx.compose.material.icons.filled.CheckCircle
16-
import androidx.compose.material.ripple.rememberRipple
1716
import androidx.compose.material3.CircularProgressIndicator
1817
import androidx.compose.material3.ExperimentalMaterial3Api
1918
import androidx.compose.material3.Icon
2019
import androidx.compose.material3.LinearProgressIndicator
2120
import androidx.compose.material3.MaterialTheme
2221
import androidx.compose.material3.Text
2322
import androidx.compose.material3.TopAppBar
23+
import androidx.compose.material3.ripple
2424
import androidx.compose.runtime.Composable
2525
import androidx.compose.runtime.LaunchedEffect
2626
import androidx.compose.runtime.remember
@@ -76,7 +76,7 @@ fun BackArrow(action: () -> Unit, focusRequester: FocusRequester) {
7676
Modifier.focusRequester(focusRequester)
7777
.clickable(
7878
interactionSource = remember { MutableInteractionSource() },
79-
indication = rememberRipple(bounded = false),
79+
indication = ripple(bounded = false),
8080
onClick = { action() }))
8181
}
8282
}

0 commit comments

Comments
 (0)