Skip to content

Commit 6ac1cb4

Browse files
committed
Use D8 for calculating method count
1 parent 97e0c8f commit 6ac1cb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ def collectAarMetrics() {
232232
sh """set -xe
233233
cd realm/realm-library/build/outputs/aar
234234
unzip realm-android-library-${flavor}-release.aar -d unzipped${flavor}
235-
find \$ANDROID_HOME -name dx | sort -r | head -n 1 > dx
236-
\$(cat dx) --dex --output=temp${flavor}.dex unzipped${flavor}/classes.jar
237-
cat temp${flavor}.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 \"%d\"' > methods${flavor}
235+
find \$ANDROID_HOME -name d8 | sort -r | head -n 1 > d8
236+
\$(cat d8) --release --output ./unzipped${flavor} unzipped${flavor}/classes.jar
237+
cat ./unzipped${flavor}/temp${flavor}.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 \"%d\"' > methods${flavor}
238238
"""
239239

240240
def methods = readFile("realm/realm-library/build/outputs/aar/methods${flavor}")

0 commit comments

Comments
 (0)