Last active
December 19, 2015 04:18
-
-
Save ljanzik/5896121 to your computer and use it in GitHub Desktop.
BuildConfig Constants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class BuildConfig { | |
public final static boolean DEBUG = true; | |
public final static String BACKEND_URL = "http://dev.thoughtsonmobile.com"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class BuildConfig { | |
public final static boolean DEBUG = true; | |
public final static String BACKEND_URL = "http://thoughtsonmobile.com"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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/maven-v4_0_0.xsd"> | |
[..] | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | |
<artifactId>android-maven-plugin</artifactId> | |
<version>3.6.1-SNAPSHOT</version> | |
<extensions>true</extensions> | |
<configuration> | |
<buildConfigConstants> | |
<constant> | |
<name>BACKEND_URL</name> | |
<type>java.lang.String</type> | |
<value>http://dev.thoughtsonmobile.com</value> | |
</constant> | |
</buildConfigConstants> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>production</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | |
<artifactId>android-maven-plugin</artifactId> | |
<extensions>true</extensions> | |
<configuration> | |
<buildConfigConstants> | |
<constant> | |
<name>BACKEND_URL</name> | |
<type>java.lang.String</type> | |
<value>http://thoughtsonmobile.com</value> | |
</constant> | |
</buildConfigConstants> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<buildConfigConstants> | |
<constant> | |
<name>CONFIGURATION_ENUM</name> | |
<type>my.package.MyEnum</type> | |
<value>my.package.MyEnum.CONFIG</value> | |
</constant> | |
</buildConfigConstants> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment