Skip to content

Commit ad2b040

Browse files
authored
Merge pull request #121 from infinum/release/6.0.0
Release 6.0.0
2 parents 5808d1a + 4c5e369 commit ad2b040

35 files changed

Lines changed: 164 additions & 273 deletions

.github/workflows/CI.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -56,47 +56,9 @@ jobs:
5656
- name: Stop Gradle
5757
run: ./gradlew --stop
5858

59-
ktlint:
60-
name: ktlint
61-
needs: [ validation ]
62-
runs-on: ubuntu-latest
63-
steps:
64-
- name: Checkout
65-
uses: actions/checkout@v6
66-
- name: Save Gradle Caches
67-
uses: actions/cache@v4
68-
with:
69-
path: ~/.gradle/caches/
70-
key: gradle-caches-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
71-
restore-keys: |
72-
gradle-caches-${{ runner.os }}-
73-
- name: ktlint
74-
run: ./gradlew ktlintAll
75-
- name: Stop Gradle
76-
run: ./gradlew --stop
77-
78-
cpd:
79-
name: CPD
80-
needs: [ validation ]
81-
runs-on: ubuntu-latest
82-
steps:
83-
- name: Checkout
84-
uses: actions/checkout@v6
85-
- name: Save Gradle Caches
86-
uses: actions/cache@v4
87-
with:
88-
path: ~/.gradle/caches/
89-
key: gradle-caches-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
90-
restore-keys: |
91-
gradle-caches-${{ runner.os }}-
92-
- name: CPD
93-
run: ./gradlew cpdAll
94-
- name: Stop Gradle
95-
run: ./gradlew --stop
96-
9759
tests:
9860
name: Tests
99-
needs: [ validation, lint, detekt, ktlint, cpd ]
61+
needs: [ validation, lint, detekt ]
10062
runs-on: ubuntu-latest
10163
steps:
10264
- name: Checkout

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Changelog
22
=========
33

4+
## Version 6.0.0
5+
6+
_2026-02-09_
7+
8+
* minSdk bumped to 24
9+
* Compile with SDK 36
10+
* Update Kotlin to 2.2.21.
11+
* Update dependencies to stable version.
12+
* Fix edge-to-edge
13+
* Fix edge case no-op DatabasesActivity crash
14+
415
## Version 5.4.9
516

