no message
This commit is contained in:
parent
df529258e0
commit
3165e2eef8
@ -30,7 +30,7 @@
|
|||||||
[user setFirstName:@"peppe"];
|
[user setFirstName:@"peppe"];
|
||||||
[user setLastName:@"nucifora"];
|
[user setLastName:@"nucifora"];
|
||||||
[user setUsername:@"giuseppe.nucifora"];
|
[user setUsername:@"giuseppe.nucifora"];
|
||||||
|
[user setPassword:@"giuseppe.nucifora.password"];
|
||||||
|
|
||||||
PNUser *object = [user saveLocally];
|
PNUser *object = [user saveLocally];
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,7 @@ PODS:
|
|||||||
- AFNetworking/Serialization (3.0.4)
|
- AFNetworking/Serialization (3.0.4)
|
||||||
- AFNetworking/UIKit (3.0.4):
|
- AFNetworking/UIKit (3.0.4):
|
||||||
- AFNetworking/NSURLSession
|
- AFNetworking/NSURLSession
|
||||||
|
- CodFis-Helper (0.1.2)
|
||||||
- Expecta (1.0.5)
|
- Expecta (1.0.5)
|
||||||
- Expecta+Snapshots (2.0.0):
|
- Expecta+Snapshots (2.0.0):
|
||||||
- Expecta (~> 1.0)
|
- Expecta (~> 1.0)
|
||||||
@ -24,11 +25,14 @@ PODS:
|
|||||||
- FBSnapshotTestCase/SwiftSupport (2.0.7):
|
- FBSnapshotTestCase/SwiftSupport (2.0.7):
|
||||||
- FBSnapshotTestCase/Core
|
- FBSnapshotTestCase/Core
|
||||||
- NSDate_Utils (0.1.0)
|
- NSDate_Utils (0.1.0)
|
||||||
|
- NSString-Helper (1.0.1)
|
||||||
- nv-ios-http-status (0.0.1)
|
- nv-ios-http-status (0.0.1)
|
||||||
- PEAR-FileManager-iOS (1.3.1)
|
- PEAR-FileManager-iOS (1.3.1)
|
||||||
- PNObject (0.1.0):
|
- PNObject (0.1.0):
|
||||||
- AFNetworking
|
- AFNetworking
|
||||||
|
- CodFis-Helper
|
||||||
- NSDate_Utils
|
- NSDate_Utils
|
||||||
|
- NSString-Helper
|
||||||
- nv-ios-http-status
|
- nv-ios-http-status
|
||||||
- PEAR-FileManager-iOS
|
- PEAR-FileManager-iOS
|
||||||
- UIDevice-Utils
|
- UIDevice-Utils
|
||||||
@ -37,10 +41,12 @@ PODS:
|
|||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- AFNetworking
|
- AFNetworking
|
||||||
|
- CodFis-Helper
|
||||||
- Expecta
|
- Expecta
|
||||||
- Expecta+Snapshots
|
- Expecta+Snapshots
|
||||||
- FBSnapshotTestCase
|
- FBSnapshotTestCase
|
||||||
- NSDate_Utils
|
- NSDate_Utils
|
||||||
|
- NSString-Helper
|
||||||
- nv-ios-http-status
|
- nv-ios-http-status
|
||||||
- PEAR-FileManager-iOS
|
- PEAR-FileManager-iOS
|
||||||
- PNObject (from `../`)
|
- PNObject (from `../`)
|
||||||
@ -53,16 +59,18 @@ EXTERNAL SOURCES:
|
|||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
AFNetworking: a0075feb321559dc78d9d85b55d11caa19eabb93
|
AFNetworking: a0075feb321559dc78d9d85b55d11caa19eabb93
|
||||||
|
CodFis-Helper: f303810699f22dbcba8fb8c600545ac91fc3ec42
|
||||||
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
|
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
|
||||||
Expecta+Snapshots: 29b38dd695bc72a0ed2bea833937d78df41943ba
|
Expecta+Snapshots: 29b38dd695bc72a0ed2bea833937d78df41943ba
|
||||||
FBSnapshotTestCase: 7e85180d0d141a0cf472352edda7e80d7eaeb547
|
FBSnapshotTestCase: 7e85180d0d141a0cf472352edda7e80d7eaeb547
|
||||||
NSDate_Utils: 4a57f91094123d5b7600c7de8c9ad9e1d43306a3
|
NSDate_Utils: 4a57f91094123d5b7600c7de8c9ad9e1d43306a3
|
||||||
|
NSString-Helper: e26909c87694add9be022ca24e856e3b6148fe89
|
||||||
nv-ios-http-status: b6c2b5fc8656cc19e0d3000dadce2080b99d0e2f
|
nv-ios-http-status: b6c2b5fc8656cc19e0d3000dadce2080b99d0e2f
|
||||||
PEAR-FileManager-iOS: 3bc403f68a53483f5629aa822f4649e40275c4d3
|
PEAR-FileManager-iOS: 3bc403f68a53483f5629aa822f4649e40275c4d3
|
||||||
PNObject: 4e3c977e357abf81fe9c4b5e8f51e9fb56974a41
|
PNObject: b71ba455c15aedd1233cdf02bcf65d348d96da72
|
||||||
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2
|
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2
|
||||||
UIDevice-Utils: 14362004e88f8cc05d8ec68369724a5972faadec
|
UIDevice-Utils: 14362004e88f8cc05d8ec68369724a5972faadec
|
||||||
|
|
||||||
PODFILE CHECKSUM: 9b08273822dafee56801949d92d6fad59e954459
|
PODFILE CHECKSUM: 0d7631fa9630897cdcd1e75178adc74239fcf568
|
||||||
|
|
||||||
COCOAPODS: 1.0.0.beta.2
|
COCOAPODS: 1.0.0.beta.2
|
||||||
|
|||||||
45
Example/Pods/CodFis-Helper/CodFis-Helper/CodFis+Helper.h
generated
Normal file
45
Example/Pods/CodFis-Helper/CodFis-Helper/CodFis+Helper.h
generated
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
//
|
||||||
|
// CodFis+Helper.h
|
||||||
|
// Pods
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 08/07/15.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
#import "CodFisResponse.h"
|
||||||
|
|
||||||
|
@interface CodFis_Helper : NSObject
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
Italy,
|
||||||
|
OtherCountries
|
||||||
|
} State;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
Gender_Woman,
|
||||||
|
Gender_Man
|
||||||
|
} Gender;
|
||||||
|
|
||||||
|
@property (nonatomic, strong) NSString *surname;
|
||||||
|
@property (nonatomic, strong) NSString *name;
|
||||||
|
@property (nonatomic) NSInteger birthDay;
|
||||||
|
@property (nonatomic) NSInteger birthMonth;
|
||||||
|
@property (nonatomic) NSInteger birthYear;
|
||||||
|
@property (nonatomic, assign) Gender gender;
|
||||||
|
@property (nonatomic, assign) State state;
|
||||||
|
@property (nonatomic, strong) NSString *place;
|
||||||
|
@property (nonatomic) BOOL collision;
|
||||||
|
|
||||||
|
|
||||||
|
+ (CodFisResponse*) calculateFromSurname:(NSString*) surname name:(NSString*) name birthDay:(NSInteger) birthDay birthMonth:(NSInteger) birthMonth birthYear:(NSInteger) birthYear gender:(Gender) gender state:(State) state place:(NSString*) place collision:(BOOL) collision;
|
||||||
|
|
||||||
|
+ (BOOL) checkCodFisFromSurname:(NSString*) surname name:(NSString*) name birthDay:(NSInteger) birthDay birthMonth:(NSInteger) birthMonth birthYear:(NSInteger) birthYear gender:(Gender) gender state:(State) state place:(NSString*) place collision:(BOOL) collision andCodFis:(NSString*) codFis;
|
||||||
|
|
||||||
|
- (instancetype) initFromSurname:(NSString*) surname name:(NSString*) name birthDay:(NSInteger) birthDay birthMonth:(NSInteger) birthMonth birthYear:(NSInteger) birthYear gender:(Gender) gender state:(State) state place:(NSString*) place collision:(BOOL) collision;
|
||||||
|
|
||||||
|
- (CodFisResponse*) calculate;
|
||||||
|
|
||||||
|
- (BOOL) check:(NSString*) codFis;
|
||||||
|
|
||||||
|
@end
|
||||||
458
Example/Pods/CodFis-Helper/CodFis-Helper/CodFis+Helper.m
generated
Normal file
458
Example/Pods/CodFis-Helper/CodFis-Helper/CodFis+Helper.m
generated
Normal file
@ -0,0 +1,458 @@
|
|||||||
|
//
|
||||||
|
// CodFis+self.m
|
||||||
|
// Pods
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 08/07/15.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "CodFis+Helper.h"
|
||||||
|
|
||||||
|
#define DEF_SURNAME_COD_LENGHT 3
|
||||||
|
#define DEF_NAME_COD_LENGHT 3
|
||||||
|
|
||||||
|
@interface CodFis_Helper() {
|
||||||
|
|
||||||
|
NSNumberFormatter* numberFormatter;
|
||||||
|
}
|
||||||
|
|
||||||
|
@property (nonatomic, strong) NSString *codFis;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation CodFis_Helper
|
||||||
|
|
||||||
|
+ (CodFisResponse*) calculateFromSurname:(NSString*) surname name:(NSString*) name birthDay:(NSInteger) birthDay birthMonth:(NSInteger) birthMonth birthYear:(NSInteger) birthYear gender:(Gender) gender state:(State) state place:(NSString*) place collision:(BOOL) collision {
|
||||||
|
|
||||||
|
return [[[self alloc] initFromSurname:surname name:name birthDay:birthDay birthMonth:birthMonth birthYear:birthYear gender:gender state:state place:place collision:collision] calculate];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (BOOL) checkCodFisFromSurname:(NSString*) surname name:(NSString*) name birthDay:(NSInteger) birthDay birthMonth:(NSInteger) birthMonth birthYear:(NSInteger) birthYear gender:(Gender) gender state:(State) state place:(NSString*) place collision:(BOOL) collision andCodFis:(NSString*) codFis {
|
||||||
|
|
||||||
|
return [[[self alloc] initFromSurname:surname name:name birthDay:birthDay birthMonth:birthMonth birthYear:birthYear gender:gender state:state place:place collision:collision] check:codFis];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (instancetype) initFromSurname:(NSString*) surname name:(NSString*) name birthDay:(NSInteger) birthDay birthMonth:(NSInteger) birthMonth birthYear:(NSInteger) birthYear gender:(Gender) gender state:(State) state place:(NSString*) place collision:(BOOL) collision {
|
||||||
|
|
||||||
|
self = [super init];
|
||||||
|
|
||||||
|
if (self) {
|
||||||
|
|
||||||
|
[self setSurname:surname];
|
||||||
|
|
||||||
|
[self setName:name];
|
||||||
|
|
||||||
|
[self setBirthDay:birthDay];
|
||||||
|
|
||||||
|
[self setBirthMonth:birthMonth];
|
||||||
|
|
||||||
|
[self setBirthYear:birthYear];
|
||||||
|
|
||||||
|
[self setGender:gender];
|
||||||
|
|
||||||
|
[self setState:state];
|
||||||
|
|
||||||
|
[self setPlace:place];
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- (CodFisResponse*) calculate {
|
||||||
|
|
||||||
|
NSMutableArray *errors = [[NSMutableArray alloc] init];
|
||||||
|
|
||||||
|
NSMutableString *resposeString = [[NSMutableString alloc] init];
|
||||||
|
|
||||||
|
NSString *tempResponse = [self getCodFisSurname];
|
||||||
|
|
||||||
|
if (!tempResponse) {
|
||||||
|
[errors addObject:[NSError errorWithDomain:NSLocalizedString(@"Bad Request in Surname", @"") code:ResponseStatusBadRequest userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:ResponseStatusBadRequest],@"Code",NSLocalizedString(@"Bad Request in Surname", @""),@"Message", nil],@"Meta", nil]]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[resposeString appendString:tempResponse];
|
||||||
|
}
|
||||||
|
|
||||||
|
tempResponse = [self getCodFisName];
|
||||||
|
|
||||||
|
if (!tempResponse) {
|
||||||
|
[errors addObject:[NSError errorWithDomain:NSLocalizedString(@"Bad Request in Surname", @"") code:ResponseStatusBadRequest userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:ResponseStatusBadRequest],@"Code",NSLocalizedString(@"Bad Request in Surname", @""),@"Message", nil],@"Meta", nil]]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[resposeString appendString:tempResponse];
|
||||||
|
}
|
||||||
|
|
||||||
|
tempResponse = [self getCodFisYear];
|
||||||
|
|
||||||
|
if (!tempResponse) {
|
||||||
|
[errors addObject:[NSError errorWithDomain:NSLocalizedString(@"Bad Request in Surname", @"") code:ResponseStatusBadRequest userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:ResponseStatusBadRequest],@"Code",NSLocalizedString(@"Bad Request in Surname", @""),@"Message", nil],@"Meta", nil]]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[resposeString appendString:tempResponse];
|
||||||
|
}
|
||||||
|
|
||||||
|
tempResponse = [self getCodFisMonth];
|
||||||
|
|
||||||
|
if (!tempResponse) {
|
||||||
|
[errors addObject:[NSError errorWithDomain:NSLocalizedString(@"Bad Request in Surname", @"") code:ResponseStatusBadRequest userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:ResponseStatusBadRequest],@"Code",NSLocalizedString(@"Bad Request in Surname", @""),@"Message", nil],@"Meta", nil]]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[resposeString appendString:tempResponse];
|
||||||
|
}
|
||||||
|
|
||||||
|
tempResponse = [self getCodFisDay];
|
||||||
|
|
||||||
|
if (!tempResponse) {
|
||||||
|
[errors addObject:[NSError errorWithDomain:NSLocalizedString(@"Bad Request in Surname", @"") code:ResponseStatusBadRequest userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:ResponseStatusBadRequest],@"Code",NSLocalizedString(@"Bad Request in Surname", @""),@"Message", nil],@"Meta", nil]]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[resposeString appendString:tempResponse];
|
||||||
|
}
|
||||||
|
|
||||||
|
tempResponse = [self getCodFisPlace];
|
||||||
|
|
||||||
|
if (!tempResponse) {
|
||||||
|
[errors addObject:[NSError errorWithDomain:NSLocalizedString(@"Bad Request in Surname", @"") code:ResponseStatusBadRequest userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:ResponseStatusBadRequest],@"Code",NSLocalizedString(@"Bad Request in Surname", @""),@"Message", nil],@"Meta", nil]]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[resposeString appendString:tempResponse];
|
||||||
|
}
|
||||||
|
|
||||||
|
_codFis = [resposeString stringByReplacingOccurrencesOfString:@" " withString:@""];;
|
||||||
|
|
||||||
|
[resposeString appendString:[self getCodFisControlCode]];
|
||||||
|
|
||||||
|
NSString *checkString = [self ControllaCF:[resposeString UTF8String]];
|
||||||
|
|
||||||
|
if ([checkString isEqualToString:@""]) {
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
[errors addObject:[NSError errorWithDomain:checkString code:ResponseStatusBadRequest userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:ResponseStatusBadRequest],@"Code",checkString,@"Message", nil],@"Meta", nil]]];
|
||||||
|
}
|
||||||
|
return [[CodFisResponse alloc] initWithResponse:resposeString andErrors:errors];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL) check:(NSString*) codFis {
|
||||||
|
|
||||||
|
return [[[self calculate] response] isEqualToString:[codFis uppercaseString]];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) getCodFisSurname {
|
||||||
|
|
||||||
|
NSMutableString *resultString = [[NSMutableString alloc] init];
|
||||||
|
|
||||||
|
NSMutableArray *consonantsArray = [NSMutableArray arrayWithArray:[self getConsonantArray:_surname]];
|
||||||
|
|
||||||
|
NSMutableArray *vowelArray = [NSMutableArray arrayWithArray:[self getVowelsArray:_surname]];
|
||||||
|
|
||||||
|
for (NSString *chr in consonantsArray) {
|
||||||
|
if (![chr isEqualToString:@""]) {
|
||||||
|
[resultString appendString:chr];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ([resultString length] > DEF_SURNAME_COD_LENGHT) {
|
||||||
|
return [[resultString substringToIndex:DEF_SURNAME_COD_LENGHT] uppercaseString];
|
||||||
|
}
|
||||||
|
|
||||||
|
for (NSString *chr in vowelArray) {
|
||||||
|
if (![chr isEqualToString:@""]) {
|
||||||
|
[resultString appendString:chr];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ([resultString length] > DEF_SURNAME_COD_LENGHT) {
|
||||||
|
[resultString setString:[resultString substringToIndex:DEF_SURNAME_COD_LENGHT]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
for(NSUInteger i = [resultString length]; i< DEF_SURNAME_COD_LENGHT;i++){
|
||||||
|
[resultString appendString:@"x"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return [resultString uppercaseString];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) getCodFisName {
|
||||||
|
|
||||||
|
NSMutableString *resultString = [[NSMutableString alloc] init];
|
||||||
|
|
||||||
|
NSMutableArray *consonantsArray = [NSMutableArray arrayWithArray:[self getConsonantArray:_name]];
|
||||||
|
|
||||||
|
NSMutableArray *vowelArray = [NSMutableArray arrayWithArray:[self getVowelsArray:_name]];
|
||||||
|
|
||||||
|
for (NSString *chr in [consonantsArray mutableCopy]) {
|
||||||
|
if ([chr isEqualToString:@""]) {
|
||||||
|
[consonantsArray removeObject:chr];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ([consonantsArray count] > DEF_NAME_COD_LENGHT) {
|
||||||
|
[resultString appendString:[consonantsArray objectAtIndex:0]];
|
||||||
|
[resultString appendString:[consonantsArray objectAtIndex:2]];
|
||||||
|
[resultString appendString:[consonantsArray objectAtIndex:3]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
for (NSString *chr in consonantsArray) {
|
||||||
|
if (![chr isEqualToString:@""]) {
|
||||||
|
[resultString appendString:chr];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ([resultString length] > DEF_SURNAME_COD_LENGHT) {
|
||||||
|
return [[resultString substringToIndex:DEF_SURNAME_COD_LENGHT] uppercaseString];
|
||||||
|
}
|
||||||
|
|
||||||
|
for (NSString *chr in vowelArray) {
|
||||||
|
if (![chr isEqualToString:@""]) {
|
||||||
|
[resultString appendString:chr];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ([resultString length] > DEF_SURNAME_COD_LENGHT) {
|
||||||
|
[resultString setString:[resultString substringToIndex:DEF_SURNAME_COD_LENGHT]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
for(NSUInteger i = [resultString length]; i< DEF_SURNAME_COD_LENGHT;i++){
|
||||||
|
[resultString appendString:@"x"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return [resultString uppercaseString];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) getCodFisYear {
|
||||||
|
|
||||||
|
if (_birthYear < 100) {
|
||||||
|
return [NSString stringWithFormat:@"%ld",(long)_birthYear];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
NSString * allDigits = [NSString stringWithFormat:@"%ld",(long)_birthYear];
|
||||||
|
return [allDigits substringWithRange:NSMakeRange(allDigits.length -2, 2)];
|
||||||
|
}
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) getCodFisMonth {
|
||||||
|
|
||||||
|
NSArray *mounths = @[@"A",@"B",@"C",@"D",@"E",@"H",@"L",@"M",@"P",@"R",@"S",@"T"];
|
||||||
|
|
||||||
|
if (_birthMonth <= 12) {
|
||||||
|
return [mounths objectAtIndex:_birthMonth-1];
|
||||||
|
}
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) getCodFisDay {
|
||||||
|
|
||||||
|
NSInteger increment = 0;
|
||||||
|
switch (_gender) {
|
||||||
|
case Gender_Woman:
|
||||||
|
increment = 40;
|
||||||
|
break;
|
||||||
|
case Gender_Man:
|
||||||
|
default: {
|
||||||
|
increment = 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOL checkMonth = NO;
|
||||||
|
switch (_birthMonth) {
|
||||||
|
case 2:{
|
||||||
|
if(_birthDay < 29) {
|
||||||
|
checkMonth = YES;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
case 6:
|
||||||
|
case 9:
|
||||||
|
case 11:{
|
||||||
|
if(_birthDay < 30) {
|
||||||
|
checkMonth = YES;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:{
|
||||||
|
if(_birthDay < 31) {
|
||||||
|
checkMonth = YES;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (checkMonth) {
|
||||||
|
return [NSString stringWithFormat:@"%02ld",(long)_birthDay + increment];
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSArray*) getConsonantArray:(NSString*) string {
|
||||||
|
|
||||||
|
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"([A,Á,Ã,E,É,Ê,I,Í,O,Ô,Ó,Õ,U,Û,Ü,Ú]?)" options:NSRegularExpressionCaseInsensitive error:nil];
|
||||||
|
|
||||||
|
string = [[string uppercaseString] stringByReplacingOccurrencesOfString:@" " withString:@""];
|
||||||
|
|
||||||
|
NSString *resultString = [regex stringByReplacingMatchesInString:string options:0 range:NSMakeRange(0, [string length]) withTemplate:@""];
|
||||||
|
|
||||||
|
NSMutableArray *responseArray = [[NSMutableArray alloc] init];
|
||||||
|
|
||||||
|
for (int i = 0; i < [resultString length]; i++) {
|
||||||
|
[responseArray addObject:[resultString substringWithRange:NSMakeRange(i, 1)]];
|
||||||
|
}
|
||||||
|
|
||||||
|
return responseArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSArray*) getVowelsArray:(NSString *) string {
|
||||||
|
|
||||||
|
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"([Q,W,R,T,Y,P,S,D,F,G,H,J,K,L,Z,X,C,V,B,N,M]?)" options:NSRegularExpressionCaseInsensitive error:nil];
|
||||||
|
|
||||||
|
string = [[string uppercaseString] stringByReplacingOccurrencesOfString:@" " withString:@""];
|
||||||
|
|
||||||
|
NSString *resultString = [regex stringByReplacingMatchesInString:string options:0 range:NSMakeRange(0, [string length]) withTemplate:@""];
|
||||||
|
|
||||||
|
NSMutableArray *responseArray = [[NSMutableArray alloc] init];
|
||||||
|
|
||||||
|
for (int i = 0; i < [resultString length]; i++) {
|
||||||
|
[responseArray addObject:[resultString substringWithRange:NSMakeRange(i, 1)]];
|
||||||
|
}
|
||||||
|
|
||||||
|
return responseArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) getCodFisPlace {
|
||||||
|
|
||||||
|
NSString *responseString;
|
||||||
|
|
||||||
|
NSError *error = nil;
|
||||||
|
|
||||||
|
NSData *data = [[NSData alloc] initWithContentsOfFile:[self getCodFisPlaceListFile] options:NSDataReadingMappedAlways error:&error];
|
||||||
|
|
||||||
|
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
|
||||||
|
|
||||||
|
@try {
|
||||||
|
responseString = [json objectForKey:[_place uppercaseString]];
|
||||||
|
}
|
||||||
|
@catch (NSException *exception) {
|
||||||
|
|
||||||
|
}
|
||||||
|
@finally {
|
||||||
|
if (responseString) {
|
||||||
|
return responseString;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) getCodFisControlCode {
|
||||||
|
|
||||||
|
NSArray *contributeCode = @[@"1",@"0",@"5",@"7",@"9",@"13",@"15",@"17",@"19",@"21",@"2",@"4",@"18",@"20",@"11",@"3",@"6",@"8",@"12",@"14",@"16",@"10",@"22",@"25",@"24",@"23"];
|
||||||
|
|
||||||
|
NSArray *reponseCode = @[@"A",@"B",@"C",@"D",@"E",@"F",@"G",@"H",@"I",@"J",@"K",@"L",@"M",@"N",@"O",@"P",@"Q",@"R",@"S",@"T",@"U",@"V",@"W",@"X",@"Y",@"Z"];
|
||||||
|
|
||||||
|
NSInteger tempIndex = 0;
|
||||||
|
|
||||||
|
NSInteger index = 1;
|
||||||
|
for (NSString *chr in [self getcodFisArray]) {
|
||||||
|
|
||||||
|
if ([self isNumeric:chr]) {
|
||||||
|
|
||||||
|
if (index%2 == 0) {
|
||||||
|
tempIndex += [chr integerValue]; }
|
||||||
|
else {
|
||||||
|
tempIndex += [[contributeCode objectAtIndex:[chr integerValue]] integerValue];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (index%2 == 0) {
|
||||||
|
tempIndex += [self getAlphabetContributeCode:chr];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
tempIndex += [[contributeCode objectAtIndex:[self getAlphabetContributeCode:chr]] integerValue];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
return [reponseCode objectAtIndex:ceil((int)tempIndex%26)];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSInteger) getAlphabetContributeCode:(NSString *) chr {
|
||||||
|
|
||||||
|
unichar c = [chr characterAtIndex:0];
|
||||||
|
|
||||||
|
return (NSInteger)(((short)c)-65);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (NSString*) getCodFisPlaceListFile {
|
||||||
|
|
||||||
|
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"codFisCodes" ofType:@"json"];
|
||||||
|
|
||||||
|
return filePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSArray *) getcodFisArray
|
||||||
|
{
|
||||||
|
NSMutableArray *arr = [[NSMutableArray alloc]init];
|
||||||
|
for (int i=0; i < _codFis.length; i++) {
|
||||||
|
NSString *tmp_str = [_codFis substringWithRange:NSMakeRange(i, 1)];
|
||||||
|
[arr addObject:[tmp_str stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
|
||||||
|
}
|
||||||
|
return arr;
|
||||||
|
}
|
||||||
|
|
||||||
|
-(BOOL) isNumeric:(NSString*) hexText
|
||||||
|
{
|
||||||
|
if (!numberFormatter) {
|
||||||
|
numberFormatter = [[NSNumberFormatter alloc] init];
|
||||||
|
}
|
||||||
|
|
||||||
|
NSNumber* number = [numberFormatter numberFromString:hexText];
|
||||||
|
|
||||||
|
if (number != nil) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (NSString *) ControllaCF:(const char *) cf {
|
||||||
|
|
||||||
|
int s, i, c;
|
||||||
|
int setdisp[] = { 1, 0, 5, 7, 9, 13, 15, 17, 19, 21, 2, 4, 18, 20,
|
||||||
|
11, 3, 6, 8, 12, 14, 16, 10, 22, 25, 24, 23 };
|
||||||
|
if( cf[0] == 0 ) return @"";
|
||||||
|
if( strlen(cf) != 16 )
|
||||||
|
return NSLocalizedString(@"La lunghezza del codice fiscale non è\n"
|
||||||
|
"corretta: il codice fiscale dovrebbe essere lungo\n"
|
||||||
|
"esattamente 16 caratteri.", @"");
|
||||||
|
for( i=0; i<16; i++ ){
|
||||||
|
c = toupper( cf[i] );
|
||||||
|
if( ! isdigit(c) && !( 'A'<=c && c<='Z' ) )
|
||||||
|
return NSLocalizedString(@"Il codice fiscale contiene dei caratteri non validi:\n"
|
||||||
|
"i soli caratteri validi sono le lettere e le cifre.",@"");
|
||||||
|
}
|
||||||
|
s = 0;
|
||||||
|
for( i=1; i<=13; i+=2 ){
|
||||||
|
c = toupper( cf[i] );
|
||||||
|
if( isdigit(c) )
|
||||||
|
s += c - '0';
|
||||||
|
else
|
||||||
|
s += c - 'A';
|
||||||
|
}
|
||||||
|
for( i=0; i<=14; i+=2 ){
|
||||||
|
c = toupper( cf[i] );
|
||||||
|
if( isdigit(c) ) c = c - '0' + 'A';
|
||||||
|
s += setdisp[c - 'A'];
|
||||||
|
}
|
||||||
|
if( s%26 + 'A' != toupper( cf[15] ) )
|
||||||
|
return NSLocalizedString(@"Il codice fiscale non è corretto:\n"
|
||||||
|
"il codice di controllo non corrisponde.",@"");
|
||||||
|
return @"";
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
19
Example/Pods/CodFis-Helper/CodFis-Helper/CodFisResponse.h
generated
Normal file
19
Example/Pods/CodFis-Helper/CodFis-Helper/CodFisResponse.h
generated
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
//
|
||||||
|
// CodFisResponse.h
|
||||||
|
// CodFis-Helper
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 09/07/15.
|
||||||
|
// Copyright (c) 2015 Giuseppe Nucifora. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
#import "ResponseConstants.h"
|
||||||
|
|
||||||
|
@interface CodFisResponse : NSObject
|
||||||
|
|
||||||
|
@property (nonatomic, strong, readonly) NSArray *responseErrors;
|
||||||
|
@property (nonatomic, strong, readonly) NSString *response;
|
||||||
|
|
||||||
|
- (instancetype) initWithResponse:(NSString*) response andErrors:(NSArray*) responseErrors;
|
||||||
|
|
||||||
|
@end
|
||||||
22
Example/Pods/CodFis-Helper/CodFis-Helper/CodFisResponse.m
generated
Normal file
22
Example/Pods/CodFis-Helper/CodFis-Helper/CodFisResponse.m
generated
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
//
|
||||||
|
// CodFisResponse.m
|
||||||
|
// CodFis-Helper
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 09/07/15.
|
||||||
|
// Copyright (c) 2015 Giuseppe Nucifora. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "CodFisResponse.h"
|
||||||
|
|
||||||
|
@implementation CodFisResponse
|
||||||
|
|
||||||
|
- (instancetype) initWithResponse:(NSString*) response andErrors:(NSArray*) responseErrors {
|
||||||
|
self = [super init];
|
||||||
|
if (self) {
|
||||||
|
_responseErrors = [NSArray arrayWithArray:responseErrors];
|
||||||
|
_response = response;
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
64
Example/Pods/CodFis-Helper/CodFis-Helper/ResponseConstants.h
generated
Executable file
64
Example/Pods/CodFis-Helper/CodFis-Helper/ResponseConstants.h
generated
Executable file
@ -0,0 +1,64 @@
|
|||||||
|
//
|
||||||
|
// ResponseConstants.h
|
||||||
|
// cinecitta
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 30/06/14.
|
||||||
|
// Copyright (c) 2014 meedori. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
// Informational
|
||||||
|
ResponseStatusContinue = 100,
|
||||||
|
ResponseStatusSwitchingProtocols = 101,
|
||||||
|
|
||||||
|
// Successful
|
||||||
|
ResponseStatusOK = 200,
|
||||||
|
ResponseStatusCreated = 201,
|
||||||
|
ResponseStatusAccepted = 202,
|
||||||
|
ResponseStatusNonAuthoritativeInformation = 203,
|
||||||
|
ResponseStatusNoContent = 204,
|
||||||
|
ResponseStatusResetContent = 205,
|
||||||
|
ResponseStatusPartialContent = 206,
|
||||||
|
|
||||||
|
// Redirection
|
||||||
|
ResponseStatusMutltipleChoices = 300,
|
||||||
|
ResponseStatusMovedPermanently = 301,
|
||||||
|
ResponseStatusFound = 302,
|
||||||
|
ResponseStatusSeeOther = 303,
|
||||||
|
ResponseStatusNotModified = 304,
|
||||||
|
ResponseStatusUseProxy = 305,
|
||||||
|
ResponseStatusSwitchProxy = 306,
|
||||||
|
ResponseStatusTemporaryRedirect = 307,
|
||||||
|
|
||||||
|
// Client Errors
|
||||||
|
ResponseStatusBadRequest = 400,
|
||||||
|
ResponseStatusUnauthorized = 401,
|
||||||
|
ResponseStatusPaymentRequired = 402,
|
||||||
|
ResponseStatusForbidden = 403,
|
||||||
|
ResponseStatusNotFound = 404,
|
||||||
|
ResponseStatusMethodNotAllowed = 405,
|
||||||
|
ResponseStatusNotAcceptable = 406,
|
||||||
|
ResponseStatusProxyAuthenticationRequired = 407,
|
||||||
|
ResponseStatusRequestTimeout = 408,
|
||||||
|
ResponseStatusConflict = 409,
|
||||||
|
ResponseStatusGone = 410,
|
||||||
|
ResponseStatusLengthRequired = 411,
|
||||||
|
ResponseStatusPreconditionFailed = 412,
|
||||||
|
ResponseStatusRequestEntityTooLarge = 413,
|
||||||
|
ResponseStatusRequestURITooLong = 414,
|
||||||
|
ResponseStatusUnsupportedMediaType = 415,
|
||||||
|
ResponseStatusRequestedRangeNotSatisfiable = 416,
|
||||||
|
ResponseStatusExpectationFailed = 417,
|
||||||
|
|
||||||
|
// Server Errors
|
||||||
|
ResponseStatusInternalServerError = 500,
|
||||||
|
ResponseStatusNotImpemented = 501,
|
||||||
|
ResponseStatusBadGateway = 502,
|
||||||
|
ResponseStatusServiceUnavailable = 503,
|
||||||
|
ResponseStatusGatewayTimeout = 504,
|
||||||
|
ResponseStatusVersionNotSupported = 505
|
||||||
|
|
||||||
|
} ResponseStatus;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
15
Example/Pods/CodFis-Helper/CodFis-Helper/VatNumber+Helper.h
generated
Normal file
15
Example/Pods/CodFis-Helper/CodFis-Helper/VatNumber+Helper.h
generated
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
//
|
||||||
|
// VatNumber+Helper.h
|
||||||
|
// Pods
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 13/07/15.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
@interface VatNumber_Helper : NSObject
|
||||||
|
|
||||||
|
+ (NSString *) evaluate:(NSString*) vatNum;
|
||||||
|
|
||||||
|
@end
|
||||||
44
Example/Pods/CodFis-Helper/CodFis-Helper/VatNumber+Helper.m
generated
Normal file
44
Example/Pods/CodFis-Helper/CodFis-Helper/VatNumber+Helper.m
generated
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
//
|
||||||
|
// VatNumber+Helper.m
|
||||||
|
// Pods
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 13/07/15.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "VatNumber+Helper.h"
|
||||||
|
|
||||||
|
@implementation VatNumber_Helper
|
||||||
|
|
||||||
|
+ (NSString *) evaluate:(NSString*) vatNum {
|
||||||
|
|
||||||
|
vatNum = [vatNum stringByReplacingOccurrencesOfString:@" " withString:@""];
|
||||||
|
|
||||||
|
const char * vatNumC = [vatNum UTF8String];
|
||||||
|
|
||||||
|
int i, c, s;
|
||||||
|
if( vatNumC[0] == 0 ) return @"";
|
||||||
|
if( strlen(vatNumC) != 11 )
|
||||||
|
return @"La lunghezza della partita IVA non è\n"
|
||||||
|
"corretta: la partita IVA dovrebbe essere lunga\n"
|
||||||
|
"esattamente 11 caratteri.\n";
|
||||||
|
for( i=0; i<11; i++ ){
|
||||||
|
if( ! isdigit(vatNumC[i]) )
|
||||||
|
return @"La partita IVA contiene dei caratteri non ammessi:\n"
|
||||||
|
"la partita IVA dovrebbe contenere solo cifre.\n";
|
||||||
|
}
|
||||||
|
s = 0;
|
||||||
|
for( i=0; i<=9; i+=2 )
|
||||||
|
s += vatNumC[i] - '0';
|
||||||
|
for( i=1; i<=9; i+=2 ){
|
||||||
|
c = 2*( vatNumC[i] - '0' );
|
||||||
|
if( c > 9 ) c = c - 9;
|
||||||
|
s += c;
|
||||||
|
}
|
||||||
|
if( ( 10 - s%10 )%10 != vatNumC[10] - '0' )
|
||||||
|
return @"La partita IVA non è valida:\n"
|
||||||
|
"il codice di controllo non corrisponde.";
|
||||||
|
return @"";
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
19
Example/Pods/CodFis-Helper/LICENSE
generated
Normal file
19
Example/Pods/CodFis-Helper/LICENSE
generated
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
61
Example/Pods/CodFis-Helper/README.md
generated
Normal file
61
Example/Pods/CodFis-Helper/README.md
generated
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
# CodFis-Helper
|
||||||
|
|
||||||
|
[](https://travis-ci.org/Giuseppe Nucifora/CodFis-Helper)
|
||||||
|
[](http://cocoapods.org/pods/CodFis-Helper)
|
||||||
|
[](http://cocoapods.org/pods/CodFis-Helper)
|
||||||
|
[](http://cocoapods.org/pods/CodFis-Helper)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
To run the example project, clone the repo, and run `pod install` from the Example directory first.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
CodFis-Helper is available through [CocoaPods](http://cocoapods.org). To install
|
||||||
|
it, simply add the following line to your Podfile:
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
pod 'CodFis-Helper' , :git => 'https://github.com/giuseppenucifora/CodFis-Helper.git'
|
||||||
|
|
||||||
|
OR
|
||||||
|
|
||||||
|
pod 'CodFis-Helper'
|
||||||
|
```
|
||||||
|
|
||||||
|
##Usage
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
CodFis_Helper *helper = [[CodFis_Helper alloc] init];
|
||||||
|
|
||||||
|
[helper setSurname:@"Rossi"];
|
||||||
|
|
||||||
|
[helper setName:@"Mario"];
|
||||||
|
|
||||||
|
[helper setBirthDay:15];
|
||||||
|
|
||||||
|
[helper setBirthMonth:11];
|
||||||
|
|
||||||
|
[helper setBirthYear:83];
|
||||||
|
|
||||||
|
[helper setGender:Gender_Man];
|
||||||
|
|
||||||
|
[helper setState:Italy];
|
||||||
|
|
||||||
|
[helper setPlace:@"Milano"];
|
||||||
|
|
||||||
|
CodFisResponse *response = [helper calculate];
|
||||||
|
|
||||||
|
NSLog(@"%@",[response responseError]);
|
||||||
|
|
||||||
|
NSLog(@"%@",[response response]);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
Giuseppe Nucifora, me@giuseppenucifora.com
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
CodFis-Helper is available under the MIT license. See the LICENSE file for more info.
|
||||||
@ -36,6 +36,12 @@
|
|||||||
],
|
],
|
||||||
"nv-ios-http-status": [
|
"nv-ios-http-status": [
|
||||||
|
|
||||||
|
],
|
||||||
|
"NSString-Helper": [
|
||||||
|
|
||||||
|
],
|
||||||
|
"CodFis-Helper": [
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
12
Example/Pods/Manifest.lock
generated
12
Example/Pods/Manifest.lock
generated
@ -14,6 +14,7 @@ PODS:
|
|||||||
- AFNetworking/Serialization (3.0.4)
|
- AFNetworking/Serialization (3.0.4)
|
||||||
- AFNetworking/UIKit (3.0.4):
|
- AFNetworking/UIKit (3.0.4):
|
||||||
- AFNetworking/NSURLSession
|
- AFNetworking/NSURLSession
|
||||||
|
- CodFis-Helper (0.1.2)
|
||||||
- Expecta (1.0.5)
|
- Expecta (1.0.5)
|
||||||
- Expecta+Snapshots (2.0.0):
|
- Expecta+Snapshots (2.0.0):
|
||||||
- Expecta (~> 1.0)
|
- Expecta (~> 1.0)
|
||||||
@ -24,11 +25,14 @@ PODS:
|
|||||||
- FBSnapshotTestCase/SwiftSupport (2.0.7):
|
- FBSnapshotTestCase/SwiftSupport (2.0.7):
|
||||||
- FBSnapshotTestCase/Core
|
- FBSnapshotTestCase/Core
|
||||||
- NSDate_Utils (0.1.0)
|
- NSDate_Utils (0.1.0)
|
||||||
|
- NSString-Helper (1.0.1)
|
||||||
- nv-ios-http-status (0.0.1)
|
- nv-ios-http-status (0.0.1)
|
||||||
- PEAR-FileManager-iOS (1.3.1)
|
- PEAR-FileManager-iOS (1.3.1)
|
||||||
- PNObject (0.1.0):
|
- PNObject (0.1.0):
|
||||||
- AFNetworking
|
- AFNetworking
|
||||||
|
- CodFis-Helper
|
||||||
- NSDate_Utils
|
- NSDate_Utils
|
||||||
|
- NSString-Helper
|
||||||
- nv-ios-http-status
|
- nv-ios-http-status
|
||||||
- PEAR-FileManager-iOS
|
- PEAR-FileManager-iOS
|
||||||
- UIDevice-Utils
|
- UIDevice-Utils
|
||||||
@ -37,10 +41,12 @@ PODS:
|
|||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- AFNetworking
|
- AFNetworking
|
||||||
|
- CodFis-Helper
|
||||||
- Expecta
|
- Expecta
|
||||||
- Expecta+Snapshots
|
- Expecta+Snapshots
|
||||||
- FBSnapshotTestCase
|
- FBSnapshotTestCase
|
||||||
- NSDate_Utils
|
- NSDate_Utils
|
||||||
|
- NSString-Helper
|
||||||
- nv-ios-http-status
|
- nv-ios-http-status
|
||||||
- PEAR-FileManager-iOS
|
- PEAR-FileManager-iOS
|
||||||
- PNObject (from `../`)
|
- PNObject (from `../`)
|
||||||
@ -53,16 +59,18 @@ EXTERNAL SOURCES:
|
|||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
AFNetworking: a0075feb321559dc78d9d85b55d11caa19eabb93
|
AFNetworking: a0075feb321559dc78d9d85b55d11caa19eabb93
|
||||||
|
CodFis-Helper: f303810699f22dbcba8fb8c600545ac91fc3ec42
|
||||||
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
|
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
|
||||||
Expecta+Snapshots: 29b38dd695bc72a0ed2bea833937d78df41943ba
|
Expecta+Snapshots: 29b38dd695bc72a0ed2bea833937d78df41943ba
|
||||||
FBSnapshotTestCase: 7e85180d0d141a0cf472352edda7e80d7eaeb547
|
FBSnapshotTestCase: 7e85180d0d141a0cf472352edda7e80d7eaeb547
|
||||||
NSDate_Utils: 4a57f91094123d5b7600c7de8c9ad9e1d43306a3
|
NSDate_Utils: 4a57f91094123d5b7600c7de8c9ad9e1d43306a3
|
||||||
|
NSString-Helper: e26909c87694add9be022ca24e856e3b6148fe89
|
||||||
nv-ios-http-status: b6c2b5fc8656cc19e0d3000dadce2080b99d0e2f
|
nv-ios-http-status: b6c2b5fc8656cc19e0d3000dadce2080b99d0e2f
|
||||||
PEAR-FileManager-iOS: 3bc403f68a53483f5629aa822f4649e40275c4d3
|
PEAR-FileManager-iOS: 3bc403f68a53483f5629aa822f4649e40275c4d3
|
||||||
PNObject: 4e3c977e357abf81fe9c4b5e8f51e9fb56974a41
|
PNObject: b71ba455c15aedd1233cdf02bcf65d348d96da72
|
||||||
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2
|
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2
|
||||||
UIDevice-Utils: 14362004e88f8cc05d8ec68369724a5972faadec
|
UIDevice-Utils: 14362004e88f8cc05d8ec68369724a5972faadec
|
||||||
|
|
||||||
PODFILE CHECKSUM: 9b08273822dafee56801949d92d6fad59e954459
|
PODFILE CHECKSUM: 0d7631fa9630897cdcd1e75178adc74239fcf568
|
||||||
|
|
||||||
COCOAPODS: 1.0.0.beta.2
|
COCOAPODS: 1.0.0.beta.2
|
||||||
|
|||||||
19
Example/Pods/NSString-Helper/LICENSE
generated
Normal file
19
Example/Pods/NSString-Helper/LICENSE
generated
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
21
Example/Pods/NSString-Helper/NSString-Helper/NSString+Helper.h
generated
Normal file
21
Example/Pods/NSString-Helper/NSString-Helper/NSString+Helper.h
generated
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// NSString+Helper.h
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 02/07/15.
|
||||||
|
// Copyright (c) 2015 Giuseppe Nucifora All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
@interface NSString (Helper)
|
||||||
|
|
||||||
|
- (BOOL) isValidEmail;
|
||||||
|
|
||||||
|
- (BOOL) isNumeric;
|
||||||
|
|
||||||
|
- (BOOL) isValidUrl;
|
||||||
|
|
||||||
|
- (BOOL) isValidTaxCode;
|
||||||
|
|
||||||
|
@end
|
||||||
45
Example/Pods/NSString-Helper/NSString-Helper/NSString+Helper.m
generated
Normal file
45
Example/Pods/NSString-Helper/NSString-Helper/NSString+Helper.m
generated
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
//
|
||||||
|
// NSString+Helper.m
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Created by Giuseppe Nucifora on 02/07/15.
|
||||||
|
// Copyright (c) 2015 Giuseppe Nucifora All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "NSString+Helper.h"
|
||||||
|
|
||||||
|
@implementation NSString (Helper)
|
||||||
|
|
||||||
|
- (BOOL) isValidEmail
|
||||||
|
{
|
||||||
|
BOOL stricterFilter = YES;
|
||||||
|
NSString *stricterFilterString = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
|
||||||
|
NSString *laxString = @".+@.+\\.[A-Za-z]{2}[A-Za-z]*";
|
||||||
|
NSString *emailRegex = stricterFilter ? stricterFilterString : laxString;
|
||||||
|
NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];
|
||||||
|
return [emailTest evaluateWithObject:self];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)isNumeric {
|
||||||
|
BOOL isValid = NO;
|
||||||
|
NSCharacterSet *alphaNumbersSet = [NSCharacterSet decimalDigitCharacterSet];
|
||||||
|
NSCharacterSet *stringSet = [NSCharacterSet characterSetWithCharactersInString:self];
|
||||||
|
isValid = [alphaNumbersSet isSupersetOfSet:stringSet];
|
||||||
|
return isValid;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL) isValidUrl {
|
||||||
|
NSString *urlRegEx =
|
||||||
|
@"(http|https)://((\\w)*|([0-9]*)|([-|_])*)+([\\.|/]((\\w)*|([0-9]*)|([-|_])*))+";
|
||||||
|
NSPredicate *urlTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", urlRegEx];
|
||||||
|
return [urlTest evaluateWithObject:self];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL) isValidTaxCode {
|
||||||
|
|
||||||
|
NSString *urlRegEx = @"^[A-Z]{6}[A-Z0-9]{2}[A-Z][A-Z0-9]{2}[A-Z][A-Z0-9]{3}[A-Z]$";
|
||||||
|
NSPredicate *urlTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", urlRegEx];
|
||||||
|
return [urlTest evaluateWithObject:self];
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
48
Example/Pods/NSString-Helper/README.md
generated
Normal file
48
Example/Pods/NSString-Helper/README.md
generated
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
# NSString-Helper
|
||||||
|
|
||||||
|
[](https://travis-ci.org/Giuseppe Nucifora/NSString-Helper)
|
||||||
|
[](http://cocoapods.org/pods/NSString-Helper)
|
||||||
|
[](http://cocoapods.org/pods/NSString-Helper)
|
||||||
|
[](http://cocoapods.org/pods/NSString-Helper)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
To run the example project, clone the repo, and run `pod install` from the Example directory first.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
NSString-Helper is available through [CocoaPods](http://cocoapods.org). To install
|
||||||
|
it, simply add the following line to your Podfile:
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
pod 'NSString-Helper' , :git => 'https://github.com/giuseppenucifora/NSString-Helper.git'
|
||||||
|
|
||||||
|
OR
|
||||||
|
|
||||||
|
pod 'NSString-Helper'
|
||||||
|
```
|
||||||
|
##Usage
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
NSString *str = @"testCode";
|
||||||
|
|
||||||
|
NSLog(@"%@",[NSNumber numberWithBool:[str isNumeric]]);
|
||||||
|
|
||||||
|
NSLog(@"%@",[NSNumber numberWithBool:[str isValidEmail]]);
|
||||||
|
|
||||||
|
NSLog(@"%@",[NSNumber numberWithBool:[str isValidUrl]]);
|
||||||
|
|
||||||
|
NSLog(@"%@",[NSNumber numberWithBool:[str isValidTaxCode]]);
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
Giuseppe Nucifora, me@giuseppenucifora.com
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
NSString-Helper is available under the MIT license. See the LICENSE file for more info.
|
||||||
4216
Example/Pods/Pods.xcodeproj/project.pbxproj
generated
4216
Example/Pods/Pods.xcodeproj/project.pbxproj
generated
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@
|
|||||||
buildForArchiving = "YES">
|
buildForArchiving = "YES">
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = 'primary'
|
BuildableIdentifier = 'primary'
|
||||||
BlueprintIdentifier = '7E4F1B9EAEB239937DC28941'
|
BlueprintIdentifier = '0BE3E9C20BEF117C39B67B08'
|
||||||
BlueprintName = 'PNObject'
|
BlueprintName = 'PNObject'
|
||||||
ReferencedContainer = 'container:Pods.xcodeproj'
|
ReferencedContainer = 'container:Pods.xcodeproj'
|
||||||
BuildableName = 'PNObject.framework'>
|
BuildableName = 'PNObject.framework'>
|
||||||
|
|||||||
5
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper-dummy.m
generated
Normal file
5
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper-dummy.m
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
@interface PodsDummy_CodFis_Helper : NSObject
|
||||||
|
@end
|
||||||
|
@implementation PodsDummy_CodFis_Helper
|
||||||
|
@end
|
||||||
4
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper-prefix.pch
generated
Normal file
4
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper-prefix.pch
generated
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#ifdef __OBJC__
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
10
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper-umbrella.h
generated
Normal file
10
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper-umbrella.h
generated
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
#import "CodFis+Helper.h"
|
||||||
|
#import "CodFisResponse.h"
|
||||||
|
#import "ResponseConstants.h"
|
||||||
|
#import "VatNumber+Helper.h"
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT double CodFis_HelperVersionNumber;
|
||||||
|
FOUNDATION_EXPORT const unsigned char CodFis_HelperVersionString[];
|
||||||
|
|
||||||
6
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper.modulemap
generated
Normal file
6
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper.modulemap
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
framework module CodFis_Helper {
|
||||||
|
umbrella header "CodFis-Helper-umbrella.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
module * { export * }
|
||||||
|
}
|
||||||
5
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper.xcconfig
generated
Normal file
5
Example/Pods/Target Support Files/CodFis-Helper/CodFis-Helper.xcconfig
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
|
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public"
|
||||||
|
PODS_ROOT = ${SRCROOT}
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
|
||||||
|
SKIP_INSTALL = YES
|
||||||
26
Example/Pods/Target Support Files/CodFis-Helper/Info.plist
generated
Normal file
26
Example/Pods/Target Support Files/CodFis-Helper/Info.plist
generated
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>en</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>${PRODUCT_NAME}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>0.1.2</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${CURRENT_PROJECT_VERSION}</string>
|
||||||
|
<key>NSPrincipalClass</key>
|
||||||
|
<string></string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
24
Example/Pods/Target Support Files/CodFis-Helper/ResourceBundle-CodFis-Helper-Info.plist
generated
Normal file
24
Example/Pods/Target Support Files/CodFis-Helper/ResourceBundle-CodFis-Helper-Info.plist
generated
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>en</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>${PRODUCT_NAME}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>BNDL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>0.1.2</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${CURRENT_PROJECT_VERSION}</string>
|
||||||
|
<key>NSPrincipalClass</key>
|
||||||
|
<string></string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
26
Example/Pods/Target Support Files/NSString-Helper/Info.plist
generated
Normal file
26
Example/Pods/Target Support Files/NSString-Helper/Info.plist
generated
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>en</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>${PRODUCT_NAME}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0.1</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${CURRENT_PROJECT_VERSION}</string>
|
||||||
|
<key>NSPrincipalClass</key>
|
||||||
|
<string></string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
5
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper-dummy.m
generated
Normal file
5
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper-dummy.m
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
@interface PodsDummy_NSString_Helper : NSObject
|
||||||
|
@end
|
||||||
|
@implementation PodsDummy_NSString_Helper
|
||||||
|
@end
|
||||||
4
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper-prefix.pch
generated
Normal file
4
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper-prefix.pch
generated
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#ifdef __OBJC__
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
7
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper-umbrella.h
generated
Normal file
7
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper-umbrella.h
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
#import "NSString+Helper.h"
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT double NSString_HelperVersionNumber;
|
||||||
|
FOUNDATION_EXPORT const unsigned char NSString_HelperVersionString[];
|
||||||
|
|
||||||
6
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper.modulemap
generated
Normal file
6
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper.modulemap
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
framework module NSString_Helper {
|
||||||
|
umbrella header "NSString-Helper-umbrella.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
module * { export * }
|
||||||
|
}
|
||||||
5
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper.xcconfig
generated
Normal file
5
Example/Pods/Target Support Files/NSString-Helper/NSString-Helper.xcconfig
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
|
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public"
|
||||||
|
PODS_ROOT = ${SRCROOT}
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
|
||||||
|
SKIP_INSTALL = YES
|
||||||
24
Example/Pods/Target Support Files/NSString-Helper/ResourceBundle-NSString-Helper-Info.plist
generated
Normal file
24
Example/Pods/Target Support Files/NSString-Helper/ResourceBundle-NSString-Helper-Info.plist
generated
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>en</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>${PRODUCT_NAME}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>BNDL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0.1</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${CURRENT_PROJECT_VERSION}</string>
|
||||||
|
<key>NSPrincipalClass</key>
|
||||||
|
<string></string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#import "PNObject.h"
|
#import "PNObject.h"
|
||||||
#import "PNObjectConfig.h"
|
#import "PNObjectConfig.h"
|
||||||
|
#import "PNObjectConstants.h"
|
||||||
#import "PNObjectModel.h"
|
#import "PNObjectModel.h"
|
||||||
#import "PNObjectProperty.h"
|
#import "PNObjectProperty.h"
|
||||||
#import "PNAddress.h"
|
#import "PNAddress.h"
|
||||||
|
|||||||
@ -24,6 +24,29 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
## CodFis-Helper
|
||||||
|
|
||||||
|
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
## NSDate_Utils
|
## NSDate_Utils
|
||||||
|
|
||||||
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
@ -47,6 +70,29 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
## NSString-Helper
|
||||||
|
|
||||||
|
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
## PEAR-FileManager-iOS
|
## PEAR-FileManager-iOS
|
||||||
|
|
||||||
Copyright (c) <2015> Hiroki Umatani PEAR
|
Copyright (c) <2015> Hiroki Umatani PEAR
|
||||||
|
|||||||
@ -53,6 +53,33 @@ furnished to do so, subject to the following conditions:
|
|||||||
The above copyright notice and this permission notice shall be included in
|
The above copyright notice and this permission notice shall be included in
|
||||||
all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
</string>
|
||||||
|
<key>Title</key>
|
||||||
|
<string>CodFis-Helper</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSGroupSpecifier</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>FooterText</key>
|
||||||
|
<string>Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
@ -66,6 +93,33 @@ THE SOFTWARE.
|
|||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>PSGroupSpecifier</string>
|
<string>PSGroupSpecifier</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>FooterText</key>
|
||||||
|
<string>Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
</string>
|
||||||
|
<key>Title</key>
|
||||||
|
<string>NSString-Helper</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSGroupSpecifier</string>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>FooterText</key>
|
<key>FooterText</key>
|
||||||
<string>Copyright (c) <2015> Hiroki Umatani PEAR
|
<string>Copyright (c) <2015> Hiroki Umatani PEAR
|
||||||
|
|||||||
@ -85,7 +85,9 @@ strip_invalid_archs() {
|
|||||||
|
|
||||||
if [[ "$CONFIGURATION" == "Debug" ]]; then
|
if [[ "$CONFIGURATION" == "Debug" ]]; then
|
||||||
install_framework "Pods-PNObject_Example/AFNetworking.framework"
|
install_framework "Pods-PNObject_Example/AFNetworking.framework"
|
||||||
|
install_framework "Pods-PNObject_Example/CodFis_Helper.framework"
|
||||||
install_framework "Pods-PNObject_Example/NSDate_Utils.framework"
|
install_framework "Pods-PNObject_Example/NSDate_Utils.framework"
|
||||||
|
install_framework "Pods-PNObject_Example/NSString_Helper.framework"
|
||||||
install_framework "Pods-PNObject_Example/PEAR_FileManager_iOS.framework"
|
install_framework "Pods-PNObject_Example/PEAR_FileManager_iOS.framework"
|
||||||
install_framework "Pods-PNObject_Example/PNObject.framework"
|
install_framework "Pods-PNObject_Example/PNObject.framework"
|
||||||
install_framework "Pods-PNObject_Example/UIDevice_Utils.framework"
|
install_framework "Pods-PNObject_Example/UIDevice_Utils.framework"
|
||||||
@ -93,7 +95,9 @@ if [[ "$CONFIGURATION" == "Debug" ]]; then
|
|||||||
fi
|
fi
|
||||||
if [[ "$CONFIGURATION" == "Release" ]]; then
|
if [[ "$CONFIGURATION" == "Release" ]]; then
|
||||||
install_framework "Pods-PNObject_Example/AFNetworking.framework"
|
install_framework "Pods-PNObject_Example/AFNetworking.framework"
|
||||||
|
install_framework "Pods-PNObject_Example/CodFis_Helper.framework"
|
||||||
install_framework "Pods-PNObject_Example/NSDate_Utils.framework"
|
install_framework "Pods-PNObject_Example/NSDate_Utils.framework"
|
||||||
|
install_framework "Pods-PNObject_Example/NSString_Helper.framework"
|
||||||
install_framework "Pods-PNObject_Example/PEAR_FileManager_iOS.framework"
|
install_framework "Pods-PNObject_Example/PEAR_FileManager_iOS.framework"
|
||||||
install_framework "Pods-PNObject_Example/PNObject.framework"
|
install_framework "Pods-PNObject_Example/PNObject.framework"
|
||||||
install_framework "Pods-PNObject_Example/UIDevice_Utils.framework"
|
install_framework "Pods-PNObject_Example/UIDevice_Utils.framework"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
||||||
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSDate_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PEAR_FileManager_iOS.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PNObject.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIDevice_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/nv_ios_http_status.framework/Headers"
|
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/CodFis_Helper.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSDate_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSString_Helper.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PEAR_FileManager_iOS.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PNObject.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIDevice_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/nv_ios_http_status.framework/Headers"
|
||||||
OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "NSDate_Utils" -framework "PEAR_FileManager_iOS" -framework "PNObject" -framework "UIDevice_Utils" -framework "nv_ios_http_status"
|
OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "CodFis_Helper" -framework "NSDate_Utils" -framework "NSString_Helper" -framework "PEAR_FileManager_iOS" -framework "PNObject" -framework "UIDevice_Utils" -framework "nv_ios_http_status"
|
||||||
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-PNObject_Example
|
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-PNObject_Example
|
||||||
PODS_ROOT = ${SRCROOT}/Pods
|
PODS_ROOT = ${SRCROOT}/Pods
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
||||||
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSDate_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PEAR_FileManager_iOS.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PNObject.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIDevice_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/nv_ios_http_status.framework/Headers"
|
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/CodFis_Helper.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSDate_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSString_Helper.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PEAR_FileManager_iOS.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PNObject.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIDevice_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/nv_ios_http_status.framework/Headers"
|
||||||
OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "NSDate_Utils" -framework "PEAR_FileManager_iOS" -framework "PNObject" -framework "UIDevice_Utils" -framework "nv_ios_http_status"
|
OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "CodFis_Helper" -framework "NSDate_Utils" -framework "NSString_Helper" -framework "PEAR_FileManager_iOS" -framework "PNObject" -framework "UIDevice_Utils" -framework "nv_ios_http_status"
|
||||||
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-PNObject_Example
|
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-PNObject_Example
|
||||||
PODS_ROOT = ${SRCROOT}/Pods
|
PODS_ROOT = ${SRCROOT}/Pods
|
||||||
|
|||||||
@ -24,6 +24,29 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
## CodFis-Helper
|
||||||
|
|
||||||
|
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
## NSDate_Utils
|
## NSDate_Utils
|
||||||
|
|
||||||
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
@ -47,6 +70,29 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
## NSString-Helper
|
||||||
|
|
||||||
|
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
## PEAR-FileManager-iOS
|
## PEAR-FileManager-iOS
|
||||||
|
|
||||||
Copyright (c) <2015> Hiroki Umatani PEAR
|
Copyright (c) <2015> Hiroki Umatani PEAR
|
||||||
|
|||||||
@ -53,6 +53,33 @@ furnished to do so, subject to the following conditions:
|
|||||||
The above copyright notice and this permission notice shall be included in
|
The above copyright notice and this permission notice shall be included in
|
||||||
all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
</string>
|
||||||
|
<key>Title</key>
|
||||||
|
<string>CodFis-Helper</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSGroupSpecifier</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>FooterText</key>
|
||||||
|
<string>Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
@ -66,6 +93,33 @@ THE SOFTWARE.
|
|||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>PSGroupSpecifier</string>
|
<string>PSGroupSpecifier</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>FooterText</key>
|
||||||
|
<string>Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
</string>
|
||||||
|
<key>Title</key>
|
||||||
|
<string>NSString-Helper</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSGroupSpecifier</string>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>FooterText</key>
|
<key>FooterText</key>
|
||||||
<string>Copyright (c) <2015> Hiroki Umatani PEAR
|
<string>Copyright (c) <2015> Hiroki Umatani PEAR
|
||||||
|
|||||||
@ -85,7 +85,9 @@ strip_invalid_archs() {
|
|||||||
|
|
||||||
if [[ "$CONFIGURATION" == "Debug" ]]; then
|
if [[ "$CONFIGURATION" == "Debug" ]]; then
|
||||||
install_framework "Pods-PNObject_Tests/AFNetworking.framework"
|
install_framework "Pods-PNObject_Tests/AFNetworking.framework"
|
||||||
|
install_framework "Pods-PNObject_Tests/CodFis_Helper.framework"
|
||||||
install_framework "Pods-PNObject_Tests/NSDate_Utils.framework"
|
install_framework "Pods-PNObject_Tests/NSDate_Utils.framework"
|
||||||
|
install_framework "Pods-PNObject_Tests/NSString_Helper.framework"
|
||||||
install_framework "Pods-PNObject_Tests/PEAR_FileManager_iOS.framework"
|
install_framework "Pods-PNObject_Tests/PEAR_FileManager_iOS.framework"
|
||||||
install_framework "Pods-PNObject_Tests/PNObject.framework"
|
install_framework "Pods-PNObject_Tests/PNObject.framework"
|
||||||
install_framework "Pods-PNObject_Tests/UIDevice_Utils.framework"
|
install_framework "Pods-PNObject_Tests/UIDevice_Utils.framework"
|
||||||
@ -97,7 +99,9 @@ if [[ "$CONFIGURATION" == "Debug" ]]; then
|
|||||||
fi
|
fi
|
||||||
if [[ "$CONFIGURATION" == "Release" ]]; then
|
if [[ "$CONFIGURATION" == "Release" ]]; then
|
||||||
install_framework "Pods-PNObject_Tests/AFNetworking.framework"
|
install_framework "Pods-PNObject_Tests/AFNetworking.framework"
|
||||||
|
install_framework "Pods-PNObject_Tests/CodFis_Helper.framework"
|
||||||
install_framework "Pods-PNObject_Tests/NSDate_Utils.framework"
|
install_framework "Pods-PNObject_Tests/NSDate_Utils.framework"
|
||||||
|
install_framework "Pods-PNObject_Tests/NSString_Helper.framework"
|
||||||
install_framework "Pods-PNObject_Tests/PEAR_FileManager_iOS.framework"
|
install_framework "Pods-PNObject_Tests/PEAR_FileManager_iOS.framework"
|
||||||
install_framework "Pods-PNObject_Tests/PNObject.framework"
|
install_framework "Pods-PNObject_Tests/PNObject.framework"
|
||||||
install_framework "Pods-PNObject_Tests/UIDevice_Utils.framework"
|
install_framework "Pods-PNObject_Tests/UIDevice_Utils.framework"
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES
|
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
||||||
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Expecta.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Expecta_Snapshots.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/FBSnapshotTestCase.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSDate_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PEAR_FileManager_iOS.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PNObject.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Specta.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIDevice_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/nv_ios_http_status.framework/Headers"
|
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/CodFis_Helper.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Expecta.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Expecta_Snapshots.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/FBSnapshotTestCase.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSDate_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSString_Helper.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PEAR_FileManager_iOS.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PNObject.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Specta.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIDevice_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/nv_ios_http_status.framework/Headers"
|
||||||
OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "Expecta" -framework "Expecta_Snapshots" -framework "FBSnapshotTestCase" -framework "NSDate_Utils" -framework "PEAR_FileManager_iOS" -framework "PNObject" -framework "Specta" -framework "UIDevice_Utils" -framework "nv_ios_http_status"
|
OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "CodFis_Helper" -framework "Expecta" -framework "Expecta_Snapshots" -framework "FBSnapshotTestCase" -framework "NSDate_Utils" -framework "NSString_Helper" -framework "PEAR_FileManager_iOS" -framework "PNObject" -framework "Specta" -framework "UIDevice_Utils" -framework "nv_ios_http_status"
|
||||||
OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
|
OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
|
||||||
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-PNObject_Tests
|
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-PNObject_Tests
|
||||||
PODS_ROOT = ${SRCROOT}/Pods
|
PODS_ROOT = ${SRCROOT}/Pods
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES
|
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
||||||
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Expecta.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Expecta_Snapshots.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/FBSnapshotTestCase.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSDate_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PEAR_FileManager_iOS.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PNObject.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Specta.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIDevice_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/nv_ios_http_status.framework/Headers"
|
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AFNetworking.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/CodFis_Helper.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Expecta.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Expecta_Snapshots.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/FBSnapshotTestCase.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSDate_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/NSString_Helper.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PEAR_FileManager_iOS.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/PNObject.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Specta.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIDevice_Utils.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/nv_ios_http_status.framework/Headers"
|
||||||
OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "Expecta" -framework "Expecta_Snapshots" -framework "FBSnapshotTestCase" -framework "NSDate_Utils" -framework "PEAR_FileManager_iOS" -framework "PNObject" -framework "Specta" -framework "UIDevice_Utils" -framework "nv_ios_http_status"
|
OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "CodFis_Helper" -framework "Expecta" -framework "Expecta_Snapshots" -framework "FBSnapshotTestCase" -framework "NSDate_Utils" -framework "NSString_Helper" -framework "PEAR_FileManager_iOS" -framework "PNObject" -framework "Specta" -framework "UIDevice_Utils" -framework "nv_ios_http_status"
|
||||||
OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
|
OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
|
||||||
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-PNObject_Tests
|
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-PNObject_Tests
|
||||||
PODS_ROOT = ${SRCROOT}/Pods
|
PODS_ROOT = ${SRCROOT}/Pods
|
||||||
|
|||||||
@ -22,6 +22,7 @@ extern NSString* const EnvironmentDevelopment;
|
|||||||
@interface PNObjectConfig : NSObject
|
@interface PNObjectConfig : NSObject
|
||||||
|
|
||||||
@property (nonatomic, strong) AFHTTPSessionManager *manager;
|
@property (nonatomic, strong) AFHTTPSessionManager *manager;
|
||||||
|
@property (nonatomic) NSInteger minPasswordLenght;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gets singleton object.
|
* gets singleton object.
|
||||||
@ -47,4 +48,6 @@ extern NSString* const EnvironmentDevelopment;
|
|||||||
|
|
||||||
- (NSString *) PNObjEndpoint;
|
- (NSString *) PNObjEndpoint;
|
||||||
|
|
||||||
|
- (NSString *) minPasswordLenght:(NSUInteger) passLenght;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
@ -9,6 +9,8 @@
|
|||||||
#import "PNObjectConfig.h"
|
#import "PNObjectConfig.h"
|
||||||
#import "PNObjectConstants.h"
|
#import "PNObjectConstants.h"
|
||||||
|
|
||||||
|
NSInteger const minPassLenght = 4;
|
||||||
|
|
||||||
NSString* const EnvironmentProduction = @"PNObjectConfigEnvProduction";
|
NSString* const EnvironmentProduction = @"PNObjectConfigEnvProduction";
|
||||||
NSString* const EnvironmentStage = @"PNObjectConfigEnvStage";
|
NSString* const EnvironmentStage = @"PNObjectConfigEnvStage";
|
||||||
NSString* const EnvironmentDevelopment = @"PNObjectConfigDevelopment";
|
NSString* const EnvironmentDevelopment = @"PNObjectConfigDevelopment";
|
||||||
@ -125,6 +127,7 @@ static bool isFirstAccess = YES;
|
|||||||
|
|
||||||
if (self) {
|
if (self) {
|
||||||
_configuration = [[NSMutableDictionary alloc] init];
|
_configuration = [[NSMutableDictionary alloc] init];
|
||||||
|
_minPasswordLenght = minPassLenght;
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,8 @@
|
|||||||
@property (nonatomic) BOOL hasVerifiedEmail;
|
@property (nonatomic) BOOL hasVerifiedEmail;
|
||||||
@property (nonatomic, strong) NSDate *emailVerifiedDate;
|
@property (nonatomic, strong) NSDate *emailVerifiedDate;
|
||||||
@property (nonatomic, strong) NSString *email;
|
@property (nonatomic, strong) NSString *email;
|
||||||
@property (strong, nonatomic) NSString *username;
|
@property (nonatomic, strong) NSString *username;
|
||||||
|
@property (nonatomic, strong) NSString *password;
|
||||||
@property (nonatomic) BOOL publicProfile;
|
@property (nonatomic) BOOL publicProfile;
|
||||||
@property (nonatomic) NSInteger loginCount;
|
@property (nonatomic) NSInteger loginCount;
|
||||||
@property (strong, nonatomic) NSDate *createdAt;
|
@property (strong, nonatomic) NSDate *createdAt;
|
||||||
@ -38,4 +39,8 @@
|
|||||||
*/
|
*/
|
||||||
+ (instancetype) currentUser;
|
+ (instancetype) currentUser;
|
||||||
|
|
||||||
|
- (BOOL) isValidPassword:(NSString* _Nonnull) password;
|
||||||
|
|
||||||
|
- (void) setPassword:(NSString * _Nonnull)password withBlock:(id _Nonnull) object inBackGroundWithBlock:(nullable void (^)(BOOL saveStatus, id _Nullable responseObject, NSError * _Nullable error)) responseBlock;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@ -7,6 +7,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import "PNUser.h"
|
#import "PNUser.h"
|
||||||
|
#import "NSString+Helper.h"
|
||||||
|
#import "PNObjectConstants.h"
|
||||||
|
|
||||||
|
|
||||||
@interface PNUser() <PNObjectSubclassing>
|
@interface PNUser() <PNObjectSubclassing>
|
||||||
|
|
||||||
@ -78,7 +81,30 @@ static bool isFirstAccess = YES;
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void) setEmail:(NSString *)email {
|
- (void) setEmail:(NSString *)email {
|
||||||
|
if ([email isValidEmail]) {
|
||||||
|
_email = email;
|
||||||
|
}
|
||||||
|
NSLogDebug(@"insertedEmail is not valid.");
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) setPassword:(NSString *)password {
|
||||||
|
if ([password length] >= [[PNObjectConfig sharedInstance] minPasswordLenght]) {
|
||||||
|
self.password = password;
|
||||||
|
}
|
||||||
|
NSLogDebug(@"Inserted Passord is not valid.Lenght must be >= %ld",(long)[[PNObjectConfig sharedInstance] minPasswordLenght]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (BOOL) isValidPassword:(NSString* _Nonnull) password {
|
||||||
|
if ([password length] >= [[PNObjectConfig sharedInstance] minPasswordLenght]) {
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (NSString *) password {
|
||||||
|
return @"password is not readble";
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark PNObjectSubclassing Protocol
|
#pragma mark PNObjectSubclassing Protocol
|
||||||
@ -92,6 +118,7 @@ static bool isFirstAccess = YES;
|
|||||||
@"sex":@"sex",
|
@"sex":@"sex",
|
||||||
@"birthDate":@"birthDate",
|
@"birthDate":@"birthDate",
|
||||||
@"phone":@"phone",
|
@"phone":@"phone",
|
||||||
|
@"password":@"password",
|
||||||
@"hasAcceptedPrivacy":@"hasAcceptedPrivacy",
|
@"hasAcceptedPrivacy":@"hasAcceptedPrivacy",
|
||||||
@"hasAcceptedNewsletter":@"hasAcceptedNewsletter",
|
@"hasAcceptedNewsletter":@"hasAcceptedNewsletter",
|
||||||
@"hasVerifiedEmail":@"hasVerifiedEmail",
|
@"hasVerifiedEmail":@"hasVerifiedEmail",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user