NMF-earth / nmf-app

Understand and reduce your carbon footprint 🌱 iOS & Android.
https://nmf.earth
GNU General Public License v3.0
498 stars 156 forks source link

Add import/export functionality #242

Closed saskakol closed 3 years ago

saskakol commented 3 years ago

✅ I have read the contributing file

Summary

This change closes #206. It adds import/export functionality, that allows the user to export the entire Redux store to a backup file that the user can then save to the desired location using a share sheet. (e.g saving to cloud services or local storage)

I haven't written any tests for this change, so that would be a todo, along with internationalization.

Changelog

Added import/export functionality for backing up user data.

Demo

Screenshot_1 Screenshot _2

saskakol commented 3 years ago

Ah, sorry about that, I must have somehow overlooked the part about only importing emissions. I'll make the changes as soon as I can.

PierreBresson commented 3 years ago

@iSasFTW Due to #243 , master branch is now deleted and main is the new master, that's why the PR was automatically closed and I can't reopen it, sorry :/

saskakol commented 3 years ago

@PierreBresson Should I make a new PR onto the new branch?

PierreBresson commented 3 years ago

@iSasFTW yes, against main branch

PierreBresson commented 3 years ago

@saskakol done in https://github.com/NMF-earth/nmf-app/pull/263, thanks for the guidance 🙂