wifidirectplugin 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -332,7 +332,7 @@ public class WifiDirectPlugin extends Plugin {
332
332
  if (p2pNetworkCallback != null) return;
333
333
 
334
334
  NetworkRequest req = new NetworkRequest.Builder()
335
- .addTransportType(NetworkCapabilities.TRANSPORT_WIFI_P2P)
335
+ .addTransportType(NetworkCapabilities.TRANSPORT_WIFI_AWARE)
336
336
  // P2P는 인터넷 capability가 없으므로 매칭을 위해 제거
337
337
  .removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
338
338
  .build();
@@ -423,7 +423,7 @@ public class WifiDirectPlugin extends Plugin {
423
423
  Network[] networks = connectivityManager.getAllNetworks();
424
424
  for (Network n : networks) {
425
425
  NetworkCapabilities caps = connectivityManager.getNetworkCapabilities(n);
426
- if (caps != null && caps.hasTransport(NetworkCapabilities.TRANSPORT_WIFI_P2P)) {
426
+ if (caps != null && caps.hasTransport(NetworkCapabilities.TRANSPORT_WIFI_AWARE)) {
427
427
  try {
428
428
  connectivityManager.bindProcessToNetwork(n);
429
429
  boundP2pNetwork = n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wifidirectplugin",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "HT-Installer Wifi Direct Plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",