Skip to content

Commit

Permalink
Disable lint in sharedTest, disable Venom
Browse files Browse the repository at this point in the history
Better to leave venom disabled when not testing as it creates a lot of memory leak warnings...
  • Loading branch information
maltaisn committed Dec 30, 2022
1 parent 102cb22 commit 40a67ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions sharedTest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 40a67ea

Please sign in to comment.