Commit 6912639f authored by rakam's avatar rakam

Demo 1 productFlavor (p12222)

parent 56baa789
......@@ -8,59 +8,59 @@
</facet>
<facet type="android" name="Android">
<configuration>
<option name="SELECTED_BUILD_VARIANT" value="p22222Debug" />
<option name="SELECTED_BUILD_VARIANT" value="p12222Debug" />
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
<option name="ASSEMBLE_TASK_NAME" value="assembleP22222Debug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileP22222DebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleP22222DebugTest" />
<option name="SOURCE_GEN_TASK_NAME" value="generateP22222DebugSources" />
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateP22222DebugTestSources" />
<option name="ASSEMBLE_TASK_NAME" value="assembleP12222Debug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileP12222DebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleP12222DebugTest" />
<option name="SOURCE_GEN_TASK_NAME" value="generateP12222DebugSources" />
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateP12222DebugTestSources" />
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/src/p22222/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/src/p12222/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build/intermediates/classes/p22222/debug" />
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/p22222/debug" />
<output url="file://$MODULE_DIR$/build/intermediates/classes/p12222/debug" />
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/p12222/debug" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/p22222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/p22222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/p22222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/p22222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/p22222/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/p22222/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/test/p22222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/test/p22222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/test/p22222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/test/p22222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/test/p22222/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/test/p22222/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/p12222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/p12222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/p12222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/p12222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/p12222/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/p12222/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222Debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222Debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222Debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222Debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222Debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222Debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222Debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/test/p12222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/test/p12222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/test/p12222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/test/p12222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/test/p12222/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/test/p12222/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p12222/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP12222/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP12222/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP12222/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP12222/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP12222/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP12222/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP12222/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
......
......@@ -20,6 +20,10 @@ android {
applicationId "fr.istic.master.android.p9222"
versionName "AceCream 1.1 p9222"
}
p12222 {
applicationId "fr.istic.master.android.p12222"
versionName "AceCream 1.1 p12222"
}
p22222 {
applicationId "fr.istic.master.android.p22222"
versionName "AceCream 1.1 p22222"
......
package fr.istic.masteru.android.utils;
public class API_URLS {
public static final String AUTH_TOKEN = "ac_token";
public static final String BASE_URL = "http://5.196.21.161:12222";
public static final String PING_ADD_NUMBER = BASE_URL + "/test/nombres/ajouterNombre";
public static final String SCORE_UPDATE = BASE_URL + "/score/update";
public static final String MATCH_WINNER = BASE_URL + "/match/finMatch";
public static final String MATCHS = BASE_URL + "/matches";
public static final String AVAILABLE_COURTS = BASE_URL + "/courts/available";
public static final String LOGIN = BASE_URL + "/login";
public static String TEAM_PLAYERS(String teamId, String gender) {
return BASE_URL + "/teams/" + teamId + "/players?gender=" + (gender == null ? "X" : gender);
}
public static String INFO_MATCH(int matchId) {
return BASE_URL + "/matches/" + matchId;
}
public static String UPDATE_MATCH(int matchId) {
return BASE_URL + "/matches/" + matchId;
}
public static String UPDATE_SCORE(int matchId, int pointId) {
return BASE_URL + "/matches/" + matchId + "/score/" + pointId;
}
public static String UPDATE_SET_SCORE(int matchId, int setId) {
return BASE_URL + "/matches/" + matchId + "/set/" + setId;
}
public static String DELETE_SCORE(int matchId, int pointId) {
return BASE_URL + "/matches/" + matchId + "/score/" + pointId;
}
}
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Demo 1</string>
</resources>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment