Skip to content

Commit 76e7a1c

Browse files
committed
Add androidx.annotation library so we can use @RequiresApi
This is needed in new versions of UniFFi.
1 parent 4363aeb commit 76e7a1c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

buildSrc/src/main/kotlin/Dependencies.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ object DependenciesVersions {
55
const val nexusPublishGradlePlugin = "1.3.0"
66
const val jna = "5.14.0"
77
const val coroutines = "1.7.3"
8+
const val annotations = "1.7.1"
89
}
910

1011
/**
@@ -14,4 +15,5 @@ object Dependencies {
1415
const val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${DependenciesVersions.coroutines}"
1516
const val junit = "junit:junit:${DependenciesVersions.jUnit}"
1617
const val jna = "net.java.dev.jna:jna:${DependenciesVersions.jna}@aar"
18+
const val annotations = "androidx.annotation:annotation:${DependenciesVersions.annotations}"
1719
}

sdk/sdk-android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ android {
4747
dependencies {
4848
implementation Dependencies.jna
4949
implementation Dependencies.coroutines
50+
implementation Dependencies.annotations
5051
testImplementation Dependencies.junit
5152
}

0 commit comments

Comments
 (0)