Disable IPC build
authorPraveen Naik S <praveen.s@samsung.com>
Mon, 7 Aug 2023 10:41:59 +0000 (16:11 +0530)
committerPraveen Naik S <praveen.s@samsung.com>
Thu, 7 Sep 2023 09:20:21 +0000 (18:20 +0900)
- Disable IPC build to resolve android build error
- IPC implementation to be replaced with Android IPC mechanism in further PRs

android/aitt/build.gradle
android/aitt/src/main/java/com/samsung/android/aitt/handler/IpcHandler.java
android/modules/ipc/src/main/java/com/samsung/android/modules/ipc/Ipc.java
settings.gradle

index 86deaec419096ddd807231a40e6f12886ba82883..8ff64cf4ef8d0d4aa55eb3e087b8f081bf544b89 100644 (file)
@@ -52,7 +52,7 @@ dependencies {
 
     implementation project(path: ':android:modules:tcp')
     implementation project(path: ':android:modules:webrtc')
-    implementation project(path: ':android:modules:ipc')
+//    implementation project(path: ':android:modules:ipc')
     implementation project(path: ':android:modules:rtsp')
     implementation project(path: ':android:aitt-native')
 
index 8ca705f604e65473fe41f5057a769b5572ba2b31..870dd7d40c74709d6f5f81f5bfecdc8dc17c5f05 100644 (file)
@@ -20,7 +20,6 @@ import android.util.Log;
 import com.google.flatbuffers.FlexBuffersBuilder;
 import com.samsung.android.aitt.Aitt;
 import com.samsung.android.aitt.internal.Definitions;
-import com.samsung.android.modules.ipc.Ipc;
 
 import java.nio.ByteBuffer;
 
@@ -29,7 +28,6 @@ public class IpcHandler implements TransportHandler {
     private static final String TAG = "IpcHandler";
     private Context context;
     private String ip;
-    private Ipc ipc;
     private byte[] publishData;
 
     public IpcHandler() {
@@ -55,10 +53,7 @@ public class IpcHandler implements TransportHandler {
     public void subscribe(String topic, HandlerDataCallback handlerDataCallback) {
         publishData = wrapPublishData(topic);
         try {
-            Ipc.ReceiveFrameCallback cb = handlerDataCallback::pushHandlerData;
-            ipc = new Ipc(context, cb);
-            ipc.initConsumer();
-
+            //TODO : Invoke IPC consumer/subscribe APIs
         } catch (Exception e) {
             Log.e(TAG, "Failed to subscribe to IPC");
         }
@@ -92,18 +87,12 @@ public class IpcHandler implements TransportHandler {
 
     @Override
     public void publish(String topic, String ip, int port, byte[] message) {
-        if (ipc == null)
-        {
-            ipc = new Ipc(context);
-            ipc.initProducer();
-        }
-        ipc.writeToMemory(message);
+        //TODO: Invoke producer/publish APIs
     }
 
     @Override
     public void unsubscribe() {
-        if (ipc != null)
-            ipc.close();
+        //TODO: Invoke IPC close APIs
     }
 
     @Override
index ef09a023413a860ad398735ad58ca7bf22a8d4f7..4c95fcf545af1ef8b0b9e2396b9978bd5bcc4598 100644 (file)
@@ -142,5 +142,4 @@ public class Ipc {
         Thread thread = new Thread(consumer);
         thread.start();
     }
-
 }
index 304a34d026ca773c0d336a2a152898137f87dfef..7b203090c7a8765adcac3b2ef1b12687f85e1436 100644 (file)
@@ -2,7 +2,7 @@ include ':android:aitt'
 include ':android:aitt-native'
 include ':android:flatbuffers'
 include ':android:mosquitto'
-include ':android:modules:ipc'
+//include ':android:modules:ipc'
 include ':android:modules:rtsp'
 include ':android:modules:tcp'
 include ':android:modules:webrtc'