Skip to content

Commit

Permalink
Address DSL deprecations in AndroidLibBenchmark.
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth J. Shackleton <[email protected]>
  • Loading branch information
kennethshackleton committed Jul 16, 2023
1 parent 3ad7040 commit b329bbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions AndroidLibBenchmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ repositories {
}

android {
compileSdkVersion(Versions.ANDROID_SDK.version.toInt())
buildToolsVersion(Versions.ANDROID_BUILD_TOOLS.version)
compileSdk = Versions.ANDROID_SDK.version.toInt()
buildToolsVersion = Versions.ANDROID_BUILD_TOOLS.version
namespace = "com.bloomberg.selekt.android.benchmark"
defaultConfig {
minSdkVersion(21)
targetSdkVersion(32)
minSdk = 21
testInstrumentationRunner = "androidx.benchmark.junit4.AndroidBenchmarkRunner"
testInstrumentationRunnerArguments.putAll(arrayOf(
"androidx.benchmark.suppressErrors" to "EMULATOR,LOW_BATTERY,UNLOCKED"
Expand All @@ -40,8 +39,10 @@ android {
arrayOf("androidTest").forEach {
sourceSets[it].java.srcDir("src/$it/kotlin")
}
lintOptions {
disable("OldTargetApi")
lint {
disable.addAll(listOf(
"OldTargetApi"
))
}
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum class Versions(
val version: String,
private val url: URL
) {
ANDROID_BENCHMARK("1.2.0-alpha13", URL("https://developer.android.com/studio/profile/benchmark")),
ANDROID_BENCHMARK("1.2.0-alpha16", URL("https://developer.android.com/studio/profile/benchmark")),
ANDROID_BUILD_TOOLS("33.0.1", URL("https://developer.android.com/studio/releases/build-tools")),
ANDROID_GRADLE_PLUGIN("8.0.2", URL("https://developer.android.com/tools/revisions/gradle-plugin.html")),
ANDROID_LINT("30.0.2", URL("https://github.com/googlesamples/android-custom-lint-rules")),
Expand Down

0 comments on commit b329bbf

Please sign in to comment.