summaryrefslogtreecommitdiffhomepage
path: root/app/lib/problem-report.android.js
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2018-01-22 15:08:34 +0100
committerErik Larkö <erik@mullvad.net>2018-01-22 15:08:34 +0100
commit40efbb790f5776fad7336c4ba19db384179511f4 (patch)
tree6f224c8cae080d115409177c73e822a534b4d2d9 /app/lib/problem-report.android.js
parent8b66a953f244dbe04148f550dc7a8c8b4f50d2a0 (diff)
parent430ea2955170aaf78900dd41ab72ddb101e80df3 (diff)
downloadmullvadvpn-40efbb790f5776fad7336c4ba19db384179511f4.tar.xz
mullvadvpn-40efbb790f5776fad7336c4ba19db384179511f4.zip
Merge branch 'problem-report'
Diffstat (limited to 'app/lib/problem-report.android.js')
-rw-r--r--app/lib/problem-report.android.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/lib/problem-report.android.js b/app/lib/problem-report.android.js
new file mode 100644
index 0000000000..63deb102e4
--- /dev/null
+++ b/app/lib/problem-report.android.js
@@ -0,0 +1,12 @@
+// @flow
+import { MobileAppBridge } from 'NativeModules';
+
+const collectProblemReport = (toRedact: string) => {
+ return MobileAppBridge.collectProblemReport(toRedact);
+};
+
+const sendProblemReport = (email: string, message: string, savedReport: string) => {
+ return MobileAppBridge.sendProblemReport(email, message, savedReport);
+};
+
+export { collectProblemReport, sendProblemReport }; \ No newline at end of file