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
6 changed files with 82 additions and 2 deletions

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