diff --git a/fenix/.buildconfig.yml b/fenix/.buildconfig.yml index b577feddf8d7..24004102d4b9 100644 --- a/fenix/.buildconfig.yml +++ b/fenix/.buildconfig.yml @@ -131,6 +131,17 @@ variants: fileName: app-fenix-x86_64-beta-unsigned.apk build_type: beta name: fenixBeta +- apks: + - abi: arm64-v8a + fileName: app-fenix-arm64-v8a-benchmark-unsigned.apk + - abi: armeabi-v7a + fileName: app-fenix-armeabi-v7a-benchmark-unsigned.apk + - abi: x86 + fileName: app-fenix-x86-benchmark-unsigned.apk + - abi: x86_64 + fileName: app-fenix-x86_64-benchmark-unsigned.apk + build_type: benchmark + name: fenixBenchmark - apks: - abi: noarch fileName: app-debug-androidTest.apk diff --git a/fenix/app/build.gradle b/fenix/app/build.gradle index c145785a9152..049513c39c24 100644 --- a/fenix/app/build.gradle +++ b/fenix/app/build.gradle @@ -11,8 +11,6 @@ apply plugin: 'kotlin-parcelize' apply plugin: 'jacoco' apply plugin: 'androidx.navigation.safeargs.kotlin' apply plugin: 'com.google.android.gms.oss-licenses-plugin' -apply plugin: 'androidx.benchmark' - import com.android.build.OutputFile import groovy.json.JsonOutput @@ -148,6 +146,11 @@ android { "deepLinkScheme": deepLinkSchemeValue ] } + benchmark releaseTemplate >> { + initWith buildTypes.nightly + applicationIdSuffix ".fenix" + debuggable false + } } buildFeatures { @@ -448,6 +451,7 @@ nimbus { fenixNightly: "nightly", fenixBeta: "beta", fenixRelease: "release", + fenixBenchmark: "developer", ] // This is generated by the FML and should be checked into git. // It will be fetched by Experimenter (the Nimbus experiment website) @@ -621,6 +625,8 @@ dependencies { implementation FenixDependencies.google_play_review implementation FenixDependencies.google_play_review_ktx + implementation FenixDependencies.androidx_profileinstaller + androidTestImplementation FenixDependencies.uiautomator androidTestImplementation "tools.fastlane:screengrab:2.0.0" // This Falcon version is added to maven central now required for Screengrab diff --git a/fenix/app/src/main/AndroidManifest.xml b/fenix/app/src/main/AndroidManifest.xml index f85397b77bce..5bfbd9d9d447 100644 --- a/fenix/app/src/main/AndroidManifest.xml +++ b/fenix/app/src/main/AndroidManifest.xml @@ -49,6 +49,10 @@ android:usesCleartextTraffic="true" tools:ignore="UnusedAttribute"> + +