#lang scheme/base
(require scheme/contract
(prefix-in local: "local-android-packager.ss")
(prefix-in remote: "server-side-packager/client-side-packager.ss")
"../config.ss"
"../program-resources.ss")
(define (local-android-ready?)
(and (file-exists? (current-ant-bin-path))
(directory-exists? (current-android-sdk-path))))
(define (build-android-package program-name program/resources)
(cond
[(local-android-ready?)
(local:build-android-package program-name program/resources)]
[else
(remote:build-android-package program-name program/resources)]))
(provide/contract
[build-android-package (string? program/resources? . -> . bytes?)])