crossbario / autobahn-java

WebSocket & WAMP in Java for Android and Java 8
https://crossbar.io/autobahn
MIT License
1.52k stars 427 forks source link

Tag created socket on Android #527

Closed jschmid closed 2 years ago

jschmid commented 2 years ago

This PR fixes #519

The warning does not appear on Android anymore.

Building the aar still works from Android Studio.

Running make build works fine a generates a lib.

I am not sure however about the import android.net.TrafficStats;. I would say that if it compiles, it should run, but I did/could not test the Netty version.

om26er commented 2 years ago

Thanks for the PR. Our WebSocket implementation is not dependent on Android and your PR adds that dependency, so we need a different approach, Can you look at https://github.com/crossbario/autobahn-java/blob/master/autobahn/src/main/java/io/crossbar/autobahn/websocket/utils/Platform.java and come up with a similar approach ?