Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions OpenShareDemo/Open ShareTests/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
39 changes: 39 additions & 0 deletions OpenShareDemo/Open ShareTests/Open_ShareTests.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// Open_ShareTests.m
// Open ShareTests
//
// Created by jinchu darwin on 16/9/20.
// Copyright © 2016年 OpenShare http://openshare.gfzj.us/. All rights reserved.
//

#import <XCTest/XCTest.h>

@interface Open_ShareTests : XCTestCase

@end

@implementation Open_ShareTests

- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

- (void)testExample {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}

- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}

@end
123 changes: 79 additions & 44 deletions OpenShareDemo/openshare.xcodeproj/project.pbxproj
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
B66BF3B91B0C137E0082F8D6 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B66BF3B81B0C137E0082F8D6 /* ViewController.m */; };
B66BF3BE1B0C137E0082F8D6 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B66BF3BD1B0C137E0082F8D6 /* Images.xcassets */; };
B66BF3C11B0C137E0082F8D6 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = B66BF3BF1B0C137E0082F8D6 /* LaunchScreen.xib */; };
B66BF3CD1B0C137E0082F8D6 /* openshareTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B66BF3CC1B0C137E0082F8D6 /* openshareTests.m */; };
B66BF3DB1B0C14480082F8D6 /* iconfont.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B66BF3D71B0C14480082F8D6 /* iconfont.ttf */; };
B66BF3DC1B0C14480082F8D6 /* logo.gif in Resources */ = {isa = PBXBuildFile; fileRef = B66BF3D81B0C14480082F8D6 /* logo.gif */; };
B66BF3DD1B0C14480082F8D6 /* logo.png in Resources */ = {isa = PBXBuildFile; fileRef = B66BF3D91B0C14480082F8D6 /* logo.png */; };
Expand All @@ -25,10 +24,12 @@
B66BF3F41B0C1AEB0082F8D6 /* UIControl+Blocks.m in Sources */ = {isa = PBXBuildFile; fileRef = B66BF3F31B0C1AEB0082F8D6 /* UIControl+Blocks.m */; };
B66BF3F81B0C23670082F8D6 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B66BF3F71B0C23670082F8D6 /* Default@2x.png */; };
B6E22B1F1B213B09001930CA /* OpenShare+Alipay.m in Sources */ = {isa = PBXBuildFile; fileRef = B6E22B1E1B213B09001930CA /* OpenShare+Alipay.m */; };
D02886531D90D22200269A24 /* Open_ShareTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D02886521D90D22200269A24 /* Open_ShareTests.m */; };
D08B4B131D8FD254004BCB31 /* WebviewAuthHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = D08B4B121D8FD254004BCB31 /* WebviewAuthHelper.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
B66BF3C71B0C137E0082F8D6 /* PBXContainerItemProxy */ = {
D02886551D90D22200269A24 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = B66BF3A51B0C137D0082F8D6 /* Project object */;
proxyType = 1;
Expand All @@ -47,7 +48,6 @@
B66BF3B81B0C137E0082F8D6 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
B66BF3BD1B0C137E0082F8D6 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
B66BF3C01B0C137E0082F8D6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
B66BF3C61B0C137E0082F8D6 /* openshareTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = openshareTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
B66BF3CB1B0C137E0082F8D6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
B66BF3CC1B0C137E0082F8D6 /* openshareTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = openshareTests.m; sourceTree = "<group>"; };
B66BF3D71B0C14480082F8D6 /* iconfont.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = iconfont.ttf; sourceTree = "<group>"; };
Expand All @@ -70,6 +70,11 @@
B66BF3F71B0C23670082F8D6 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "Images.xcassets/LaunchImage.launchimage/Default@2x.png"; sourceTree = "<group>"; };
B6E22B1D1B213B09001930CA /* OpenShare+Alipay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "OpenShare+Alipay.h"; sourceTree = "<group>"; };
B6E22B1E1B213B09001930CA /* OpenShare+Alipay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "OpenShare+Alipay.m"; sourceTree = "<group>"; };
D02886501D90D22200269A24 /* Open ShareTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Open ShareTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
D02886521D90D22200269A24 /* Open_ShareTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Open_ShareTests.m; sourceTree = "<group>"; };
D02886541D90D22200269A24 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D08B4B111D8FD254004BCB31 /* WebviewAuthHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebviewAuthHelper.h; path = ../openshare/WebviewAuthHelper.h; sourceTree = "<group>"; };
D08B4B121D8FD254004BCB31 /* WebviewAuthHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WebviewAuthHelper.m; path = ../openshare/WebviewAuthHelper.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -80,7 +85,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
B66BF3C31B0C137E0082F8D6 /* Frameworks */ = {
D028864D1D90D22200269A24 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -95,6 +100,7 @@
children = (
B66BF3AF1B0C137E0082F8D6 /* openshare */,
B66BF3C91B0C137E0082F8D6 /* openshareTests */,
D02886511D90D22200269A24 /* Open ShareTests */,
B66BF3AE1B0C137E0082F8D6 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -103,7 +109,7 @@
isa = PBXGroup;
children = (
B66BF3AD1B0C137E0082F8D6 /* openshare.app */,
B66BF3C61B0C137E0082F8D6 /* openshareTests.xctest */,
D02886501D90D22200269A24 /* Open ShareTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -167,6 +173,8 @@
B66BF3E11B0C16290082F8D6 /* OpenShare */ = {
isa = PBXGroup;
children = (
D08B4B111D8FD254004BCB31 /* WebviewAuthHelper.h */,
D08B4B121D8FD254004BCB31 /* WebviewAuthHelper.m */,
B66BF3E21B0C16290082F8D6 /* OpenShare+QQ.h */,
B66BF3E31B0C16290082F8D6 /* OpenShare+QQ.m */,
B66BF3E41B0C16290082F8D6 /* OpenShare+Renren.h */,
Expand All @@ -185,6 +193,15 @@
path = ../../OpenShare;
sourceTree = "<group>";
};
D02886511D90D22200269A24 /* Open ShareTests */ = {
isa = PBXGroup;
children = (
D02886521D90D22200269A24 /* Open_ShareTests.m */,
D02886541D90D22200269A24 /* Info.plist */,
);
path = "Open ShareTests";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand All @@ -205,22 +222,22 @@
productReference = B66BF3AD1B0C137E0082F8D6 /* openshare.app */;
productType = "com.apple.product-type.application";
};
B66BF3C51B0C137E0082F8D6 /* openshareTests */ = {
D028864F1D90D22200269A24 /* Open ShareTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = B66BF3D31B0C137E0082F8D6 /* Build configuration list for PBXNativeTarget "openshareTests" */;
buildConfigurationList = D02886571D90D22200269A24 /* Build configuration list for PBXNativeTarget "Open ShareTests" */;
buildPhases = (
B66BF3C21B0C137E0082F8D6 /* Sources */,
B66BF3C31B0C137E0082F8D6 /* Frameworks */,
B66BF3C41B0C137E0082F8D6 /* Resources */,
D028864C1D90D22200269A24 /* Sources */,
D028864D1D90D22200269A24 /* Frameworks */,
D028864E1D90D22200269A24 /* Resources */,
);
buildRules = (
);
dependencies = (
B66BF3C81B0C137E0082F8D6 /* PBXTargetDependency */,
D02886561D90D22200269A24 /* PBXTargetDependency */,
);
name = openshareTests;
productName = openshareTests;
productReference = B66BF3C61B0C137E0082F8D6 /* openshareTests.xctest */;
name = "Open ShareTests";
productName = "Open ShareTests";
productReference = D02886501D90D22200269A24 /* Open ShareTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
Expand All @@ -234,9 +251,13 @@
TargetAttributes = {
B66BF3AC1B0C137E0082F8D6 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = CM2364627B;
ProvisioningStyle = Automatic;
};
B66BF3C51B0C137E0082F8D6 = {
CreatedOnToolsVersion = 6.3.1;
D028864F1D90D22200269A24 = {
CreatedOnToolsVersion = 8.0;
DevelopmentTeam = CM2364627B;
ProvisioningStyle = Automatic;
TestTargetID = B66BF3AC1B0C137E0082F8D6;
};
};
Expand All @@ -255,7 +276,7 @@
projectRoot = "";
targets = (
B66BF3AC1B0C137E0082F8D6 /* openshare */,
B66BF3C51B0C137E0082F8D6 /* openshareTests */,
D028864F1D90D22200269A24 /* Open ShareTests */,
);
};
/* End PBXProject section */
Expand All @@ -275,7 +296,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
B66BF3C41B0C137E0082F8D6 /* Resources */ = {
D028864E1D90D22200269A24 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -294,6 +315,7 @@
B66BF3B61B0C137E0082F8D6 /* AppDelegate.m in Sources */,
B66BF3F41B0C1AEB0082F8D6 /* UIControl+Blocks.m in Sources */,
B66BF3F11B0C16290082F8D6 /* OpenShare.m in Sources */,
D08B4B131D8FD254004BCB31 /* WebviewAuthHelper.m in Sources */,
B66BF3B31B0C137E0082F8D6 /* main.m in Sources */,
B66BF3EF1B0C16290082F8D6 /* OpenShare+Weibo.m in Sources */,
B6E22B1F1B213B09001930CA /* OpenShare+Alipay.m in Sources */,
Expand All @@ -302,21 +324,21 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
B66BF3C21B0C137E0082F8D6 /* Sources */ = {
D028864C1D90D22200269A24 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B66BF3CD1B0C137E0082F8D6 /* openshareTests.m in Sources */,
D02886531D90D22200269A24 /* Open_ShareTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
B66BF3C81B0C137E0082F8D6 /* PBXTargetDependency */ = {
D02886561D90D22200269A24 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = B66BF3AC1B0C137E0082F8D6 /* openshare */;
targetProxy = B66BF3C71B0C137E0082F8D6 /* PBXContainerItemProxy */;
targetProxy = D02886551D90D22200269A24 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

Expand Down Expand Up @@ -419,10 +441,15 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = CM2364627B;
INFOPLIST_FILE = openshare/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = top.dawenhing.openshare;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
};
name = Debug;
};
Expand All @@ -431,42 +458,51 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = CM2364627B;
INFOPLIST_FILE = openshare/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = top.dawenhing.openshare;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
};
name = Release;
};
B66BF3D41B0C137E0082F8D6 /* Debug */ = {
D02886581D90D22200269A24 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = openshareTests/Info.plist;
CLANG_ANALYZER_NONNULL = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_SUSPICIOUS_MOVES = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = CM2364627B;
ENABLE_TESTABILITY = YES;
INFOPLIST_FILE = "Open ShareTests/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "top.dawenhing.Open-ShareTests";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/openshare.app/openshare";
};
name = Debug;
};
B66BF3D51B0C137E0082F8D6 /* Release */ = {
D02886591D90D22200269A24 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
INFOPLIST_FILE = openshareTests/Info.plist;
CLANG_ANALYZER_NONNULL = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_SUSPICIOUS_MOVES = YES;
DEVELOPMENT_TEAM = CM2364627B;
INFOPLIST_FILE = "Open ShareTests/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "top.dawenhing.Open-ShareTests";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/openshare.app/openshare";
};
Expand All @@ -493,14 +529,13 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
B66BF3D31B0C137E0082F8D6 /* Build configuration list for PBXNativeTarget "openshareTests" */ = {
D02886571D90D22200269A24 /* Build configuration list for PBXNativeTarget "Open ShareTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
B66BF3D41B0C137E0082F8D6 /* Debug */,
B66BF3D51B0C137E0082F8D6 /* Release */,
D02886581D90D22200269A24 /* Debug */,
D02886591D90D22200269A24 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Empty file.
Empty file.
Loading