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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Housekeeping! #883
Housekeeping! #883
Conversation
You can trigger an installable build for these changes by visiting CircleCI here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hola @jleandroperez 馃憢
Loving all the red in this one :)
I tested as described but.... things didn't quite go as expected. After a fresh install of develop
I see a new welcome note. However, after a fresh install of this branch I do not (which seems the opposite of what we're wanting?)
Also, I spotted something curious about the first launch detection/logic and left a note about it.
Back to you sir!
Simplenote/SPAppDelegate.m
Outdated
} | ||
|
||
return firstLaunch; | ||
return [[Options shared] firstLaunch]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something might not be quite right with the changes to the way first launch is detected/checked, Have a look at the logic in didFinishLaunchingWithOptions at line 198 of the diff : https://github.com/Automattic/simplenote-ios/pull/883/files#diff-3d7ffb11fe2a17fede94feba3e9c5aa0R198
When the app is first launched, the value of [[Options shared] firstLaunch]
is false so the conditional there will always skip the truth block. Breakpoints and testing after a clean install should confirm (it does for me). Is there some other process that should be setting this flag (that might be bugged) that I'm missing?
Seems like maybe the check should be inverted and maybe renamed for clarity or something in a way that wouldn't conflict with existing installs?
Or maybe just adding back the check to retrieve an object vs a bool and then check for nil would work?
Thoughts?
@aerych I'm sorry!!! I had an unpushed commit 馃う Mind running a quick smoke test, just for sanity? Thank you sir!!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ha! Pesky missing commit!
Retested after updating and now I see the first launch behavior working as expected. And I do see the welcome note appearing in the new branch. (It's still there in develop too but 馃し I guess that's okay?)
Anyway, when ready!
Thanks a lot for testing this one sir!!! |
Details:
@available
checks@aerych Sir!! Can I bug you with this one?
Code deletion week!!! Yayyy!!!
Test:
develop
and loginWelcome Note
please!Test:
Welcome Note
please 馃槃Release
These changes do not require release notes.