diff --git a/.buildconfig.yml b/.buildconfig.yml index 4cf84b667..62d820f7a 100644 --- a/.buildconfig.yml +++ b/.buildconfig.yml @@ -135,6 +135,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/app/build.gradle b/app/build.gradle index 5d3cf8906..6f2ad3b0c 100644 --- a/app/build.gradle +++ b/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 { @@ -447,6 +450,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) @@ -620,6 +624,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/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 66928ce86..a1a85adcf 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -48,6 +48,10 @@ android:usesCleartextTraffic="true" tools:ignore="UnusedAttribute"> + +