Skip to content
Permalink
Browse files
Merge pull request #11420 from t895/copy-profile
Android: Copy baseline profile during release builds
  • Loading branch information
delroth committed Jan 17, 2023
2 parents 0e1c250 + b1e05c9 commit 10fd768
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3,899 deletions.
@@ -3,6 +3,14 @@ plugins {
id 'org.jetbrains.kotlin.android'
}

task copyProfile (type: Copy) {
description('Copies a generated baseline profile text file from managed device to src/main in the app module.')
from(project(':benchmark').file('build/outputs/managed_device_android_test_additional_output/pixel6Api31'))
into('src/main')
include('BaselineProfileGenerator_generate-baseline-prof.txt')
rename('BaselineProfileGenerator_generate-baseline-prof', 'baseline-prof')
}

android {
compileSdkVersion 33
ndkVersion "25.1.8937393"
@@ -68,6 +76,8 @@ android {
proguardFiles getDefaultProguardFile(
'proguard-android-optimize.txt'),
'proguard-rules.pro'

preBuild.dependsOn copyProfile
}

// Signed by debug key disallowing distribution on Play Store.

0 comments on commit 10fd768

Please sign in to comment.