diff --git a/lib/.gitignore b/core/.gitignore similarity index 100% rename from lib/.gitignore rename to core/.gitignore diff --git a/lib/build.gradle b/core/build.gradle similarity index 100% rename from lib/build.gradle rename to core/build.gradle diff --git a/lib/consumer-rules.pro b/core/consumer-rules.pro similarity index 100% rename from lib/consumer-rules.pro rename to core/consumer-rules.pro diff --git a/lib/proguard-rules.pro b/core/proguard-rules.pro similarity index 100% rename from lib/proguard-rules.pro rename to core/proguard-rules.pro diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/SrtTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/SrtTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/SrtTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/SrtTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCodeTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCodeTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCodeTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCodeTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/TranstypeTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/TranstypeTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/TranstypeTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/TranstypeTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/EpollTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/EpollTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/EpollTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/EpollTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/ErrorTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/ErrorTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/ErrorTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/ErrorTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/Socket6Test.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/Socket6Test.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/Socket6Test.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/Socket6Test.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketCallbackTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketCallbackTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketCallbackTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketCallbackTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketRecvTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketRecvTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketRecvTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketRecvTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendRecvFileTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendRecvFileTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendRecvFileTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendRecvFileTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/TimeTest.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/TimeTest.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/models/TimeTest.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/models/TimeTest.kt diff --git a/lib/src/androidTest/java/io/github/thibaultbee/srtdroid/utils/Utils.kt b/core/src/androidTest/java/io/github/thibaultbee/srtdroid/utils/Utils.kt similarity index 100% rename from lib/src/androidTest/java/io/github/thibaultbee/srtdroid/utils/Utils.kt rename to core/src/androidTest/java/io/github/thibaultbee/srtdroid/utils/Utils.kt diff --git a/lib/src/main/AndroidManifest.xml b/core/src/main/AndroidManifest.xml similarity index 100% rename from lib/src/main/AndroidManifest.xml rename to core/src/main/AndroidManifest.xml diff --git a/lib/src/main/cpp/CMakeLists.txt b/core/src/main/cpp/CMakeLists.txt similarity index 100% rename from lib/src/main/cpp/CMakeLists.txt rename to core/src/main/cpp/CMakeLists.txt diff --git a/lib/src/main/cpp/CallbackContext.cpp b/core/src/main/cpp/CallbackContext.cpp similarity index 100% rename from lib/src/main/cpp/CallbackContext.cpp rename to core/src/main/cpp/CallbackContext.cpp diff --git a/lib/src/main/cpp/CallbackContext.h b/core/src/main/cpp/CallbackContext.h similarity index 100% rename from lib/src/main/cpp/CallbackContext.h rename to core/src/main/cpp/CallbackContext.h diff --git a/lib/src/main/cpp/Enums/AddressFamily.h b/core/src/main/cpp/Enums/AddressFamily.h similarity index 100% rename from lib/src/main/cpp/Enums/AddressFamily.h rename to core/src/main/cpp/Enums/AddressFamily.h diff --git a/lib/src/main/cpp/Enums/Bimap.h b/core/src/main/cpp/Enums/Bimap.h similarity index 100% rename from lib/src/main/cpp/Enums/Bimap.h rename to core/src/main/cpp/Enums/Bimap.h diff --git a/lib/src/main/cpp/Enums/Boundary.h b/core/src/main/cpp/Enums/Boundary.h similarity index 100% rename from lib/src/main/cpp/Enums/Boundary.h rename to core/src/main/cpp/Enums/Boundary.h diff --git a/lib/src/main/cpp/Enums/EnumConverter.h b/core/src/main/cpp/Enums/EnumConverter.h similarity index 100% rename from lib/src/main/cpp/Enums/EnumConverter.h rename to core/src/main/cpp/Enums/EnumConverter.h diff --git a/lib/src/main/cpp/Enums/Enums.h b/core/src/main/cpp/Enums/Enums.h similarity index 100% rename from lib/src/main/cpp/Enums/Enums.h rename to core/src/main/cpp/Enums/Enums.h diff --git a/lib/src/main/cpp/Enums/EnumsSingleton.h b/core/src/main/cpp/Enums/EnumsSingleton.h similarity index 100% rename from lib/src/main/cpp/Enums/EnumsSingleton.h rename to core/src/main/cpp/Enums/EnumsSingleton.h diff --git a/lib/src/main/cpp/Enums/EpollFlag.h b/core/src/main/cpp/Enums/EpollFlag.h similarity index 100% rename from lib/src/main/cpp/Enums/EpollFlag.h rename to core/src/main/cpp/Enums/EpollFlag.h diff --git a/lib/src/main/cpp/Enums/EpollOpt.h b/core/src/main/cpp/Enums/EpollOpt.h similarity index 100% rename from lib/src/main/cpp/Enums/EpollOpt.h rename to core/src/main/cpp/Enums/EpollOpt.h diff --git a/lib/src/main/cpp/Enums/ErrorType.h b/core/src/main/cpp/Enums/ErrorType.h similarity index 100% rename from lib/src/main/cpp/Enums/ErrorType.h rename to core/src/main/cpp/Enums/ErrorType.h diff --git a/lib/src/main/cpp/Enums/KMState.h b/core/src/main/cpp/Enums/KMState.h similarity index 100% rename from lib/src/main/cpp/Enums/KMState.h rename to core/src/main/cpp/Enums/KMState.h diff --git a/lib/src/main/cpp/Enums/RejectReasonCode.h b/core/src/main/cpp/Enums/RejectReasonCode.h similarity index 100% rename from lib/src/main/cpp/Enums/RejectReasonCode.h rename to core/src/main/cpp/Enums/RejectReasonCode.h diff --git a/lib/src/main/cpp/Enums/SockOpt.h b/core/src/main/cpp/Enums/SockOpt.h similarity index 100% rename from lib/src/main/cpp/Enums/SockOpt.h rename to core/src/main/cpp/Enums/SockOpt.h diff --git a/lib/src/main/cpp/Enums/SockStatus.h b/core/src/main/cpp/Enums/SockStatus.h similarity index 100% rename from lib/src/main/cpp/Enums/SockStatus.h rename to core/src/main/cpp/Enums/SockStatus.h diff --git a/lib/src/main/cpp/Enums/TransType.h b/core/src/main/cpp/Enums/TransType.h similarity index 100% rename from lib/src/main/cpp/Enums/TransType.h rename to core/src/main/cpp/Enums/TransType.h diff --git a/lib/src/main/cpp/Models/Epoll.h b/core/src/main/cpp/Models/Epoll.h similarity index 100% rename from lib/src/main/cpp/Models/Epoll.h rename to core/src/main/cpp/Models/Epoll.h diff --git a/lib/src/main/cpp/Models/EpollEvent.h b/core/src/main/cpp/Models/EpollEvent.h similarity index 100% rename from lib/src/main/cpp/Models/EpollEvent.h rename to core/src/main/cpp/Models/EpollEvent.h diff --git a/lib/src/main/cpp/Models/EpollFlags.h b/core/src/main/cpp/Models/EpollFlags.h similarity index 100% rename from lib/src/main/cpp/Models/EpollFlags.h rename to core/src/main/cpp/Models/EpollFlags.h diff --git a/lib/src/main/cpp/Models/EpollOpts.h b/core/src/main/cpp/Models/EpollOpts.h similarity index 100% rename from lib/src/main/cpp/Models/EpollOpts.h rename to core/src/main/cpp/Models/EpollOpts.h diff --git a/lib/src/main/cpp/Models/InetSocketAddress.h b/core/src/main/cpp/Models/InetSocketAddress.h similarity index 100% rename from lib/src/main/cpp/Models/InetSocketAddress.h rename to core/src/main/cpp/Models/InetSocketAddress.h diff --git a/lib/src/main/cpp/Models/List.h b/core/src/main/cpp/Models/List.h similarity index 100% rename from lib/src/main/cpp/Models/List.h rename to core/src/main/cpp/Models/List.h diff --git a/lib/src/main/cpp/Models/Models.h b/core/src/main/cpp/Models/Models.h similarity index 100% rename from lib/src/main/cpp/Models/Models.h rename to core/src/main/cpp/Models/Models.h diff --git a/lib/src/main/cpp/Models/MsgCtrl.h b/core/src/main/cpp/Models/MsgCtrl.h similarity index 100% rename from lib/src/main/cpp/Models/MsgCtrl.h rename to core/src/main/cpp/Models/MsgCtrl.h diff --git a/lib/src/main/cpp/Models/OptVal.h b/core/src/main/cpp/Models/OptVal.h similarity index 100% rename from lib/src/main/cpp/Models/OptVal.h rename to core/src/main/cpp/Models/OptVal.h diff --git a/lib/src/main/cpp/Models/Pair.h b/core/src/main/cpp/Models/Pair.h similarity index 100% rename from lib/src/main/cpp/Models/Pair.h rename to core/src/main/cpp/Models/Pair.h diff --git a/lib/src/main/cpp/Models/Primitive.h b/core/src/main/cpp/Models/Primitive.h similarity index 100% rename from lib/src/main/cpp/Models/Primitive.h rename to core/src/main/cpp/Models/Primitive.h diff --git a/lib/src/main/cpp/Models/Socket.h b/core/src/main/cpp/Models/Socket.h similarity index 100% rename from lib/src/main/cpp/Models/Socket.h rename to core/src/main/cpp/Models/Socket.h diff --git a/lib/src/main/cpp/Models/Stats.h b/core/src/main/cpp/Models/Stats.h similarity index 100% rename from lib/src/main/cpp/Models/Stats.h rename to core/src/main/cpp/Models/Stats.h diff --git a/lib/src/main/cpp/glue.cpp b/core/src/main/cpp/glue.cpp similarity index 100% rename from lib/src/main/cpp/glue.cpp rename to core/src/main/cpp/glue.cpp diff --git a/lib/src/main/cpp/log.h b/core/src/main/cpp/log.h similarity index 100% rename from lib/src/main/cpp/log.h rename to core/src/main/cpp/log.h diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/Srt.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/Srt.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/Srt.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/Srt.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/Boundary.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/Boundary.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/Boundary.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/Boundary.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollFlag.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollFlag.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollFlag.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollFlag.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollOpt.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollOpt.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollOpt.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollOpt.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/ErrorType.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/ErrorType.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/ErrorType.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/ErrorType.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/KMState.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/KMState.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/KMState.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/KMState.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCode.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCode.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCode.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCode.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/SockOpt.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/SockOpt.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/SockOpt.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/SockOpt.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/SockStatus.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/SockStatus.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/SockStatus.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/SockStatus.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/enums/Transtype.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/enums/Transtype.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/enums/Transtype.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/enums/Transtype.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/listeners/SocketListener.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/listeners/SocketListener.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/listeners/SocketListener.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/listeners/SocketListener.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/Epoll.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/Epoll.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/Epoll.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/Epoll.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/EpollEvent.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/EpollEvent.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/EpollEvent.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/EpollEvent.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/Error.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/Error.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/Error.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/Error.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/MsgCtrl.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/MsgCtrl.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/MsgCtrl.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/MsgCtrl.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/Socket.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/Socket.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/Socket.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/Socket.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/Stats.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/Stats.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/Stats.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/Stats.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/Time.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/Time.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/Time.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/Time.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/InternalRejectReason.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/InternalRejectReason.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/InternalRejectReason.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/InternalRejectReason.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/PredefinedRejectReason.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/PredefinedRejectReason.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/PredefinedRejectReason.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/PredefinedRejectReason.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/RejectReason.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/RejectReason.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/RejectReason.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/RejectReason.kt diff --git a/lib/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/UserDefinedRejectReason.kt b/core/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/UserDefinedRejectReason.kt similarity index 100% rename from lib/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/UserDefinedRejectReason.kt rename to core/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/UserDefinedRejectReason.kt diff --git a/lib/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml similarity index 100% rename from lib/src/main/res/values/strings.xml rename to core/src/main/res/values/strings.xml diff --git a/example/build.gradle b/example/build.gradle index 6256ea1b..0fb967a9 100644 --- a/example/build.gradle +++ b/example/build.gradle @@ -41,7 +41,7 @@ android { } dependencies { - implementation project(':lib') + implementation project(':core') implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.6.1' diff --git a/settings.gradle b/settings.gradle index bcc0e651..5b9752d7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,2 @@ -include ':lib', ":example" +include ':core', ":example" rootProject.name='srtdroid'