Git Product home page Git Product logo

Comments (5)

shoyu666 avatar shoyu666 commented on August 15, 2024

1 编辑 Open-IM-SDK-Core/Makefile 添加 android 目标

android:
	go get golang.org/x/mobile
	rm -rf build/ open_im_sdk/t_friend_sdk.go open_im_sdk/t_group_sdk.go  open_im_sdk/ws_wrapper/
	go mod download golang.org/x/exp
	GOARCH=arm64 gomobile bind -v -trimpath -ldflags "-s -w"  -target=android ./open_im_sdk/ ./open_im_sdk_callback/

2 编译会生成2个文件: open_im_sdk-sources.jar,open_im_sdk.aar
3 在Open-IM-SDK-Android/blob/main/OpenIM-SDK/lib 放入 open_im_sdk.aar (lib是新建目录)
4 编辑 https://github.com/OpenIMSDK/Open-IM-SDK-Android/blob/main/OpenIM-SDK/build.gradle

1注释掉aar
//implementation 'io.openim:core-sdk:2.3.0@aar'
2使用新编译的aar (Open-IM-SDK-Android/blob/main/OpenIM-SDK/open_im_sdk.aar)
implementation files('libs/open_im_sdk.aar')  

from openim-sdk-core.

shoyu666 avatar shoyu666 commented on August 15, 2024

flutter
编辑:https://github.com/OpenIMSDK/Open-IM-SDK-Flutter/blob/main/android/build.gradle

from openim-sdk-core.

BaiMoHan avatar BaiMoHan commented on August 15, 2024

flutter 编辑:https://github.com/OpenIMSDK/Open-IM-SDK-Flutter/blob/main/android/build.gradle

大佬,请问下这个集成到客户端后,如何让其go-sdk-core的日志在android studio的终端中也输出出来。我虽然在使用sdk的时候将日志等级设置了6,但是控制台没有输出其底层sdk打印的日志。可是我看到有其他人问问题的时候能贴出来底层sdk-core的go的日志,请问是否应该对android studio进行相关配置项的设置

from openim-sdk-core.

kubbot avatar kubbot commented on August 15, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

from openim-sdk-core.

kubbot avatar kubbot commented on August 15, 2024

This issue was closed because it has been stalled for 7 days with no activity.

from openim-sdk-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.