Browse Source

IOSAD-186 adds more complex test case to sample app (to reproduce linking problems with code from ewxtensions)

IOS-2651
Andreas Buff 1 year ago
parent
commit
e624d755f2
1 changed files with 18 additions and 2 deletions
  1. +18
    -2
      DELETE_--TEST--_DELETE_/TEST_ObjCAdapterStaticLibUsage/TEST_ObjCAdapterStaticLibUsage/ViewController.m

+ 18
- 2
DELETE_--TEST--_DELETE_/TEST_ObjCAdapterStaticLibUsage/TEST_ObjCAdapterStaticLibUsage/ViewController.m View File

@ -8,16 +8,32 @@
#import "ViewController.h"
#import "PEPSession.h"
#import "PEPObjCAdapter.h"
#import "PEPIdentity.h"
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
PEPSession *pEpSession = [[PEPSession alloc] init];
// Do any additional setup after loading the view.
NSLog(@"Started up");
PEPRating rating = [[PEPSession new] ratingFromString:@"reliable"];
NSLog(@"PEPRating rating = [[PEPSession init] ratingFromString:@\"reliable\"];: %d", rating);
PEPRating rating = [pEpSession ratingFromString:@"reliable"];
NSLog(@"PEPRating rating = [pEpSession ratingFromString:@\"reliable\"];: %d", rating);
PEPIdentity * testee = [[PEPIdentity alloc] init];
testee.address = @"lkjasdf@kjahsdf.de";
testee.userID = @"lskjdgf";
[pEpSession mySelf:testee errorCallback:^(NSError * _Nonnull error) {
NSLog(@"!");
} successCallback:^(PEPIdentity * _Nonnull identity) {
NSLog(@"success");
}];
testee.tostru
}


Loading…
Cancel
Save