Browse Source

Maven now uses user-defined properties for some version numbers in the maven configuration.

alexander.brakowski 10 years ago
parent
commit
f1651fe5b2

+ 33 - 2
pom.xml

@@ -1,3 +1,34 @@
+<!--
+ IMPORTANT
+ ==============================================
+ This project maven configuration depends on configurations defined in user profile files.
+ Please, if you still do not have created the maven profile file, create it like this:
+
+
+ - %USER_HOME%/.m2/settings.xml:
+ ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
+    <settings>
+        <profiles>
+            <profile>
+                <id>hostageUserConfig</id>
+                <properties>
+                    <android.compatibility.version>19</android.compatibility.version>
+                    <android.version>4.4_r1</android.version>
+                </properties>
+            </profile>
+        </profiles>
+
+        <activeProfiles>
+            <activeProfile>hostageUserConfig</activeProfile>
+        </activeProfiles>
+    </settings>
+
+ ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
+ The important part here is to set the right version numbers in the defined properties. These version
+ numbers are system-dependant and can't be downloaded from the maven repository, since they do not
+ exist there.
+ ==============================================
+-->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 	<modelVersion>4.0.0</modelVersion>
@@ -10,13 +41,13 @@
 		<dependency>
 			<groupId>android</groupId>
 			<artifactId>android</artifactId>
-			<version>4.4_r1</version>
+			<version>${android.version}</version>
 			<scope>provided</scope>
 		</dependency>
 		<dependency>
 			<groupId>android.support</groupId>
 			<artifactId>compatibility-v4</artifactId>
-			<version>19</version>
+			<version>${android.compatibility.version}</version>
 		</dependency>
 		<dependency>
 			<groupId>org.roboguice</groupId>

+ 5 - 2
target/generated-sources/r/de/tudarmstadt/informatik/hostage/BuildConfig.java

@@ -1,5 +1,8 @@
+/*___Generated_by_IDEA___*/
+
 package de.tudarmstadt.informatik.hostage;
 
+/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
 public final class BuildConfig {
-  public static final boolean DEBUG = true;
-}
+  public final static boolean DEBUG = Boolean.parseBoolean(null);
+}