titaniumenv: Use new xcodeenv simulate function in the example app

This commit is contained in:
Sander van der Burg 2014-10-15 17:28:52 +02:00
parent f58b563cb6
commit 0100e79d7a
2 changed files with 6 additions and 15 deletions

View File

@ -66,18 +66,11 @@ rec {
target = "iphone";
};
simulate_kitchensink_iphone = import ./simulate-kitchensink {
simulate_kitchensink = import ./simulate-kitchensink {
inherit (pkgs) stdenv;
xcodeenv = pkgs.xcodeenv.override { version = xcodeVersion; inherit xcodeBaseDir; };
kitchensink = kitchensink_ios_development;
device = "iPhone";
};
simulate_kitchensink_ipad = import ./simulate-kitchensink {
inherit (pkgs) stdenv;
xcodeenv = pkgs.xcodeenv.override { version = xcodeVersion; inherit xcodeBaseDir; };
kitchensink = kitchensink_ios_development;
device = "iPad";
bundleId = if rename then newBundleId else "com.appcelerator.kitchensink";
};
} else {}) // (if rename then
let

View File

@ -1,9 +1,7 @@
{stdenv, xcodeenv, kitchensink, device}:
{stdenv, xcodeenv, kitchensink, bundleId}:
xcodeenv.simulateApp {
name = "simulate-${kitchensink.name}-${stdenv.lib.replaceChars [" " "(" ")"] ["_" "" ""] device}";
appName = "KitchenSink";
app = kitchensink;
inherit device;
baseDir = "build/iphone/build/Debug-iphonesimulator";
name = "simulate-${kitchensink.name}";
inherit bundleId;
app = "${kitchensink}/build/iphone/build/Debug-iphonesimulator";
}