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.
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
- Loading branch information
Showing
20 changed files
with
303 additions
and
227 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
39 changes: 39 additions & 0 deletions
39
android/app/src/main/java/com/openxchange/oxcoi/MethodChannels.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,39 @@ | ||
package com.openxchange.oxcoi; | ||
|
||
|
||
class MethodChannels { | ||
|
||
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"; | ||
} | ||
} | ||
} | ||
|
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
Oops, something went wrong.