Skip to content

Commit

Permalink
optmize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Sep 30, 2024
1 parent 6a240fb commit b99341c
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion common/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>

</manifest>
3 changes: 0 additions & 3 deletions rtmp/src/main/java/com/pedro/rtmp/rtmp/Handshake.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ package com.pedro.rtmp.rtmp

import android.util.Log
import com.pedro.common.TimeUtils
import com.pedro.rtmp.utils.readUntil
import com.pedro.rtmp.utils.socket.RtmpSocket
import java.io.IOException
import java.io.InputStream
import java.io.OutputStream
import kotlin.random.Random

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package com.pedro.rtmp.rtmp.message
import com.pedro.rtmp.rtmp.chunk.ChunkType
import com.pedro.rtmp.utils.socket.RtmpSocket
import java.io.IOException
import java.io.InputStream
import kotlin.experimental.and

/**
Expand Down
2 changes: 0 additions & 2 deletions rtmp/src/main/java/com/pedro/rtmp/rtmp/message/RtmpHeader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import com.pedro.rtmp.rtmp.chunk.ChunkType
import com.pedro.rtmp.utils.*
import com.pedro.rtmp.utils.socket.RtmpSocket
import java.io.IOException
import java.io.InputStream
import java.io.OutputStream
import kotlin.math.min

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.rtmp.flv.audio

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.rtmp.flv.FlvType
import com.pedro.rtmp.flv.audio.packet.G711Packet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.rtmp.flv.video

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.rtmp.flv.FlvPacket
import com.pedro.rtmp.flv.FlvType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.rtmp.flv.video

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.rtmp.flv.FlvPacket
import com.pedro.rtmp.flv.FlvType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.rtmp.flv.video

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.rtmp.flv.FlvPacket
import com.pedro.rtmp.flv.FlvType
Expand Down
3 changes: 0 additions & 3 deletions rtsp/src/test/java/com/pedro/rtsp/rtcp/RtcpReportTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ import org.mockito.junit.MockitoJUnitRunner
import org.mockito.kotlin.argumentCaptor
import org.mockito.kotlin.times
import org.mockito.kotlin.verify
import java.io.OutputStream
import java.net.DatagramPacket
import java.net.MulticastSocket

/**
* Created by pedro on 9/9/23.
Expand Down
2 changes: 0 additions & 2 deletions rtsp/src/test/java/com/pedro/rtsp/rtp/G711PacketTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@

package com.pedro.rtsp.rtp

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.rtsp.rtp.packets.G711Packet
import com.pedro.rtsp.rtsp.RtpFrame
import com.pedro.rtsp.utils.RtpConstants
import junit.framework.TestCase
import junit.framework.TestCase.assertEquals
import kotlinx.coroutines.test.runTest
import org.junit.Test
Expand Down
1 change: 0 additions & 1 deletion rtsp/src/test/java/com/pedro/rtsp/rtp/H264PacketTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.rtsp.rtp

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.rtsp.rtp.packets.H264Packet
import com.pedro.rtsp.rtsp.RtpFrame
Expand Down
1 change: 0 additions & 1 deletion rtsp/src/test/java/com/pedro/rtsp/rtp/H265PacketTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.rtsp.rtp

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.rtsp.rtp.packets.H265Packet
import com.pedro.rtsp.rtsp.RtpFrame
Expand Down
1 change: 0 additions & 1 deletion rtsp/src/test/java/com/pedro/rtsp/rtp/OpusPacketTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.rtsp.rtp

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.rtsp.rtp.packets.OpusPacket
import com.pedro.rtsp.rtsp.RtpFrame
Expand Down
4 changes: 2 additions & 2 deletions srt/src/main/java/com/pedro/srt/mpeg2ts/MpegTsPacketizer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

package com.pedro.srt.mpeg2ts

import com.pedro.srt.mpeg2ts.psi.Psi
import com.pedro.srt.mpeg2ts.psi.PsiManager
import com.pedro.common.TimeUtils
import com.pedro.common.toByteArray
import com.pedro.srt.mpeg2ts.psi.Psi
import com.pedro.srt.mpeg2ts.psi.PsiManager
import com.pedro.srt.utils.toInt
import java.nio.ByteBuffer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.srt.mpeg2ts.packets

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.srt.mpeg2ts.MpegTsPacket
import com.pedro.srt.mpeg2ts.MpegTsPacketizer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.srt.mpeg2ts.packets

import android.media.MediaCodec
import com.pedro.common.frame.MediaFrame
import com.pedro.common.removeInfo
import com.pedro.srt.mpeg2ts.MpegTsPacket
Expand Down
5 changes: 0 additions & 5 deletions srt/src/main/java/com/pedro/srt/mpeg2ts/psi/PsiManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@

package com.pedro.srt.mpeg2ts.psi

import com.pedro.common.TimeUtils
import com.pedro.srt.mpeg2ts.MpegTsPacket
import com.pedro.srt.mpeg2ts.MpegTsPacketizer
import com.pedro.srt.mpeg2ts.MpegType
import com.pedro.srt.mpeg2ts.service.Mpeg2TsService
import com.pedro.srt.srt.packets.data.PacketPosition
import kotlin.random.Random

/**
Expand Down
2 changes: 1 addition & 1 deletion srt/src/main/java/com/pedro/srt/srt/CommandsManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import com.pedro.srt.srt.packets.control.KeepAlive
import com.pedro.srt.srt.packets.control.Shutdown
import com.pedro.srt.srt.packets.control.handshake.EncryptionType
import com.pedro.srt.srt.packets.control.handshake.Handshake
import com.pedro.srt.utils.EncryptInfo
import com.pedro.srt.srt.packets.data.KeyBasedEncryption
import com.pedro.srt.utils.Constants
import com.pedro.srt.utils.EncryptInfo
import com.pedro.srt.utils.EncryptionUtil
import com.pedro.srt.utils.SrtSocket
import kotlinx.coroutines.sync.Mutex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.pedro.srt.srt.packets.control.handshake.extension

import com.pedro.srt.srt.packets.data.KeyBasedEncryption
import com.pedro.srt.utils.EncryptInfo
import com.pedro.srt.utils.writeUInt16
import com.pedro.srt.utils.writeUInt32
Expand Down
2 changes: 1 addition & 1 deletion srt/src/test/java/com/pedro/srt/mpeg2ts/PesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

package com.pedro.srt.mpeg2ts

import com.pedro.common.TimeUtils
import com.pedro.srt.Utils
import com.pedro.srt.mpeg2ts.psi.PsiManager
import com.pedro.srt.mpeg2ts.service.Mpeg2TsService
import com.pedro.common.TimeUtils
import kotlinx.coroutines.test.runTest
import org.junit.Assert.assertArrayEquals
import org.junit.Before
Expand Down

0 comments on commit b99341c

Please sign in to comment.