[Gradle] Bump target SDK to 30.

This commit is contained in:
Kuba Szczodrzyński 2021-02-17 14:43:00 +01:00
parent 9649afd43f
commit 73ff09052c
3 changed files with 4 additions and 4 deletions

View File

@ -1172,7 +1172,7 @@ fun Iterable<Float>.averageOrNull() = this.average().let { if (it.isNaN()) null
fun String.copyToClipboard(context: Context) {
val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
val clipData = ClipData.newPlainText("Tekst", this)
clipboard.primaryClip = clipData
clipboard.setPrimaryClip(clipData)
}
fun TextView.getTextPosition(range: IntRange): Rect {

View File

@ -167,7 +167,7 @@ class CrashActivity : AppCompatActivity(), CoroutineScope {
val clipboard = getSystemService(Context.CLIPBOARD_SERVICE) as? ClipboardManager
clipboard?.apply {
val clip = ClipData.newPlainText(getString(R.string.customactivityoncrash_error_activity_error_details_clipboard_label), errorInformation)
primaryClip = clip
setPrimaryClip(clip)
Toast.makeText(this@CrashActivity, R.string.copied_to_clipboard, Toast.LENGTH_SHORT).show()
}
}

View File

@ -10,10 +10,10 @@ buildscript {
]
setup = [
compileSdk: 28,
compileSdk: 30,
buildTools: "28.0.3",
minSdk : 16,
targetSdk : 28
targetSdk : 30
]
versions = [