{ "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/main/packages/devbox.schema.json", "packages": [ "flutter@3.41.9-sdk-links", "nixpkgs#android-tools", "nixpkgs#openjdk17", "path:./android/nix-android-sdk#android-sdk", "nixpkgs#clang", "nixpkgs#cmake", "nixpkgs#ninja", "nixpkgs#pkg-config", "nixpkgs#gtk3", "nixpkgs#libsysprof-capture", "nixpkgs#rustup", "nixpkgs#cargo-ndk" ], "shell": { "init_hook": [ "flutter config --jdk-dir \"$(dirname \"$(dirname \"$(command -v java)\")\")\" > /dev/null", "flutter --version" ], "scripts": { "analyze": "flutter analyze", "test": "flutter test", "run-linux": "flutter run -d linux", "build-linux": "flutter build linux", "link-android-tools": "if [ -n \"$ANDROID_HOME\" ] && [ ! -d \"$ANDROID_HOME/cmdline-tools/latest\" ] && [ -d \"$ANDROID_HOME/cmdline-tools/8.0\" ]; then ln -s \"$ANDROID_HOME/cmdline-tools/8.0\" \"$ANDROID_HOME/cmdline-tools/latest\"; fi", "build-native": "cd native && cargo build --release", "build-native-android": "rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android && cd native && cargo ndk -t arm64-v8a -t armeabi-v7a -t x86_64 -o ../android/app/src/main/jniLibs build --release", "test-native": "cd native && cargo test --release && cargo test --release -- --ignored", "activate-patrol": "dart pub global activate patrol_cli", "test-integration": "export PATH=\"$HOME/.pub-cache/bin:$PATH\" && patrol test --dart-define=SMOL_TEST_HOST=$(hostname -I | tr ' ' '\\n' | grep -E '^(192\\.168|10\\.|172\\.)' | head -1)" } }, "env": { "ANDROID_SDK_ROOT": "$DEVBOX_PACKAGES_DIR/share/android-sdk", "ANDROID_HOME": "$DEVBOX_PACKAGES_DIR/share/android-sdk" } }