Commit 8183287
authored
Robustified the pref file URL creation. (#512)
I made the Branch preference directory path URL more robust. I added:
More checks in code for failure and better recovery.
I added _Nonnull for compiler level checking of these code paths.
A worst case backup plan if normal Branch prefs directory creation fails.
n.b.: Storyboards were updated so that Xcode 7 could be tested.
Since we don't know the underlying problem this fix may not help but certainly won't hurt.
I tested this code on iOS 7/8/9/10 on iOS devices, and with Xcode 7 and 8.
I tested the worst case option by forcing failure in the normal code path with the debugger.1 parent 89a5f67 commit 8183287
File tree
4 files changed
+204
-181
lines changed- Branch-SDK/Branch-SDK
- Branch-TestBed/Branch-TestBed
- Base.lproj
4 files changed
+204
-181
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
721 | 740 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
728 | 746 | | |
729 | | - | |
730 | | - | |
731 | | - | |
| 747 | + | |
| 748 | + | |
732 | 749 | | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
742 | 771 | | |
743 | | - | |
| 772 | + | |
744 | 773 | | |
745 | 774 | | |
746 | | - | |
| 775 | + | |
747 | 776 | | |
748 | | - | |
| 777 | + | |
749 | 778 | | |
750 | 779 | | |
751 | 780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
0 commit comments