Mirror of https://github.com/syphon-org/syphon.git to allow for building of hourly unofficial dev versions of the app https://syphon.org
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.
 
 
 
 
 
 
taylor 00990e03de
Merge pull request #682 from trosel/patch-1
5 months ago
.fvm chore: initial upgrade and android target sdk bump 7 months ago
.github chore: updating pr template 9 months ago
.vscode single sign on UI and clean up for login/signup flows 2 years ago
android chore: bumped to sdk 31 for android, updated kotlin gradle plugin, building under 2.10.3 7 months ago
assets Translated using Weblate (Estonian) 6 months ago
docs Update faq-en.md 6 months ago
fastlane/metadata/android fix: changelog and ios version 6 months ago
ios chore: bump fdroid 0.2.13 6 months ago
lib add Shavian 5 months ago
linux chore: updated generated files 8 months ago
macos chore: bump fdroid 0.2.13 6 months ago
scripts [feature] Desktop Builds (#212) 2 years ago
test renaming package to syphon 2 years ago
windows chore: Windows Executable parity with other builds 9 months ago
.drone.yml chore: drone bump + overriding generated macos file 7 months ago
.gitignore fix: issues with registration for some servers, potential unaccounted for spec change 1 year ago
.gitmodules feat: add Windows olm library 11 months ago
.metadata init commit 3 years ago
analysis_options.yaml refactor: remove old 0.2.9 message session conversion code 6 months ago
authors.md move authors file 7 months ago
build.yaml fix: issue authenticating with SSO under multiaccounts 12 months ago
changelog.md chore: update supported translations list + changelog 6 months ago
contributing.md move authors file 7 months ago
license.md adding license + touch ups 2 years ago
pubspec.lock chore: bumped to sdk 31 for android, updated kotlin gradle plugin, building under 2.10.3 7 months ago
pubspec.yaml chore: bump fdroid 0.2.13 6 months ago
readme.md fix: reverted to latest gradle of v6 to maintain builds on macos 8 months ago
translations.md Update translations.md 1 year ago
updates.md add TWIM update template 2 years ago
version.txt chore: bump fdroid 0.2.13 6 months ago

readme.md


a privacy centric matrix client - now in open alpha*

Get it on Google Play Download on the App Store


Translation status

Syphon is still in alpha and we do not recommend
using it where proven and independently verified security is required.


🤔 Why

Syphon aims to be built on the foundations of privacy, branding, and user experience
in an effort to pull others away from proprietary chat platforms to the matrix protocol.

Matrix has the potential to be a standardized peer-to-peer chat protocol, and in a way already is, that allows people to communicate and control their conversation data. Email has been standardized in this way for a long time. For example, someone using Outlook can still email someone using Gmail. Most popular proprietary chat platforms do not adhere to a federated or decentralized protocol, and as a result have too much control over users data.

If the goal for Matrix is adoption, a network effect is required for this paradigm shift. Syphon makes the bet that the best way to attract new users is through strong branding and user experience. I hope that contributing and maintaining Syphon will help kick start this process and help those in need.

Syphon will always be a not for profit, community driven application.

Features

  • no analytics. period.
  • no proprietary third party services
    • iOS will have APNS support, but will be made clear to the user
  • all data is AES-256 encrypted at rest
  • E2EE for direct chats using Olm/Megolm
  • all indicators of presence are opt-in only (typing indicators, read receipts, etc)
  • customize themes and colors throughout the app

🚀 Goals

  • desktop clients meet parity with mobile
  • screen lock and pin protected cache features
  • P2P messaging through a locally run server on the client
  • allow transfering user data from one homeserver to another, or from local to remote servers
  • cli client using ncurses and the same redux store contained here (common)

🌙 Nightlies

  • Nightly dev builds - and feature branch builds - can be found under our Gitea Releases
  • Unofficial "community" Windows x64 releases can be found under @EdGeraghty's fork

📝 Contributing

  • Instructions can be found under our contributing.md. Please fully read the document before beginning to write code or produce any material contribution for Syphon.
  • Donations are always welcome! The best way to donate is through the Syphon creator's Patreon.
  • Coming soon, we'll have a merch store! If you'd like to support the project but want a little something in return, this is the way to do it!

🏗 Building

You may notice Syphon does not look very dart-y (for example, no _private variable declarations, or using redux instead of provider) in an effort to reduce the learning curve from other languages or platforms. The faster one can get people contributing, the easier it will be for others to maintain or oversee a tool that does not exploit the user.

general

  • you'll to do several things to setup the environment for Syphon
    • install flutter (stable channel for all platforms)
    • install necessary third party sdks and tooling
      • ios -> xcode
      • android -> android studio
    • install cmake version for workstation platform (for olm/megolm)
    • install libs needed for cmake
      • macos -> brew install ninja
      • linux -> sudo apt install ninja-build
      • windows -> choco install ninja
    • clone repo and init submodules
      • git submodule update --init --recursive
    • run the following prebuild commands
      • flutter pub get
      • flutter pub run build_runner build

ios/android

  1. pull dependencies needed
    • flutter pub get
  2. generate json conversion for models
    • flutter pub run build_runner build --delete-conflicting-outputs
  3. generate json conversion for models
    • flutter run

macos

  1. flutter config --enable-macos-desktop
  2. brew install libolm to install native olm dependencies
  3. follow instructions for linking the dylib generated from brew to the Syphon project
  1. flutter build macos to build the .app bundle

linux

  1. flutter config --enable-linux-desktop
  2. apt install libolm3 libsqlite3-dev or pacman -S libolm or platform equivalent for libolm
  3. flutter build linux && flutter build bundle
  4. navigate to release at $SYPHON_ROOT/build/linux/release/bundle
  5. Confirm build works with running $SYPHON_ROOT/build/linux/release/bundle/syphon

windows

  1. flutter doctor should give you warnings for anything missing
  2. flutter config --enable-windows-desktop
  3. Compile olm & move olm.dll to libolm.dll in the executable directory
  4. Fetch sqlite's Precompiled Binaries for Windows dll from the website

📐 Architecture

store

  • views (flutter + MVVM)
  • state management (redux)
  • cache (redux_persist + json_serializable + sembast + codec cipher)
  • storage (drift + sqflite + sqlcipher)

assets

  • Looking for branding or design files? They can all be found here, in the top level assets folder.

integrations

  • Notifications
    • utitlizes android_alarm_manager on Android to run the matrix /sync requests in a background thread and display notifications with flutter_local_notifications
    • no third party notification provider will ever be used outside Apples APNS for iOS only
  • Equatable
    • This library allows comparisons of objects within Flutter to tell if they have changed.
  • JsonSerializable
    • Unfortunately, Json is not integrated directly in Dart/Flutter for your own objects. Code generation is required, for now, and will convert Syphon's custom objects to a 'Map' of respective json fields
  • Freezed (future)
    • Because every object in Syphon is immutable, freezed will help create objects doing the same thing all the 'copyWith' helper functions do today, with the improvement of allowing 'null' values to overwrite non-null values
  • Fastline Directory
    • fastline is not used as tool, but is there to provide a schema of metadata to FDroid

references

decoration: BoxDecoration(
   border: Border.all(width: 1, color: Colors.white),
),
  • understanding why olm chose the world 'pickle' for serialization, its from python

from those who made it possible

lub youu