forked from github/szkolny
[Gradle] Bump target SDK to 30.
This commit is contained in:
parent
9649afd43f
commit
73ff09052c
@ -1172,7 +1172,7 @@ fun Iterable<Float>.averageOrNull() = this.average().let { if (it.isNaN()) null
|
|||||||
fun String.copyToClipboard(context: Context) {
|
fun String.copyToClipboard(context: Context) {
|
||||||
val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
|
val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
|
||||||
val clipData = ClipData.newPlainText("Tekst", this)
|
val clipData = ClipData.newPlainText("Tekst", this)
|
||||||
clipboard.primaryClip = clipData
|
clipboard.setPrimaryClip(clipData)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun TextView.getTextPosition(range: IntRange): Rect {
|
fun TextView.getTextPosition(range: IntRange): Rect {
|
||||||
|
@ -167,7 +167,7 @@ class CrashActivity : AppCompatActivity(), CoroutineScope {
|
|||||||
val clipboard = getSystemService(Context.CLIPBOARD_SERVICE) as? ClipboardManager
|
val clipboard = getSystemService(Context.CLIPBOARD_SERVICE) as? ClipboardManager
|
||||||
clipboard?.apply {
|
clipboard?.apply {
|
||||||
val clip = ClipData.newPlainText(getString(R.string.customactivityoncrash_error_activity_error_details_clipboard_label), errorInformation)
|
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()
|
Toast.makeText(this@CrashActivity, R.string.copied_to_clipboard, Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,10 +10,10 @@ buildscript {
|
|||||||
]
|
]
|
||||||
|
|
||||||
setup = [
|
setup = [
|
||||||
compileSdk: 28,
|
compileSdk: 30,
|
||||||
buildTools: "28.0.3",
|
buildTools: "28.0.3",
|
||||||
minSdk : 16,
|
minSdk : 16,
|
||||||
targetSdk : 28
|
targetSdk : 30
|
||||||
]
|
]
|
||||||
|
|
||||||
versions = [
|
versions = [
|
||||||
|
Loading…
Reference in New Issue
Block a user