File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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
150150fun 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
158157tasks.named<DependencyUpdatesTask >(" dependencyUpdates" ) {
You can’t perform that action at this time.
0 commit comments