Skip to content

Commit

Permalink
Merge branch 'tradle-master'
Browse files Browse the repository at this point in the history
* tradle-master:
  Update react-native-udp.podspec
  Use address instead of host name
  feat(socket-lib): udpate GCDAsyncUdpSocket
  Added handling of GCDAsyncUdpSocket's socketDidClose callback in order to bubble notification that the socket has been closed
  Fix breaking change w/ Gradle dependencies (tradle#88)
  2.6.1
  add .git to .npmignore
  2.6.0
  fix max MTU (tradle#84)
  2.5.2
  Update react-native-udp.podspec (tradle#83)
  • Loading branch information
DomiR committed Nov 18, 2019
2 parents 106866e + a90e2b5 commit 5554308
Show file tree
Hide file tree
Showing 6 changed files with 1,125 additions and 1,132 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ node_modules
.DS_Store

# examples is not required in npm package
examples/
examples/
.git/
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
dependencies {
def supportLibVersion = project.hasProperty('supportLibVersion') ? project.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION

compile fileTree(dir: 'libs', include: ['*.jar'])
compile "com.android.support:appcompat-v7:$supportLibVersion"
compile 'com.facebook.react:react-native:+'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:appcompat-v7:$supportLibVersion"
implementation 'com.facebook.react:react-native:+'
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
public class UdpReceiverTask extends AsyncTask<Pair<DatagramSocket, UdpReceiverTask.OnDataReceivedListener>, Void, Void> {
private static final String TAG = "UdpReceiverTask";
private static final int MAX_UDP_DATAGRAM_LEN = 1024;
private static final int MAX_UDP_DATAGRAM_LEN = 0xffff;

/**
* An infinite loop to block and read data from the socket.
Expand Down
Loading

0 comments on commit 5554308

Please sign in to comment.