-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move clientserver code into a subproject
Left behind was `ConnectionFactory` as it is really a MapTool-specific tool for building connections and servers rather than a part of the general client-server logic itself. Also pulled in was `Handshake` and `HandshakeObserver` since they are used in the client-server and are an important part of the process (the implementations were left behind though). Dependencies specific to clientserver were moved out of the root project into the new subproject.
- Loading branch information
1 parent
41d5956
commit 20c9ce1
Showing
26 changed files
with
64 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
dependencies { | ||
} | ||
} | ||
|
||
plugins { | ||
id "base" | ||
id "java-library" | ||
} | ||
|
||
// In this section you declare where to find the dependencies of your project | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { url = 'https://maptool.craigs-stuff.net/repo/' } | ||
maven { url = 'https://jitpack.io' } | ||
maven { url "https://www.jetbrains.com/intellij-repository/releases" } | ||
maven { url "https://cache-redirector.jetbrains.com/intellij-dependencies" } | ||
} | ||
|
||
|
||
// In this section you declare the dependencies for your production and test code | ||
dependencies { | ||
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.22.1' | ||
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.22.1' | ||
implementation group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: '2.20.0' // Bridges v1 to v2 for other code in other libs | ||
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.12' | ||
implementation group: 'commons-logging', name: 'commons-logging', version: '1.3.0' | ||
|
||
// Better JSON functions... | ||
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1' // https://mvnrepository.com/artifact/com.google.code.gson/gson | ||
|
||
// webrtc | ||
implementation group: 'org.java-websocket', name: 'Java-WebSocket', version: '1.5.6' | ||
// Needs to be API since WebRTCConnection implements PeerConnectionObserver and RTCDataChannelObserver. | ||
implementation 'dev.onvoid.webrtc:webrtc-java:0.8.0' | ||
if (osdetector.os.is('windows')) | ||
implementation 'dev.onvoid.webrtc:webrtc-java:0.8.0:windows-x86_64' | ||
else if (osdetector.os.is('osx')) | ||
implementation 'dev.onvoid.webrtc:webrtc-java:0.8.0:macos-x86_64' | ||
else if (osdetector.os.is('linux')) | ||
implementation 'dev.onvoid.webrtc:webrtc-java:0.8.0:linux-x86_64' | ||
|
||
// compression of messages between client and server | ||
implementation 'org.apache.commons:commons-compress:1.26.0' | ||
implementation 'com.github.luben:zstd-jni:1.5.5-11' | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ include 'services:webservice' | |
*/ | ||
|
||
rootProject.name = 'MapTool' | ||
include ':clientserver' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters