-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from team-supercharge/bugfixes
Fix bug related to the teardown method and old RNCryptor version
- Loading branch information
Showing
11 changed files
with
328 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
PODS: | ||
- RNCryptor (2.2) | ||
- SCConfiguration (2.0.0): | ||
- RNCryptor (~> 2.0) | ||
- SCConfiguration (2.2.0) | ||
|
||
DEPENDENCIES: | ||
- SCConfiguration (from `../`) | ||
|
||
EXTERNAL SOURCES: | ||
SCConfiguration: | ||
:path: "../" | ||
:path: ../ | ||
|
||
SPEC CHECKSUMS: | ||
RNCryptor: c68678461a2c7474a55db9a6a98834c22d51f535 | ||
SCConfiguration: 6641aca330415f0ab2b7df44a24e71ecc6ebc8a0 | ||
SCConfiguration: ec7fb82f3d3215d720935879483da59545756131 | ||
|
||
PODFILE CHECKSUM: 25fa3b69afd19a2eec86fab4e9ba7e9e5a6f5b2c | ||
|
||
COCOAPODS: 1.0.0 | ||
COCOAPODS: 1.3.1 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// NSMutableData+SCCryptographyHelper.h | ||
// Pods-SCConfiguration_Example | ||
// | ||
// Created by Gergo Nemeth on 2017. 11. 06.. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface NSMutableData (SCCryptographyHelper) | ||
|
||
- (NSData *)SC_consumeToIndex:(NSUInteger)index; | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// NSMutableData+SCCryptographyHelper.m | ||
// Pods-SCConfiguration_Example | ||
// | ||
// Created by Gergo Nemeth on 2017. 11. 06.. | ||
// | ||
|
||
#import "NSMutableData+SCCryptographyHelper.h" | ||
|
||
@implementation NSMutableData (SCCryptographyHelper) | ||
|
||
- (NSData *)SC_consumeToIndex:(NSUInteger)index | ||
{ | ||
NSData *removed = [self subdataWithRange:NSMakeRange(0, index)]; | ||
[self replaceBytesInRange:NSMakeRange(0, self.length - index) withBytes:([self mutableBytes] + index)]; | ||
[self setLength:self.length - index]; | ||
return removed; | ||
} | ||
|
||
@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.