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 4b0d39b124 Merge pull request 'SendMessageToGroupError + Cwtch Version Bump' (#76) from groups into trunk 4 days ago
android android add cwtch knott icon, add signing release ability and drone support 1 week ago
assets Update Tor Icons 2 weeks ago
integration_test rough first cut of integration tests 3 weeks ago
ios Initial Prototype...loading profiles and contacts 4 months ago
lib model comment 4 days ago
linux goldens: flutter v2.2 changes blinky cursor parity 1 week ago
test goldens: flutter v2.2 changes blinky cursor parity 1 week ago
test_driver introducing widget and integration tests 1 month ago
windows windows build and run support 1 month ago
.drone.yml drone android release 4 days ago
.gitignore Update Tor Image 1 month ago
.metadata Initial Prototype...loading profiles and contacts 4 months ago
ARCH.md Theme switching with ChangeProvider 3 months ago
LIBCWTCH-GO.version SendMessageToGroupError + Cwtch Version Bump 4 days ago
README.md windows build and run support 1 month ago
SPEC.md Update Spec + Lightweight Prioritization 1 month ago
fetch-libcwtch-go.ps1 drone: add fetch-libcwtch ps1 script + switch to drone exec runner 1 week ago
fetch-libcwtch-go.sh drone: add fetch-libcwtch ps1 script + switch to drone exec runner 1 week ago
l10n.yaml translations wip 2 months ago
pubspec.lock goldens: flutter v2.2 changes blinky cursor parity 1 week ago
pubspec.yaml Merge branch 'trunk' of git.openprivacy.ca:flutter/flutter_app into integtests 3 weeks ago
regenerate_opaque_theme.sh erinndev 3 months ago

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.