Commit 47f53bd8 authored by Wilko Manger's avatar Wilko Manger

Show errors when authenticating on iOS

parent b5b86504
Pipeline #459 passed with stages
in 4 minutes and 52 seconds
A new version has been pushed to F-droid!
Although this isn't the biggest release, it's
still a big step: the first release of iOS will
be available! The build is currently still in
review by Apple.
You can download the iOS app via TestFlight soon,
join [#app:pattle.im](https://matrix.to/#/#app:pattle.im) to get the link immediately when
it's available!
### Other changes
- Add `.well-known` support!
- Automatically update homeserver property in 'Advanced'
while typing username
- Fix messages being wrongly grouped by sender
- Fix direct chats staying marked as direct when
someone else joins
### Android vs. iOS comparison
![Preview image 1](https://git.pattle.im/pattle/app/raw/v0.8.0/CHANGELOG/0.8.0-1.png)
![Preview image 2](https://git.pattle.im/pattle/app/raw/v0.8.0/CHANGELOG/0.8.0-2.png)
### Install this release
- F-droid
1. Add the following repo in F-droid:
https://fdroid.pattle.im/?fingerprint=E91F63CA6AE04F8E7EA53E52242EAF8779559209B8A342F152F9E7265E3EA729
2. Install 'Pattle'
- APK: Download from the assets of this release
### Issues
If you stumble upon any issues,
[please report them](https://git.pattle.im/pattle/app/issues)!
You can [login via GitHub and Gitlab.com](https://git.pattle.im/users/sign_in)
, so it's really easy to do!
### Follow Pattle
Follow development in [#app:pattle.im](https://matrix.to/#/#app:pattle.im)!
### Support me
If you would like to support me, you can now do so
via [Liberapay](https://liberapay.com/wilko/) and
[Patreon](https://www.patreon.com/pattle_app).
I've invested a lot of money in making Pattle happen
on iOS: MacBook, Apple Developer Program, and an iPhone.
Pretty costly, so any donations will be greatly appreciated!
......@@ -142,13 +142,11 @@ class UsernamePageState extends State<UsernamePage> {
} else if(snapshot.error is SocketException) {
errorText = l(context).connectionFailed;
} else {
debugPrint(snapshot.error.toString());
debugPrintStack();
errorText = l(context).unknownError;
}
}
return PlatformTextField(
final textField = PlatformTextField(
autofocus: true,
controller: usernameController,
inputFormatters: [LowerCaseTextFormatter()],
......@@ -172,6 +170,31 @@ class UsernamePageState extends State<UsernamePage> {
prefixMode: OverlayVisibilityMode.always,
)
);
if (isMaterial) {
return textField;
} else if (isCupertino) {
return Column(
children: <Widget>[
textField,
Padding(
padding: EdgeInsets.only(top: 8),
child: Container(
height: 32,
child: errorText != null ?
Text(
errorText,
style: TextStyle(
color: Colors.red,
)
) : Container()
),
)
],
) ;
} else {
return textField;
}
}
),
SizedBox(height: 16),
......
......@@ -95,15 +95,13 @@ class PasswordPageState extends State<PasswordPage> {
} else if(snapshot.error is SocketException) {
errorText = l(context).connectionFailed;
} else {
debugPrint(snapshot.error.toString());
debugPrintStack();
errorText = l(context).unknownError;
}
} else {
errorText = null;
}
return PlatformTextField(
final textField = PlatformTextField(
autofocus: true,
onChanged: (value) {
password = value;
......@@ -124,6 +122,31 @@ class PasswordPageState extends State<PasswordPage> {
)
),
);
if (isMaterial) {
return textField;
} else if (isCupertino) {
return Column(
children: <Widget>[
textField,
Padding(
padding: EdgeInsets.only(top: 8),
child: Container(
height: 32,
child: errorText != null ?
Text(
errorText,
style: TextStyle(
color: Colors.red,
)
) : Container()
),
)
],
) ;
} else {
return textField;
}
}
),
SizedBox(height: 16),
......
......@@ -62,7 +62,6 @@ class StartBloc {
final parsedUrl = Url.parse(url);
await _setHomeserver(parsedUrl);
print('parsedUrl: ${parsedUrl}');
_userIdDomain = parsedUrl;
} on FormatException {
if (!allowMistake) {
......
......@@ -213,7 +213,7 @@ packages:
name: matrix_sdk
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.1"
version: "0.16.2"
matrix_sdk_sqflite:
dependency: "direct main"
description:
......
......@@ -12,7 +12,7 @@ dependencies:
injector: ^1.0.6
matrix_sdk: ^0.16.1
matrix_sdk: ^0.16.2
matrix_sdk_sqflite: ^0.12.0
rxdart: ^0.21.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment