# Build Scripts
This directory contains platform-specific build and deployment scripts for ProofMode-Rust.
## Directory Structure
```
scripts/
├── android/ # Android-specific build scripts
│ ├── build-aar.sh # Original AAR build script
│ ├── build_android_aar.sh # Alternative AAR build script
│ ├── build_android_aar_java.sh # Java-based AAR build script (current)
│ ├── create_android_aar.sh # AAR creation script
│ ├── setup-studio-project.sh # Android Studio project setup
│ └── test-build.sh # Android build testing
├── ios/ # iOS-specific build scripts
│ ├── build-framework.sh # iOS XCFramework build script
│ └── setup-xcode-project.sh # Xcode project setup
├── fix-ios-xcode.sh # iOS Xcode configuration fixes
├── setup-android.sh # General Android environment setup
├── setup-ios.sh # General iOS environment setup
└── test-android-studio.sh # Android Studio testing
```
## Platform Scripts
### Android
- **`android/build_android_aar_java.sh`** - Primary Android AAR build script (Java-based)
- **`android/build-aar.sh`** - Original AAR build script
- **`android/setup-studio-project.sh`** - Sets up Android Studio project structure
- **`android/test-build.sh`** - Tests Android build process
### iOS
- **`ios/build-framework.sh`** - Builds iOS XCFramework for distribution
- **`ios/setup-xcode-project.sh`** - Sets up Xcode project structure
### General
- **`setup-android.sh`** - Android development environment setup
- **`setup-ios.sh`** - iOS development environment setup
- **`fix-ios-xcode.sh`** - Fixes common iOS/Xcode configuration issues
- **`test-android-studio.sh`** - Integration testing for Android Studio
## Usage
All scripts should be run from the project root directory:
```bash
# Build Android AAR
./scripts/android/build_android_aar_java.sh
# Build iOS XCFramework
./scripts/ios/build-framework.sh
# Setup development environment
./scripts/setup-android.sh
./scripts/setup-ios.sh
```
## Requirements
See the main [README.md](../README.md) for prerequisite software and setup requirements for each platform.