Skip to content

CircleToSearch with multi search engine support for all android

Kotlin

fixed button size issue and result sheet

AKS Labs0f4361e7ee02
diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt b/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
index 947f42d..5b0c665 100644
--- a/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
+++ b/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
@@ -1116,7 +1116,7 @@ fun CircleToSearchScreen(
initialOffsetY = { -it }, // Commence au-dessus de l'écran (-100%)
animationSpec = tween(500, easing = androidx.compose.animation.core.FastOutSlowInEasing)
),
- modifier = Modifier.align(Alignment.TopCenter)
+ modifier = Modifier.align(Alignment.TopCenter).zIndex(2000f)
) {
Row(
modifier = Modifier
@@ -1306,7 +1306,7 @@ fun CircleToSearchScreen(
targetOffsetY = { it }, // slides back down
animationSpec = tween(200, easing = androidx.compose.animation.core.CubicBezierEasing(0.4f, 0f, 1f, 1f))
) + fadeOut(animationSpec = tween(200)),
- modifier = Modifier.align(Alignment.BottomCenter)
+ modifier = Modifier.align(Alignment.BottomCenter).zIndex(2000f)
) {
// ── Outer card container ──────────────────────────────────────────
androidx.compose.material3.Surface(
@@ -1551,13 +1551,15 @@ fun CircleToSearchScreen(
.fillMaxSize()
.zIndex(2000f) // Highest Z-index
) {
+ val screenWidth = androidx.compose.ui.platform.LocalConfiguration.current.screenWidthDp.dp
+ val screenHeight = androidx.compose.ui.platform.LocalConfiguration.current.screenHeightDp.dp
Box(
modifier = Modifier
.offset(
- x = leftDp,
- y = if (topPx > 200f) topDp - 64.dp else bottomDp + 16.dp
+ x = ((leftDp + rightDp) / 2 - 90.dp).coerceIn(16.dp, screenWidth - 196.dp),
+ y = if (topPx > 200f) (topDp - 72.dp).coerceAtLeast(16.dp) else (bottomDp + 16.dp).coerceAtMost(screenHeight - 80.dp)
)
- .width(widthDp),
+ .wrapContentSize(),
contentAlignment = Alignment.Center
) {
// Wrapped in Surface to match Bottom Bar tonal environment
@@ -1654,7 +1656,7 @@ fun CircleToSearchScreen(
// --- NEW: QR Overlay Chips (High Layer) ---
if (screenshot != null && !isCopyMode) {
- BoxWithConstraints(modifier = Modifier.fillMaxSize().zIndex(1100f)) {
+ BoxWithConstraints(modifier = Modifier.fillMaxSize().zIndex(2000f)) {
val screenWidth = maxWidth
val screenHeight = maxHeight
val bitmapWidth = screenshot.width.toFloat()
@@ -1669,9 +1671,9 @@ fun CircleToSearchScreen(
// Using a Box with pointerInput to consume taps and prevent circling
Box(
modifier = Modifier
- .offset(x = chipX.dp - 22.dp, y = chipY.dp - 22.dp)
- .size(44.dp)
- .shadow(4.dp, CircleShape)
+ .offset(x = chipX.dp - 24.dp, y = chipY.dp - 24.dp)
+ .size(48.dp)
+ .shadow(6.dp, CircleShape)
.background(Color.White, CircleShape)
.border(1.5.dp, if(isUrl) Color(0xFF1A73E8) else MaterialTheme.colorScheme.primary.copy(alpha = 0.5f), CircleShape)
.pointerInput(qr) {
@@ -1687,7 +1689,7 @@ fun CircleToSearchScreen(
Icons.Default.QrCode,
null,
tint = if(isUrl) Color(0xFF1A73E8) else MaterialTheme.colorScheme.primary,
- modifier = Modifier.size(22.dp)
+ modifier = Modifier.size(24.dp)
)
}
@@ -1695,7 +1697,7 @@ fun CircleToSearchScreen(
if (label.isNotEmpty()) {
Surface(
modifier = Modifier
- .offset(x = chipX.dp + 16.dp, y = chipY.dp - 32.dp)
+ .offset(x = chipX.dp + 28.dp, y = chipY.dp - 12.dp)
.pointerInput(qr) {
detectTapGestures {
selectedQrResult = qr
@@ -1715,7 +1717,7 @@ fun CircleToSearchScreen(
color = if(isUrl) Color(0xFF1A73E8) else MaterialTheme.colorScheme.onSurface,
fontWeight = if(isUrl) FontWeight.Bold else FontWeight.Medium
),
- modifier = Modifier.padding(horizontal = 10.dp, vertical = 6.dp),
+ modifier = Modifier.padding(horizontal = 8.dp, vertical = 4.dp),
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt b/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt
index 8492677..514d36a 100644
--- a/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt
+++ b/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt
@@ -155,29 +155,29 @@ fun QrCodeResultSheet(
Surface(
modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 8.dp),
- shape = RoundedCornerShape(28.dp),
+ shape = RoundedCornerShape(24.dp),
color = MaterialTheme.colorScheme.surfaceContainerHigh,
- tonalElevation = 8.dp, shadowElevation = 12.dp
+ tonalElevation = 6.dp, shadowElevation = 12.dp
) {
- Column(modifier = Modifier.padding(vertical = 20.dp), horizontalAlignment = Alignment.CenterHorizontally) {
+ Column(modifier = Modifier.padding(20.dp), horizontalAlignment = Alignment.CenterHorizontally) {
// Header Row
- Row(modifier = Modifier.padding(horizontal = 20.dp), verticalAlignment = Alignment.CenterVertically) {
- Icon(Icons.Default.QrCode, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(22.dp))
- Spacer(Modifier.width(10.dp))
+ Row(modifier = Modifier.padding(horizontal = 16.dp), verticalAlignment = Alignment.CenterVertically) {
+ Icon(Icons.Default.QrCode, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(20.dp))
+ Spacer(Modifier.width(8.dp))
val titleText = when {
isScanning -> "Scanning…"
notFound -> "No QR Found"
results.size > 1 -> "Result ${pagerState.currentPage + 1} of ${results.size}"
- else -> "QR / Barcode Detected"
+ else -> "QR / Barcode"
}
- Text(titleText, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold), modifier = Modifier.weight(1f))
+ Text(titleText, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.SemiBold), modifier = Modifier.weight(1f))
if (results.size > 1) {
- IconButton(onClick = { scope.launch { pagerState.animateScrollToPage((pagerState.currentPage - 1 + results.size) % results.size) } }, modifier = Modifier.size(36.dp)) {
- Icon(Icons.Default.ChevronLeft, null)
+ IconButton(onClick = { scope.launch { pagerState.animateScrollToPage((pagerState.currentPage - 1 + results.size) % results.size) } }, modifier = Modifier.size(32.dp)) {
+ Icon(Icons.Default.ChevronLeft, null, modifier = Modifier.size(20.dp))
}
- IconButton(onClick = { scope.launch { pagerState.animateScrollToPage((pagerState.currentPage + 1) % results.size) } }, modifier = Modifier.size(36.dp)) {
- Icon(Icons.Default.ChevronRight, null)
+ IconButton(onClick = { scope.launch { pagerState.animateScrollToPage((pagerState.currentPage + 1) % results.size) } }, modifier = Modifier.size(32.dp)) {
+ Icon(Icons.Default.ChevronRight, null, modifier = Modifier.size(20.dp))
}
}
}
@@ -193,8 +193,8 @@ fun QrCodeResultSheet(
HorizontalPager(
state = pagerState,
modifier = Modifier.fillMaxWidth(),
- contentPadding = PaddingValues(horizontal = 20.dp),
- pageSpacing = 16.dp
+ contentPadding = PaddingValues(horizontal = 16.dp),
+ pageSpacing = 12.dp
) { page ->
QrResultContent(context, results[page].result)
}
@@ -210,19 +210,13 @@ fun QrCodeResultSheet(
val active = pagerState.currentPage == i
Box(
modifier = Modifier
- .padding(horizontal = 4.dp)
- .size(if (active) 8.dp else 6.dp)
+ .padding(horizontal = 3.dp)
+ .size(if (active) 6.dp else 4.dp)
.clip(CircleShape)
.background(if (active) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.3f))
)
}
}
- Text(
- "Swipe for more results",
- style = MaterialTheme.typography.labelSmall,
- color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.6f),
- modifier = Modifier.padding(top = 8.dp)
- )
}
}
}
@@ -234,27 +228,26 @@ fun QrCodeResultSheet(
fun ScanningIndicator(scanlineY: Float) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Box(
- modifier = Modifier.size(90.dp).background(MaterialTheme.colorScheme.surfaceContainerHighest, RoundedCornerShape(20.dp)),
+ modifier = Modifier.size(70.dp).background(MaterialTheme.colorScheme.surfaceContainerHighest, RoundedCornerShape(16.dp)),
contentAlignment = Alignment.Center
) {
- CircularProgressIndicator(modifier = Modifier.size(44.dp), strokeWidth = 3.dp, color = MaterialTheme.colorScheme.primary)
- Box(modifier = Modifier.fillMaxWidth().height(3.dp)
- .offset(y = (90.dp * scanlineY) - 45.dp)
+ CircularProgressIndicator(modifier = Modifier.size(32.dp), strokeWidth = 2.dp, color = MaterialTheme.colorScheme.primary)
+ Box(modifier = Modifier.fillMaxWidth().height(2.dp)
+ .offset(y = (70.dp * scanlineY) - 35.dp)
.background(Brush.horizontalGradient(listOf(Color.Transparent, MaterialTheme.colorScheme.primary, Color.Transparent)))
)
}
- Spacer(Modifier.height(16.dp))
- Text("Scanning screenshot…", style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
+ Spacer(Modifier.height(8.dp))
+ Text("Scanning…", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant)
}
}
@Composable
fun NotFoundContent() {
- Column(horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.padding(vertical = 10.dp)) {
- Text("🔎", fontSize = 48.sp)
- Spacer(Modifier.height(12.dp))
- Text("No QR code detected", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold)
- Text("Ensure the code is clearly visible", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant)
+ Column(horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.padding(vertical = 4.dp)) {
+ Text("🔎", fontSize = 32.sp)
+ Spacer(Modifier.height(8.dp))
+ Text("No QR code detected", style = MaterialTheme.typography.titleSmall, fontWeight = FontWeight.SemiBold)
}
}
@@ -277,46 +270,45 @@ fun QrResultContent(context: Context, result: QrResult) {
private fun UrlResult(context: Context, result: QrResult.Url) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Text("🔗", fontSize = 42.sp)
- Spacer(Modifier.height(8.dp))
- Text(result.displayUrl.substringBefore("/"), style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.ExtraBold))
+ Spacer(Modifier.height(4.dp))
+ Text(result.displayUrl.substringBefore("/"), style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))
Text(
text = result.displayUrl,
- style = MaterialTheme.typography.bodyLarge.copy(
+ style = MaterialTheme.typography.labelSmall.copy(
color = Color(0xFF1A73E8),
- textDecoration = TextDecoration.Underline,
- fontWeight = FontWeight.Medium
+ textDecoration = TextDecoration.Underline
),
- maxLines = 2,
+ maxLines = 1,
overflow = TextOverflow.Ellipsis,
- modifier = Modifier.clickable { openUrl(context, result.url) }.padding(4.dp)
+ modifier = Modifier.clickable { openUrl(context, result.url) }.padding(2.dp)
)
- Spacer(Modifier.height(20.dp))
- ActionRow { PrimaryAction("Open Browser") { openUrl(context, result.url) }; SecondaryAction("Copy Link") { copyToClipboard(context, "URL", result.url) } }
+ Spacer(Modifier.height(16.dp))
+ ActionRow { PrimaryAction("Open Link") { openUrl(context, result.url) }; SecondaryAction("Copy") { copyToClipboard(context, "URL", result.url) } }
}
}
@Composable
private fun WifiResult(context: Context, result: QrResult.WiFi) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Icon(Icons.Default.Wifi, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(42.dp))
- Spacer(Modifier.height(10.dp))
- Text(result.ssid, style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold))
- Text("${result.security}${if (result.password != null) " · Password: ${result.password}" else ""}", style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
- Spacer(Modifier.height(20.dp))
- ActionRow { if (result.password != null) PrimaryAction("Copy Password") { copyToClipboard(context, "WiFi Password", result.password) } }
+ Icon(Icons.Default.Wifi, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(40.dp))
+ Spacer(Modifier.height(6.dp))
+ Text(result.ssid, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))
+ Text("${result.security}${if (result.password != null) " · ${result.password}" else ""}", style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.onSurfaceVariant)
+ Spacer(Modifier.height(16.dp))
+ ActionRow { if (result.password != null) PrimaryAction("Copy Pass") { copyToClipboard(context, "WiFi Password", result.password) } }
}
}
@Composable
private fun PhoneResult(context: Context, result: QrResult.Phone) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Icon(Icons.Default.Phone, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(42.dp))
- Spacer(Modifier.height(10.dp))
- Text(result.number, style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold))
- Spacer(Modifier.height(20.dp))
+ Icon(Icons.Default.Phone, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(40.dp))
+ Spacer(Modifier.height(6.dp))
+ Text(result.number, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))
+ Spacer(Modifier.height(16.dp))
ActionRow {
- PrimaryAction("Call Now") { openUrl(context, "tel:${result.number}") }
- SecondaryAction("Send SMS") { openUrl(context, "sms:${result.number}") }
+ PrimaryAction("Call") { openUrl(context, "tel:${result.number}") }
+ SecondaryAction("SMS") { openUrl(context, "sms:${result.number}") }
SecondaryAction("Copy") { copyToClipboard(context, "Phone", result.number) }
}
}
@@ -325,12 +317,12 @@ private fun PhoneResult(context: Context, result: QrResult.Phone) {
@Composable
private fun ProductResult(context: Context, result: QrResult.Product) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Icon(Icons.Default.ShoppingBag, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(42.dp))
- Spacer(Modifier.height(10.dp))
- Text(result.barcode, style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold))
- Spacer(Modifier.height(20.dp))
+ Icon(Icons.Default.ShoppingBag, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(40.dp))
+ Spacer(Modifier.height(6.dp))
+ Text(result.barcode, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))
+ Spacer(Modifier.height(16.dp))
ActionRow {
- PrimaryAction("Amazon Search") { openUrl(context, "https://www.amazon.com/s?k=${result.barcode}") }
+ PrimaryAction("Amazon") { openUrl(context, "https://www.amazon.com/s?k=${result.barcode}") }
SecondaryAction("Google") { openUrl(context, "https://www.google.com/search?q=${result.barcode}") }
SecondaryAction("Copy") { copyToClipboard(context, "Barcode", result.barcode) }
}
@@ -341,12 +333,12 @@ private fun ProductResult(context: Context, result: QrResult.Product) {
private fun VCardResult(context: Context, result: QrResult.VCard) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Text("👤", fontSize = 42.sp)
- if (result.name != null) Text(result.name, style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold))
+ if (result.name != null) Text(result.name, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))
val sub = listOfNotNull(result.phone, result.email).joinToString(" · ")
- if (sub.isNotEmpty()) Text(sub, style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
- Spacer(Modifier.height(20.dp))
+ if (sub.isNotEmpty()) Text(sub, style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.onSurfaceVariant)
+ Spacer(Modifier.height(16.dp))
ActionRow {
- PrimaryAction("Save Contact") {
+ PrimaryAction("Save") {
context.startActivity(Intent(Intent.ACTION_INSERT).apply {
type = ContactsContract.RawContacts.CONTENT_TYPE
result.name?.let { putExtra(ContactsContract.Intents.Insert.NAME, it) }
@@ -355,7 +347,7 @@ private fun VCardResult(context: Context, result: QrResult.VCard) {
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
})
}
- SecondaryAction("Copy Raw") { copyToClipboard(context, "Contact", result.raw) }
+ SecondaryAction("Copy") { copyToClipboard(context, "Contact", result.raw) }
}
}
}
@@ -364,12 +356,12 @@ private fun VCardResult(context: Context, result: QrResult.VCard) {
private fun GeoResult(context: Context, result: QrResult.GeoPoint) {
val coord = "%.4f, %.4f".format(result.lat, result.lng)
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Icon(Icons.Default.LocationOn, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(42.dp))
- Spacer(Modifier.height(10.dp))
- Text(coord, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))
- Spacer(Modifier.height(20.dp))
+ Icon(Icons.Default.LocationOn, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(40.dp))
+ Spacer(Modifier.height(6.dp))
+ Text(coord, style = MaterialTheme.typography.labelMedium.copy(fontWeight = FontWeight.Bold))
+ Spacer(Modifier.height(16.dp))
ActionRow {
- PrimaryAction("Open in Maps") { openUrl(context, "geo:${result.lat},${result.lng}?q=${result.lat},${result.lng}") }
+ PrimaryAction("Maps") { openUrl(context, "geo:${result.lat},${result.lng}?q=${result.lat},${result.lng}") }
SecondaryAction("Copy") { copyToClipboard(context, "Coordinates", coord) }
}
}
@@ -379,34 +371,34 @@ private fun GeoResult(context: Context, result: QrResult.GeoPoint) {
private fun PlainTextResult(context: Context, result: QrResult.PlainText) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Text("📝", fontSize = 42.sp)
- Spacer(Modifier.height(8.dp))
+ Spacer(Modifier.height(4.dp))
Text(
text = "\"${result.text}\"",
- style = MaterialTheme.typography.bodyLarge.copy(lineHeight = 22.sp),
- maxLines = 5,
+ style = MaterialTheme.typography.bodySmall.copy(lineHeight = 18.sp),
+ maxLines = 3,
overflow = TextOverflow.Ellipsis,
- modifier = Modifier.padding(horizontal = 10.dp)
+ modifier = Modifier.padding(horizontal = 8.dp)
)
- Spacer(Modifier.height(20.dp))
+ Spacer(Modifier.height(16.dp))
ActionRow {
PrimaryAction("Search") { openUrl(context, "https://www.google.com/search?q=${Uri.encode(result.text)}") }
- SecondaryAction("Copy Text") { copyToClipboard(context, "Text", result.text) }
- SecondaryAction("Translate") { openUrl(context, "https://translate.google.com/?text=${Uri.encode(result.text)}") }
+ SecondaryAction("Copy") { copyToClipboard(context, "Text", result.text) }
+ SecondaryAction("Trans") { openUrl(context, "https://translate.google.com/?text=${Uri.encode(result.text)}") }
}
}
}
@Composable
private fun ActionRow(content: @Composable () -> Unit) {
- Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.spacedBy(10.dp, Alignment.CenterHorizontally), verticalAlignment = Alignment.CenterVertically) { content() }
+ Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.spacedBy(8.dp, Alignment.CenterHorizontally), verticalAlignment = Alignment.CenterVertically) { content() }
}
@Composable
private fun PrimaryAction(label: String, onClick: () -> Unit) {
- Button(onClick = onClick, shape = RoundedCornerShape(14.dp), contentPadding = PaddingValues(horizontal = 20.dp, vertical = 10.dp)) { Text(label, style = MaterialTheme.typography.labelLarge) }
+ Button(onClick = onClick, shape = RoundedCornerShape(12.dp), contentPadding = PaddingValues(horizontal = 16.dp, vertical = 6.dp), modifier = Modifier.height(44.dp)) { Text(label, style = MaterialTheme.typography.labelMedium) }
}
@Composable
private fun SecondaryAction(label: String, onClick: () -> Unit) {
- FilledTonalButton(onClick = onClick, shape = RoundedCornerShape(14.dp), contentPadding = PaddingValues(horizontal = 20.dp, vertical = 10.dp)) { Text(label, style = MaterialTheme.typography.labelLarge) }
+ FilledTonalButton(onClick = onClick, shape = RoundedCornerShape(12.dp), contentPadding = PaddingValues(horizontal = 16.dp, vertical = 6.dp), modifier = Modifier.height(44.dp)) { Text(label, style = MaterialTheme.typography.labelMedium) }
}
diff --git a/build_errors_48.txt b/build_errors_48.txt
new file mode 100644
index 0000000..195a9e2
Binary files /dev/null and b/build_errors_48.txt differ
diff --git a/build_errors_48_utf8.txt b/build_errors_48_utf8.txt
new file mode 100644
index 0000000..237fe72
--- /dev/null
+++ b/build_errors_48_utf8.txt
@@ -0,0 +1,70 @@
+Starting a Gradle Daemon (subsequent builds will be faster)
+Daemon JVM discovery is an incubating feature.
+
+> Configure project :app
+WARNING: BuildType 'debug' is both debuggable and has 'isMinifyEnabled' set to true.
+All code optimizations and obfuscation are disabled for debuggable builds.
+
+> Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
+> Task :app:preBuild UP-TO-DATE
+> Task :app:preDebugBuild UP-TO-DATE
+> Task :app:checkDebugAarMetadata UP-TO-DATE
+> Task :app:processDebugNavigationResources UP-TO-DATE
+> Task :app:compileDebugNavigationResources UP-TO-DATE
+> Task :app:generateDebugResValues UP-TO-DATE
+> Task :app:mapDebugSourceSetPaths UP-TO-DATE
+> Task :app:generateDebugResources UP-TO-DATE
+> Task :app:mergeDebugResources UP-TO-DATE
+> Task :app:packageDebugResources UP-TO-DATE
+> Task :app:parseDebugLocalResources UP-TO-DATE
+> Task :app:createDebugCompatibleScreenManifests
+> Task :app:extractDeepLinksDebug UP-TO-DATE
+
+> Task :app:processDebugMainManifest
+C:\Users\ashin\AndroidStudioProjects\CircleToSearch\app\src\main\AndroidManifest.xml:43:9-41 Warning:
+ android:extractNativeLibs should not be specified in this source AndroidManifest.xml file. See https://d.android.com/guide/topics/manifest/application-element#extractNativeLibs for more information.
+The AGP Upgrade Assistant can remove the attribute from the AndroidManifest.xml file and update the build file accordingly. See https://d.android.com/studio/build/agp-upgrade-assistant for more information.
+
+> Task :app:processDebugManifest
+> Task :app:processDebugManifestForPackage
+> Task :app:processDebugResources
+> Task :app:compileDebugKotlin
+.\gradlew.bat : e: file:///C:/Users/ashin/Androi
+dStudioProjects/CircleToSearch/app/src/main/java
+/com/akslabs/circletosearch/ui/QrCodeResultSheet
+.kt:158:17 Unresolved reference
+'RoundedCornerSize'.
+At line:1 char:1
++ .\gradlew.bat :app:compileDebugKotlin
+--console=plain > build_errors_ ...
++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~
+ + CategoryInfo : NotSpecified: (e:
+ file:///C:/U...dedCornerSize'.:String) [],
+ RemoteException
+ + FullyQualifiedErrorId : NativeCommandErro
+ r
+
+
+> Task :app:compileDebugKotlin FAILED
+
+FAILURE: Build failed with an exception.
+
+* What went wrong:
+Execution failed for task
+':app:compileDebugKotlin'.
+> A failure occurred while executing org.jetbrai
+ns.kotlin.compilerRunner.GradleCompilerRunnerWit
+hWorkers$GradleKotlinCompilerWorkAction
+ > Compilation error. See log for more details
+
+* Try:
+> Run with --stacktrace option to get the stack
+trace.
+> Run with --info or --debug option to get more
+log output.
+> Run with --scan to get full insights.
+> Get more help at https://help.gradle.org.
+
+BUILD FAILED in 1m 44s
+16 actionable tasks: 6 executed, 10 up-to-date
diff --git a/build_errors_49.txt b/build_errors_49.txt
new file mode 100644
index 0000000..1aba183
Binary files /dev/null and b/build_errors_49.txt differ
diff --git a/build_errors_50.txt b/build_errors_50.txt
new file mode 100644
index 0000000..9ac9a60
Binary files /dev/null and b/build_errors_50.txt differ
diff --git a/build_errors_50_utf8.txt b/build_errors_50_utf8.txt
new file mode 100644
index 0000000..28d5764
--- /dev/null
+++ b/build_errors_50_utf8.txt
@@ -0,0 +1,71 @@
+Starting a Gradle Daemon (subsequent builds will be faster)
+Daemon JVM discovery is an incubating feature.
+
+> Configure project :app
+WARNING: BuildType 'debug' is both debuggable and has 'isMinifyEnabled' set to true.
+All code optimizations and obfuscation are disabled for debuggable builds.
+
+> Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
+> Task :app:preBuild UP-TO-DATE
+> Task :app:preDebugBuild UP-TO-DATE
+> Task :app:checkDebugAarMetadata UP-TO-DATE
+> Task :app:processDebugNavigationResources UP-TO-DATE
+> Task :app:compileDebugNavigationResources UP-TO-DATE
+> Task :app:generateDebugResValues UP-TO-DATE
+> Task :app:mapDebugSourceSetPaths UP-TO-DATE
+> Task :app:generateDebugResources UP-TO-DATE
+> Task :app:mergeDebugResources UP-TO-DATE
+> Task :app:packageDebugResources UP-TO-DATE
+> Task :app:parseDebugLocalResources UP-TO-DATE
+> Task :app:createDebugCompatibleScreenManifests
+> Task :app:extractDeepLinksDebug UP-TO-DATE
+
+> Task :app:processDebugMainManifest
+C:\Users\ashin\AndroidStudioProjects\CircleToSearch\app\src\main\AndroidManifest.xml:43:9-41 Warning:
+ android:extractNativeLibs should not be specified in this source AndroidManifest.xml file. See https://d.android.com/guide/topics/manifest/application-element#extractNativeLibs for more information.
+The AGP Upgrade Assistant can remove the attribute from the AndroidManifest.xml file and update the build file accordingly. See https://d.android.com/studio/build/agp-upgrade-assistant for more information.
+
+> Task :app:processDebugManifest
+> Task :app:processDebugManifestForPackage
+> Task :app:processDebugResources
+
+> Task :app:compileDebugKotlin
+.\gradlew.bat : e: file:///C:/Users/ashin/Androi
+dStudioProjects/CircleToSearch/app/src/main/java
+/com/akslabs/circletosearch/ui/CircleToSearchScr
+een.kt:1558:129 Unresolved reference
+'maxHeight'.
+At line:1 char:1
++ .\gradlew.bat :app:compileDebugKotlin
+--console=plain > build_errors_ ...
++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~
+ + CategoryInfo : NotSpecified: (e:
+ file:///C:/U...ce 'maxHeight'.:String) [],
+ RemoteException
+ + FullyQualifiedErrorId : NativeCommandErro
+ r
+
+
+> Task :app:compileDebugKotlin FAILED
+
+FAILURE: Build failed with an exception.
+
+* What went wrong:
+Execution failed for task
+':app:compileDebugKotlin'.
+> A failure occurred while executing org.jetbrai
+ns.kotlin.compilerRunner.GradleCompilerRunnerWit
+hWorkers$GradleKotlinCompilerWorkAction
+ > Compilation error. See log for more details
+
+* Try:
+> Run with --stacktrace option to get the stack
+trace.
+> Run with --info or --debug option to get more
+log output.
+> Run with --scan to get full insights.
+> Get more help at https://help.gradle.org.
+
+BUILD FAILED in 1m 16s
+16 actionable tasks: 6 executed, 10 up-to-date
diff --git a/build_errors_51.txt b/build_errors_51.txt
new file mode 100644
index 0000000..f19c175
Binary files /dev/null and b/build_errors_51.txt differ
diff --git a/builderors.md b/builderors.md
index 6df6ad4..8b13789 100644
--- a/builderors.md
+++ b/builderors.md
@@ -1,75 +1 @@
---------- beginning of main
-03-22 11:59:01.311 30753 30753 W main : type=1400 audit(0.0:128525): avc: denied { search } for name="app" dev="mmcblk0p61" ino=1343489 scontext=u:r:zygote:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 app=net.one97.paytm
-03-22 11:59:01.311 30753 30753 W main : type=1400 audit(0.0:128526): avc: denied { search } for name="app" dev="mmcblk0p61" ino=1343489 scontext=u:r:zygote:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 app=net.one97.paytm
-03-22 11:59:01.311 30753 30753 W main : type=1400 audit(0.0:128527): avc: denied { search } for name="app" dev="mmcblk0p61" ino=1343489 scontext=u:r:zygote:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 app=net.one97.paytm
-03-22 11:59:01.311 30753 30753 W main : type=1400 audit(0.0:128528): avc: denied { search } for name="app" dev="mmcblk0p61" ino=1343489 scontext=u:r:zygote:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 app=net.one97.paytm
-03-22 11:59:01.338 30753 30753 I .circletosearch: Late-enabling -Xcheck:jni
-03-22 11:59:01.456 30753 30753 I .circletosearch: Using CollectorTypeCC GC.
-03-22 11:59:01.581 30753 30753 D nativeloader: Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok
-03-22 11:59:01.751 30753 30753 W re-initialized>: type=1400 audit(0.0:128529): avc: granted { execute } for path="/data/data/com.akslabs.circletosearch/code_cache/startup_agents/6097f3dc-agent.so" dev="mmcblk0p61" ino=417800 scontext=u:r:untrusted_app:s0:c167,c259,c512,c768 tcontext=u:object_r:app_data_file:s0:c167,c259,c512,c768 tclass=file app=net.one97.paytm
-03-22 11:59:01.775 30753 30753 D nativeloader: Load /data/user/0/com.akslabs.circletosearch/code_cache/startup_agents/6097f3dc-agent.so using system ns (caller=<unknown>): ok
-03-22 11:59:01.778 30753 30753 V studio.deploy: Startup agent attached to VM
-03-22 11:59:01.780 30753 30753 V studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-6a1a1143.jar
-03-22 11:59:01.799 30753 30753 W .circletosearch: DexFile /data/data/com.akslabs.circletosearch/code_cache/.studio/instruments-6a1a1143.jar is in boot class path but is not in a known location
-03-22 11:59:01.813 30753 30753 V studio.deploy: Applying transforms with cached classes
-03-22 11:59:02.022 30753 30753 W .circletosearch: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
-03-22 11:59:02.022 30753 30753 W .circletosearch: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
-03-22 11:59:02.027 30753 30753 I studio.deploy: Registering DispatchJNI
-03-22 11:59:02.028 30753 30753 I studio.deploy: Found com/android/tools/deploy/interpreter/JNI
-03-22 11:59:02.120 30753 30753 W ziparchive: Unable to open '/data/data/com.akslabs.circletosearch/code_cache/.overlay/base.apk/classes.dm': No such file or directory
-03-22 11:59:02.304 30753 30753 W ziparchive: Unable to open '/data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/base.dm': No such file or directory
-03-22 11:59:02.304 30753 30753 W ziparchive: Unable to open '/data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/base.dm': No such file or directory
-03-22 11:59:02.435 30753 30753 D nativeloader: Configuring clns-7 for other apk /data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/base.apk. target_sdk_version=36, uses_libraries=, library_path=/data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/lib/arm64:/data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.akslabs.circletosearch
-03-22 11:59:02.462 30753 30753 I .circletosearch: AssetManager2(0x7318c2a4b8) locale list changing from [] to [en-IN]
-03-22 11:59:02.466 30753 30753 I .circletosearch: AssetManager2(0x7318c243d8) locale list changing from [] to [en-IN]
-03-22 11:59:02.492 30753 30753 V GraphicsEnvironment: Currently set values for:
-03-22 11:59:02.492 30753 30753 V GraphicsEnvironment: angle_gl_driver_selection_pkgs=[com.android.angle, com.linecorp.b612.android, com.campmobile.snow, com.google.android.apps.tachyon]
-03-22 11:59:02.492 30753 30753 V GraphicsEnvironment: angle_gl_driver_selection_values=[angle, native, native, native]
-03-22 11:59:02.492 30753 30753 V GraphicsEnvironment: com.akslabs.circletosearch is not listed in per-application setting
-03-22 11:59:02.493 30753 30753 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
-03-22 11:59:02.617 30753 30753 I .circletosearch: AssetManager2(0x7318c1d358) locale list changing from [] to [en-IN]
-03-22 11:59:02.740 30753 30753 D DesktopModeFlagsUtil: Toggle override initialized to: OVERRIDE_UNSET
-03-22 11:59:03.424 30753 30753 W .circletosearch: Accessing hidden method Landroid/os/SystemProperties;->addChangeCallback(Ljava/lang/Runnable;)V (unsupported, reflection, allowed)
-03-22 11:59:03.837 30753 30753 W HWUI : Image decoding logging dropped!
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: QUALCOMM build : 95db91f, Ifbc588260a
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Build Date : 09/24/20
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.32.02.01
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Local Branch : mybrancheafe5b6d-fb5b-f1b0-b904-5cb90179c3e0
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Remote Branch : quic/gfx-adreno.lnx.1.0.r114-rel
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Remote Branch : NONE
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Reconstruct Branch : NOTHING
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Build Config : S P 10.0.7 AArch64
-03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
-03-22 11:59:04.163 30753 30786 I AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000
-03-22 11:59:04.240 30753 30801 I Gralloc4: mapper 4.x is not supported
-03-22 11:59:04.241 30753 30801 W Gralloc3: mapper 3.x is not supported
-03-22 11:59:04.250 30753 30801 I Gralloc2: Adding additional valid usage bits: 0x8202000
-03-22 11:59:04.367 30753 30764 I HWUI : Davey! duration=1446ms; Flags=1, FrameTimelineVsyncId=59465236, IntendedVsync=75778795778634, Vsync=75778812445285, InputEventId=0, HandleInputStart=75778813026039, AnimationStart=75778813030310, PerformTraversalsStart=75778813032601, DrawStart=75780137228174, FrameDeadline=75778812445300, FrameInterval=75778812955466, FrameStartTime=16666651, SyncQueued=75780191665569, SyncStart=75780191862601, IssueDrawCommandsStart=75780193072340, SwapBuffers=75780234770153, FrameCompleted=75780242905361, DequeueBufferDuration=16666, QueueBufferDuration=309375, GpuCompleted=75780242905361, SwapBuffersCompleted=75780235698538, DisplayPresentTime=0, CommandSubmissionCompleted=75780234770153,
-03-22 11:59:04.452 30753 30753 I Choreographer: Skipped 81 frames! The application may be doing too much work on its main thread.
-03-22 11:59:04.473 30753 30766 I HWUI : Davey! duration=1361ms; Flags=0, FrameTimelineVsyncId=59465618, IntendedVsync=75778995781318, Vsync=75780345793819, InputEventId=0, HandleInputStart=75780347537809, AnimationStart=75780347541559, PerformTraversalsStart=75780347542757, DrawStart=75780348802705, FrameDeadline=75780262443937, FrameInterval=75780346471142, FrameStartTime=16666821, SyncQueued=75780349536611, SyncStart=75780349791819, IssueDrawCommandsStart=75780349898174, SwapBuffers=75780352163747, FrameCompleted=75780357048069, DequeueBufferDuration=16510, QueueBufferDuration=561250, GpuCompleted=75780357048069, SwapBuffersCompleted=75780354418434, DisplayPresentTime=0, CommandSubmissionCompleted=75780352163747,
-03-22 11:59:04.650 30753 30764 I HWUI : Davey! duration=1523ms; Flags=1, FrameTimelineVsyncId=59465618, IntendedVsync=75778995781318, Vsync=75780345793819, InputEventId=0, HandleInputStart=75780347537809, AnimationStart=75780347541559, PerformTraversalsStart=75780347542757, DrawStart=75780498748486, FrameDeadline=75779012447984, FrameInterval=75780346471142, FrameStartTime=16666821, SyncQueued=75780507257184, SyncStart=75780507416403, IssueDrawCommandsStart=75780507562601, SwapBuffers=75780517272809, FrameCompleted=75780519717757, DequeueBufferDuration=16146, QueueBufferDuration=392083, GpuCompleted=75780519717757, SwapBuffersCompleted=75780519044476, DisplayPresentTime=0, CommandSubmissionCompleted=75780517272809,
-03-22 11:59:04.731 30753 30753 D InsetsController: hide(ime(), fromIme=false)
-03-22 11:59:04.732 30753 30753 I ImeTracker: com.akslabs.circletosearch:9eb1d189: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
-03-22 11:59:07.661 30753 30811 D ProfileInstaller: Installing profile for com.akslabs.circletosearch
-03-22 11:59:09.632 30753 30753 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=androidx.navigationevent.OnBackInvokedInput$createOnBackAnimationCallback$1@baca4b6
-03-22 11:59:09.693 30753 30753 D InsetsController: hide(ime(), fromIme=false)
-03-22 11:59:09.693 30753 30753 I ImeTracker: com.akslabs.circletosearch:8c312b7c: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
-03-22 11:59:14.473 30753 30759 W .circletosearch: Cleared Reference was only reachable from finalizer (only reported once)
-03-22 11:59:14.482 30753 30759 I .circletosearch: Background concurrent copying GC freed 6467KB AllocSpace bytes, 5(100KB) LOS objects, 49% free, 5109KB/10219KB, paused 81us,21us total 115.589ms
-03-22 11:59:16.157 30753 30753 D VRI[MainActivity]: visibilityChanged oldVisibility=true newVisibility=false
-03-22 11:59:26.134 30753 30753 D CircleToSearch: performCapture called. hasWindowManager=true
-03-22 11:59:26.290 30753 30879 D CircleToSearchAccess: AccessibilityService launching OverlayActivity
-03-22 11:59:26.607 30753 30753 D CircleToSearch: OverlayActivity onCreate
-03-22 11:59:26.607 30753 30753 D CircleToSearch: Bitmap loaded from Repository. Size: 1080x2340
-03-22 11:59:27.383 30753 30764 I HWUI : Davey! duration=734ms; Flags=1, FrameTimelineVsyncId=59492836, IntendedVsync=75802512435439, Vsync=75802529101932, InputEventId=0, HandleInputStart=75802537466186, AnimationStart=75802537468582, PerformTraversalsStart=75802537469623, DrawStart=75803169531029, FrameDeadline=75802529102105, FrameInterval=75802537457905, FrameStartTime=16666493, SyncQueued=75803205949779, SyncStart=75803206087852, IssueDrawCommandsStart=75803206253634, SwapBuffers=75803236669936, FrameCompleted=75803247509154, DequeueBufferDuration=13386, QueueBufferDuration=277187, GpuCompleted=75803247509154, SwapBuffersCompleted=75803237696707, DisplayPresentTime=0, CommandSubmissionCompleted=75803236669936,
-03-22 11:59:27.421 30753 30753 I Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread.
-03-22 11:59:27.536 30753 30753 W HWUI : Image decoding logging dropped!
-03-22 11:59:27.576 30753 30753 W HWUI : Image decoding logging dropped!
-03-22 11:59:27.958 30753 30889 I HWUI : Davey! duration=1293ms; Flags=0, FrameTimelineVsyncId=59492894, IntendedVsync=75802545768207, Vsync=75803312426379, InputEventId=0, HandleInputStart=75803316575248, AnimationStart=75803316580040, PerformTraversalsStart=75803637078113, DrawStart=75803782574623, FrameDeadline=75803279094290, FrameInterval=75803315908842, FrameStartTime=16666482, SyncQueued=75803825303738, SyncStart=75803825398321, IssueDrawCommandsStart=75803825730248, SwapBuffers=75803828598738, FrameCompleted=75803839195300, DequeueBufferDuration=24688, QueueBufferDuration=435990, GpuCompleted=75803839195300, SwapBuffersCompleted=75803830271967, DisplayPresentTime=0, CommandSubmissionCompleted=75803828598738,
-03-22 11:59:28.126 30753 30753 D InsetsController: hide(ime(), fromIme=false)
-03-22 11:59:28.127 30753 30753 I ImeTracker: com.akslabs.circletosearch:bfb28632: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
-03-22 11:59:53.784 30753 30753 W .circletosearch: Accessing hidden method Landroid/view/ViewTreeObserver;->dispatchOnScrollChanged()V (unsupported, reflection, allowed)
-03-22 12:00:18.124 30753 30753 D VRI[OverlayActivity]: visibilityChanged oldVisibility=true newVisibility=false
-03-22 12:00:18.149 30753 30753 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=androidx.navigationevent.OnBackInvokedInput$createOnBackAnimationCallback$1@f9797ed
-03-22 12:00:18.320 30753 30753 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=android.app.Activity$$ExternalSyntheticLambda0@a436fa6
-03-22 12:00:18.326 30753 30753 D ViewRootImpl: Skipping stats log for color mode
+