From 320c693636f761c288d846997d2eaa97da369860 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 14 Oct 2025 23:04:51 +0800 Subject: [PATCH] Revert "Add snippet to ensure baseline.profm file is sorted" This reverts commit 1db1a0058106af6b4b2c7e850a370c32f899e019. The issue has been long resolved making this fix no longer required. --- app/build.gradle | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 38765476a..784f11ee7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,7 +1,3 @@ -import com.android.tools.profgen.ArtProfileKt -import com.android.tools.profgen.ArtProfileSerializer -import com.android.tools.profgen.DexFile - plugins { id "com.android.application" id "kotlin-android" @@ -336,25 +332,3 @@ static String getGitWorkingBranch() { return "" } } - -// fix reproducible builds -project.afterEvaluate { - tasks.compileReleaseArtProfile.doLast { - outputs.files.each { file -> - if (file.toString().endsWith(".profm")) { - println("Sorting ${file} ...") - def version = ArtProfileSerializer.valueOf("METADATA_0_0_2") - def profile = ArtProfileKt.ArtProfile(file) - def keys = new ArrayList(profile.profileData.keySet()) - def sortedData = new LinkedHashMap() - Collections.sort keys, new DexFile.Companion() - keys.each { key -> sortedData[key] = profile.profileData[key] } - new FileOutputStream(file).with { - write(version.magicBytes$profgen) - write(version.versionBytes$profgen) - version.write$profgen(it, sortedData, "") - } - } - } - } -}