C-bindings for the Go Cwtch Library https://cwtch.im
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
erinn d77d7bbc52 Merge pull request 'Upgrade Cwtch' (#66) from fastercwtch into trunk 4 hours ago
constants minor support to manage profile servers 2 months ago
features Allow Caching of Tor Data Directories 1 week ago
utils path -> filepath 1 week ago
.drone.yml pin drone container version to deal with docker hub instability 1 month ago
.gitignore macos uses .dylib 5 months ago
BUILDING_DEBUG.md Fresh Repository Commit - Cwtch Beta 7 months ago
LICENSE mit license 7 months ago
MEMORY.md Clarify Memory Ownership Model of libCwtch and Callers 5 months ago
Makefile make clean libCwtch.dylib 4 months ago
README.md cwtch upgrade dropping unused events; android build notes 1 month ago
clangwrap.sh Build ios 6 months ago
go.mod Upgrade Cwtch 4 hours ago
go.sum Upgrade Cwtch 4 hours ago
lib.go add more ContentHash to get*Message* functions, upgrade cwtch for the same 6 days ago
quality.sh Fix logging of ACN 2 weeks ago
switch-ffi.sh switch swtich-*.sh back to sed now with -i.bak and rm lib.go.bak for compatibility with macos 6 months ago
switch-gomobile.sh switch swtich-*.sh back to sed now with -i.bak and rm lib.go.bak for compatibility with macos 6 months ago

README.md

libcwtch-go

C-bindings for the Go Cwtch Library.

Build Instructions

make linux
make android
make windows

Android Build Notes

Our build infrastructure is using Go 1.15.10, NDK 21.0.6113669, and gomobile commit bdb1ca9a1e (2021 07 16)

Go 1.17.4, NDK 22.1.7171670, and gomobile 4e6c2922fd (2021 12 07) appear to compile as well.

Other version combinations untested and some definitely do not work.

Experimental iOS support

make ios

Using

Linux Desktop:

  • LD_LIBRARY_PATH set to point to libCwtch.so
  • or drop a symlink into /usr/lib

Android

  • copy cwtch.aar into flutter_app/android/cwtch

Windows

  • copy libCwtch.dll into the directory of the .exe using it