Skip to content

Commit

Permalink
feat: update sdk to v3.5.1 and refactor project structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
FGadvancer committed May 18, 2024
1 parent 539b273 commit a454b4f
Show file tree
Hide file tree
Showing 37 changed files with 347 additions and 917 deletions.
20 changes: 20 additions & 0 deletions c/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.12)
project(test_project)

Set source code files
set(SOURCE_FILES test.c)

Set dynamic library file path
set(LIBRARY_PATH ../shared/windows)

Set dynamic library file name
set(LIBRARY_NAME libopenimsdk)

Add executable
add_executable(test.exe ${SOURCE_FILES})

Add library directory for linking
link_directories(${LIBRARY_PATH})

Add library for linking
target_link_libraries(test.exe ${LIBRARY_NAME})
1 change: 1 addition & 0 deletions c/include/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# openim-sdk-cpp
4 changes: 2 additions & 2 deletions c_cpp_wrapper/test.c → c/src/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <stdlib.h>
#include <unistd.h>

#include "openimsdk.h"
#include "../include/libopenimsdk.h"

typedef struct
{
Expand Down Expand Up @@ -51,7 +51,7 @@ int main(int argc, char **argv)
set_advanced_msg_listener(c_message_callback);
login(c_base_callback, operationID, uid, token);
sleep(10);
// char text[] = "哈哈";
// char text[] = "hello";
char* loginUserID=get_login_user();

printf("return :%s\n",loginUserID);
Expand Down
1 change: 0 additions & 1 deletion c_cpp_wrapper/build_test.bat

This file was deleted.

1 change: 0 additions & 1 deletion c_cpp_wrapper/event_listener/listener.go

This file was deleted.

32 changes: 0 additions & 32 deletions c_cpp_wrapper/gen_android_so.bat

This file was deleted.

38 changes: 0 additions & 38 deletions c_cpp_wrapper/go.mod

This file was deleted.

166 changes: 0 additions & 166 deletions c_cpp_wrapper/go.sum

This file was deleted.

1 change: 1 addition & 0 deletions cpp/include/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# openim-sdk-cpp
File renamed without changes.
Loading

0 comments on commit a454b4f

Please sign in to comment.