617
_2022-10-21_

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ Then add the following dependencies in your app `build.gradle` or `build.gradle.
6060

6161
**Groovy**
6262
```groovy
63-
debugImplementation "com.infinum.dbinspector:dbinspector:5.4.9"
64-
releaseImplementation "com.infinum.dbinspector:dbinspector-no-op:5.4.9"
63+
debugImplementation "com.infinum.dbinspector:dbinspector:6.0.0"
64+
releaseImplementation "com.infinum.dbinspector:dbinspector-no-op:6.0.0"
6565
```
6666
**KotlinDSL**
6767
```kotlin
68-
debugImplementation("com.infinum.dbinspector:dbinspector:5.4.9")
69-
releaseImplementation("com.infinum.dbinspector:dbinspector-no-op:5.4.9")
68+
debugImplementation("com.infinum.dbinspector:dbinspector:6.0.0")
69+
releaseImplementation("com.infinum.dbinspector:dbinspector-no-op:6.0.0")
7070
```
7171

7272
## Usage

build.gradle

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ buildscript {
1111
dependencies {
1212
classpath libs.tools.gradle
1313
classpath libs.kotlin.gradle
14-
classpath libs.cpd
1514
classpath libs.detekt.gradle
16-
classpath libs.ktlint
1715
classpath libs.dokka
1816
classpath libs.protobuf.gradle
1917
classpath libs.kover
@@ -29,9 +27,7 @@ allprojects {
2927
}
3028

3129
subprojects {
32-
apply from: "$rootDir/cpd.gradle"
3330
apply from: "$rootDir/detekt.gradle"
34-
apply from: "$rootDir/ktlint.gradle"
3531
apply from: "$rootDir/dokka.gradle"
3632
}
3733

@@ -57,27 +53,9 @@ task detektAll(dependsOn: [
5753
description = "Run Detekt on all modules"
5854
}
5955

60-
task ktlintAll(dependsOn: [
61-
':dbinspector:ktlintCheck',
62-
':dbinspector-no-op:ktlintCheck'
63-
]) {
64-
group = "Verification"
65-
description = "Run Ktlint on all modules"
66-
}
67-
68-
task cpdAll(dependsOn: [
69-
':dbinspector:cpdCheck',
70-
':dbinspector-no-op:cpdCheck'
71-
]) {
72-
group = "Verification"
73-
description = "Run CPD on all modules"
74-
}
75-
7656
task runStaticChecks(dependsOn: [
7757
':lintAll',
78-
':detektAll',
79-
':ktlintAll',
80-
':cpdAll'
58+
':detektAll'
8159
]) {
8260
group = "Verification"
8361
description = "Run static checks on all modules"

buildSrc/src/main/groovy/com/infinum/maven/GithubConfiguration.groovy

Lines changed: 0 additions & 41 deletions
This file was deleted.

config.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ext {
2-
def major = 5
3-
def minor = 4
4-
def patch = 9
2+
def major = 6
3+
def minor = 0
4+
def patch = 0
55

66
buildConfig = [
7-
"minSdk" : 21,
8-
"compileSdk": 33,
9-
"targetSdk" : 33,
10-
"buildTools": "33.0.0"
7+
"minSdk" : 24,
8+
"compileSdk": 36,
9+
"targetSdk" : 36,
10+
"buildTools": "35.0.0"
1111
]
1212
releaseConfig = [
1313
"group" : "com.infinum.dbinspector",

cpd.gradle

Lines changed: 0 additions & 12 deletions
This file was deleted.

dbinspector-no-op/build.gradle

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id "com.android.library"
35
id "kotlin-android"
@@ -10,18 +12,15 @@ android {
1012
defaultConfig {
1113
minSdkVersion buildConfig.minSdk
1214
targetSdkVersion buildConfig.targetSdk
13-
versionCode releaseConfig.versionCode
14-
versionName releaseConfig.version
1515
}
1616

1717
buildTypes {
1818
debug {
19-
testCoverageEnabled true
20-
debuggable true
2119
minifyEnabled false
20+
enableUnitTestCoverage true
21+
enableAndroidTestCoverage true
2222
}
2323
release {
24-
debuggable false
2524
minifyEnabled true
2625
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.txt"
2726
}
@@ -31,16 +30,19 @@ android {
3130
resourcePrefix "dbinspector_"
3231

3332
compileOptions {
34-
sourceCompatibility JavaVersion.VERSION_1_8
35-
targetCompatibility JavaVersion.VERSION_1_8
33+
sourceCompatibility JavaVersion.VERSION_17
34+
targetCompatibility JavaVersion.VERSION_17
3635
}
3736

38-
kotlinOptions {
39-
jvmTarget = JavaVersion.VERSION_1_8.toString()
40-
freeCompilerArgs += [
41-
'-Xexplicit-api=strict',
42-
'-Xjvm-default=all'
43-
]
37+
kotlin {
38+
compilerOptions {
39+
jvmTarget.set(JvmTarget.JVM_17)
40+
freeCompilerArgs.addAll([
41+
'-Xexplicit-api=strict',
42+
'-Xjvm-default=all',
43+
'-Xannotation-default-target=param-property'
44+
])
45+
}
4446
}
4547

4648
sourceSets.each {

dbinspector-no-op/publish.gradle

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ task sourcesJar(type: Jar) {
66
from android.sourceSets.main.kotlin.srcDirs
77
}
88

9-
task javadocsJar(type: Jar, dependsOn: "dokkaJavadoc") {
10-
archiveClassifier.set("javadoc")
11-
from dokkaJavadoc.outputDirectory
9+
task javadocsJar(type: Jar, dependsOn: "dokkaGenerate") {
10+
getArchiveClassifier().set("javadoc")
11+
from layout.buildDirectory.dir("javadoc")
1212
}
1313

1414
afterEvaluate {
@@ -22,14 +22,6 @@ afterEvaluate {
2222
password sonatype.password()
2323
}
2424
}
25-
maven {
26-
name github.name()
27-
url github.url()
28-
credentials {
29-
username github.username()
30-
password github.password()
31-
}
32-
}
3325
}
3426
publications {
3527
release(MavenPublication) {
@@ -52,15 +44,15 @@ afterEvaluate {
5244
url = "https://github.com/infinum/android_dbinspector/blob/master/LICENSE"
5345
}
5446
}
47+
organization {
48+
name = 'Infinum Inc.'
49+
url = 'https://infinum.com'
50+
}
5551
developers {
5652
developer {
57-
id = "reisub"
58-
name = "Dino Kovač"
59-
}
60-
developer {
61-
id = "knobtviker"
62-
name = "Bojan Komljenović"
63-
53+
id = 'Infinum'
54+
name = 'Infinum Inc.'
55+
url = 'https://infinum.com'
6456
}
6557
}
6658
scm {
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package com.infinum.dbinspector.ui.databases
22

33
import android.app.Activity
4+
import android.os.Bundle
45

5-
internal class DatabasesActivity : Activity()
6+
internal class DatabasesActivity : Activity() {
7+
8+
override fun onCreate(savedInstanceState: Bundle?) {
9+
super.onCreate(savedInstanceState)
10+
finish()
11+
}
12+
}

0 commit comments

Comments
 (0)