From ef6342147dcfe56fa9311d880ad515249ef0f998 Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Mon, 8 Apr 2024 21:04:40 +0200 Subject: [PATCH] refactor(core): move lib to `core` directory --- {lib => core}/.gitignore | 0 {lib => core}/build.gradle | 0 {lib => core}/consumer-rules.pro | 0 {lib => core}/proguard-rules.pro | 0 .../androidTest/java/io/github/thibaultbee/srtdroid/SrtTest.kt | 0 .../github/thibaultbee/srtdroid/enums/RejectReasonCodeTest.kt | 0 .../java/io/github/thibaultbee/srtdroid/enums/TranstypeTest.kt | 0 .../java/io/github/thibaultbee/srtdroid/models/EpollTest.kt | 0 .../java/io/github/thibaultbee/srtdroid/models/ErrorTest.kt | 0 .../java/io/github/thibaultbee/srtdroid/models/Socket6Test.kt | 0 .../io/github/thibaultbee/srtdroid/models/SocketCallbackTest.kt | 0 .../io/github/thibaultbee/srtdroid/models/SocketRecvTest.kt | 0 .../thibaultbee/srtdroid/models/SocketSendRecvFileTest.kt | 0 .../io/github/thibaultbee/srtdroid/models/SocketSendTest.kt | 0 .../java/io/github/thibaultbee/srtdroid/models/SocketTest.kt | 0 .../java/io/github/thibaultbee/srtdroid/models/TimeTest.kt | 0 .../java/io/github/thibaultbee/srtdroid/utils/Utils.kt | 0 {lib => core}/src/main/AndroidManifest.xml | 0 {lib => core}/src/main/cpp/CMakeLists.txt | 0 {lib => core}/src/main/cpp/CallbackContext.cpp | 0 {lib => core}/src/main/cpp/CallbackContext.h | 0 {lib => core}/src/main/cpp/Enums/AddressFamily.h | 0 {lib => core}/src/main/cpp/Enums/Bimap.h | 0 {lib => core}/src/main/cpp/Enums/Boundary.h | 0 {lib => core}/src/main/cpp/Enums/EnumConverter.h | 0 {lib => core}/src/main/cpp/Enums/Enums.h | 0 {lib => core}/src/main/cpp/Enums/EnumsSingleton.h | 0 {lib => core}/src/main/cpp/Enums/EpollFlag.h | 0 {lib => core}/src/main/cpp/Enums/EpollOpt.h | 0 {lib => core}/src/main/cpp/Enums/ErrorType.h | 0 {lib => core}/src/main/cpp/Enums/KMState.h | 0 {lib => core}/src/main/cpp/Enums/RejectReasonCode.h | 0 {lib => core}/src/main/cpp/Enums/SockOpt.h | 0 {lib => core}/src/main/cpp/Enums/SockStatus.h | 0 {lib => core}/src/main/cpp/Enums/TransType.h | 0 {lib => core}/src/main/cpp/Models/Epoll.h | 0 {lib => core}/src/main/cpp/Models/EpollEvent.h | 0 {lib => core}/src/main/cpp/Models/EpollFlags.h | 0 {lib => core}/src/main/cpp/Models/EpollOpts.h | 0 {lib => core}/src/main/cpp/Models/InetSocketAddress.h | 0 {lib => core}/src/main/cpp/Models/List.h | 0 {lib => core}/src/main/cpp/Models/Models.h | 0 {lib => core}/src/main/cpp/Models/MsgCtrl.h | 0 {lib => core}/src/main/cpp/Models/OptVal.h | 0 {lib => core}/src/main/cpp/Models/Pair.h | 0 {lib => core}/src/main/cpp/Models/Primitive.h | 0 {lib => core}/src/main/cpp/Models/Socket.h | 0 {lib => core}/src/main/cpp/Models/Stats.h | 0 {lib => core}/src/main/cpp/glue.cpp | 0 {lib => core}/src/main/cpp/log.h | 0 .../src/main/java/io/github/thibaultbee/srtdroid/Srt.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/enums/Boundary.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/enums/EpollFlag.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/enums/EpollOpt.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/enums/ErrorType.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/enums/KMState.kt | 0 .../io/github/thibaultbee/srtdroid/enums/RejectReasonCode.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/enums/SockOpt.kt | 0 .../java/io/github/thibaultbee/srtdroid/enums/SockStatus.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/enums/Transtype.kt | 0 .../io/github/thibaultbee/srtdroid/listeners/SocketListener.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/models/Epoll.kt | 0 .../java/io/github/thibaultbee/srtdroid/models/EpollEvent.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/models/Error.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/models/MsgCtrl.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/models/Socket.kt | 0 .../main/java/io/github/thibaultbee/srtdroid/models/Stats.kt | 0 .../src/main/java/io/github/thibaultbee/srtdroid/models/Time.kt | 0 .../srtdroid/models/rejectreason/InternalRejectReason.kt | 0 .../srtdroid/models/rejectreason/PredefinedRejectReason.kt | 0 .../thibaultbee/srtdroid/models/rejectreason/RejectReason.kt | 0 .../srtdroid/models/rejectreason/UserDefinedRejectReason.kt | 0 {lib => core}/src/main/res/values/strings.xml | 0 example/build.gradle | 2 +- settings.gradle | 2 +- 75 files changed, 2 insertions(+), 2 deletions(-) rename {lib => core}/.gitignore (100%) rename {lib => core}/build.gradle (100%) rename {lib => core}/consumer-rules.pro (100%) rename {lib => core}/proguard-rules.pro (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/SrtTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCodeTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/enums/TranstypeTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/EpollTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/ErrorTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/Socket6Test.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketCallbackTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketRecvTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendRecvFileTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketSendTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/SocketTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/models/TimeTest.kt (100%) rename {lib => core}/src/androidTest/java/io/github/thibaultbee/srtdroid/utils/Utils.kt (100%) rename {lib => core}/src/main/AndroidManifest.xml (100%) rename {lib => core}/src/main/cpp/CMakeLists.txt (100%) rename {lib => core}/src/main/cpp/CallbackContext.cpp (100%) rename {lib => core}/src/main/cpp/CallbackContext.h (100%) rename {lib => core}/src/main/cpp/Enums/AddressFamily.h (100%) rename {lib => core}/src/main/cpp/Enums/Bimap.h (100%) rename {lib => core}/src/main/cpp/Enums/Boundary.h (100%) rename {lib => core}/src/main/cpp/Enums/EnumConverter.h (100%) rename {lib => core}/src/main/cpp/Enums/Enums.h (100%) rename {lib => core}/src/main/cpp/Enums/EnumsSingleton.h (100%) rename {lib => core}/src/main/cpp/Enums/EpollFlag.h (100%) rename {lib => core}/src/main/cpp/Enums/EpollOpt.h (100%) rename {lib => core}/src/main/cpp/Enums/ErrorType.h (100%) rename {lib => core}/src/main/cpp/Enums/KMState.h (100%) rename {lib => core}/src/main/cpp/Enums/RejectReasonCode.h (100%) rename {lib => core}/src/main/cpp/Enums/SockOpt.h (100%) rename {lib => core}/src/main/cpp/Enums/SockStatus.h (100%) rename {lib => core}/src/main/cpp/Enums/TransType.h (100%) rename {lib => core}/src/main/cpp/Models/Epoll.h (100%) rename {lib => core}/src/main/cpp/Models/EpollEvent.h (100%) rename {lib => core}/src/main/cpp/Models/EpollFlags.h (100%) rename {lib => core}/src/main/cpp/Models/EpollOpts.h (100%) rename {lib => core}/src/main/cpp/Models/InetSocketAddress.h (100%) rename {lib => core}/src/main/cpp/Models/List.h (100%) rename {lib => core}/src/main/cpp/Models/Models.h (100%) rename {lib => core}/src/main/cpp/Models/MsgCtrl.h (100%) rename {lib => core}/src/main/cpp/Models/OptVal.h (100%) rename {lib => core}/src/main/cpp/Models/Pair.h (100%) rename {lib => core}/src/main/cpp/Models/Primitive.h (100%) rename {lib => core}/src/main/cpp/Models/Socket.h (100%) rename {lib => core}/src/main/cpp/Models/Stats.h (100%) rename {lib => core}/src/main/cpp/glue.cpp (100%) rename {lib => core}/src/main/cpp/log.h (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/Srt.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/Boundary.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollFlag.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/EpollOpt.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/ErrorType.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/KMState.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/RejectReasonCode.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/SockOpt.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/SockStatus.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/enums/Transtype.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/listeners/SocketListener.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/Epoll.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/EpollEvent.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/Error.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/MsgCtrl.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/Socket.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/Stats.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/Time.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/InternalRejectReason.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/PredefinedRejectReason.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/RejectReason.kt (100%) rename {lib => core}/src/main/java/io/github/thibaultbee/srtdroid/models/rejectreason/UserDefinedRejectReason.kt (100%) rename {lib => core}/src/main/res/values/strings.xml (100%) 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'