Skip to content

Commit

Permalink
update gradle and make all classes open
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro committed Aug 11, 2021
1 parent 32e2813 commit 2e7575c
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ allprojects {
}
}
dependencies {
implementation 'com.github.pedroSG94:RTSP-Server:1.0.9'
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.0.5'
implementation 'com.github.pedroSG94:RTSP-Server:1.1.0'
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.0.6'
}
```
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.pedro.sample"
minSdkVersion 16
targetSdkVersion 30
versionCode 109
versionName "1.0.9"
versionCode 110
versionName "1.1.0"
}
buildTypes {
release {
Expand All @@ -22,8 +22,8 @@ android {

dependencies {
implementation project(':rtspserver')
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.0.5'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.0.6'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.5.20'
ext.kotlin_version = '1.5.21'
repositories {
google()
mavenCentral()
Expand Down
6 changes: 2 additions & 4 deletions rtspserver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 30
versionCode 109
versionName "1.0.9"
}

buildTypes {
Expand All @@ -23,6 +21,6 @@ android {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.0.5'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.0.6'
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import java.util.*
* TODO Use different session per client.
*/

class RtspServer(private val connectCheckerRtsp: ConnectCheckerRtsp,
open class RtspServer(private val connectCheckerRtsp: ConnectCheckerRtsp,
val port: Int): ClientListener {

private val TAG = "RtspServer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import java.nio.ByteBuffer
/**
* Created by pedro on 13/02/19.
*/
class RtspServerCamera1 : Camera1Base {
open class RtspServerCamera1 : Camera1Base {

private val rtspServer: RtspServer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.pedro.rtsp.utils.ConnectCheckerRtsp
import java.nio.ByteBuffer

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
class RtspServerCamera2 : Camera2Base {
open class RtspServerCamera2 : Camera2Base {

private val rtspServer: RtspServer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.pedro.rtsp.utils.ConnectCheckerRtsp
import java.nio.ByteBuffer

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
class RtspServerDisplay(context: Context, useOpengl: Boolean,
open class RtspServerDisplay(context: Context, useOpengl: Boolean,
connectCheckerRtsp: ConnectCheckerRtsp, port: Int) : DisplayBase(context, useOpengl) {

private val rtspServer: RtspServer =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.pedro.rtsp.utils.ConnectCheckerRtsp
import java.nio.ByteBuffer

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
class RtspServerFromFile : FromFileBase {
open class RtspServerFromFile : FromFileBase {

private val rtspServer: RtspServer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.nio.ByteBuffer
/**
* Created by pedro on 17/04/21.
*/
class RtspServerOnlyAudio(connectCheckerRtsp: ConnectCheckerRtsp, port: Int) : OnlyAudioBase() {
open class RtspServerOnlyAudio(connectCheckerRtsp: ConnectCheckerRtsp, port: Int) : OnlyAudioBase() {

private val rtspServer = RtspServer(connectCheckerRtsp, port)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import java.net.Socket
import java.net.SocketException
import java.nio.ByteBuffer

class ServerClient(private val socket: Socket, serverIp: String, serverPort: Int,
open class ServerClient(private val socket: Socket, serverIp: String, serverPort: Int,
connectCheckerRtsp: ConnectCheckerRtsp, sps: ByteBuffer?,
pps: ByteBuffer?, vps: ByteBuffer?, private val sampleRate: Int,
isStereo: Boolean, isOnlyAudio: Boolean, user: String?, password: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import java.util.regex.Pattern
* Created by pedro on 23/10/19.
*
*/
class ServerCommandManager(private val serverIp: String, private val serverPort: Int,
open class ServerCommandManager(private val serverIp: String, private val serverPort: Int,
val clientIp: String?) : CommandsManager() {

private val TAG = "ServerCommandManager"
Expand Down

0 comments on commit 2e7575c

Please sign in to comment.