Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5e681f53e | ||
|
|
2fd1e58b19 | ||
|
|
a5965bcaec |
45
mobile/apps/photos/ios/ci_scripts/ci_post_clone.sh
Executable file
45
mobile/apps/photos/ios/ci_scripts/ci_post_clone.sh
Executable 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!"
|
||||
0
mobile/apps/photos/ios/ci_scripts/ci_post_xcodebuild.sh
Executable file
0
mobile/apps/photos/ios/ci_scripts/ci_post_xcodebuild.sh
Executable file
25
mobile/apps/photos/ios/ci_scripts/ci_pre_xcodebuild.sh
Executable file
25
mobile/apps/photos/ios/ci_scripts/ci_pre_xcodebuild.sh
Executable 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!"
|
||||
10
mobile/apps/photos/ios/xcode-cloud.json
Normal file
10
mobile/apps/photos/ios/xcode-cloud.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Release Build",
|
||||
"scheme": "Runner",
|
||||
"archive_configuration": "Release",
|
||||
"destination": "generic/platform=iOS"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user