From 40a67eadf575811fe13d66a18b2332db836f68c9 Mon Sep 17 00:00:00 2001 From: maltaisn Date: Fri, 30 Dec 2022 17:56:58 -0500 Subject: [PATCH] Disable lint in sharedTest, disable Venom Better to leave venom disabled when not testing as it creates a lot of memory leak warnings... --- .../main/kotlin/com/maltaisn/notes/ui/main/MainActivity.kt | 7 +++---- sharedTest/build.gradle | 5 +++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/maltaisn/notes/ui/main/MainActivity.kt b/app/src/main/kotlin/com/maltaisn/notes/ui/main/MainActivity.kt index 49cb01c4..b4bce430 100644 --- a/app/src/main/kotlin/com/maltaisn/notes/ui/main/MainActivity.kt +++ b/app/src/main/kotlin/com/maltaisn/notes/ui/main/MainActivity.kt @@ -33,7 +33,6 @@ import androidx.drawerlayout.widget.DrawerLayout import androidx.navigation.NavController import androidx.navigation.NavDestination import androidx.navigation.fragment.NavHostFragment -import com.github.venom.Venom import com.google.android.material.color.DynamicColors import com.maltaisn.notes.App import com.maltaisn.notes.TAG @@ -88,9 +87,9 @@ class MainActivity : AppCompatActivity(), NavController.OnDestinationChangedList // Debug.waitForDebugger() // For triggering process death during debug - val venom = Venom.createInstance(this) - venom.initialize() - venom.start() +// val venom = Venom.createInstance(this) +// venom.initialize() +// venom.start() binding = ActivityMainBinding.inflate(layoutInflater) drawerLayout = binding.drawerLayout diff --git a/sharedTest/build.gradle b/sharedTest/build.gradle index 1cd9c22a..8c23f25d 100644 --- a/sharedTest/build.gradle +++ b/sharedTest/build.gradle @@ -37,6 +37,11 @@ android { } } +tasks.getByName("build") { + // don't test, don't lint, don't run detekt for build task. + setDependsOn(getDependsOn().findAll { it != "check" }) +} + dependencies { implementation project(":app")