Compare commits

..

3 Commits

Author SHA1 Message Date
Neeraj Gupta
b5e681f53e Add missing license for podspec 2025-09-09 09:34:13 +05:30
Neeraj Gupta
2fd1e58b19 Change path 2025-09-08 17:20:25 +05:30
Neeraj Gupta
a5965bcaec [mob][ios] Add xcode cloud build scripts 2025-09-08 16:32:36 +05:30
16 changed files with 93 additions and 41 deletions

View File

@@ -29,8 +29,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
@@ -40,7 +38,7 @@ jobs:
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install
- name: Build ${{ inputs.app }}
run: yarn build:${{ inputs.app }}

View File

@@ -29,8 +29,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
@@ -40,7 +38,7 @@ jobs:
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install
- name: Build ${{ inputs.app }}
run: yarn build:${{ inputs.app }}

View File

@@ -37,7 +37,6 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ steps.select-branch.outputs.branch }}
persist-credentials: false
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
@@ -47,7 +46,7 @@ jobs:
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install
- name: Build photos
run: yarn build:photos

View File

@@ -33,8 +33,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
@@ -44,15 +42,7 @@ jobs:
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Audit dependencies
run: |
yarn audit --level critical || exit_code=$?
if [[ $exit_code -ge 16 ]]; then
echo "::error::Yarn audit found critical issues"
exit 1
fi
run: yarn install
- name: Build photos
run: yarn build:photos

View File

@@ -24,8 +24,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
@@ -34,14 +32,6 @@ jobs:
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- run: yarn install --frozen-lockfile
- run: yarn install
- run: yarn lint
- name: Audit dependencies
run: |
yarn audit --level critical || exit_code=$?
if [[ $exit_code -ge 16 ]]; then
echo "::error::Yarn audit found critical issues"
exit 1
fi

View File

@@ -89,7 +89,7 @@ cast.ente.yourdomain.tld {
Reload Caddy for changes to take effect.
```shell
sudo systemctl reload caddy
sudo systemctl caddy reload
```
## Step 4: Verify the setup

View File

@@ -1 +0,0 @@
CLAUDE.md

View File

@@ -1,6 +1,6 @@
# CLAUDE.md
This file provides guidance to Claude, Codex, and any other agent when working with code in this repository.
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Project Philosophy
@@ -205,4 +205,4 @@ lib/
- Always follow existing code conventions and patterns in neighboring files
# Individual Preferences
- @~/.claude/ente-photos-instructions.md
- @~/.claude/my-project-instructions.md

View File

@@ -0,0 +1,45 @@
#!/bin/sh
# ci_post_clone.sh
# This script runs after the repository is cloned
set -e
echo "🚀 Starting post-clone setup..."
# Navigate to the Flutter project root
cd ../../ # Adjust path based on your structure
# Install Flutter
echo "📦 Installing Flutter..."
FLUTTER_VERSION="3.32.8"
git clone https://github.com/flutter/flutter.git --branch $FLUTTER_VERSION --depth 1 $HOME/flutter
export PATH="$PATH:$HOME/flutter/bin"
# Verify Flutter installation
flutter --version
flutter doctor -v
# Install Rust (required for Flutter Rust Bridge)
echo "🦀 Installing Rust..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
export PATH="$HOME/.cargo/bin:$PATH"
# Install Flutter Rust Bridge
echo "🌉 Installing Flutter Rust Bridge..."
cargo install flutter_rust_bridge_codegen
# Generate Rust bindings
echo "⚙️ Generating Rust bindings..."
flutter_rust_bridge_codegen generate
# Get Flutter dependencies
echo "📚 Getting Flutter dependencies..."
flutter pub get
# Generate iOS podfile if needed
cd ios
pod install --repo-update
echo "✅ Post-clone setup completed!"

View File

@@ -0,0 +1,25 @@
#!/bin/sh
# ci_pre_xcodebuild.sh
# This script runs before xcodebuild
set -e
echo "🔧 Pre-build setup starting..."
# Set up environment
export PATH="$PATH:$HOME/flutter/bin"
export PATH="$HOME/.cargo/bin:$PATH"
source $HOME/.cargo/env || true
# Navigate to Flutter project root
cd ../../../
# Build Flutter iOS framework
echo "🏗️ Building Flutter framework..."
flutter build ios-framework --no-debug --no-profile
# Run any code generation if needed
flutter pub run build_runner build --delete-conflicting-outputs || true
echo "✅ Pre-build setup completed!"

View File

@@ -0,0 +1,10 @@
{
"configurations": [
{
"name": "Release Build",
"scheme": "Runner",
"archive_configuration": "Release",
"destination": "generic/platform=iOS"
}
]
}

View File

@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
A new Flutter FFI plugin project.
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.license = { :type => 'AGPL-3.0' }
s.author = { 'Your Company' => 'email@example.com' }
# This will ensure the source files in Classes/ are included in the native

View File

@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
A new Flutter FFI plugin project.
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.license = { :type => 'AGPL-3.0' }
s.author = { 'Your Company' => 'email@example.com' }
# This will ensure the source files in Classes/ are included in the native

View File

@@ -31,7 +31,7 @@ import (
)
var passwordWhiteListedURLs = []string{"/public-collection/info", "/public-collection/report-abuse", "/public-collection/verify-password"}
var whitelistedCollectionShareIDs = []int64{111, 12172}
var whitelistedCollectionShareIDs = []int64{111}
// CollectionLinkMiddleware intercepts and authenticates incoming requests
type CollectionLinkMiddleware struct {
@@ -191,9 +191,7 @@ func (m *CollectionLinkMiddleware) validatePassword(c *gin.Context, reqPath stri
func (m *CollectionLinkMiddleware) validateOrigin(c *gin.Context, ownerID int64) error {
origin := c.Request.Header.Get("Origin")
if origin == "" ||
origin == viper.GetString("apps.public-albums") ||
strings.HasSuffix(strings.ToLower(origin), "http://localhost:") {
if origin == "" || origin == viper.GetString("apps.public-albums") {
return nil
}
reqId := requestid.Get(c)

View File

@@ -486,7 +486,7 @@
"watch_folders": "Watch folders",
"watched_folders": "Watched folders",
"no_folders_added": "No folders added yet",
"watch_folders_hint_1": "The folders you add here are monitored to automatically",
"watch_folders_hint_1": "The folders you add here will monitored to automatically",
"watch_folders_hint_2": "Upload new files to Ente",
"watch_folders_hint_3": "Remove deleted files from Ente",
"add_folder": "Add folder",