Skip to content

Commit

Permalink
titaniumsdk: fix to make it work with new android SDK and NPM package…
Browse files Browse the repository at this point in the history
…s + add titaniumsdk version 5.2
  • Loading branch information
svanderburg committed Sep 1, 2016
1 parent 29a5301 commit 2166652
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 2,729 deletions.
9 changes: 4 additions & 5 deletions pkgs/development/mobile/titaniumenv/build-app.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{stdenv, androidsdk, titaniumsdk, titanium, xcodewrapper, jdk, python, which, xcodeBaseDir}:
{stdenv, androidsdk, titaniumsdk, titanium, alloy, xcodewrapper, jdk, python, nodejs, which, xcodeBaseDir}:
{ name, src, target, androidPlatformVersions ? [ "23" ], androidAbiVersions ? [ "armeabi" "armeabi-v7a" ], tiVersion ? null
, release ? false, androidKeyStore ? null, androidKeyAlias ? null, androidKeyStorePassword ? null
, iosMobileProvisioningProfile ? null, iosCertificateName ? null, iosCertificate ? null, iosCertificatePassword ? null, iosVersion ? "9.2"
Expand Down Expand Up @@ -47,7 +47,7 @@ stdenv.mkDerivation {
name = stdenv.lib.replaceChars [" "] [""] name;
inherit src;

buildInputs = [ titanium jdk python which ] ++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") xcodewrapper;
buildInputs = [ nodejs titanium alloy jdk python which ] ++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") xcodewrapper;

buildPhase = ''
export HOME=$TMPDIR
Expand Down Expand Up @@ -78,10 +78,9 @@ stdenv.mkDerivation {
javac -version
''}
titanium config --config-file $TMPDIR/config.json --no-colors android.sdk ${androidsdkComposition}/libexec/android-sdk-*
titanium config --config-file $TMPDIR/config.json --no-colors android.buildTools.selectedVersion 23.0.1
titanium config --config-file $TMPDIR/config.json --no-colors android.sdk ${androidsdkComposition}/libexec
export PATH=$(echo ${androidsdkComposition}/libexec/android-sdk-*/tools):$(echo ${androidsdkComposition}/libexec/android-sdk-*/build-tools/android-*):$PATH
export PATH=$(echo ${androidsdkComposition}/libexec/tools):$(echo ${androidsdkComposition}/libexec/build-tools/android-*):$PATH
${if release then
''titanium build --config-file $TMPDIR/config.json --no-colors --force --platform android --target dist-playstore --keystore ${androidKeyStore} --alias ${androidKeyAlias} --store-password ${androidKeyStorePassword} --output-dir $out''
Expand Down
3 changes: 0 additions & 3 deletions pkgs/development/mobile/titaniumenv/cli/cli.json

This file was deleted.

15 changes: 0 additions & 15 deletions pkgs/development/mobile/titaniumenv/cli/default.nix

This file was deleted.

309 changes: 0 additions & 309 deletions pkgs/development/mobile/titaniumenv/cli/node-env.nix

This file was deleted.

Loading

0 comments on commit 2166652

Please sign in to comment.