-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export to Bitwarden json #830
base: master
Are you sure you want to change the base?
Export to Bitwarden json #830
Conversation
- Added feature to export to bitwarden json - [IN-PROGRESS] Import from bitwarden json
return R.string.bitwarden_export_desc | ||
} | ||
|
||
@RequiresApi(Build.VERSION_CODES.O) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow can we remove this and add support for older version as well
|
||
val listOfExporters = listOf(BitwardenAccountsExporter()) | ||
|
||
@RequiresApi(Build.VERSION_CODES.O) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This as well
@@ -131,6 +135,7 @@ fun Dashboard() { | |||
} | |||
} | |||
|
|||
@RequiresApi(Build.VERSION_CODES.O) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this as well
val title = context.getString(getExporterTitle()).lowercase() | ||
val path = context.filesDir | ||
val letDirectory = File(path, "${title}_exports") | ||
letDirectory.mkdirs() | ||
|
||
val currentTime = LocalDateTime.now() | ||
val dateTime = currentTime.format(DateTimeFormatter.ofPattern("ddMMyyyyHHmmSS")) | ||
|
||
val exportFile: File = File(letDirectory, "${title}_export_${dateTime}.json") | ||
|
||
val uuid:UUID = UUID.randomUUID() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File creation logic can also be same for all the exporters.
@yogeshpaliyal Sorry for late push... was busy in univ exams. You can check this and let me know if any improvements required. I am working on the import feature.