Skip to content

Commit 0255901

Browse files
authored
Merge pull request #108 from infinum/develop
Develop
2 parents f43f808 + ce14798 commit 0255901

File tree

20 files changed

+64
-33
lines changed

20 files changed

+64
-33
lines changed

CHANGELOG.md

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

4+
## Version 5.4.8
5+
6+
_2022-08-05_
7+
8+
* Update Kotlin to 1.7.10.
9+
* Update dependencies to stable version.
10+
411
## Version 5.4.7
512

613
_2022-06-10_

README.md

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

4545
**Groovy**
4646
```groovy
47-
debugImplementation "com.infinum.dbinspector:dbinspector:5.4.7"
48-
releaseImplementation "com.infinum.dbinspector:dbinspector-no-op:5.4.7"
47+
debugImplementation "com.infinum.dbinspector:dbinspector:5.4.8"
48+
releaseImplementation "com.infinum.dbinspector:dbinspector-no-op:5.4.8"
4949
```
5050
**KotlinDSL**
5151
```kotlin
52-
debugImplementation("com.infinum.dbinspector:dbinspector:5.4.7")
53-
releaseImplementation("com.infinum.dbinspector:dbinspector-no-op:5.4.7")
52+
debugImplementation("com.infinum.dbinspector:dbinspector:5.4.8")
53+
releaseImplementation("com.infinum.dbinspector:dbinspector-no-op:5.4.8")
5454
```
5555

5656
### Usage

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,9 @@ task runStaticChecks(dependsOn: [
8282
group = "Verification"
8383
description = "Run static checks on all modules"
8484
}
85+
86+
task cleanMavenLocal {
87+
doLast {
88+
new File('~/.m2/repository/example').deleteDir()
89+
}
90+
}

config.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
ext {
2+
def major = 5
3+
def minor = 4
4+
def patch = 8
5+
26
buildConfig = [
37
"minSdk" : 21,
48
"compileSdk": 32,
@@ -7,7 +11,7 @@ ext {
711
]
812
releaseConfig = [
913
"group" : "com.infinum.dbinspector",
10-
"version" : "5.4.7",
11-
"versionCode": 5 * 100 * 100 + 4 * 100 + 7
14+
"version" : "$major.$minor.$patch",
15+
"versionCode": major * 100 * 100 + minor * 100 + patch
1216
]
1317
}

dbinspector-no-op/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ android {
4646
sourceSets.each {
4747
it.java.srcDirs += "src/$it.name/kotlin"
4848
}
49+
50+
publishing {
51+
singleVariant('release') {
52+
withSourcesJar()
53+
withJavadocJar()
54+
}
55+
}
4956
}
5057

5158
dependencies {

dbinspector/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ android {
9393
buildFeatures {
9494
viewBinding true
9595
}
96+
97+
publishing {
98+
singleVariant('release') {
99+
withSourcesJar()
100+
withJavadocJar()
101+
}
102+
}
96103
}
97104

98105
dependencies {

dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/settings/interactors/RemoveIgnoredTableNameInteractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ internal class RemoveIgnoredTableNameInteractor(
2222
entity.toBuilder().removeIgnoredTableNames(indexed.first).build()
2323
}
2424
}
25-
} ?: throw IllegalStateException("Ignored table name cannot be empty or blank.")
25+
} ?: error("Ignored table name cannot be empty or blank.")
2626
}
2727
}

dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/settings/interactors/SaveIgnoredTableNameInteractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ internal class SaveIgnoredTableNameInteractor(
2121
)
2222
.build()
2323
}
24-
} ?: throw IllegalStateException("Ignored table name cannot be empty or blank.")
24+
} ?: error("Ignored table name cannot be empty or blank.")
2525
}
2626
}

dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/shared/models/dsl/Delete.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal class Delete {
2222

2323
fun build(): String {
2424
if (!::table.isInitialized) {
25-
throw IllegalStateException("Failed to build - target table is undefined")
25+
error("Failed to build - target table is undefined")
2626
}
2727
return toString()
2828
}

dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/shared/models/dsl/DropTrigger.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class DropTrigger {
1414

1515
fun build(): String {
1616
if (!::trigger.isInitialized) {
17-
throw IllegalStateException("Failed to build - target view is undefined")
17+
error("Failed to build - target view is undefined")
1818
}
1919
return toString()
2020
}

0 commit comments

Comments
 (0)