Skip to content

Commit 6c050ab

Browse files
committed
added listeners with console
1 parent 82ac26b commit 6c050ab

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

p2psdk/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ publish {
66
repoName = 'android'
77
groupId = 'com.aslam'
88
artifactId = 'p2p'
9-
publishVersion = '1.2.2'
9+
publishVersion = '1.2.3'
1010
desc = 'P2P library provides instant integration (PnP) support for WIFI-Direct P2P for any Android projects plus it remembers the recently connected device and reconnects it automatically when it is available.'
1111
website = 'https://github.com/aslamanver/p2p'
1212
}
@@ -18,8 +18,8 @@ android {
1818
defaultConfig {
1919
minSdkVersion 15
2020
targetSdkVersion 28
21-
versionCode 122
22-
versionName "1.2.2"
21+
versionCode 123
22+
versionName "1.2.3"
2323
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2424
consumerProguardFiles "consumer-rules.pro"
2525
}

p2psdk/src/main/java/com/aslam/p2p/services/P2PControllerActivityListener.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import android.net.wifi.p2p.WifiP2pDevice;
44
import android.net.wifi.p2p.WifiP2pInfo;
55

6+
import com.aslam.p2p.utils.LogUtils;
7+
68
import java.util.List;
79

810
public abstract class P2PControllerActivityListener implements P2PControllerListener {
@@ -86,4 +88,9 @@ public void onSocketServerMessage(String host, String message) {
8688
public void onSocketClientMessage(String host, String message) {
8789

8890
}
91+
92+
@Override
93+
public void onConsoleLog(String message) {
94+
LogUtils.consoleLog("P2PControllerActivityListener", message);
95+
}
8996
}

0 commit comments

Comments
 (0)