GitHawkApp / GitHawk

The (second) best iOS app for GitHub.
http://githawk.com
MIT License
2.88k stars 384 forks source link

Bug report incorrect in terms of whether user is on TestFlight #2498

Closed Huddie closed 5 years ago

Huddie commented 5 years ago

This was created on the TestFlight build

See dump below says false

Bug Report Dump (Auto-generated)
Version 1.25.0 (1542806489)
Device: iPhone XR (iOS 12.1)
TestFlight: false
rnystrom commented 5 years ago

Hmph. @rizwankce ?

Sent with GitHawk

Sherlouk commented 5 years ago

Was this a GM build @Huddie? The TestFlight flag only works if a specific TestFlight build is used. I know Ryan pushes a final build to TF usually before pushing to the App Store where this doesn't work

Sherlouk commented 5 years ago

Can confirm just checked, notes for that version 1542806489 are "1.25.0 GM 2"

Huddie commented 5 years ago

Oh so this is proper. Didn’t know that is how it worked. @Sherlouk what will happen if I tapped “try beta” in settings? Same thing? It will assume I’m not on beta?

Sent with GitHawk

Huddie commented 5 years ago

Not really sure why I asked that and didn’t just check. So ya it assumes your not on beta.

Sent with GitHawk

Sherlouk commented 5 years ago

Correct yea it uses the same system. It all works based on a compiled flag and was first added for FLEX debugging purposes - see this file:

https://github.com/GitHawkApp/GitHawk/blob/8452d73ab9aab9db3891dce102c4b1574acc95d0/Classes/Views/FlexController.m#L11-L13

https://github.com/GitHawkApp/GitHawk/blob/8452d73ab9aab9db3891dce102c4b1574acc95d0/fastlane/Fastfile#L18

Fastfile above shows how we can create a TF build vs just a normal App Store build later in the file 😄

Valid point to raise though! We could consider using runtime checks for TF for things like bug reports and beta - though we must continue to use the compiler flag method for FLEX as we don't want that code making it's way into release builds

Huddie commented 5 years ago

@Sherlouk this probably explains why three finger tapping on this version does nothing lol. I spent a whole minute or 2 three fingering tapping on my screen this morning 🤦‍♂️. 😂

Sent with GitHawk

Sherlouk commented 5 years ago

I've been right there with you and I added it in the first place 😂