don't define constants in two locations

This commit is contained in:
f43nd1r 2019-02-11 17:13:11 +01:00
parent f016b6c3a0
commit 20a1649529
3 changed files with 8 additions and 8 deletions

View file

@ -9,7 +9,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.2.1'
}
}

View file

@ -11,7 +11,7 @@ import java.io.File;
import java.util.HashMap;
public class Script extends JsonLoader {
public static final int NO_ID = -1;
public static final int NO_ID = net.pierrox.lightning_launcher.api.Script.NO_ID;
public static final int TYPE_FILE = 0;
public static final int TYPE_BUILTIN = 1;
@ -25,11 +25,11 @@ public class Script extends JsonLoader {
public static final int TARGET_LOCK_SCREEN = 2;
public static final int TARGET_BACKGROUND = 3;
public static final int FLAG_ALL = 0;
public static final int FLAG_DISABLED = 1;
public static final int FLAG_APP_MENU = 2;
public static final int FLAG_ITEM_MENU = 4;
public static final int FLAG_CUSTOM_MENU = 8;
public static final int FLAG_ALL = net.pierrox.lightning_launcher.api.Script.FLAG_ALL;
public static final int FLAG_DISABLED = net.pierrox.lightning_launcher.api.Script.FLAG_DISABLED;
public static final int FLAG_APP_MENU = net.pierrox.lightning_launcher.api.Script.FLAG_APP_MENU;
public static final int FLAG_ITEM_MENU = net.pierrox.lightning_launcher.api.Script.FLAG_ITEM_MENU;
public static final int FLAG_CUSTOM_MENU = net.pierrox.lightning_launcher.api.Script.FLAG_CUSTOM_MENU;
// public fields use for JSON serialization
public int id = Script.NO_ID;

View file

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip