creek
The AI Image Editor of 2030git clone https://github.com/maydayv7/creek
commit b8875c159450f4e3e6a5c7752616c93af2895e7f parent d43ee485c9706647e24f33e05bf579217e08d3cc Author: Nilotpal Gupta <nilotpalgupta0701@gmail.com> Date: Tue, 25 Nov 2025 16:12:43 +0530 enable cross playform in build.gradle.kta, ps1 windows file for venv creation, tiagebot.toml for future pr work
Diffstat:
| M | android/app/build.gradle.kts | | | 15 | ++++++++++++++- |
| M | lib/services/image_analyzer_service.dart | | | 5 | +++-- |
| M | lib/ui/pages/board_detail_page.dart | | | 2 | +- |
| M | lib/ui/pages/image_analysis_page.dart | | | 2 | +- |
| M | pubspec.lock | | | 34 | +++++++++++++++++----------------- |
| A | setup_python_env.ps1 | | | 46 | ++++++++++++++++++++++++++++++++++++++++++++++ |
| M | setup_python_env.sh | | | 1 | - |
| A | triagebot.toml | | | 125 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
8 files changed, 207 insertions(+), 23 deletions(-)
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts @@ -60,7 +60,20 @@ android { chaquopy { defaultConfig { version = "3.8" - buildPython(file("../../python_env/bin/python").absolutePath) + + // Detect OS + val os = System.getProperty("os.name").lowercase() + val venvPath = file("../../python_env") + + // Choose correct python path + val pythonExe = if (os.contains("win")) { + File(venvPath, "Scripts/python.exe").absolutePath + } else { + File(venvPath, "bin/python").absolutePath + } + + buildPython(pythonExe) + pip { install("pillow") install("numpy") diff --git a/lib/services/image_analyzer_service.dart b/lib/services/image_analyzer_service.dart @@ -1,3 +1,4 @@ +import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'dart:convert'; @@ -18,10 +19,10 @@ class ImageAnalyzerService { } return null; } on PlatformException catch (e) { - print("Error analyzing image: ${e.message}"); + debugPrint("Error analyzing image: ${e.message}"); return {'success': false, 'error': e.message ?? 'Unknown error occurred'}; } catch (e) { - print("Unexpected error: $e"); + debugPrint("Unexpected error: $e"); return {'success': false, 'error': e.toString()}; } } diff --git a/lib/ui/pages/board_detail_page.dart b/lib/ui/pages/board_detail_page.dart @@ -293,7 +293,7 @@ class _BoardDetailPageState extends State<BoardDetailPage> { child: Container( padding: const EdgeInsets.all(6), decoration: BoxDecoration( - color: Colors.green.withOpacity(0.8), + color: Colors.green.withValues(alpha: 0.8), shape: BoxShape.circle, ), child: const Icon( diff --git a/lib/ui/pages/image_analysis_page.dart b/lib/ui/pages/image_analysis_page.dart @@ -280,7 +280,7 @@ class _ImageAnalysisPageState extends State<ImageAnalysisPage> { ), ), Text( - (score * 100).toStringAsFixed(1) + '%', + '${(score * 100).toStringAsFixed(1)}%', style: TextStyle( fontSize: 16, fontWeight: FontWeight.bold, diff --git a/pubspec.lock b/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: async - sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63 url: "https://pub.dev" source: hosted - version: "2.13.0" + version: "2.12.0" boolean_selector: dependency: transitive description: @@ -77,10 +77,10 @@ packages: dependency: transitive description: name: fake_async - sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc" url: "https://pub.dev" source: hosted - version: "1.3.3" + version: "1.3.2" ffi: dependency: transitive description: @@ -252,26 +252,26 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec url: "https://pub.dev" source: hosted - version: "11.0.2" + version: "10.0.8" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 url: "https://pub.dev" source: hosted - version: "3.0.10" + version: "3.0.9" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.1" lints: dependency: transitive description: @@ -489,10 +489,10 @@ packages: dependency: transitive description: name: test_api - sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd url: "https://pub.dev" source: hosted - version: "0.7.6" + version: "0.7.4" typed_data: dependency: transitive description: @@ -513,18 +513,18 @@ packages: dependency: transitive description: name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.1.4" vm_service: dependency: transitive description: name: vm_service - sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 + sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14" url: "https://pub.dev" source: hosted - version: "15.0.0" + version: "14.3.1" web: dependency: transitive description: @@ -542,5 +542,5 @@ packages: source: hosted version: "1.1.0" sdks: - dart: ">=3.8.0-0 <4.0.0" + dart: ">=3.7.2 <4.0.0" flutter: ">=3.29.0" diff --git a/setup_python_env.ps1 b/setup_python_env.ps1 @@ -0,0 +1,46 @@ +$ErrorActionPreference = "Stop" + +$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path +$VenvDir = Join-Path $ScriptDir "python_env" + +Write-Host "Setting up Python virtual environment..." + +# Detect Python 3.11 using Python launcher +$PythonCmd = $null + +try { + $v = & py -3.11 --version 2>$null + if ($LASTEXITCODE -eq 0 -and $v -like "Python 3.11*") { + $PythonCmd = @("py", "-3.11") + } +} +catch {} + +if (-not $PythonCmd) { + Write-Host "ERROR: Python 3.11 is required but not found" -ForegroundColor Red + exit 1 +} + +# Print Python version +$ver = & $PythonCmd[0] $PythonCmd[1] --version +Write-Host ("Using Python: " + $ver) + +# Create venv +if (-not (Test-Path $VenvDir)) { + Write-Host ("Creating virtual environment at " + $VenvDir + "...") + & $PythonCmd[0] $PythonCmd[1] -m venv $VenvDir + Write-Host "Virtual environment created successfully" +} else { + Write-Host ("Virtual environment already exists at " + $VenvDir) +} + +# Validate +$VenvPython = Join-Path $VenvDir "Scripts\python.exe" + +if (Test-Path $VenvPython) { + $v = & $VenvPython --version + Write-Host ("Virtual environment Python version: " + $v) +} else { + Write-Host "ERROR: Failed to create virtual environment" -ForegroundColor Red + exit 1 +} diff --git a/setup_python_env.sh b/setup_python_env.sh @@ -55,4 +55,3 @@ else echo "Error: Failed to create virtual environment" exit 1 fi - diff --git a/triagebot.toml b/triagebot.toml @@ -0,0 +1,125 @@ +############################################### +# TRIAGEBOT CONFIG FOR adobe +############################################### + +# ───────────────────────────────────────────── +# RELABEL +# ───────────────────────────────────────────── +[relabel] +allow-unauthenticated = [ + "bug", + "invalid", + "question", + "enhancement", + "documentation", +] + +# ───────────────────────────────────────────── +# ASSIGN / CLAIM +# ───────────────────────────────────────────── +[assign] +allow-unauthenticated = true +auto_assign_on_mention = true +warn_on_unused_assign = true +assignable = [ + "nilotpal-n7", + "aditya-samal" +] + +# ───────────────────────────────────────────── +# PING GROUPS +# ───────────────────────────────────────────── +[ping] +allowed_users = ["nilotpal-n7", "aditya-samal"] + +[ping.flutter] +aliases = ["flutter-team"] +user_list = ["nilotpal-n7", "aditya-samal"] +message = """\ +Flutter: please review this issue/PR. +""" + +[ping.python] +aliases = ["python-team"] +user_list = ["nilotpal-n7", "aditya-samal"] +message = """\ +Python/WASM team ping. +""" + +[ping.android] +aliases = ["android-team"] +user_list = ["nilotpal-n7", "aditya-samal"] +message = """\ +Android integration team ping. +""" + +# ───────────────────────────────────────────── +# MAJOR CHANGE PROCESS +# ───────────────────────────────────────────── +[major-change] +enabling_label = "major-change" +meeting_label = "to-announce" +second_label = "final-comment-period" +concerns_label = "has-concerns" +accept_label = "major-change-accepted" +waiting_period = 1 +auto_closing = true + +zulip_stream = 1 +zulip_ping = "team" + +[major-change.tracking-issue-template] +repository = "adobe" +title = "Tracking issue for MCP#${mcp_number}" +labels = ["major-change", "tracking"] +body = """ +Tracking issue for MCP ${mcp_issue}: ${mcp_title} + +Created by ${mcp_author} +""" + +# ───────────────────────────────────────────── +# CONCERN SYSTEM +# ───────────────────────────────────────────── +[concern] +labels = ["has-concerns"] + +# ───────────────────────────────────────────── +# NOTE SYSTEM +# ───────────────────────────────────────────── +[note] + +# ───────────────────────────────────────────── +# REVIEW CHANGES SINCE +# ───────────────────────────────────────────── +[review-changes-since] + +# ───────────────────────────────────────────── +# AUTO LABEL +# ───────────────────────────────────────────── +[autolabel."lib/**"] +labels = ["flutter"] + +[autolabel."android/**"] +labels = ["android"] + +[autolabel."python_env/**"] +labels = ["python"] + +[autolabel."build/**"] +labels = ["ci"] + +# ───────────────────────────────────────────── +# ZULIP NOTIFY ON LABELS +# ───────────────────────────────────────────── +[notify-zulip.labels.flutter] +zulip_stream = 1 +topic = "flutter" + +[notify-zulip.labels.python] +zulip_stream = 1 +topic = "python" + +[notify-zulip.labels.ci] +zulip_stream = 1 +topic = "ci"