-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking Changes: * `DMEClientDelegate` has been split out into `DMEClientAuthorizationDelegate` and `DMEClientDownloadDelegate`. New features: * Clients can now limit authorization request to include only data for a specified time range. * Client can now return data in encrypted form. * Experimental Repository subspec which provides a more intuitive way of using and querying native objects. Initially available with Social (Post, Media, Comment), Finance (Transaction) and Government (UK Vehicle Registration and MOT Tests) objects. More will be added in future. Better error handling: * Add ability to stop supporting older versions of the SDK in the future. When an SDK is no longer supported, a new error `SDKErrorInvalidVersion` will be returned during session creation. * Also performed a tidy up of errors being returned - some were being returned to caller via delegate and not via completion block - this is now consistent. * Notify developer if they fail to set the callback URL scheme in the Info.plist via new `SDKErrorNoURLScheme` error. Getting ready for upcoming features: * Add support for future Guest Consent authorization. * Add support for future ability to request a Postbox identifier.
- Loading branch information
1 parent
6c9f1eb
commit 567cc71
Showing
266 changed files
with
10,450 additions
and
5,879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,37 @@ | ||
Pod::Spec.new do |s| | ||
|
||
s.name = "DigiMeSDK" | ||
s.version = "2.1.1" | ||
s.version = "2.4.0" | ||
s.summary = "digi.me iOS Consent Access SDK" | ||
s.homepage = "https://github.com/digime/digime-sdk-ios" | ||
s.license = { :type => "MIT", :file => "LICENSE" } | ||
s.author = { "digi.me Ltd." => "ios@digi.me" } | ||
s.platform = :ios, "10.0" | ||
s.source = { :git => "https://github.com/digime/digime-sdk-ios.git", :branch => "#{s.version}", :tag => "#{s.version}" } | ||
s.source_files = "DigiMeSDK/**/*.{h,m}" | ||
s.frameworks = "Foundation", "UIKit", "CoreGraphics", "Security", "StoreKit" | ||
s.resources = ["DigiMeSDK/Assets/*.{der}"] | ||
s.dependency "Brotli" | ||
|
||
s.source = { | ||
:git => "https://github.com/digime/digime-sdk-ios.git", | ||
:branch => s.version, | ||
:tag => s.version | ||
} | ||
|
||
s.default_subspec = 'Core' | ||
|
||
s.subspec 'Core' do |ss| | ||
ss.source_files = "DigiMeSDK/Core/Classes/**/*.{h,m}", "DigiMeSDK/DigiMeSDK.h" | ||
ss.resources = ["DigiMeSDK/Core/Assets/*.{der}"] | ||
ss.frameworks = "Foundation", "UIKit", "CoreGraphics", "Security", "StoreKit" | ||
ss.private_header_files = 'DigiMeSDK/Core/Classes/Network/*.h', | ||
'DigiMeSDK/Core/Classes/Utility/*.h', | ||
'DigiMeSDK/Core/Classes/Security/DME*.h', | ||
'DigiMeSDK/Core/Classes/DMEAuthorizationManager.h', | ||
'DigiMeSDK/Core/Classes/DMEClient+Private.h' | ||
end | ||
|
||
|
||
s.subspec 'Repository' do |ss| | ||
ss.source_files = "DigiMeSDK/Repository/Classes/**/*.swift" | ||
ss.frameworks = "Foundation" | ||
ss.dependency "DigiMeSDK/Core" | ||
end | ||
end |
0
DigiMeSDK/Assets/apiCert1.der → DigiMeSDK/Core/Assets/apiCert1.der
100644 → 100755
File renamed without changes.
0
DigiMeSDK/Assets/apiCert2.der → DigiMeSDK/Core/Assets/apiCert2.der
100644 → 100755
File renamed without changes.
0
DigiMeSDK/Assets/apiCert3.der → DigiMeSDK/Core/Assets/apiCert3.der
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
DigiMeSDK/Core/Classes/Callbacks/DMEClientAuthorizationDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// DMEClientAuthorizationDelegate.h | ||
// DigiMeSDK | ||
// | ||
// Created on 09/07/2018. | ||
// Copyright © 2018 digi.me Limited. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "CASession.h" | ||
#import "NSError+SDK.h" | ||
#import "NSError+Auth.h" | ||
#import "NSError+API.h" | ||
|
||
#pragma once | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@protocol DMEClientAuthorizationDelegate <NSObject> | ||
|
||
@optional | ||
|
||
/** | ||
Executed when session has been created. | ||
@param session Consent Access Session | ||
*/ | ||
- (void)sessionCreated:(CASession *)session; | ||
|
||
|
||
/** | ||
Executed when session creation has failed. | ||
@param error NSError | ||
*/ | ||
- (void)sessionCreateFailed:(NSError *)error; | ||
|
||
|
||
/** | ||
Executed when CA Contract has been successfully authorized. | ||
@param session Consent Access Session | ||
*/ | ||
- (void)authorizeSucceeded:(CASession *)session; | ||
|
||
|
||
/** | ||
Executed when CA Contract has been declined by the user. | ||
@param error NSError | ||
*/ | ||
- (void)authorizeDenied:(NSError *)error; | ||
|
||
|
||
/** | ||
Executed when CA Contract has been authorized, but failed for another reason. | ||
@param error NSError | ||
*/ | ||
- (void)authorizeFailed:(NSError *)error; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.