Skip to content

Build instructions

ShiftHackZ edited this page Aug 14, 2024 · 6 revisions

Run Unit tests

Instructions

  1. Clone project (if not already)
git clone https://github.com/ShiftHackZ/Stable-Diffusion-Android.git 
  1. Navigate to cloned directory
cd Stable-Diffusion-Android 
  1. Run Unit Test locally
./gradlew clean testDebugUnitTest

Screenshots

Example of successfully passed Unit Tests console output:

swappy-20240814_195236

SDAI FOSS Release build

Requirements:

  • Unix compatible OS
  • Open JDK 17

Instructions (for Arch Linux)

  1. Install Open JDK 17.
sudo pacman -S jdk17-openjdk
  1. Clone project (if not already)
git clone https://github.com/ShiftHackZ/Stable-Diffusion-Android.git 
  1. Navigate to cloned directory
cd Stable-Diffusion-Android 
  1. Build
./gradlew clean assembleFossRelease
  1. Take the output apk, it will be located at: ./Stable-Diffusion-Android/app/build/outputs/apk/foss/release/app-foss-release.apk