-
-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1af36be
commit f9a853e
Showing
8 changed files
with
31 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
cropper/src/main/kotlin/com/canhub/cropper/common/CommonVersionCheck.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package com.canhub.cropper.common | ||
|
||
import android.os.Build | ||
import android.os.Build.VERSION.SDK_INT | ||
import android.os.Build.VERSION_CODES | ||
import androidx.annotation.ChecksSdkIntAtLeast | ||
|
||
object CommonVersionCheck { | ||
|
||
fun isAtLeastJ18() = SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2 | ||
fun isAtLeastM23() = SDK_INT >= Build.VERSION_CODES.M | ||
fun isAtLeastO26() = SDK_INT >= Build.VERSION_CODES.O | ||
fun isAtLeastQ29() = SDK_INT >= Build.VERSION_CODES.Q | ||
@ChecksSdkIntAtLeast(api = VERSION_CODES.O) fun isAtLeastO26() = SDK_INT >= VERSION_CODES.O | ||
@ChecksSdkIntAtLeast(api = VERSION_CODES.Q) fun isAtLeastQ29() = SDK_INT >= VERSION_CODES.Q | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[versions] | ||
minSdk = "16" | ||
minSdk = "21" | ||
compileSdk = "33" | ||
targetSdk = "33" | ||
|
||
|
Oops, something went wrong.