Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Remvoing public Motis dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vilanovi committed Oct 14, 2015
1 parent 4852a55 commit 3865de5
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 5 deletions.
7 changes: 6 additions & 1 deletion Sample Project/ApiClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
D20428C41AC400F3002F18FD /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0620;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = "Mobile Jazz";
TargetAttributes = {
D20428CB1AC400F3002F18FD = {
Expand Down Expand Up @@ -425,6 +425,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
Expand Down Expand Up @@ -488,6 +489,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = ApiClient/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.mobilejazz.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
Expand All @@ -499,6 +501,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = ApiClient/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.mobilejazz.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
Expand All @@ -517,6 +520,7 @@
);
INFOPLIST_FILE = ApiClientTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.mobilejazz.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ApiClient.app/ApiClient";
};
Expand All @@ -532,6 +536,7 @@
);
INFOPLIST_FILE = ApiClientTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.mobilejazz.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ApiClient.app/ApiClient";
};
Expand Down
2 changes: 1 addition & 1 deletion Sample Project/ApiClient/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.mobilejazz.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
2 changes: 1 addition & 1 deletion Sample Project/ApiClientTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.mobilejazz.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
1 change: 1 addition & 0 deletions Source Code/MJApiSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#import "MJApiClientKeychainManager.h"
#import "NSString+MJApiClientMD5Hashing.h"
#import <Motis/Motis.h>

@interface MJApiSessionConfiguration ()

Expand Down
4 changes: 2 additions & 2 deletions Source Code/MJApiSessionOAuth.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
// limitations under the License.
//

#import <Motis/Motis.h>
#import <Foundation/Foundation.h>

@interface MJApiSessionOAuth : MTSMotisObject
@interface MJApiSessionOAuth : NSObject <NSCoding>

@property (nonatomic, strong) NSString *accessToken;
@property (nonatomic, strong) NSString *refreshToken;
Expand Down
23 changes: 23 additions & 0 deletions Source Code/MJApiSessionOAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,32 @@
//

#import "MJApiSessionOAuth.h"
#import <Motis/Motis.h>

@implementation MJApiSessionOAuth

- (id)initWithCoder:(NSCoder *)aDecoder
{
self = [super init];
if (self) {
_accessToken = [aDecoder decodeObjectForKey:@"accessToken"];
_refreshToken = [aDecoder decodeObjectForKey:@"refreshToken"];
_expiryDate = [aDecoder decodeObjectForKey:@"expiryDate"];
_tokenType = [aDecoder decodeObjectForKey:@"tokenType"];
_scope = [aDecoder decodeObjectForKey:@"scope"];
}
return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:_accessToken forKey:@"accessToken"];
[aCoder encodeObject:_refreshToken forKey:@"refreshToken"];
[aCoder encodeObject:_expiryDate forKey:@"expiryDate"];
[aCoder encodeObject:_tokenType forKey:@"tokenType"];
[aCoder encodeObject:_scope forKey:@"scope"];
}

#pragma mark Motis Methods

+ (NSDictionary *)mts_mapping {
Expand Down

0 comments on commit 3865de5

Please sign in to comment.