mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-16 02:38:44 +00:00
hyperspace onboarding: not all of /gradle/ could go...
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
ext {
|
||||
config = [
|
||||
minSdkVersion : 23,
|
||||
compileSdkVersion: 30,
|
||||
buildToolsVersion: '30.0.3',
|
||||
|
||||
applicationId : 'com.sap.sailing',
|
||||
]
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
ext {
|
||||
versions = [
|
||||
androidXAppcompat : '1.3.1',
|
||||
androidXConstraintLayout : '2.1.1',
|
||||
androidXCoreKtx : '1.6.0',
|
||||
androidXLifecycle : '2.3.1',
|
||||
androidXNavigation : '2.4.0-alpha06',
|
||||
androidXPreferenceKtx : '1.1.1',
|
||||
androidXTestEspressoCore : '3.4.0',
|
||||
androidXTestJunit : '1.1.3',
|
||||
coil : '1.4.0',
|
||||
compose : '1.0.4',
|
||||
daggerHilt : '2.38.1',
|
||||
googleAndroidMaterial : '1.4.0',
|
||||
gradle : '7.0.3',
|
||||
jacoco : '0.8.7',
|
||||
junit : '4.13.2',
|
||||
kotlinStdlib : '1.5.31',
|
||||
kotlinxSerialization : '1.2.2',
|
||||
leakCanary : '2.7',
|
||||
logbackAndroid : '2.0.0',
|
||||
mockK : '1.12.0',
|
||||
moshi : '1.12.0',
|
||||
sapBTPAndroidSDK : '3.4.0',
|
||||
slf4j : '1.7.32',
|
||||
timber : '5.0.1'
|
||||
]
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
jacoco {
|
||||
toolVersion = "$versions.jacoco"
|
||||
}
|
||||
|
||||
def fileFilter = ['**/R.class',
|
||||
'**/R$*.class',
|
||||
'**/BuildConfig.*',
|
||||
'**/Manifest*.*',
|
||||
'**/*Test*.*',
|
||||
'android/**/*.*',
|
||||
'**/data/models/*']
|
||||
def kotlinTree = fileTree(dir: "$project.buildDir/tmp/kotlin-classes/debug", excludes: fileFilter)
|
||||
def mainSrc = "${project.projectDir}/src/main/java"
|
||||
|
||||
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {
|
||||
reports {
|
||||
xml.enabled = true
|
||||
html.enabled = true
|
||||
}
|
||||
|
||||
classDirectories.from = files([kotlinTree])
|
||||
sourceDirectories.setFrom(files([mainSrc]))
|
||||
executionData.setFrom(files("${buildDir}/jacoco/testDebugUnitTest.exec"))
|
||||
}
|
||||
|
||||
task jacocoTestCoverageVerification(type: JacocoCoverageVerification, dependsOn: 'jacocoTestReport') {
|
||||
classDirectories.from = files([kotlinTree])
|
||||
sourceDirectories.setFrom(files([mainSrc]))
|
||||
executionData.setFrom(files("${buildDir}/jacoco/testDebugUnitTest.exec"))
|
||||
|
||||
violationRules {
|
||||
failOnViolation = false // set to true
|
||||
rule {
|
||||
limit {
|
||||
minimum = 0.8
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user