Lukas Spieß
8f83de2dbb
Reorder methods in BITAuthenticator and enforce code style
2016-04-12 00:26:20 +02:00
Lukas Spieß
80cd0eaf58
Use properties instead of iVars in BITAuthenticator
2016-04-11 23:31:28 +02:00
Lukas Spieß
d9188b1e5b
Properly close file descriptor
2016-03-07 03:47:04 +01:00
Lukas Spieß
7f55ffe07b
Move NSURLSession availability checks to HockeyHelper
...
# Conflicts:
# Classes/BITCrashManager.m
# Classes/BITFeedbackListViewController.m
# Classes/BITFeedbackManager.m
# Classes/BITHockeyHelper.m
# Classes/BITHockeyManager.m
# Classes/BITStoreUpdateManager.m
# Classes/BITUpdateManager.m
2016-01-19 02:58:35 +01:00
Lukas Spieß
bd3d14eafd
Remove is sessionSupported parameter from methods
...
# Conflicts:
# Classes/BITAuthenticator.m
2016-01-19 02:53:29 +01:00
Lukas Spieß
7900a4deb9
Use Apple recommended way to weakly link classes
...
Compare https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/cross_development/Using/using.html
2016-01-19 02:17:27 +01:00
Andreas Linde
947afd2f33
Fix NSURLSession memory leak in Swift apps
...
This should fix the issue raised in https://github.com/bitstadium/HockeySDK-iOS/issues/237
Tested the changes before the patch with Instruments and also after the patch which prooved the leaks going away.
2016-01-07 14:27:18 +01:00
Lukas Spieß
b5b519b038
Close file descriptor
...
File descriptors should of course be closed, not freed.
2015-10-21 11:52:10 +02:00
Lukas Spieß
a9df11d0be
Free file descriptor if we couldn't find the file
2015-10-21 11:32:52 +02:00
Lukas Spieß
6b727733a5
Merge pull request #209 from bitstadium/feature/update-appstore-detection
...
Update AppStore detection
2015-10-12 17:14:51 +02:00
Lukas Spieß
45575cfab9
Switch to using environment enum throughout
2015-10-09 12:59:58 +02:00
Lukas Spieß
713d60bf08
Switch to using new environment enum
2015-10-09 12:59:58 +02:00
Lukas Spieß
bccfc61a42
Add warnings to docs for threading, properly dispatch internally
2015-10-05 17:39:03 +02:00
Lukas Spieß
ed3ea81864
Disable Authenticator and UpdateManager in TestFlight
2015-10-05 17:12:39 +02:00
Lukas Spieß
5e1b3a3ef9
Run UI code in authenticator completions on main queue
2015-10-01 15:00:37 +02:00
Lukas Spieß
96cfb169b6
Switch back to using UIAlertView
...
We won't use UIAlertController for now until we have a more robust solution for displaying it without knowing the currently presented view controller.
2015-09-29 16:38:11 +02:00
Lukas Spieß
7539ab06ba
Add comments to #endif for clarity
2015-09-29 15:53:46 +02:00
Christoph Wendt
cdaead8433
Fix authentificator tests
2015-09-08 14:22:23 -07:00
Christoph Wendt
303f786938
Avoid retain cycles
2015-09-02 13:36:41 -07:00
Christoph Wendt
dd101d0e59
Add NSURLSession support (BITAuthenticator)
2015-09-02 13:35:59 -07:00
Christoph Wendt
f06cf2a636
Add NSURLSession support (BITAuthenticator)
2015-09-02 11:25:43 -07:00
Andreas Linde
05de1686fa
Fix alert presentation with UIAlertController
2015-08-24 17:01:58 +02:00
Andreas Linde
cb00038222
Use UIAlertController when available
2015-07-22 15:37:51 +02:00
Andreas Linde
6962f21473
Disable tracking the installation on a device
...
The new property will cause the app to generate a new `installString` value every time the app is cold started.
The property is only considered in App Store Environment, since it would otherwise affect the `BITUpdateManager` and `BITAuthenticator` functionalities!
Default is NO.
2015-06-08 14:03:54 +02:00
Andreas Linde
a27340d6bf
Fix header includes
2015-05-19 10:56:19 +02:00
Steven Fisher
504019a0b6
Fix spelling of observer.
2015-03-18 16:09:40 -07:00
Andreas Linde
c92f1dbf61
Use NSLog instead of alertview with keychain issue
...
When the authentication mechanism couldn't save the auth token to the keychain, now only show a message in the console. The user will have to login on the next app start anyway until the developer fixes the keychain signing or entitlements issue.
2015-02-05 20:40:34 +01:00
Andreas Linde
ccd04e1bcd
Fix a small typo in an alert of BITAuthenticator
2014-09-03 14:13:59 +02:00
Andreas Linde
a441811a42
Fix broken auth
...
The commit 1678d7550a did break BITAuthenticator
2014-08-08 16:20:23 +02:00
Andreas Linde
1678d7550a
Send install uuid with BITAuthenticator requests
2014-07-25 12:24:41 +02:00
Andreas Linde
c5cee82954
Added more logging to BITAuthenticator
...
More logging to the console in case of authentication issues, if debugLogEnabled is set
2014-06-18 18:22:35 +02:00
Andreas Linde
28f15120a3
Fix keychain warning alert showing app on app launch, if keychain is locked
...
This could happen if the app is launched via background fetch right when the device started and before it is unlocked by the user.
2014-04-01 16:06:32 +02:00
Andreas Linde
1b9e924426
Remove assert since that code can also be reached using auto-authentication.
2014-03-07 16:32:21 +01:00
Thomas Dohmke
fad5e586c5
Make sure that the chunk name is null-terminated.
2014-02-10 20:35:30 +01:00
Andreas Linde
a9fda179da
Added more logging for BITAuthenticator
2014-02-10 16:25:40 +01:00
Thomas Dohmke
af0604bef3
Fix two warnings when -Wshorten-64-to-32 is set.
2014-01-16 15:47:13 +01:00
Thomas Dohmke
e4010ea8ef
Add some more checks to avoid problems when iTunesArtwork is not a .png.
2014-01-14 19:03:53 +01:00
Andreas Linde
235f7ac9fe
Updated copyright for 2014
2014-01-12 19:25:22 +01:00
Andreas Linde
dde368a952
Show an alert if the authentication token could not be stored into the keychain
...
If this occurs, the user has to authenticate every time the app starts or even when the app comes into foreground, depending on the `restrictionEnforcementFrequency` setting
2014-01-10 19:47:50 +01:00
Andreas Linde
d5a6553357
Make sure the authentication window is always correctly dismissed
...
If there would not be any rootViewController (which iOS now requires though), it could happen that the auth window would not disappear upon successful authentication. The app would have had to be killed and started again to proceed.
2014-01-10 19:36:57 +01:00
Thomas Dohmke
eeff4d611d
Handle authorize URL from full-size-image.
2013-12-05 17:41:35 +01:00
Andreas Linde
6d6012b0f6
Fixed self.validated not always being set to NO if restrictionEnforcementFrequency is set to BITAuthenticatorAppRestrictionEnforcementOnAppActive
2013-12-04 14:08:08 +01:00
Andreas Linde
fe9bbd55e9
Fix two block related memory issues in BITAuthenticator
2013-11-10 22:44:54 +01:00
Andreas Linde
1341668224
Use UTF8 encoding for auth data
2013-11-04 16:27:34 +01:00
Stephan Diederich
92a0fe92c5
Merge branch 'feature/WebBasedAuthentication' into develop
2013-10-18 18:12:58 +02:00
Stephan Diederich
72c8033119
cleanup
...
remove dispatch_once. It should be safe to call this multiple times.
Although in the default use case this makes pretty much no sense,
but for the demo app it's nice to have.
2013-10-17 18:55:02 +02:00
Stephan Diederich
42e0882eb8
add missing localized error message
...
if there's no network response, also show a proper error.
2013-10-14 14:05:20 +02:00
Stephan Diederich
6a932e4da5
re-validate once alert-view was dismissed
...
* factor out common validate method
* call it in authenticate and after validation-error was dismissed
* don't reset identification if validation failed - it might have only been
a short network outage.
2013-10-14 14:01:32 +02:00
Stephan Diederich
28b08fa804
add "webAuth" identificationType
2013-10-11 17:18:04 +02:00
Stephan Diederich
00ad57b245
rename ivar
...
adjust name so that it's not that easy to confuse
it with the identificationType. This is only the type of
the identifier.
2013-10-11 17:18:01 +02:00