11apply plugin : ' com.android.library'
2- apply plugin : ' kotlin-android'
3- apply plugin : ' maven-publish'
42apply plugin : ' io.gitlab.arturbosch.detekt'
5- apply plugin : ' org.jlleitschuh.gradle.ktlint'
3+ // apply plugin: 'org.jlleitschuh.gradle.ktlint'
64
75group = ' com.github.AppIntro'
86
97version = " 6.2.0"
108
119android {
12- compileSdkVersion 31
10+ compileSdk 34
1311
1412 defaultConfig {
15- minSdkVersion 14
16- targetSdkVersion 31
17- versionCode 20
18- versionName version
13+ minSdkVersion 21
14+ targetSdkVersion 34
1915
2016 consumerProguardFiles ' consumer-proguard-rules.pro'
2117 vectorDrawables. useSupportLibrary = true
2218 }
23- lintOptions {
19+ compileOptions {
20+ sourceCompatibility 1.8
21+ targetCompatibility 1.8
22+ }
23+ namespace ' com.github.appintro'
24+ lint {
25+ abortOnError true
2426 ignore ' MissingTranslation' , ' OldTargetApi' , ' GradleDependency'
2527 warningsAsErrors true
26- abortOnError true
27- }
28- compileOptions {
29- sourceCompatibility = JavaVersion . VERSION_1_8
30- targetCompatibility = JavaVersion . VERSION_1_8
3128 }
3229}
3330
3431dependencies {
35- implementation ' androidx.appcompat:appcompat:1.4 .0'
36- implementation ' androidx.annotation:annotation:1.3.0 '
37- implementation ' androidx.constraintlayout:constraintlayout:2.1.2 '
32+ implementation ' androidx.appcompat:appcompat:1.7 .0'
33+ implementation ' androidx.annotation:annotation:1.8.2 '
34+ implementation ' androidx.constraintlayout:constraintlayout:2.1.4 '
3835
3936 testImplementation ' junit:junit:4.13.2'
40- testImplementation ' org.mockito:mockito-core:3.11.2 '
37+ testImplementation ' org.mockito:mockito-core:5.12.0 '
4138}
4239
4340repositories {
4441 mavenCentral()
4542}
4643
47- ktlint {
48- version = " 0.42.1"
49- debug = false
50- verbose = true
51- android = false
52- outputToConsole = true
53- reporters {
54- reporter " json"
55- }
56- ignoreFailures = false
57- enableExperimentalRules = true
58- kotlinScriptAdditionalPaths {
59- include fileTree(" scripts/" )
60- }
61- filter {
62- exclude(" **/generated/**" )
63- include(" **/kotlin/**" )
64- }
65- }
66-
6744detekt {
6845 config = files(" ./detekt-config.yml" )
6946 input = files(" src/main/java" )
@@ -79,43 +56,3 @@ task sourcesJar(type: Jar) {
7956}
8057
8158artifacts. archives(sourcesJar)
82-
83- afterEvaluate {
84- publishing {
85- publications {
86- release(MavenPublication ) {
87- from components. release
88- artifact sourcesJar
89- artifactId = project. name
90- pom {
91- name = POM_NAME
92- description = POM_DESCRIPTION
93- url = POM_URL
94- licenses {
95- license {
96- name = POM_LICENSE_NAME
97- url = POM_LICENSE_URL
98- }
99- }
100- scm {
101- connection = POM_SCM_CONNECTION
102- developerConnection = POM_SCM_CONNECTION
103- url = POM_URL
104- }
105- developers {
106- developer {
107- id = ' paolorotolo'
108- name = ' Paolo Rotolo'
109- email = ' paolo@rotolo.dev'
110- }
111- developer {
112- id = ' cortinico'
113- name = ' Nicola Corti'
114- email = ' corti.nico@gmail.com'
115- }
116- }
117- }
118- }
119- }
120- }
121- }
0 commit comments