From d7f6f66ae183ce2bae66461e42236e23bbad7efe Mon Sep 17 00:00:00 2001 From: lodev09 Date: Sun, 7 Apr 2024 06:21:24 +0800 Subject: [PATCH] refactor(android): move behavior class to root folder --- .../com/lodev09/truesheet/{core => }/TrueSheetBehavior.kt | 4 +++- android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt | 1 - android/src/main/java/com/lodev09/truesheet/core/Events.kt | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) rename android/src/main/java/com/lodev09/truesheet/{core => }/TrueSheetBehavior.kt (98%) diff --git a/android/src/main/java/com/lodev09/truesheet/core/TrueSheetBehavior.kt b/android/src/main/java/com/lodev09/truesheet/TrueSheetBehavior.kt similarity index 98% rename from android/src/main/java/com/lodev09/truesheet/core/TrueSheetBehavior.kt rename to android/src/main/java/com/lodev09/truesheet/TrueSheetBehavior.kt index 3fb8a46..b38e2d1 100644 --- a/android/src/main/java/com/lodev09/truesheet/core/TrueSheetBehavior.kt +++ b/android/src/main/java/com/lodev09/truesheet/TrueSheetBehavior.kt @@ -1,4 +1,4 @@ -package com.lodev09.truesheet.core +package com.lodev09.truesheet import android.view.MotionEvent import android.view.ViewGroup @@ -6,6 +6,8 @@ import android.widget.ScrollView import androidx.coordinatorlayout.widget.CoordinatorLayout import com.facebook.react.bridge.ReactContext import com.google.android.material.bottomsheet.BottomSheetBehavior +import com.lodev09.truesheet.core.KeyboardManager +import com.lodev09.truesheet.core.Utils data class SizeInfo(val index: Int, val value: Float) diff --git a/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt b/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt index bb19a4e..d9c4994 100644 --- a/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt +++ b/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt @@ -20,7 +20,6 @@ import com.lodev09.truesheet.core.DismissEvent import com.lodev09.truesheet.core.PresentEvent import com.lodev09.truesheet.core.RootViewGroup import com.lodev09.truesheet.core.SizeChangeEvent -import com.lodev09.truesheet.core.TrueSheetBehavior class TrueSheetView(context: Context) : ViewGroup(context), diff --git a/android/src/main/java/com/lodev09/truesheet/core/Events.kt b/android/src/main/java/com/lodev09/truesheet/core/Events.kt index dbf51c6..5f1be71 100644 --- a/android/src/main/java/com/lodev09/truesheet/core/Events.kt +++ b/android/src/main/java/com/lodev09/truesheet/core/Events.kt @@ -3,6 +3,7 @@ package com.lodev09.truesheet.core import com.facebook.react.bridge.Arguments import com.facebook.react.bridge.WritableMap import com.facebook.react.uimanager.events.Event +import com.lodev09.truesheet.SizeInfo // onPresent class PresentEvent(surfaceId: Int, viewId: Int, private val sizeInfo: SizeInfo) : Event(surfaceId, viewId) {