Skip to content

Commit

Permalink
Fixed bug in native ping (added proc.destroy) Bumped version to 0.4.4…
Browse files Browse the repository at this point in the history
… #PLAY_BETA
  • Loading branch information
mat committed Nov 3, 2019
1 parent 42302cd commit 1149262
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ android {
applicationId "com.stealthcotper.networktools"
minSdkVersion minSdkVer
targetSdkVersion targetSdkVer
versionName appVersionName
versionCode appVersionCode
versionName "0.4.4"
versionCode 18
archivesBaseName = "AndroidNetworkTools"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.stealthcotper.networktools;

import android.app.Application;
import android.os.StrictMode;

public class ANTApplication extends Application {

Expand All @@ -16,17 +15,17 @@ private void initStrictMode() {

// Let's be super strict so that we can discover bugs during testing

StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
.detectAll()
.penaltyLog()
.penaltyDeath()
.build());

StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectAll()
.penaltyLog()
.penaltyDeath()
.build());
// StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
// .detectAll()
// .penaltyLog()
//// .penaltyDeath()
// .build());
//
// StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
// .detectAll()
// .penaltyLog()
//// .penaltyDeath()
// .build());
}
}

Expand Down
13 changes: 7 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.android.tools.build:gradle:3.5.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -24,12 +24,13 @@ task clean(type: Delete) {
}

subprojects {
ext.compileSdkVer = 27
ext.buildToolsVer = "27.0.3"
ext.compileSdkVer = 29
ext.buildToolsVer = "29.0.1"
ext.minSdkVer = 14
ext.targetSdkVer = 27
ext.targetSdkVer = 29
ext.supportLibVer = "27.1.1"

ext.appVersionName = "0.4.3"
ext.appVersionCode = 17
// When updating these, remember to update the vars in app/build.gradle (for FDroid comptability)
ext.appVersionName = "0.4.4"
ext.appVersionCode = 18
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue May 01 19:31:51 BST 2018
#Sun Nov 03 10:39:47 GMT 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public static PingResult ping(InetAddress host, PingOptions pingOptions) throws
break;
}
pingResult.error = pingError;
proc.destroy();
return pingResult;
}

Expand Down

0 comments on commit 1149262

Please sign in to comment.