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

[status-im/status-react#9942] relative paths #1825

Merged
merged 1 commit into from
Feb 3, 2020
Merged

Conversation

rasom
Copy link
Collaborator

@rasom rasom commented Jan 31, 2020

Storing absolute path for different configs breaks compatibility on iOS as app's dir is changed after upgrade. The solution is to store relative paths and to concatenate it with backend.rootDataDir. The only exception is LogFile as it is stored outside backend.rootDataDir on Android. LogDir config was added to allow adding of custom dir for log file.
Configs concerned:
DataDir
LogDir
LogFile
KeystoreDir
BackupDisabledDataDir

status: ready

@status-github-bot
Copy link

Pull Request Checklist

  • Have you updated the documentation, if impacted (e.g. docs.status.im)?

@status-im-auto
Copy link
Member

status-im-auto commented Jan 31, 2020

Jenkins Builds

Click to see older builds (27)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 4934cca #1 2020-01-31 12:42:47 ~52 sec linux 📦zip
✔️ 4934cca #1 2020-01-31 12:47:22 ~5 min ios 📦zip
✔️ 4934cca #1 2020-01-31 12:49:10 ~7 min android 📦aar
✔️ 3787d16 #2 2020-01-31 14:23:48 ~37 sec linux 📦zip
3787d16 #2 2020-01-31 14:24:18 ~1 min ios 📄log
3787d16 #2 2020-01-31 14:24:50 ~1 min android 📄log
✔️ 6050c8d #3 2020-01-31 14:36:35 ~50 sec linux 📦zip
✔️ 6050c8d #3 2020-01-31 14:38:30 ~2 min ios 📦zip
✔️ 6050c8d #3 2020-01-31 14:41:19 ~5 min android 📦aar
✔️ 7b0272c #4 2020-01-31 15:41:52 ~37 sec linux 📦zip
✔️ 7b0272c #4 2020-01-31 15:43:55 ~2 min ios 📦zip
✔️ 7b0272c #4 2020-01-31 15:46:55 ~5 min android 📦aar
✔️ 992168b #5 2020-01-31 15:55:14 ~32 sec linux 📦zip
✔️ 992168b #5 2020-01-31 15:57:04 ~2 min ios 📦zip
✔️ 992168b #5 2020-01-31 16:00:04 ~5 min android 📦aar
✔️ ae9c559 #6 2020-02-03 09:21:25 ~42 sec linux 📦zip
✔️ ae9c559 #6 2020-02-03 09:23:13 ~2 min ios 📦zip
✔️ ae9c559 #6 2020-02-03 09:26:30 ~5 min android 📦aar
✔️ 4f8be72 #7 2020-02-03 10:34:31 ~40 sec linux 📦zip
✔️ 4f8be72 #7 2020-02-03 10:36:41 ~2 min ios 📦zip
✔️ 4f8be72 #7 2020-02-03 10:40:41 ~6 min android 📦aar
✔️ 40b8164 #8 2020-02-03 13:26:34 ~49 sec linux 📦zip
✔️ 40b8164 #8 2020-02-03 13:28:03 ~2 min ios 📦zip
✔️ 40b8164 #8 2020-02-03 13:31:15 ~5 min android 📦aar
✔️ fa0e2d8 #9 2020-02-03 14:10:18 ~47 sec linux 📦zip
✔️ fa0e2d8 #9 2020-02-03 14:11:56 ~2 min ios 📦zip
✔️ fa0e2d8 #9 2020-02-03 14:15:23 ~5 min android 📦aar
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ db47380 #10 2020-02-03 17:48:31 ~41 sec linux 📦zip
✔️ db47380 #10 2020-02-03 17:50:22 ~2 min ios 📦zip
✔️ db47380 #10 2020-02-03 17:53:27 ~5 min android 📦aar
✔️ 9cf6408 #11 2020-02-03 18:03:05 ~33 sec linux 📦zip
✔️ 9cf6408 #11 2020-02-03 18:05:10 ~2 min ios 📦zip
✔️ 9cf6408 #11 2020-02-03 18:07:53 ~5 min android 📦aar

Storing absolute path for different configs breaks compatibility on iOS
as app's dir is changed after upgrade. The solution is to store relative
paths and to concatenate it with `backend.rootDataDir`. The only
exception is `LogFile` as it is stored outside `backend.rootDataDir` on
Android. `LogDir` config was added to allow adding of custom dir for log
file.
Configs concerned:
`DataDir`
`LogDir`
`LogFile`
`KeystoreDir`
`BackupDisabledDataDir`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants