aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--APG/android-libs/ActionBarSherlock/build.xml2
-rw-r--r--APG/build.xml13
-rw-r--r--APG/project.properties2
3 files changed, 13 insertions, 4 deletions
diff --git a/APG/android-libs/ActionBarSherlock/build.xml b/APG/android-libs/ActionBarSherlock/build.xml
index 56bc65293..a10a91491 100644
--- a/APG/android-libs/ActionBarSherlock/build.xml
+++ b/APG/android-libs/ActionBarSherlock/build.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="ActionBarSherlock" default="help">
+<project name="MainActivity" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
diff --git a/APG/build.xml b/APG/build.xml
index eb9b68df7..a10a91491 100644
--- a/APG/build.xml
+++ b/APG/build.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="APG" default="help">
+<project name="MainActivity" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
@@ -28,6 +28,15 @@
-->
<property file="ant.properties" />
+ <!-- if sdk.dir was not set from one of the property file, then
+ get it from the ANDROID_HOME env var.
+ This must be done before we load project.properties since
+ the proguard config can use sdk.dir -->
+ <property environment="env" />
+ <condition property="sdk.dir" value="${env.ANDROID_HOME}">
+ <isset property="env.ANDROID_HOME" />
+ </condition>
+
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
@@ -41,7 +50,7 @@
<!-- quick check on sdk.dir -->
<fail
- message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
+ message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>
diff --git a/APG/project.properties b/APG/project.properties
index d39cb7982..63019788e 100644
--- a/APG/project.properties
+++ b/APG/project.properties
@@ -9,4 +9,4 @@
# Project target.
target=android-15
-android.library.reference.1=../../CryptoCall-UI/CryptoCall-UI/android-libs/ActionBarSherlock
+android.library.reference.1=android-libs/ActionBarSherlock