Deprecated QT-based UI for Cwtch: For the new Flutter UI go to: https://git.openprivacy.ca/cwtch.im/cwtch-ui https://cwtch.im
This repository has been archived on 2021-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Sarah Jamie Lewis 8c51c10eb0 Merge branch 'readmeLin' of dan/ui into master 2019-08-16 07:35:23 -07:00
android Use QAndroidService to properly have the service run on Android 2019-08-02 11:08:38 -07:00
go changes in cwtch event.queue 2019-08-14 15:30:24 -07:00
i18n Unblocking 2019-08-08 15:49:42 -07:00
linux use bundled tor code for desktop, updated bundled tor to 0.3.5.7. update android readme 2019-02-14 10:57:44 -08:00
qml Merge branch 'ui-tweaks' of cwtch.im/ui into master 2019-08-09 19:27:40 -07:00
windows windows log to file 2019-08-13 11:17:20 -07:00
.drone.yml drone revert to working 2019-08-15 22:55:05 -07:00
.gitignore Adding Basic Group Membership Pane 2019-03-06 12:00:55 -08:00
LICENSE Add 'LICENSE' 2019-02-14 07:08:02 +00:00
Makefile makefile to clean junk 2019-04-09 13:11:10 -07:00
README.md README updates for 0.2 2019-08-15 23:19:13 -07:00
go.mod drone clean 2019-08-15 16:54:28 -07:00
go.sum drone clean 2019-08-15 16:54:28 -07:00
main.go windows log to file 2019-08-13 11:17:20 -07:00
qml.qrc splash pane with custom loading progressbar; custom pre splash screen for android 2019-03-26 11:16:30 -07:00
ui.pro add french translation 2019-03-23 08:40:51 -04:00

README.md

Cwtch - UI

This codebase provides a graphical user interface for Desktop and Android for Cwtch: Privacy Preserving Infrastructure for Asynchronous, Decentralized and Metadata Resistant Applications

Security

Cwtch is an experimental concept and prototype. We do not recommend you use Cwtch today if you require secure communication. At least, not yet.

If you discover a security issue, please log an issue above, or email team@cwtch.im.

Running

Compiling

The UI is built using QT so you will need the development libraries and tools for your OS. Currently we are using QT 5.13.0

This code relies on therecipe/qt before getting started consult the Installation and Getting Started documentation to get that up and running. It will make building this much easier.

We are aiming to use Go module support for versioning but it has some issues working with therecipe/qt so we aren't there yet. For now build with GO111MODULE=off using just the GOPATH for dependancies.

Linux

go get -d
qtdeploy build linux
./deploy/linux/ui -local -debug 2>&1 | grep -v 'Detected anchors on an item that is managed by a layout.'

The -debug flag increases the logging level.

The -local flag means the binary should use the local copies of QML files instead of the compiled ones allowing for more rapid UI development.

The grep statement filters out some QML noise.

Android

We supply an arm-pie version of tor in android/libs/armeabi-v7a with the name libtor.so

go get -d
qtdeploy -docker build android
adb install deploy/android/build-debug.apk

Windows

  • Download and install QT Open Source edition
  • Go to My Computer - Right Click on This PC - Advanced System Settings - Environment Variables
    • New - QT_DIR = C:\Qt (or wherever you have it installed)
    • New - QT_VERSION = 5.12.1 (because I picked 5.12.1)
    • Edit the Path Variable and Add C:\Qt\Tools\mingw530_32\bin
  • Install MSYS2 (Bash shell for windows)
  • Install Go and make sure it's in the PATH, and add your GOPATH/bin to the PATH
  • Setup therecipe/qt (instructions https://github.com/therecipe/qt/wiki/Installation-on-Windows)
    • go get -u -v github.com/therecipe/qt/cmd/...
    • qtsetup (Can take around an hour?)

If all that is done, then check out cwtch.im/ui

go get -d
qtdeploy
deploy/windows/ui

Currently if you do not have Tor running Cwtch will start tor for you, which will open a dos console window. We are working to hide this in the future.

Contributing

Translations

(If you'd like to add a new translation, feel free to open an issue and we can generate the .ts file for you to edit by hand, or in QT Linguist!)

Add new translation

  1. Install the language tools if you have not already (on linux: sudo apt-get install qttools5-dev qttools-dev-tools)

  2. Edit ui.pro and add a new line in the variable definition for TRANSLATIONS like:

    TRANSLATIONS = i18n/translation_en.ts
    i18n/translation_de.ts

  3. Edit qml.qrc and add a new line near the other translation files like:

    <file>i18n/translation_de.qm</file>

  4. To update and generate your new translation file, run lupdate ui.pro and you will find your new file in the i18n/ directory.

Updating translations

Run lupdate ui.pro to update all the translation files in the i18n/ directory, then edit your languages' .ts file to make the appropriate changes. It is recommended to use QT Linguist (linguist) to edit the files.

When done, run lrelease ui.pro to compile all the translations from their .ts files into .qm files for use in the program. Then you can compile the ui program.