Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Remove unused helper scripts

Manav Rathie856dd7a0bbe
diff --git a/mobile/apps/photos/AGENTS.md b/mobile/apps/photos/AGENTS.md
index 3ec00b39bd..5bd17e9b5c 100644
--- a/mobile/apps/photos/AGENTS.md
+++ b/mobile/apps/photos/AGENTS.md
@@ -10,10 +10,10 @@
- Shared Flutter packages sit under `mobile/packages/`; Photos-specific Flutter plugins live in `mobile/apps/photos/plugins/`.
## Project Structure & Module Organization
-`lib/` houses the Flutter client (`core/`, `services/`, `ui/`, `db/`). Tests live in `test/` (unit & widget) and `integration_test/`. Platform shells are `android/` and `ios/`; Rust crates and bridge helpers sit in `rust/` and `rust_builder/`. Assets, fonts, and localization configs are in `assets/`, `fonts/`, `l10n.yaml`, with generated code in `lib/generated/`. Automation scripts include `scripts/`, `run.sh`, `build-apk.sh`, and release tooling under `fastlane/`.
+`lib/` houses the Flutter client (`core/`, `services/`, `ui/`, `db/`). Tests live in `test/` (unit & widget) and `integration_test/`. Platform shells are `android/` and `ios/`; Rust crates and bridge helpers sit in `rust/` and `rust_builder/`. Assets, fonts, and localization configs are in `assets/`, `fonts/`, `l10n.yaml`, with generated code in `lib/generated/`. Automation scripts include `scripts/` and release tooling under `fastlane/`.
## Build, Test & Development Commands
-Run `flutter pub get` after dependency edits. Launch the dev flavor via `./run.sh` (reads `.env`) or use `flutter run -t lib/main.dart --flavor independent`. Regenerate Rust bindings with `flutter_rust_bridge_codegen generate` before builds. Android releases rely on `flutter build apk --release --flavor independent`; for iOS run `cd ios && pod install` then `flutter build ios`. Use `./build-apk.sh` when Gradle artifacts from `thirdparty/transistor-background-fetch` need refreshing.
+Run `flutter pub get` after dependency edits. Launch the app with `flutter run -t lib/main.dart --flavor independent`. Regenerate Rust bindings with `flutter_rust_bridge_codegen generate` before builds. Android releases rely on `flutter build apk --release --flavor independent`; for iOS run `cd ios && pod install` then `flutter build ios`.
## Coding Style & Naming Conventions
Use 2-space indentation and format with `dart format .` (trailing commas preserved). `analysis_options.yaml` enforces rules such as `prefer_const_constructors`, `require_trailing_commas`, and `always_use_package_imports`. Keep files `snake_case.dart`, classes `PascalCase`, private members `_camelCase`. Avoid `print`; rely on the log utilities under `lib/core/`.
diff --git a/mobile/apps/photos/CLAUDE.md b/mobile/apps/photos/CLAUDE.md
index caf3f71a61..f2f4cab74a 100644
--- a/mobile/apps/photos/CLAUDE.md
+++ b/mobile/apps/photos/CLAUDE.md
@@ -79,10 +79,7 @@ melos clean:photos
### Direct Flutter Commands
```bash
-# Development run with environment variables
-./run.sh # Uses .env file with --flavor dev
-
-# Development run without env file
+# Development run
flutter run -t lib/main.dart --flavor independent
# Build release APK
diff --git a/mobile/apps/photos/build-apk.sh b/mobile/apps/photos/build-apk.sh
deleted file mode 100755
index d679adcdae..0000000000
--- a/mobile/apps/photos/build-apk.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-cd thirdparty/transistor-background-fetch/android
-gradle :tsbackgroundfetch:publishRelease
-cd ../../../
-flutter config --no-analytics
-flutter pub get --enforce-lockfile
-flutter packages pub run flutter_launcher_icons:main
-flutter build apk
diff --git a/mobile/apps/photos/run.sh b/mobile/apps/photos/run.sh
deleted file mode 100755
index 078eaa019c..0000000000
--- a/mobile/apps/photos/run.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-FLUTTER_RUN="flutter run --flavor dev "
-
-SUPPLIED_ENV_FILE=".env"
-while IFS= read -r line
-do
- FLUTTER_RUN="$FLUTTER_RUN --dart-define $line"
-
-done < "$SUPPLIED_ENV_FILE"
-
-echo "Running: $FLUTTER_RUN"
-$FLUTTER_RUN