Skip to content

Commit

Permalink
chore: benchmark build type
Browse files Browse the repository at this point in the history
  • Loading branch information
mlykotom committed Dec 3, 2021
1 parent df600c8 commit a122b2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MacrobenchmarkSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ android {
}

buildTypes {
release {
benchmark {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
Expand Down
4 changes: 2 additions & 2 deletions MacrobenchmarkSample/macrobenchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ android {

buildTypes {
// declare a build type (release) to match the target app's build type
release {
benchmark {
debuggable = true
signingConfig = debug.signingConfig
}
Expand All @@ -36,7 +36,7 @@ androidComponents {
beforeVariants(selector().all()) {
// enable only the release buildType, since we only want to measure
// release build performance
enabled = buildType == 'release'
enabled = buildType == 'benchmark'
}
}

Expand Down

0 comments on commit a122b2c

Please sign in to comment.