Skip to content

Commit

Permalink
Use correct paths for benchmark artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
dlam committed May 13, 2019
1 parent ace66c3 commit e749708
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PagingWithNetworkSample/benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ apply plugin: 'kotlin-android-extensions'

apply plugin: 'kotlin-kapt'

apply plugin: 'androidx.benchmark'

android {
compileSdkVersion build_versions.target_sdk
buildToolsVersion build_versions.build_tools
Expand Down
10 changes: 10 additions & 0 deletions PagingWithNetworkSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@

buildscript {
apply from: 'versions.gradle'

addRepos(repositories)
repositories {
maven { url '../benchmark-repository' }
}

dependencies {
classpath deps.android_gradle_plugin
classpath deps.kotlin.plugin
classpath deps.benchmark_gradle
}
repositories {
google()
Expand All @@ -30,6 +36,10 @@ buildscript {

allprojects {
addRepos(repositories)

repositories {
maven { url '../../benchmark-repository' }
}
}

task clean(type: Delete) {
Expand Down
1 change: 1 addition & 0 deletions PagingWithNetworkSample/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ versions.work = "2.1.0-alpha01"

def deps = [:]
deps.benchmark = "androidx.benchmark:benchmark:$versions.benchmark"
deps.benchmark_gradle = "androidx.benchmark:benchmark-gradle-plugin:$versions.benchmark"

def support = [:]
support.annotations = "androidx.annotation:annotation:$versions.support"
Expand Down

0 comments on commit e749708

Please sign in to comment.