diff --git a/android/app/src/main/res/xml/provider_paths.xml b/android/app/src/main/res/xml/provider_paths.xml new file mode 100644 index 000000000..99783cb5d --- /dev/null +++ b/android/app/src/main/res/xml/provider_paths.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/app/screens/settings/report_problem/report_problem.tsx b/app/screens/settings/report_problem/report_problem.tsx index d73cf949f..ca9abe7b2 100644 --- a/app/screens/settings/report_problem/report_problem.tsx +++ b/app/screens/settings/report_problem/report_problem.tsx @@ -29,14 +29,13 @@ const ReportProblem = ({buildNumber, currentTeamId, currentUserId, siteName, sup const appBuild = DeviceInfo.getBuildNumber(); const deviceId = DeviceInfo.getDeviceId(); - const logPaths = await TurboLogger.getLogPaths(); - - const attachments = logPaths.map((path) => ({ - path, - mimeType: 'message/rfc822', - })); - try { + const logPaths = await TurboLogger.getLogPaths(); + const attachments = logPaths.map((path) => ({ + path, + mimeType: 'message/rfc822', + })); + await TurboMailer.sendMail({ subject: `Problem with ${siteName} React Native app`, recipients: [supportEmail], diff --git a/ios/Podfile.lock b/ios/Podfile.lock index e36d213c7..8aeb28b4d 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -367,7 +367,7 @@ PODS: - RCTTypeSafety - React-Core - ReactCommon/turbomodule/core - - react-native-turbo-mailer (0.1.0): + - react-native-turbo-mailer (0.2.0): - React-Core - react-native-user-agent (2.3.1): - React @@ -929,7 +929,7 @@ SPEC CHECKSUMS: react-native-notifications: 83b4fd4a127a6c918fc846cae90da60f84819e44 react-native-paste-input: 183ad7dc224e192719616f4258dde5b548627d08 react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a - react-native-turbo-mailer: c709786e47b70c535a356cd7ee6fe1c185ed7c53 + react-native-turbo-mailer: 226fc3533d16500fb4ad08cf8ab2cfc7bb1ef593 react-native-user-agent: a90a1e839b99801baad67a73dd6f361a52aa3cf1 react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-webrtc: 86d841823e66d68cc1f86712db1c2956056bf0c2 diff --git a/package-lock.json b/package-lock.json index a729f5ea8..81c61e5b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@mattermost/react-native-network-client": "1.0.0", "@mattermost/react-native-paste-input": "0.5.1", "@mattermost/react-native-turbo-log": "0.2.0", - "@mattermost/react-native-turbo-mailer": "0.1.0", + "@mattermost/react-native-turbo-mailer": "0.2.0", "@msgpack/msgpack": "2.8.0", "@nozbe/watermelondb": "0.24.0", "@nozbe/with-observables": "1.4.1", @@ -3227,9 +3227,9 @@ } }, "node_modules/@mattermost/react-native-turbo-mailer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@mattermost/react-native-turbo-mailer/-/react-native-turbo-mailer-0.1.0.tgz", - "integrity": "sha512-Q6GY5sxdokJRuS/3DeAeqfmzWRboI9xDip2pEdw7K6CZCBdNXMNoPhqhq+KEV+/sJzfmx6qFGVipMyj5uGIyYA==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@mattermost/react-native-turbo-mailer/-/react-native-turbo-mailer-0.2.0.tgz", + "integrity": "sha512-KMrEkMa30zjFv8ofvQsE1c1ln+8ntGDKJWDjScK02jvN3rtD8jMz1derz1py8tbDU9uU2nQPqWu4lP4b3g27Tw==", "engines": { "node": ">= 16.0.0" }, @@ -24108,9 +24108,9 @@ "requires": {} }, "@mattermost/react-native-turbo-mailer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@mattermost/react-native-turbo-mailer/-/react-native-turbo-mailer-0.1.0.tgz", - "integrity": "sha512-Q6GY5sxdokJRuS/3DeAeqfmzWRboI9xDip2pEdw7K6CZCBdNXMNoPhqhq+KEV+/sJzfmx6qFGVipMyj5uGIyYA==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@mattermost/react-native-turbo-mailer/-/react-native-turbo-mailer-0.2.0.tgz", + "integrity": "sha512-KMrEkMa30zjFv8ofvQsE1c1ln+8ntGDKJWDjScK02jvN3rtD8jMz1derz1py8tbDU9uU2nQPqWu4lP4b3g27Tw==", "requires": {} }, "@msgpack/msgpack": { diff --git a/package.json b/package.json index c25ab4095..60616350d 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@mattermost/react-native-network-client": "1.0.0", "@mattermost/react-native-paste-input": "0.5.1", "@mattermost/react-native-turbo-log": "0.2.0", - "@mattermost/react-native-turbo-mailer": "0.1.0", + "@mattermost/react-native-turbo-mailer": "0.2.0", "@msgpack/msgpack": "2.8.0", "@nozbe/watermelondb": "0.24.0", "@nozbe/with-observables": "1.4.1",