diff --git a/app/build.gradle b/app/build.gradle index 60210fd6c0..aebfb93463 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -226,19 +226,19 @@ android { } } -android.applicationVariants.all { variant -> - // ------------------------------------------------------------------------------------------------- // Set up kotlin-allopen plugin for writing tests // ------------------------------------------------------------------------------------------------- - boolean hasTest = gradle.startParameter.taskNames.find { it.contains("test") || it.contains("Test") } != null - if (hasTest) { - apply plugin: 'kotlin-allopen' - allOpen { - annotation("org.mozilla.fenix.utils.OpenClass") - } +boolean hasTest = gradle.startParameter.taskNames.find { it.contains("test") || it.contains("Test") } != null +if (hasTest) { + apply plugin: 'kotlin-allopen' + allOpen { + annotation("org.mozilla.fenix.utils.OpenClass") } +} + +android.applicationVariants.all { variant -> // ------------------------------------------------------------------------------------------------- // Generate version codes for builds