Skip to content

Commit

Permalink
Merge pull request #32 from AuthorizeNet/TestKitUpdate
Browse files Browse the repository at this point in the history
Testing Kit Update
  • Loading branch information
brianmc committed Oct 6, 2015
2 parents 258fbe8 + 3aa85e1 commit 2081b4f
Show file tree
Hide file tree
Showing 12 changed files with 1,940 additions and 1,866 deletions.
4 changes: 2 additions & 2 deletions authorizenet-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "authorizenet-sdk"
s.version = "1.9.2"
s.version = "1.9.3"
s.summary = "iOS SDK for Authorize.Net Payments"
s.description = "The iOS SDK provides a fast and easy way for iPhone/iPad application developers to quickly integrate mobile payment without having to write the network communication, XML generation/parsing, and encoding of the data to the Authorize.net gateway."
s.homepage = "https://github.com/authorizenet/sdk-ios"
Expand All @@ -28,7 +28,7 @@ Pod::Spec.new do |s|


# s.public_header_files = 'Pod/Classes/**/*.h'
s.frameworks = 'SenTestingKit'
s.frameworks = 'XCTest'
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2'}
# s.dependency 'AFNetworking', '~> 2.3'
end
27 changes: 15 additions & 12 deletions sdk/Anet SDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
41C549AF1BB5C4D2008D3ECB /* ANetSolution.m in Sources */ = {isa = PBXBuildFile; fileRef = 41C549AE1BB5C4D2008D3ECB /* ANetSolution.m */; settings = {ASSET_TAGS = (); }; };
7848F52D1882BC1B00DA75CC /* TestAccountRegistrationResponse.xml in Resources */ = {isa = PBXBuildFile; fileRef = 7848F52C1882BC1B00DA75CC /* TestAccountRegistrationResponse.xml */; };
806AAB1E19BFB49F00323034 /* NSString+HMAC_MD5.m in Sources */ = {isa = PBXBuildFile; fileRef = 806AAB1D19BFB49F00323034 /* NSString+HMAC_MD5.m */; };
806AAB2019BFB52C00323034 /* OpaqueDataType.m in Sources */ = {isa = PBXBuildFile; fileRef = 806AAB1F19BFB52C00323034 /* OpaqueDataType.m */; };
Expand Down Expand Up @@ -80,7 +81,6 @@
8DC0744F17D159F200D4E93D /* TransRetailInfoType.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DC0740B17D159F200D4E93D /* TransRetailInfoType.m */; };
8DC0745017D159F200D4E93D /* UserField.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DC0740C17D159F200D4E93D /* UserField.m */; };
8DEBA88717D129B700B7A8B9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DEBA88617D129B700B7A8B9 /* Foundation.framework */; };
8DEBA89617D129B700B7A8B9 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DEBA89517D129B700B7A8B9 /* SenTestingKit.framework */; };
8DEBA89917D129B700B7A8B9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DEBA88617D129B700B7A8B9 /* Foundation.framework */; };
8DEBA8A217D129B700B7A8B9 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8DEBA8A017D129B700B7A8B9 /* InfoPlist.strings */; };
8DEBA8A517D129B700B7A8B9 /* Anet_SDKTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DEBA8A417D129B700B7A8B9 /* Anet_SDKTests.m */; };
Expand Down Expand Up @@ -111,6 +111,8 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
41C549AD1BB5C4A4008D3ECB /* ANetSolution.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANetSolution.h; sourceTree = "<group>"; };
41C549AE1BB5C4D2008D3ECB /* ANetSolution.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ANetSolution.m; sourceTree = "<group>"; };
4EEBACF11882949D00667143 /* TestAccountRegistrationRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestAccountRegistrationRequest.h; sourceTree = "<group>"; };
4EEBACF81882958200667143 /* TestAccountRegistrationResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestAccountRegistrationResponse.h; sourceTree = "<group>"; };
7848F52C1882BC1B00DA75CC /* TestAccountRegistrationResponse.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = TestAccountRegistrationResponse.xml; sourceTree = "<group>"; };
Expand Down Expand Up @@ -272,8 +274,7 @@
8DC0749717D15A1200D4E93D /* SDK License Agreement (10.20.10).pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = "SDK License Agreement (10.20.10).pdf"; sourceTree = "<group>"; };
8DEBA88317D129B700B7A8B9 /* libAnet SDK.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libAnet SDK.a"; sourceTree = BUILT_PRODUCTS_DIR; };
8DEBA88617D129B700B7A8B9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
8DEBA89417D129B700B7A8B9 /* Anet SDKTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Anet SDKTests.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
8DEBA89517D129B700B7A8B9 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
8DEBA89417D129B700B7A8B9 /* Anet SDKTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Anet SDKTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
8DEBA89F17D129B700B7A8B9 /* Anet SDKTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Anet SDKTests-Info.plist"; sourceTree = "<group>"; };
8DEBA8A117D129B700B7A8B9 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
8DEBA8A317D129B700B7A8B9 /* Anet_SDKTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Anet_SDKTests.h; sourceTree = "<group>"; };
Expand All @@ -296,7 +297,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
8DEBA89617D129B700B7A8B9 /* SenTestingKit.framework in Frameworks */,
8DEBA89917D129B700B7A8B9 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -326,6 +326,7 @@
8DC073BB17D159F200D4E93D /* Anet SDK */ = {
isa = PBXGroup;
children = (
41C549AE1BB5C4D2008D3ECB /* ANetSolution.m */,
806AAB2119BFB55300323034 /* FingerPrintObjectType.m */,
806AAB1F19BFB52C00323034 /* OpaqueDataType.m */,
7848F52C1882BC1B00DA75CC /* TestAccountRegistrationResponse.xml */,
Expand Down Expand Up @@ -420,6 +421,7 @@
8DC0745117D15A0800D4E93D /* Headers */ = {
isa = PBXGroup;
children = (
41C549AD1BB5C4A4008D3ECB /* ANetSolution.h */,
806AAB2319BFB57200323034 /* FingerPrintObjectType.h */,
806AAB2419BFB57200323034 /* OpaqueDataType.h */,
4EEBACF81882958200667143 /* TestAccountRegistrationResponse.h */,
Expand Down Expand Up @@ -518,7 +520,7 @@
isa = PBXGroup;
children = (
8DEBA88317D129B700B7A8B9 /* libAnet SDK.a */,
8DEBA89417D129B700B7A8B9 /* Anet SDKTests.octest */,
8DEBA89417D129B700B7A8B9 /* Anet SDKTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -527,7 +529,6 @@
isa = PBXGroup;
children = (
8DEBA88617D129B700B7A8B9 /* Foundation.framework */,
8DEBA89517D129B700B7A8B9 /* SenTestingKit.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -587,15 +588,16 @@
);
name = "Anet SDKTests";
productName = "Anet SDKTests";
productReference = 8DEBA89417D129B700B7A8B9 /* Anet SDKTests.octest */;
productType = "com.apple.product-type.bundle.ocunit-test";
productReference = 8DEBA89417D129B700B7A8B9 /* Anet SDKTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
8DEBA87B17D129B700B7A8B9 /* Project object */ = {
isa = PBXProject;
attributes = {
LastTestingUpgradeCheck = 0700;
LastUpgradeCheck = 0460;
ORGANIZATIONNAME = MMA;
};
Expand Down Expand Up @@ -698,6 +700,7 @@
8DC0743717D159F200D4E93D /* MobileDeviceRegistrationRequest.m in Sources */,
8DC0743817D159F200D4E93D /* MobileDeviceRegistrationResponse.m in Sources */,
8DC0743917D159F200D4E93D /* MobileDeviceType.m in Sources */,
41C549AF1BB5C4D2008D3ECB /* ANetSolution.m in Sources */,
8DC0743A17D159F200D4E93D /* NameAndAddressType.m in Sources */,
8DC0744017D159F200D4E93D /* OrderExType.m in Sources */,
8DC0744117D159F200D4E93D /* OrderType.m in Sources */,
Expand Down Expand Up @@ -827,7 +830,7 @@
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos8.0;
SDKROOT = iphoneos9.0;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -846,7 +849,7 @@
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos8.0;
SDKROOT = iphoneos9.0;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -858,12 +861,12 @@
FRAMEWORK_SEARCH_PATHS = (
"\"$(SDKROOT)/Developer/Library/Frameworks\"",
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
"$(inherited)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Anet SDK/Anet SDK-Prefix.pch";
INFOPLIST_FILE = "Anet SDKTests/Anet SDKTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = octest;
};
name = Debug;
};
Expand All @@ -873,12 +876,12 @@
FRAMEWORK_SEARCH_PATHS = (
"\"$(SDKROOT)/Developer/Library/Frameworks\"",
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
"$(inherited)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Anet SDK/Anet SDK-Prefix.pch";
INFOPLIST_FILE = "Anet SDKTests/Anet SDKTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = octest;
};
name = Release;
};
Expand Down
13 changes: 8 additions & 5 deletions sdk/Anet SDK.xcodeproj/xcshareddata/xcschemes/Anet SDK.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,34 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8DEBA89317D129B700B7A8B9"
BuildableName = "Anet SDKTests.octest"
BuildableName = "Anet SDKTests.xctest"
BlueprintName = "Anet SDKTests"
ReferencedContainer = "container:Anet SDK.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
Expand All @@ -62,10 +65,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
Expand Down
46 changes: 46 additions & 0 deletions sdk/Anet SDK/ANetSolution.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// ANetSolution.m
// Anet SDK
//
// Created by Senthil Kumar Periyasamy on 7/28/15.
// Copyright (c) 2015 MMA. All rights reserved.
//

#import "ANetSolution.h"
#import <UIKit/UIDevice.h>

@implementation ANetSolution

+ (ANetSolution *) sharedInstance
{
static dispatch_once_t pred = 0;
__strong static id _sharedObject = nil;
dispatch_once(&pred, ^{
if (_sharedObject == nil) {
_sharedObject = [[ANetSolution alloc] init];
}
});
return _sharedObject;
}


- (id) init
{
self = [super init];
if (self)
{

}
return self;
}


- (NSString *)anetSolutionID {
if ([self.delegate respondsToSelector:@selector(solutionID)]) {
return [self.delegate solutionID];
} else {
return @"A1000025";
}
}

@end
Loading

0 comments on commit 2081b4f

Please sign in to comment.