Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HimanshuC22
Copy link

  • Added feature to export to bitwarden json
  • [IN-PROGRESS] Import from bitwarden json

@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.

- Added feature to export to bitwarden json
- [IN-PROGRESS] Import from bitwarden json
return R.string.bitwarden_export_desc
}

@RequiresApi(Build.VERSION_CODES.O)
Copy link
Owner

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)
Copy link
Owner

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)
Copy link
Owner

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

Comment on lines +47 to +57
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()
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants