react-native-rectangle-doc-scanner 3.155.0 → 3.156.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61,21 +61,45 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
|
|
|
61
61
|
override fun getLifecycle(): Lifecycle = lifecycleRegistry
|
|
62
62
|
|
|
63
63
|
init {
|
|
64
|
+
Log.d(TAG, "╔════════════════════════════════════════╗")
|
|
65
|
+
Log.d(TAG, "║ DocumentScannerView INIT START ║")
|
|
66
|
+
Log.d(TAG, "╚════════════════════════════════════════╝")
|
|
67
|
+
Log.d(TAG, "[INIT] Context: $context")
|
|
68
|
+
Log.d(TAG, "[INIT] Context class: ${context.javaClass.name}")
|
|
69
|
+
|
|
64
70
|
// Initialize lifecycle FIRST
|
|
71
|
+
Log.d(TAG, "[INIT] Setting lifecycle to INITIALIZED...")
|
|
65
72
|
lifecycleRegistry.currentState = Lifecycle.State.INITIALIZED
|
|
73
|
+
Log.d(TAG, "[INIT] Lifecycle state: ${lifecycleRegistry.currentState}")
|
|
66
74
|
|
|
67
75
|
// Create preview view
|
|
76
|
+
Log.d(TAG, "[INIT] Creating PreviewView...")
|
|
68
77
|
previewView = PreviewView(context).apply {
|
|
69
78
|
layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
|
|
70
79
|
scaleType = PreviewView.ScaleType.FILL_CENTER
|
|
71
80
|
}
|
|
81
|
+
Log.d(TAG, "[INIT] PreviewView created: $previewView")
|
|
82
|
+
|
|
83
|
+
Log.d(TAG, "[INIT] Adding PreviewView to parent...")
|
|
72
84
|
addView(previewView)
|
|
85
|
+
Log.d(TAG, "[INIT] PreviewView added, childCount: $childCount")
|
|
73
86
|
|
|
74
87
|
// Create overlay view for drawing rectangle
|
|
88
|
+
Log.d(TAG, "[INIT] Creating OverlayView...")
|
|
75
89
|
overlayView = OverlayView(context)
|
|
90
|
+
Log.d(TAG, "[INIT] OverlayView created: $overlayView")
|
|
91
|
+
|
|
92
|
+
Log.d(TAG, "[INIT] Adding OverlayView to parent...")
|
|
76
93
|
addView(overlayView)
|
|
94
|
+
Log.d(TAG, "[INIT] OverlayView added, childCount: $childCount")
|
|
77
95
|
|
|
96
|
+
Log.d(TAG, "[INIT] Setting lifecycle to CREATED...")
|
|
78
97
|
lifecycleRegistry.currentState = Lifecycle.State.CREATED
|
|
98
|
+
Log.d(TAG, "[INIT] Lifecycle state: ${lifecycleRegistry.currentState}")
|
|
99
|
+
|
|
100
|
+
Log.d(TAG, "╔════════════════════════════════════════╗")
|
|
101
|
+
Log.d(TAG, "║ DocumentScannerView INIT COMPLETE ║")
|
|
102
|
+
Log.d(TAG, "╚════════════════════════════════════════╝")
|
|
79
103
|
}
|
|
80
104
|
|
|
81
105
|
override fun onAttachedToWindow() {
|
package/package.json
CHANGED