-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Contacts app recognize tuta account
Close #7692 Close #6568 Co-authored-by: bir <[email protected]> Co-authored-by: hrb-hub <[email protected]>
- Loading branch information
1 parent
08892e5
commit da96e64
Showing
12 changed files
with
604 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
629 changes: 508 additions & 121 deletions
629
app-android/app/src/main/java/de/tutao/tutanota/AndroidMobileContactsFacade.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
<resources> | ||
<string name="app_name" translatable="false">Tuta</string> | ||
<string name="reminder_label">Reminder</string> | ||
<string name="pushNewMail_msg">New email received.</string> | ||
<string name="notificationSync_msg">Synchronizing notifications</string> | ||
<string name="scheduleAlarmError_msg">Could not set up an alarm. Please update the application.</string> | ||
<string name="wantToSendReport_msg">Something unexpected went wrong. Do you want to send an error report? You can add a message to help us fix this error.</string> | ||
<string name="downloadCompleted_msg">Download completed</string> | ||
<string name="unlockCredentials_action">Unlock credentials</string> | ||
<string name="delete_action">Delete</string> | ||
<string name="markRead_action">Mark read</string> | ||
<string name="app_name" translatable="false">Tuta</string> | ||
<string name="reminder_label">Reminder</string> | ||
<string name="pushNewMail_msg">New email received.</string> | ||
<string name="notificationSync_msg">Synchronizing notifications</string> | ||
<string name="scheduleAlarmError_msg">Could not set up an alarm. Please update the application.</string> | ||
<string name="wantToSendReport_msg">Something unexpected went wrong. Do you want to send an error report? You can add a message to help us fix this error.</string> | ||
<string name="downloadCompleted_msg">Download completed</string> | ||
<string name="unlockCredentials_action">Unlock credentials</string> | ||
<string name="delete_action">Delete</string> | ||
<string name="markRead_action">Mark read</string> | ||
|
||
<!-- FIXME: package --> | ||
<string name="account_type" translatable="false">de.tutao.tutanota</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:accountType="@string/account_type" | ||
android:icon="@mipmap/ic_logo_round" | ||
android:label="@string/app_name" | ||
android:smallIcon="@mipmap/ic_logo_round"/> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- The base valid EditSchema must contain "name" and "photo" DataKinds --> | ||
<!-- An invalid EditSchema will result in Tuta not being detected as a contact provider --> | ||
<ContactsAccountType> | ||
<EditSchema> | ||
<DataKind kind="photo" maxOccurs="1"/> | ||
<DataKind kind="name" | ||
maxOccurs="1" | ||
supportsDisplayName="false" | ||
supportsPrefix="true" | ||
supportsMiddleName="true" | ||
supportsSuffix="true" | ||
supportsPhoneticGivenName="true" | ||
supportsPhoneticMiddleName="true" | ||
supportsPhoneticFamilyName="true" | ||
/> | ||
<DataKind kind="phone"> | ||
<Type type="home"/> | ||
<Type type="work"/> | ||
<Type type="mobile"/> | ||
<Type type="other_fax"/> | ||
<Type type="other"/> | ||
<Type type="custom"/> | ||
</DataKind> | ||
<DataKind kind="email"> | ||
<Type type="home"/> | ||
<Type type="work"/> | ||
<Type type="other"/> | ||
<Type type="custom"/> | ||
</DataKind> | ||
<DataKind kind="nickname" maxOccurs="1"/> | ||
<DataKind kind="im"> | ||
<Type type="custom"/> | ||
</DataKind> | ||
<DataKind kind="postal" needsStructured="false"> | ||
<Type type="home"/> | ||
<Type type="work"/> | ||
<Type type="other"/> | ||
<Type type="custom"/> | ||
</DataKind> | ||
<DataKind kind="organization" maxOccurs="1"/> | ||
<DataKind kind="website"/> | ||
<DataKind kind="note" maxOccurs="1"/> | ||
<DataKind kind="event" dateWithTime="false"> | ||
<Type type="birthday" maxOccurs="1" yearOptional="true"/> | ||
</DataKind> | ||
<DataKind kind="relationship"> | ||
<Type type="parent"/> | ||
<Type type="brother"/> | ||
<Type type="sister"/> | ||
<Type type="child"/> | ||
<Type type="friend"/> | ||
<Type type="relative"/> | ||
<Type type="spouse"/> | ||
<Type type="partner"/> | ||
<Type type="assistant"/> | ||
<Type type="manager"/> | ||
<Type type="custom"/> | ||
</DataKind> | ||
</EditSchema> | ||
</ContactsAccountType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<resources> | ||
<string name="app_name" translatable="false">Tuta-Test</string> | ||
<string name="account_type" translatable="false">de.tutao.tutanota.test</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters