Skip to content

Commit

Permalink
Add new lines at the end of of every kotlin file
Browse files Browse the repository at this point in the history
ktfmt enforces these by default, so add them so we reduce the migration
diff.

Test: ./gradlew ktlintFormat
Change-Id: Iaf1dca4a69e180b8efd7ee09d30c3cdeb0625669
  • Loading branch information
liutikas committed Jul 7, 2023
1 parent 2fb1702 commit 4d53400
Show file tree
Hide file tree
Showing 4,703 changed files with 4,760 additions and 4,762 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ fun RememberLauncherForActivityResult() {
result.value?.let { image ->
Image(image.asImageBitmap(), null, modifier = Modifier.fillMaxWidth())
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ class TestActivity : ComponentActivity() {
reportFullyDrawnCalled = true
super.reportFullyDrawn()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ class ActivityResultLauncherTest {
launcher.launch()
assertThat(actualResult).isEqualTo(expectedResult)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ class ActivityResultTest {
assertThat(resultCode).isEqualTo(1)
assertThat(data).isSameInstanceAs(intent)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public fun ActivityResultLauncher<Void?>.launch(options: ActivityOptionsCompat?
@JvmName("launchUnit")
public fun ActivityResultLauncher<Unit>.launch(options: ActivityOptionsCompat? = null) {
launch(Unit, options)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ class BackEventCompatTest {
assertThat(event.progress).isEqualTo(3f)
assertThat(event.swipeEdge).isEqualTo(BackEventCompat.EDGE_LEFT)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ class AutoRestarterActivity : ComponentActivity() {
)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ class ResumeViewModelActivity : ComponentActivity() {
super.onResume()
viewModel = ViewModelProvider(this).get(TestViewModel::class.java)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,4 @@ class ViewOwnerDialog(context: Context) : ComponentDialog(context) {
)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,4 @@ class FullyDrawnActivity : ComponentActivity() {
fullyDrawnReported = true
super.reportFullyDrawn()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ class LeakingActivity : ComponentActivity() {
super.onDestroy()
latch.countDown()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ class ViewTreeOnBackPressedDispatcherTest {
override val onBackPressedDispatcher
get() = throw UnsupportedOperationException("not a real OnBackPressedDispatcherOwner")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ class TestContextAware : ContextAware {
fun clearAvailableContext() {
contextAwareHelper.clearAvailableContext()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -506,4 +506,4 @@ class ActivityResultRegistryTest {

assertThat(completedLaunch).isTrue()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ class PickVisualMediaRequestTest {

assertThat(request.mediaType).isEqualTo(ActivityResultContracts.PickVisualMedia.VideoOnly)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ internal object Api34Impl {

@DoNotInline
fun swipeEdge(backEvent: BackEvent) = backEvent.swipeEdge
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ internal interface Cancellable {
* call multiple times.
*/
fun cancel()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ open class ComponentDialog @JvmOverloads constructor(
window!!.decorView.setViewTreeOnBackPressedDispatcherOwner(this)
window!!.decorView.setViewTreeSavedStateRegistryOwner(this)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ interface FullyDrawnReporterOwner {
* that separately report that they are fully drawn.
*/
val fullyDrawnReporter: FullyDrawnReporter
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -426,4 +426,4 @@ fun OnBackPressedDispatcher.addCallback(
addCallback(callback)
}
return callback
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ interface OnBackPressedDispatcherOwner : LifecycleOwner {
* The [OnBackPressedDispatcher] that should handle the system back button.
*/
val onBackPressedDispatcher: OnBackPressedDispatcher
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ suspend inline fun <R> ContextAware.withContextAvailable(
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ class ContextAwareHelper {
fun clearAvailableContext() {
context = null
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ fun interface OnContextAvailableListener {
* @param context The [Context] the [ContextAware] object is now associated with.
*/
fun onContextAvailable(context: Context)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ interface ActivityResultRegistryOwner {
* @return The activity result registry of the provider.
*/
val activityResultRegistry: ActivityResultRegistry
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ class IntentSenderRequest internal constructor(
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@ fun ViewManager.button(txt: String, listener: (View) -> Unit) {
text = txt
setOnClickListener(listener)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ open class DateProviderKt {
fun getDate(): Int {
return -1
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class LocationProviderKt {
fun getLocation(): Int {
return -1
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ class UseJavaExperimentalFromKt {
val locationProvider = LocationProvider()
return dateProvider.date + locationProvider.location
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ class UseJavaPackageFromKt {
fun callSelfUseExperimental() {
callPackageUseExperimental()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ annotation class ExperimentalKotlinAnnotationWrongAnnotation

check(*input).expect(expected)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ fun ktSample(className: String): TestFile {
"/java/${className.replace('.', '/')}.kt"
)!!.readText()
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ class ClockInteractionService : AppInteractionService() {
.setPackageName(ASSISTANT_PACKAGE)
.build()
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ class MainActivity : AppCompatActivity() {
val seconds = (milliseconds % 60000) / 1000
return String.format("%02d:%02d:%02d", hours, minutes, seconds)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ internal fun hex2Byte(s: String): ByteArray {
result[i] = parts[i].toInt(16).toByte()
}
return result
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ class AlarmActivity : AppCompatActivity() {
private const val TAG = "alarmclock.AlarmReceiver"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ class AlarmInteractionService : AppInteractionService() {
)

override val allowedApps: List<AppVerificationInfo> = /* TODO */ listOf()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ class Attendee(person: Person) {
if (asPerson != other.asPerson) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ class CallFormat private constructor(
)

abstract class CanonicalValue internal constructor(val textValue: String)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ class EndDate internal constructor(
if (asZonedDateTime != other.asZonedDateTime) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ class ItemListElement(asListItem: ListItem) {
if (asListItem != other.asListItem) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ class Name(asText: String) {
if (asText != other.asText) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ class Participant(person: Person) {
if (asPerson != other.asPerson) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ class Recipient(person: Person) {
if (asPerson != other.asPerson) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ class StartDate internal constructor(
if (asZonedDateTime != other.asZonedDateTime) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ package androidx.appactions.builtintypes.experimental.properties
class Text(asText: String) {
@get:JvmName("asText")
val asText: String = asText
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ private class ActionAlreadyInProgressImpl(
ActionAlreadyInProgressBuilderImpl().setIdentifier(identifier).setName(name)

override fun toString(): String = "ActionAlreadyInProgress"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ private class ActionNotInProgressImpl(override val identifier: String?, override
ActionNotInProgressBuilderImpl().setIdentifier(identifier).setName(name)

override fun toString(): String = "ActionNotInProgress"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ private class CallImpl(
.setName(name)
.setCallFormat(callFormat)
.addAllParticipant(participantList)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ private class GenericErrorStatusImpl(override val identifier: String?, override
GenericErrorStatusBuilderImpl().setIdentifier(identifier).setName(name)

override fun toString(): String = "GenericErrorStatus"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ private class ItemListImpl(
if (this.itemListElements != other.itemListElements) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ private class ListItemImpl(
if (this.identifier != other.identifier) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ private class MessageImpl(
.setName(name)
.setText(text)
.addRecipients(recipientList)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ private class NoInternetConnectionImpl(override val identifier: String?, overrid
NoInternetConnectionBuilderImpl().setIdentifier(identifier).setName(name)

override fun toString(): String = "NoInternetConnection"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ private class PersonImpl(
if (name != other.name) return false
return true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ private class SafetyCheckImpl(
.setName(name)
.setDuration(duration)
.setCheckInTime(checkInTime)
}
}
Loading

0 comments on commit 4d53400

Please sign in to comment.