Skip to content

Commit 3ee02a0

Browse files
committed
Fix app gradle config
1 parent ae506b5 commit 3ee02a0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/build.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525
namespace = "net.mm2d.android.orientationfaker"
2626
defaultConfig {
2727
applicationId = "net.mm2d.android.orientationfaker"
28-
minSdk = 21
28+
minSdk = 26
2929
targetSdk = 33
3030
versionCode = versionMajor * 10000 + versionMinor * 100 + versionPatch
3131
versionName = "${versionMajor}.${versionMinor}.${versionPatch}"
@@ -148,11 +148,10 @@ tasks.create<JacocoReport>("jacocoTestReport") {
148148
}
149149

150150
fun isStable(version: String): Boolean {
151-
// val versionUpperCase = version.toUpperCase()
152-
// val hasStableKeyword = listOf("RELEASE", "FINAL", "GA").any { versionUpperCase.contains(it) }
153-
// val regex = "^[0-9,.v-]+(-r)?$".toRegex()
154-
// return hasStableKeyword || regex.matches(version)
155-
return true
151+
val versionUpperCase = version.toUpperCase()
152+
val hasStableKeyword = listOf("RELEASE", "FINAL", "GA").any { versionUpperCase.contains(it) }
153+
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
154+
return hasStableKeyword || regex.matches(version)
156155
}
157156

158157
tasks.named<DependencyUpdatesTask>("dependencyUpdates") {

0 commit comments

Comments
 (0)