Skip to content

Commit

Permalink
added listeners with console
Browse files Browse the repository at this point in the history
  • Loading branch information
aslamanver committed Jul 7, 2022
1 parent 82ac26b commit 6c050ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p2psdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish {
repoName = 'android'
groupId = 'com.aslam'
artifactId = 'p2p'
publishVersion = '1.2.2'
publishVersion = '1.2.3'
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.'
website = 'https://github.com/aslamanver/p2p'
}
Expand All @@ -18,8 +18,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 122
versionName "1.2.2"
versionCode 123
versionName "1.2.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import android.net.wifi.p2p.WifiP2pDevice;
import android.net.wifi.p2p.WifiP2pInfo;

import com.aslam.p2p.utils.LogUtils;

import java.util.List;

public abstract class P2PControllerActivityListener implements P2PControllerListener {
Expand Down Expand Up @@ -86,4 +88,9 @@ public void onSocketServerMessage(String host, String message) {
public void onSocketClientMessage(String host, String message) {

}

@Override
public void onConsoleLog(String message) {
LogUtils.consoleLog("P2PControllerActivityListener", message);
}
}

0 comments on commit 6c050ab

Please sign in to comment.