mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-04-01 07:03:09 +02:00
WIP: feature/abstractions (#45)
* Abstraction layer backup * Removed DataEntity, was unnecessary for now * Separated network, persistence, entities and interaction, closes #29 * Renamed binding * Removed build files, example tests Removed build files, example tests * Fixed build files were not being ignored all around app * Updated CI ymls * Small changes * Fixed legacy repository package names * Fixed CQ findings * Updated Fastlane * Packaging changes and version upgrades * Removed core from interactors * Version bumps * Added new module graph
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
apply plugin: "de.mannodermaus.android-junit5"
|
||||
|
||||
apply from: "$rootProject.projectDir/scripts/detekt.gradle"
|
||||
apply from: "$rootProject.projectDir/scripts/dokka.gradle"
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
|
||||
implementation project(':abstractions')
|
||||
|
||||
implementation libraries.kotlin
|
||||
implementation libraries.dagger
|
||||
implementation libraries.timber
|
||||
@@ -18,57 +17,3 @@ dependencies {
|
||||
|
||||
testRuntimeOnly testLibraries.jUnitEngine
|
||||
}
|
||||
|
||||
apply plugin: 'jacoco'
|
||||
|
||||
jacoco {
|
||||
toolVersion = "0.8.1"
|
||||
reportsDir = file("$rootProject.projectDir/reports/jacoco/$project.name")
|
||||
}
|
||||
|
||||
task jacocoTestReport(type: JacocoReport, dependsOn: "testDebugUnitTest") {
|
||||
group = "Reporting"
|
||||
description = "Generate Jacoco coverage reports for Debug build"
|
||||
|
||||
reports {
|
||||
xml.enabled = true
|
||||
html.enabled = true
|
||||
}
|
||||
|
||||
// what to exclude from coverage report
|
||||
// UI, "noise", generated classes, platform classes, etc.
|
||||
def excludes = [
|
||||
'**/R.class',
|
||||
'**/R$*.class',
|
||||
'**/*$ViewInjector*.*',
|
||||
'**/BuildConfig.*',
|
||||
'**/Manifest*.*',
|
||||
'**/*Test*.*',
|
||||
'android/**/*.*',
|
||||
'**/*Fragment.*',
|
||||
'**/*Activity.*'
|
||||
]
|
||||
|
||||
// generated classes
|
||||
getClassDirectories().setFrom(
|
||||
fileTree(
|
||||
dir: "$buildDir/intermediates/classes/debug",
|
||||
excludes: excludes
|
||||
) + fileTree(
|
||||
dir: "$buildDir/tmp/kotlin-classes/debug",
|
||||
excludes: excludes
|
||||
)
|
||||
)
|
||||
|
||||
// sources
|
||||
getSourceDirectories().setFrom(
|
||||
files([
|
||||
android.sourceSets.main.java.srcDirs,
|
||||
"src/main/kotlin"
|
||||
])
|
||||
)
|
||||
|
||||
getExecutionData().setFrom(
|
||||
files("$buildDir/jacoco/testDebugUnitTest.exec")
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user