This repository has been moved: https://git.openprivacy.ca/cwtch.im/cwtch-ui
Go to file
erinn 32e0c258a4
continuous-integration/drone/pr Build was killed Details
Merge branch 'trunk' into android-sign
2021-05-07 17:05:29 -07:00
android android add cwtch knott icon, add signing release ability and drone support 2021-05-07 16:57:36 -07:00
assets Update Tor Icons 2021-04-27 13:17:03 -07:00
integration_test rough first cut of integration tests 2021-04-20 17:24:28 -07:00
ios Initial Prototype...loading profiles and contacts 2021-01-06 15:09:58 -08:00
lib Reorder Contact List on Message Send 2021-05-06 16:40:50 -07:00
linux goldens: flutter v2.2 changes blinky cursor parity 2021-05-05 12:42:54 -07:00
test goldens: flutter v2.2 changes blinky cursor parity 2021-05-05 12:42:54 -07:00
test_driver introducing widget and integration tests 2021-03-26 18:02:01 -07:00
windows windows build and run support 2021-04-01 13:41:46 -07:00
.drone.yml drone windows full flutter path 2021-05-06 16:04:50 -07:00
.gitignore Update Tor Image 2021-04-13 19:29:16 -07:00
.metadata Initial Prototype...loading profiles and contacts 2021-01-06 15:09:58 -08:00
ARCH.md Theme switching with ChangeProvider 2021-01-27 12:21:36 -08:00
LIBCWTCH-GO.version update cwtch version 2021-05-06 14:27:39 -07:00
README.md windows build and run support 2021-04-01 13:41:46 -07:00
SPEC.md Update Spec + Lightweight Prioritization 2021-03-29 16:17:37 -07:00
fetch-libcwtch-go.ps1 drone: add fetch-libcwtch ps1 script + switch to drone exec runner 2021-05-05 15:18:28 -07:00
fetch-libcwtch-go.sh drone: add fetch-libcwtch ps1 script + switch to drone exec runner 2021-05-05 15:18:28 -07:00
l10n.yaml translations wip 2021-02-22 18:55:10 -08:00
pubspec.lock goldens: flutter v2.2 changes blinky cursor parity 2021-05-05 12:42:54 -07:00
pubspec.yaml Merge branch 'trunk' of git.openprivacy.ca:flutter/flutter_app into integtests 2021-04-20 17:24:37 -07:00
regenerate_opaque_theme.sh erinndev 2021-01-21 12:37:35 -08:00

README.md

flwtch

A new Flutter application.

Getting Started

click the play button in android studio

Linux

  • libCwtch-go: the result of make linux, libCwtch.so should be in the link path
  • tor should be in the PATH

Windows

  • libCwtch-go: the result of make windows, libCwtch.dll should be placed in the source root
  • tor is bundled in windors/Tor

l10n

Adding a new string

Strings are managed directly from our Lokalise(url?) project. Keys should be valid Dart variable names in lowerCamelCase. After adding a new key and providing/obtaining translations for it, follow the next step to update your local copy.

Updating translations

Only Open Privacy staff members can update translations automatically:

flutter pub run flutter_lokalise download -v --api-token "<X>" --project-id "<Y>"

This will download a bundle of translations from Lokalise and convert it to resource files in lib/l10n/intl_*.arb. The next time Flwtch is built, Flutter will notice the changes and update app_localizations.dart accordingly (thanks to generate:true in pubspec.yaml).

Using a string

Any widget underneath the main MaterialApp should be able to:

import 'package:flutter_gen/gen_l10n/app_localizations.dart';

and then use:

Text(AppLocalizations.of(context).stringIdentifer),

Configuration

API tokens are only available to Open Privacy staff at this time, who will perform the translation updates for you as part of merging your PRs.

With generate: true in pubspec.yaml, the Flutter build process checks l10n.yaml for input/output filenames.