This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cleaned up and hardened BloC logic #501 OT-779 Fixed method channel names Fixed logger usage Renamed notification_manager.dart to display_notification_manager.dart Added async suffix Updated libraries involved in push and notifications Fixed some names and const declarations * Moved key generation into the dart part #501 OT-779 Key handling includes generating, persisting, getting, converting Refactored the method channel handling on Android Refactored the method channel handling on Dart / Flutter side Cleaned up Android native part Renaming and wrapping to better understand sharing flows * Update Android components and try push workarounds #501 OT-779 Fixed MethodChannels.java typo Updated gradle Update libs Added more push callback for debugging * Updated background_fetch, adjust plugin #501 OT-779 * Fix logging * Adjust to new plugin init param * Fix logging * Only recreate LocalNotificationManager if called from background Renamed stuff * Use decrypt in memory * Fix background refresh * testing with in mem decryption * Update firebase * post rebase fixes * first addition of NotificationService extension * Rebase fixes * Cleanup * Cleanup and remove not working workarounds * Fix typo * Post rebase fixes * SecurityHelper additions * Adjust stuff Co-authored-by: Frank Gregor <[email protected]>
- Loading branch information
Showing
70 changed files
with
2,102 additions
and
915 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 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
80 changes: 80 additions & 0 deletions
80
android/app/src/main/java/com/openxchange/oxcoi/MethodChannel.java
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,80 @@ | ||
/* | ||
* OPEN-XCHANGE legal information | ||
* | ||
* All intellectual property rights in the Software are protected by | ||
* international copyright laws. | ||
* | ||
* | ||
* In some countries OX, OX Open-Xchange and open xchange | ||
* as well as the corresponding Logos OX Open-Xchange and OX are registered | ||
* trademarks of the OX Software GmbH group of companies. | ||
* The use of the Logos is not covered by the Mozilla Public License 2.0 (MPL 2.0). | ||
* Instead, you are allowed to use these Logos according to the terms and | ||
* conditions of the Creative Commons License, Version 2.5, Attribution, | ||
* Non-commercial, ShareAlike, and the interpretation of the term | ||
* Non-commercial applicable to the aforementioned license is published | ||
* on the web site https://www.open-xchange.com/terms-and-conditions/. | ||
* | ||
* Please make sure that third-party modules and libraries are used | ||
* according to their respective licenses. | ||
* | ||
* Any modifications to this package must retain all copyright notices | ||
* of the original copyright holder(s) for the original code used. | ||
* | ||
* After any such modifications, the original and derivative code shall remain | ||
* under the copyright of the copyright holder(s) and/or original author(s) as stated here: | ||
* https://www.open-xchange.com/legal/. The contributing author shall be | ||
* given Attribution for the derivative code and a license granting use. | ||
* | ||
* Copyright (C) 2016-2020 OX Software GmbH | ||
* Mail: [email protected] | ||
* | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
* or FITNESS FOR A PARTICULAR PURPOSE. See the Mozilla Public License 2.0 | ||
* for more details. | ||
*/ | ||
|
||
package com.openxchange.oxcoi; | ||
|
||
class MethodChannel { | ||
|
||
abstract static class Security { | ||
static final String NAME = "oxcoi.security"; | ||
|
||
abstract static class Methods { | ||
static final String DECRYPT = "decrypt"; | ||
} | ||
|
||
abstract static class Arguments { | ||
static final String CONTENT = "encryptedBase64Content"; | ||
static final String PRIVATE_KEY = "privateKeyBase64"; | ||
static final String PUBLIC_KEY = "publicKeyBase64"; | ||
static final String AUTH = "authBase64"; | ||
} | ||
} | ||
|
||
abstract static class Sharing { | ||
static final String NAME = "oxcoi.sharing"; | ||
|
||
abstract static class Methods { | ||
static final String GET_SHARE_DATA = "getSharedData"; | ||
static final String SEND_SHARE_DATA = "sendSharedData"; | ||
static final String GET_INITIAL_LINK = "getInitialLink"; | ||
} | ||
|
||
abstract static class Arguments { | ||
static final String MIME_TYPE = "mimeType"; | ||
static final String TEXT = "text"; | ||
static final String PATH = "path"; | ||
static final String NAME = "fileName"; | ||
static final String TITLE = "title"; | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.