Skip to content

Commit 5dd55ad

Browse files
Ian BirdIanDBird
authored andcommitted
[Dependencies] Update to K2
1 parent 2e499f8 commit 5dd55ad

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
buildscript {
2-
ext {
3-
compose_ui_version = '1.5.0'
4-
}
5-
}
6-
71
// Top-level build file where you can add configuration options common to all sub-projects/modules.
82
plugins {
93
alias libs.plugins.androidApplication apply false
104
alias libs.plugins.androidLibrary apply false
115
alias libs.plugins.kotlinAndroid apply false
6+
alias libs.plugins.composeCompiler apply false
127
alias libs.plugins.dokka apply false
138
alias libs.plugins.mavenPublish apply false
149

dev-app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
alias libs.plugins.androidApplication
33
alias libs.plugins.kotlinAndroid
4+
alias libs.plugins.composeCompiler
45
}
56

67
apply from: rootProject.file("$rootDir/common.gradle")
@@ -31,15 +32,15 @@ android {
3132
compose true
3233
}
3334

34-
composeOptions {
35-
kotlinCompilerExtensionVersion '1.5.12'
36-
}
37-
3835
lint {
3936
disable 'GradleDependency'
4037
}
4138
}
4239

40+
composeCompiler {
41+
enableStrongSkippingMode = true
42+
}
43+
4344
dependencies {
4445
implementation project(path: ':sdk')
4546

gradle/libs.versions.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[versions]
22
agp = "8.4.1"
3-
kotlin = "1.9.23"
3+
kotlin = "2.0.0"
44
core-ktx = "1.13.1"
55
junit = "4.13.2"
6-
appcompat = "1.6.1"
6+
appcompat = "1.7.0"
77
coroutines-version = "1.8.1"
88
compose = "1.9.0"
99
compose-bom = "2024.05.00"
@@ -48,6 +48,7 @@ mockito-inline = { group = "org.mockito", name = "mockito-inline", version = "4.
4848
androidApplication = { id = "com.android.application", version.ref = "agp" }
4949
androidLibrary = { id = "com.android.library", version.ref = "agp" }
5050
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
51+
composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
5152
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
5253
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
5354
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.28.0" }

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.

sdk/src/test/java/com/uid2/UID2ManagerTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ class UID2ManagerTest {
7676
it.arguments[0] as IdentityRequest.Phone
7777
}
7878

79+
whenever(storageManager.clear()).thenReturn(true)
80+
whenever(
81+
storageManager.saveIdentity(any(UID2Identity::class.java), any(IdentityStatus::class.java)),
82+
).thenReturn(true)
7983
whenever(storageManager.loadIdentity()).thenReturn(Pair(initialIdentity, initialStatus))
8084
manager = withManager(client, storageManager, timeUtils, inputUtils, testDispatcher, false, listener)
8185
}

0 commit comments

Comments
 (0)