diff options
| author | Charles Lombardo <clombardo169@gmail.com> | 2023-01-09 13:36:58 -0500 |
|---|---|---|
| committer | Charles Lombardo <clombardo169@gmail.com> | 2023-01-15 21:16:55 -0500 |
| commit | 19aa9247be98c67e69ff30c678e124cc7246f0b8 (patch) | |
| tree | 75922fe9ca952bde7aaa5f6a08efeeed93e1fc33 /Source/Android | |
| parent | 653e0ccf280768e8474952767ee4da06b7e9b607 (diff) | |
Android: Copy baseline profile during release builds
Diffstat (limited to 'Source/Android')
| -rw-r--r-- | Source/Android/app/build.gradle | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Android/app/build.gradle b/Source/Android/app/build.gradle index a67131e6df..8588c48cad 100644 --- a/Source/Android/app/build.gradle +++ b/Source/Android/app/build.gradle @@ -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. |
