-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle
106 lines (92 loc) · 3.5 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
* Copyright (c) 2023 Sergey Komlach aka Salat-Cx65; Original project: https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.9.22'
ext.minSDK = 19
// ext.compileSDK = "UpsideDownCake"
// ext.targetSDK = "UpsideDownCake"
ext.compileSDK = 34
ext.targetSDK = 30
ext.javaVersion = JavaVersion.VERSION_11
ext.libsMajorVersion = '2.2'
ext.libsMinorVersion = 42
ext.libsGroupId = "dev.skomlach"
ext.libArtifactId_biometric = 'biometric'
ext.libArtifactId_common = 'common'
ext.libArtifactId_biometric_api = 'biometric-api'
ext.libArtifactId_biometric_ktx = 'biometric-ktx'
ext.libVersion = libsMajorVersion + "." + libsMinorVersion
ext.libDesc = 'This is an Android project allowing you to use the advanced biometric authorization features.'
ext.libLicenses = ['Apache-2.0']
ext.libVCSUrl = 'https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat.git'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.2'
//Dev Tools
classpath "net.ltgt.gradle:gradle-errorprone-plugin:3.0.1"
classpath "org.owasp:dependency-check-gradle:8.2.1"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2'
classpath 'com.google.gms:google-services:4.4.2'
classpath 'de.undercouch:gradle-download-task:4.1.1'
}
}
allprojects {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
}
//DEV TOOLS
apply plugin: 'project-report'
apply plugin: "net.ltgt.errorprone"
apply plugin: 'org.owasp.dependencycheck'
dependencies {
// Optional, some source of nullability annotations
errorprone "com.google.errorprone:error_prone_core:2.19.1"
}
//Tool for detect known vulnerabilities in 3-rd party libraries
dependencyCheck {
suppressionFile = "$rootProject.projectDir/owasp-suppress.xml"
outputDirectory = "$rootProject.projectDir/owasp_report/"
//by default the build will never fail
failBuildOnCVSS = 11//do not fail if any vulnerability detected
}
}
subprojects { project ->
group = libsGroupId
version = libVersion
afterEvaluate {
try {
android.libraryVariants.all { v ->
// v.assemble.finalizedBy(dependencyCheckAnalyze)
}
} catch (Exception ignore) {
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: 'io.codearte.nexus-staging'