Update build env to api 26
This commit is contained in:
parent
f16789ec97
commit
f91bcb26a8
@ -4,12 +4,12 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
def gitCommit = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
|
def gitCommit = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 25
|
compileSdkVersion 26
|
||||||
buildToolsVersion "25.0.3"
|
buildToolsVersion "26.0.1"
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.itxtech.daedalus"
|
applicationId "org.itxtech.daedalus"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 25
|
targetSdkVersion 26
|
||||||
versionCode 12
|
versionCode 12
|
||||||
versionName "1.10.1"
|
versionName "1.10.1"
|
||||||
|
|
||||||
@ -42,17 +42,18 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(include: ['*.jar'], dir: 'libs')
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
compile 'com.android.support:appcompat-v7:25.3.1'
|
compile 'com.android.support:appcompat-v7:26.0.2'
|
||||||
compile 'com.android.support:design:25.3.1'
|
compile 'com.android.support:design:26.0.2'
|
||||||
compile 'com.android.support:support-v4:25.3.1'
|
compile 'com.android.support:support-v4:26.0.2'
|
||||||
compile 'com.android.support:percent:25.3.1'
|
compile 'com.android.support:percent:26.0.2'
|
||||||
compile 'com.android.support:cardview-v7:25.3.1'
|
compile 'com.android.support:cardview-v7:26.0.2'
|
||||||
|
|
||||||
compile 'org.pcap4j:pcap4j-core:1.7.1'
|
compile 'org.pcap4j:pcap4j-core:1.7.1'
|
||||||
compile 'org.pcap4j:pcap4j-packetfactory-static:1.7.1'
|
compile 'org.pcap4j:pcap4j-packetfactory-static:1.7.1'
|
||||||
compile 'de.measite.minidns:minidns-core:0.2.2'
|
compile 'de.measite.minidns:minidns-core:0.2.2'
|
||||||
compile 'com.google.code.gson:gson:2.8.1'
|
compile 'com.google.code.gson:gson:2.8.1'
|
||||||
|
|
||||||
|
compile 'com.google.firebase:firebase-core:11.0.4'
|
||||||
compile 'com.google.firebase:firebase-crash:11.0.4'
|
compile 'com.google.firebase:firebase-crash:11.0.4'
|
||||||
|
|
||||||
testCompile 'junit:junit:4.12'
|
testCompile 'junit:junit:4.12'
|
||||||
|
@ -114,7 +114,7 @@ public class Daedalus extends Application {
|
|||||||
initData();
|
initData();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initDirectory(String dir){
|
private void initDirectory(String dir) {
|
||||||
File directory = new File(dir);
|
File directory = new File(dir);
|
||||||
if (!directory.isDirectory()) {
|
if (!directory.isDirectory()) {
|
||||||
Logger.warning(dir + " is not a directory. Delete result: " + String.valueOf(directory.delete()));
|
Logger.warning(dir + " is not a directory. Delete result: " + String.valueOf(directory.delete()));
|
||||||
|
@ -125,8 +125,7 @@ public class RulesFragment extends ToolbarFragment implements Toolbar.OnMenuItem
|
|||||||
|
|
||||||
if (id == R.id.action_reload) {
|
if (id == R.id.action_reload) {
|
||||||
if (!Daedalus.getPrefs().getBoolean("settings_allow_dynamic_rule_reload", false)) {
|
if (!Daedalus.getPrefs().getBoolean("settings_allow_dynamic_rule_reload", false)) {
|
||||||
Snackbar.make(getView(), R.string.notice_check_dynamic_rule_reload, Snackbar.LENGTH_SHORT)
|
Snackbar.make(getView(), R.string.notice_check_dynamic_rule_reload, Snackbar.LENGTH_SHORT).show();
|
||||||
.setAction("Action", null).show();
|
|
||||||
} else {
|
} else {
|
||||||
Daedalus.setRulesChanged();
|
Daedalus.setRulesChanged();
|
||||||
}
|
}
|
||||||
|
@ -136,6 +136,10 @@ public class Configurations {
|
|||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Configurations() {
|
||||||
|
//TODO: Initial config. Eg. Build-in rules
|
||||||
|
}
|
||||||
|
|
||||||
public void save() {
|
public void save() {
|
||||||
try {
|
try {
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
|
@ -16,6 +16,9 @@ buildscript {
|
|||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
maven {
|
||||||
|
url 'https://maven.google.com'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user