Fork chores

This commit is contained in:
Inex Code 2020-06-13 22:37:40 +03:00
parent 35beaa4492
commit d6379a9189
7 changed files with 66 additions and 36 deletions

28
Dockerfile Normal file
View file

@ -0,0 +1,28 @@
FROM ubuntu:18.04
ENV ANDROID_HOME="/opt/android-sdk" \
PATH="/opt/android-sdk/tools/bin:/home/inex/flutter/bin:/home/inex/flutter/bin/cache/dart-sdk/bin:$PATH" \
PUB_CACHE="/home/inex/.pub-cache"
RUN apt-get update > /dev/null \
&& apt-get -y install --no-install-recommends curl git lib32stdc++6 openjdk-8-jdk-headless cmake unzip ninja-build usbutils android-tools-adb > /dev/null \
&& apt-get --purge autoremove > /dev/null \
&& apt-get autoclean > /dev/null \
&& rm -rf /var/lib/apt/lists/*
RUN git clone -b dev https://github.com/flutter/flutter.git /home/inex/flutter
RUN curl -s -O https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip \
&& mkdir /opt/android-sdk \
&& unzip sdk-tools-linux-4333796.zip -d /opt/android-sdk > /dev/null \
&& rm sdk-tools-linux-4333796.zip
RUN mkdir ~/.android \
&& echo 'count=0' > ~/.android/repositories.cfg \
&& yes | sdkmanager --licenses > /dev/null \
&& sdkmanager "tools" "build-tools;29.0.0" "platforms;android-29" "platform-tools" "ndk-bundle" \
&& yes | sdkmanager --licenses > /dev/null \
&& flutter doctor -v
# && chown -R root:root /opt
EXPOSE 41905

View file

@ -1,17 +1,6 @@
![](https://i.imgur.com/wi7RlVt.png) # FurryChat
<p align="center"> An experimental fork of FluffyChat.
<a target="new" href="https://play.google.com/store/apps/details?id=chat.fluffy.fluffychat">
<img height="66px" src="https://christianpauly.gitlab.io/fluffychat-website/assets/images/google-play-badge.png" />
</a>
<a target="new" href="https://christianpauly.gitlab.io/fluffychat-website/en/fdroid.html">
<img height="66px" src="https://christianpauly.gitlab.io/fluffychat-website/assets/images/fdroid_button.png " />
</a>
<br>
<a href="https://christianpauly.gitlab.io/fluffychat-flutter" target="new">Open FluffyChat in the browser</a> - <a href="https://matrix.to/#/#fluffychat:matrix.org" target="new">Join the community</a> - <a href="https://metalhead.club/@krille" target="new">Follow me on Mastodon</a> - <a href="https://gitlab.com/ChristianPauly/fluffychat-website" target="new">Translate the website</a> - <a href="https://christianpauly.gitlab.io/fluffychat-website/faq.html" target="new">FAQ</a> - <a href="https://christianpauly.gitlab.io/fluffychat-website/" target="new">Website</a>
</p>
<br>
<br>
# Features # Features
* Single and group chats * Single and group chats
@ -64,6 +53,12 @@ sudo apt install ninja-build
5. `flutter run` 5. `flutter run`
### Docker
Don't even ask.
`docker run -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v ${PWD}:/build -v /home/inex/.pub-cache:/home/inex/.pub-cache -v /home/inex/flutter:/home/inex/flutter -d flutter-fluffy:1.0`
## How to add translations for your language ## How to add translations for your language
1. Replace the non-translated string in the codebase: 1. Replace the non-translated string in the codebase:

View file

@ -100,4 +100,4 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
} }
apply plugin: "com.google.gms.google-services" //apply plugin: "com.google.gms.google-services"

View file

@ -214,6 +214,8 @@ class ThemeSwitcherWidgetState extends State<ThemeSwitcherWidget> {
break; break;
} }
theme = theme.copyWith(accentColor: Colors.amber, primaryColor: Colors.deepOrange);
await saveThemeValue(matrix, newTheme); await saveThemeValue(matrix, newTheme);
await saveAmoledEnabledValue(matrix, amoled_enabled); await saveAmoledEnabledValue(matrix, amoled_enabled);
setState(() { setState(() {

View file

@ -336,7 +336,7 @@ class L10n extends MatrixLocalizations {
String get fileSize => Intl.message("File size"); String get fileSize => Intl.message("File size");
String get fluffychat => Intl.message("FluffyChat"); String get fluffychat => Intl.message("FurryChat");
String get forward => Intl.message('Forward'); String get forward => Intl.message('Forward');
@ -374,6 +374,8 @@ class L10n extends MatrixLocalizations {
String get help => Intl.message("Help"); String get help => Intl.message("Help");
String get homeserverOrMXID => Intl.message("Homeserver or MXID");
String get homeserverIsNotCompatible => String get homeserverIsNotCompatible =>
Intl.message("Homeserver is not compatible"); Intl.message("Homeserver is not compatible");

View file

@ -71,6 +71,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.3" version: "1.1.3"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
collection: collection:
dependency: transitive dependency: transitive
description: description:
@ -129,14 +136,19 @@ packages:
url: "https://github.com/simolus3/moor.git" url: "https://github.com/simolus3/moor.git"
source: git source: git
version: "1.0.0" version: "1.0.0"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
famedlysdk: famedlysdk:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "../famedlysdk"
ref: "857775cf37804440717ce797e0ed63fd39066904" relative: true
resolved-ref: "857775cf37804440717ce797e0ed63fd39066904" source: path
url: "https://gitlab.com/famedly/famedlysdk.git"
source: git
version: "0.0.1" version: "0.0.1"
ffi: ffi:
dependency: transitive dependency: transitive
@ -469,7 +481,7 @@ packages:
name: package_config name: package_config
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.0" version: "1.9.3"
package_resolver: package_resolver:
dependency: transitive dependency: transitive
description: description:
@ -483,7 +495,7 @@ packages:
name: path name: path
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.6.4" version: "1.7.0"
path_drawing: path_drawing:
dependency: transitive dependency: transitive
description: description:
@ -561,13 +573,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.4.2" version: "1.4.2"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
random_string: random_string:
dependency: "direct main" dependency: "direct main"
description: description:
@ -628,7 +633,7 @@ packages:
name: source_map_stack_trace name: source_map_stack_trace
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.5" version: "2.0.0"
source_maps: source_maps:
dependency: transitive dependency: transitive
description: description:
@ -705,21 +710,21 @@ packages:
name: test name: test
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.13.0" version: "1.14.7"
test_api: test_api:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.15" version: "0.2.16"
test_core: test_core:
dependency: transitive dependency: transitive
description: description:
name: test_core name: test_core
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.1" version: "0.3.7"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:

View file

@ -25,9 +25,7 @@ dependencies:
cupertino_icons: ^0.1.2 cupertino_icons: ^0.1.2
famedlysdk: famedlysdk:
git: path: ../famedlysdk
url: https://gitlab.com/famedly/famedlysdk.git
ref: 857775cf37804440717ce797e0ed63fd39066904
localstorage: ^3.0.1+4 localstorage: ^3.0.1+4
bubble: ^1.1.9+1 bubble: ^1.1.9+1