Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dependencies] Update to K2 #86

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
buildscript {
ext {
compose_ui_version = '1.5.0'
}
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias libs.plugins.androidApplication apply false
alias libs.plugins.androidLibrary apply false
alias libs.plugins.kotlinAndroid apply false
alias libs.plugins.composeCompiler apply false
alias libs.plugins.dokka apply false
alias libs.plugins.mavenPublish apply false

Expand Down
9 changes: 5 additions & 4 deletions dev-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias libs.plugins.androidApplication
alias libs.plugins.kotlinAndroid
alias libs.plugins.composeCompiler
}

apply from: rootProject.file("$rootDir/common.gradle")
Expand Down Expand Up @@ -31,15 +32,15 @@ android {
compose true
}

composeOptions {
kotlinCompilerExtensionVersion '1.5.12'
}

lint {
disable 'GradleDependency'
}
}

composeCompiler {
enableStrongSkippingMode = true
}

dependencies {
implementation project(path: ':sdk')

Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[versions]
agp = "8.4.1"
kotlin = "1.9.23"
kotlin = "2.0.0"
core-ktx = "1.13.1"
junit = "4.13.2"
appcompat = "1.6.1"
appcompat = "1.7.0"
coroutines-version = "1.8.1"
compose = "1.9.0"
compose-bom = "2024.05.00"
Expand Down Expand Up @@ -48,6 +48,7 @@ mockito-inline = { group = "org.mockito", name = "mockito-inline", version = "4.
androidApplication = { id = "com.android.application", version.ref = "agp" }
androidLibrary = { id = "com.android.library", version.ref = "agp" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.28.0" }
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down
4 changes: 4 additions & 0 deletions sdk/src/test/java/com/uid2/UID2ManagerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ class UID2ManagerTest {
it.arguments[0] as IdentityRequest.Phone
}

whenever(storageManager.clear()).thenReturn(true)
whenever(
storageManager.saveIdentity(any(UID2Identity::class.java), any(IdentityStatus::class.java)),
).thenReturn(true)
whenever(storageManager.loadIdentity()).thenReturn(Pair(initialIdentity, initialStatus))
manager = withManager(client, storageManager, timeUtils, inputUtils, testDispatcher, false, listener)
}
Expand Down
Loading