mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-01 19:37:45 +08:00
add test demos for xcode
This commit is contained in:
parent
4c55c77ed5
commit
2119035ec3
656
xcode/fiber_http/fiber_http.xcodeproj/project.pbxproj
Normal file
656
xcode/fiber_http/fiber_http.xcodeproj/project.pbxproj
Normal file
@ -0,0 +1,656 @@
|
|||||||
|
// !$*UTF8*$!
|
||||||
|
{
|
||||||
|
archiveVersion = 1;
|
||||||
|
classes = {
|
||||||
|
};
|
||||||
|
objectVersion = 50;
|
||||||
|
objects = {
|
||||||
|
|
||||||
|
/* Begin PBXBuildFile section */
|
||||||
|
70691F4C244C900900A727F2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 70691F4B244C900900A727F2 /* AppDelegate.m */; };
|
||||||
|
70691F4F244C900900A727F2 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 70691F4E244C900900A727F2 /* ViewController.m */; };
|
||||||
|
70691F52244C900900A727F2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 70691F50244C900900A727F2 /* Main.storyboard */; };
|
||||||
|
70691F54244C900B00A727F2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 70691F53244C900B00A727F2 /* Assets.xcassets */; };
|
||||||
|
70691F57244C900B00A727F2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 70691F55244C900B00A727F2 /* LaunchScreen.storyboard */; };
|
||||||
|
70691F5A244C900B00A727F2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 70691F59244C900B00A727F2 /* main.m */; };
|
||||||
|
70691F64244C900B00A727F2 /* fiber_httpUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 70691F63244C900B00A727F2 /* fiber_httpUITests.m */; };
|
||||||
|
70691F95244D2AA900A727F2 /* libacl_cpp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70691F87244D2A5900A727F2 /* libacl_cpp.a */; };
|
||||||
|
70691F96244D2AA900A727F2 /* libacl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70691F7B244D2A3E00A727F2 /* libacl.a */; };
|
||||||
|
70691F97244D2AA900A727F2 /* libfiber_cpp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70691F8D244D2A8E00A727F2 /* libfiber_cpp.a */; };
|
||||||
|
70691F98244D2AA900A727F2 /* libfiber.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70691F93244D2A8E00A727F2 /* libfiber.a */; };
|
||||||
|
70691F99244D2AA900A727F2 /* libprotocol.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70691F81244D2A4B00A727F2 /* libprotocol.a */; };
|
||||||
|
70691FB4244D4D4900A727F2 /* HttpTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 70691FB2244D4D4900A727F2 /* HttpTest.cpp */; };
|
||||||
|
70691FB5244D4D4900A727F2 /* HttpRequest.mm in Sources */ = {isa = PBXBuildFile; fileRef = 70691FB3244D4D4900A727F2 /* HttpRequest.mm */; };
|
||||||
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXContainerItemProxy section */
|
||||||
|
70691F60244C900B00A727F2 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 70691F3F244C900900A727F2 /* Project object */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = 70691F46244C900900A727F2;
|
||||||
|
remoteInfo = fiber_http;
|
||||||
|
};
|
||||||
|
70691F7A244D2A3E00A727F2 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 70691F76244D2A3D00A727F2 /* acl.xcodeproj */;
|
||||||
|
proxyType = 2;
|
||||||
|
remoteGlobalIDString = 0779D32E1DBE054C00449438;
|
||||||
|
remoteInfo = acl;
|
||||||
|
};
|
||||||
|
70691F80244D2A4B00A727F2 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 70691F7C244D2A4B00A727F2 /* protocol.xcodeproj */;
|
||||||
|
proxyType = 2;
|
||||||
|
remoteGlobalIDString = 07A4570A1E6FC3D3002C9B3C;
|
||||||
|
remoteInfo = protocol;
|
||||||
|
};
|
||||||
|
70691F86244D2A5900A727F2 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 70691F82244D2A5900A727F2 /* acl_cpp.xcodeproj */;
|
||||||
|
proxyType = 2;
|
||||||
|
remoteGlobalIDString = 07A458311E6FCCB4002C9B3C;
|
||||||
|
remoteInfo = acl_cpp;
|
||||||
|
};
|
||||||
|
70691F8C244D2A8E00A727F2 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 70691F88244D2A8E00A727F2 /* fiber_cpp.xcodeproj */;
|
||||||
|
proxyType = 2;
|
||||||
|
remoteGlobalIDString = 070F35E320902D9800672EDC;
|
||||||
|
remoteInfo = fiber_cpp;
|
||||||
|
};
|
||||||
|
70691F92244D2A8E00A727F2 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 70691F8E244D2A8E00A727F2 /* fiber.xcodeproj */;
|
||||||
|
proxyType = 2;
|
||||||
|
remoteGlobalIDString = 070F35202090217900672EDC;
|
||||||
|
remoteInfo = fiber;
|
||||||
|
};
|
||||||
|
/* End PBXContainerItemProxy section */
|
||||||
|
|
||||||
|
/* Begin PBXFileReference section */
|
||||||
|
70691F47244C900900A727F2 /* fiber_http.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = fiber_http.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
70691F4A244C900900A727F2 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
||||||
|
70691F4B244C900900A727F2 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
|
||||||
|
70691F4D244C900900A727F2 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
|
||||||
|
70691F4E244C900900A727F2 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
|
||||||
|
70691F51244C900900A727F2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||||
|
70691F53244C900B00A727F2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
|
70691F56244C900B00A727F2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
|
70691F58244C900B00A727F2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
70691F59244C900B00A727F2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||||
|
70691F5F244C900B00A727F2 /* fiber_httpUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = fiber_httpUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
70691F63244C900B00A727F2 /* fiber_httpUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = fiber_httpUITests.m; sourceTree = "<group>"; };
|
||||||
|
70691F65244C900B00A727F2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
70691F76244D2A3D00A727F2 /* acl.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = acl.xcodeproj; path = ../../lib_acl/acl.xcodeproj; sourceTree = "<group>"; };
|
||||||
|
70691F7C244D2A4B00A727F2 /* protocol.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = protocol.xcodeproj; path = ../../lib_protocol/protocol.xcodeproj; sourceTree = "<group>"; };
|
||||||
|
70691F82244D2A5900A727F2 /* acl_cpp.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = acl_cpp.xcodeproj; path = ../../lib_acl_cpp/acl_cpp.xcodeproj; sourceTree = "<group>"; };
|
||||||
|
70691F88244D2A8E00A727F2 /* fiber_cpp.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = fiber_cpp.xcodeproj; path = ../../lib_fiber/fiber_cpp.xcodeproj; sourceTree = "<group>"; };
|
||||||
|
70691F8E244D2A8E00A727F2 /* fiber.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = fiber.xcodeproj; path = ../../lib_fiber/fiber.xcodeproj; sourceTree = "<group>"; };
|
||||||
|
70691FB0244D4D4900A727F2 /* HttpTest.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = HttpTest.hpp; sourceTree = "<group>"; };
|
||||||
|
70691FB1244D4D4900A727F2 /* HttpRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HttpRequest.h; sourceTree = "<group>"; };
|
||||||
|
70691FB2244D4D4900A727F2 /* HttpTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HttpTest.cpp; sourceTree = "<group>"; };
|
||||||
|
70691FB3244D4D4900A727F2 /* HttpRequest.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = HttpRequest.mm; sourceTree = "<group>"; };
|
||||||
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
70691F44244C900900A727F2 /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
70691F95244D2AA900A727F2 /* libacl_cpp.a in Frameworks */,
|
||||||
|
70691F96244D2AA900A727F2 /* libacl.a in Frameworks */,
|
||||||
|
70691F97244D2AA900A727F2 /* libfiber_cpp.a in Frameworks */,
|
||||||
|
70691F98244D2AA900A727F2 /* libfiber.a in Frameworks */,
|
||||||
|
70691F99244D2AA900A727F2 /* libprotocol.a in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
70691F5C244C900B00A727F2 /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXGroup section */
|
||||||
|
70691F3E244C900900A727F2 = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691F88244D2A8E00A727F2 /* fiber_cpp.xcodeproj */,
|
||||||
|
70691F8E244D2A8E00A727F2 /* fiber.xcodeproj */,
|
||||||
|
70691F82244D2A5900A727F2 /* acl_cpp.xcodeproj */,
|
||||||
|
70691F7C244D2A4B00A727F2 /* protocol.xcodeproj */,
|
||||||
|
70691F76244D2A3D00A727F2 /* acl.xcodeproj */,
|
||||||
|
70691F49244C900900A727F2 /* fiber_http */,
|
||||||
|
70691F62244C900B00A727F2 /* fiber_httpUITests */,
|
||||||
|
70691F48244C900900A727F2 /* Products */,
|
||||||
|
70691F94244D2AA900A727F2 /* Frameworks */,
|
||||||
|
);
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F48244C900900A727F2 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691F47244C900900A727F2 /* fiber_http.app */,
|
||||||
|
70691F5F244C900B00A727F2 /* fiber_httpUITests.xctest */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F49244C900900A727F2 /* fiber_http */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691FB1244D4D4900A727F2 /* HttpRequest.h */,
|
||||||
|
70691FB3244D4D4900A727F2 /* HttpRequest.mm */,
|
||||||
|
70691FB0244D4D4900A727F2 /* HttpTest.hpp */,
|
||||||
|
70691FB2244D4D4900A727F2 /* HttpTest.cpp */,
|
||||||
|
70691F4A244C900900A727F2 /* AppDelegate.h */,
|
||||||
|
70691F4B244C900900A727F2 /* AppDelegate.m */,
|
||||||
|
70691F4D244C900900A727F2 /* ViewController.h */,
|
||||||
|
70691F4E244C900900A727F2 /* ViewController.m */,
|
||||||
|
70691F50244C900900A727F2 /* Main.storyboard */,
|
||||||
|
70691F53244C900B00A727F2 /* Assets.xcassets */,
|
||||||
|
70691F55244C900B00A727F2 /* LaunchScreen.storyboard */,
|
||||||
|
70691F58244C900B00A727F2 /* Info.plist */,
|
||||||
|
70691F59244C900B00A727F2 /* main.m */,
|
||||||
|
);
|
||||||
|
path = fiber_http;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F62244C900B00A727F2 /* fiber_httpUITests */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691F63244C900B00A727F2 /* fiber_httpUITests.m */,
|
||||||
|
70691F65244C900B00A727F2 /* Info.plist */,
|
||||||
|
);
|
||||||
|
path = fiber_httpUITests;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F77244D2A3D00A727F2 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691F7B244D2A3E00A727F2 /* libacl.a */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F7D244D2A4B00A727F2 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691F81244D2A4B00A727F2 /* libprotocol.a */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F83244D2A5900A727F2 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691F87244D2A5900A727F2 /* libacl_cpp.a */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F89244D2A8E00A727F2 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691F8D244D2A8E00A727F2 /* libfiber_cpp.a */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F8F244D2A8E00A727F2 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
70691F93244D2A8E00A727F2 /* libfiber.a */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F94244D2AA900A727F2 /* Frameworks */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
);
|
||||||
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXGroup section */
|
||||||
|
|
||||||
|
/* Begin PBXNativeTarget section */
|
||||||
|
70691F46244C900900A727F2 /* fiber_http */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 70691F68244C900B00A727F2 /* Build configuration list for PBXNativeTarget "fiber_http" */;
|
||||||
|
buildPhases = (
|
||||||
|
70691F43244C900900A727F2 /* Sources */,
|
||||||
|
70691F44244C900900A727F2 /* Frameworks */,
|
||||||
|
70691F45244C900900A727F2 /* Resources */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
name = fiber_http;
|
||||||
|
productName = fiber_http;
|
||||||
|
productReference = 70691F47244C900900A727F2 /* fiber_http.app */;
|
||||||
|
productType = "com.apple.product-type.application";
|
||||||
|
};
|
||||||
|
70691F5E244C900B00A727F2 /* fiber_httpUITests */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 70691F6B244C900B00A727F2 /* Build configuration list for PBXNativeTarget "fiber_httpUITests" */;
|
||||||
|
buildPhases = (
|
||||||
|
70691F5B244C900B00A727F2 /* Sources */,
|
||||||
|
70691F5C244C900B00A727F2 /* Frameworks */,
|
||||||
|
70691F5D244C900B00A727F2 /* Resources */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
70691F61244C900B00A727F2 /* PBXTargetDependency */,
|
||||||
|
);
|
||||||
|
name = fiber_httpUITests;
|
||||||
|
productName = fiber_httpUITests;
|
||||||
|
productReference = 70691F5F244C900B00A727F2 /* fiber_httpUITests.xctest */;
|
||||||
|
productType = "com.apple.product-type.bundle.ui-testing";
|
||||||
|
};
|
||||||
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
|
/* Begin PBXProject section */
|
||||||
|
70691F3F244C900900A727F2 /* Project object */ = {
|
||||||
|
isa = PBXProject;
|
||||||
|
attributes = {
|
||||||
|
LastUpgradeCheck = 1030;
|
||||||
|
ORGANIZATIONNAME = acl;
|
||||||
|
TargetAttributes = {
|
||||||
|
70691F46244C900900A727F2 = {
|
||||||
|
CreatedOnToolsVersion = 10.3;
|
||||||
|
};
|
||||||
|
70691F5E244C900B00A727F2 = {
|
||||||
|
CreatedOnToolsVersion = 10.3;
|
||||||
|
TestTargetID = 70691F46244C900900A727F2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
buildConfigurationList = 70691F42244C900900A727F2 /* Build configuration list for PBXProject "fiber_http" */;
|
||||||
|
compatibilityVersion = "Xcode 9.3";
|
||||||
|
developmentRegion = en;
|
||||||
|
hasScannedForEncodings = 0;
|
||||||
|
knownRegions = (
|
||||||
|
en,
|
||||||
|
Base,
|
||||||
|
);
|
||||||
|
mainGroup = 70691F3E244C900900A727F2;
|
||||||
|
productRefGroup = 70691F48244C900900A727F2 /* Products */;
|
||||||
|
projectDirPath = "";
|
||||||
|
projectReferences = (
|
||||||
|
{
|
||||||
|
ProductGroup = 70691F77244D2A3D00A727F2 /* Products */;
|
||||||
|
ProjectRef = 70691F76244D2A3D00A727F2 /* acl.xcodeproj */;
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ProductGroup = 70691F83244D2A5900A727F2 /* Products */;
|
||||||
|
ProjectRef = 70691F82244D2A5900A727F2 /* acl_cpp.xcodeproj */;
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ProductGroup = 70691F8F244D2A8E00A727F2 /* Products */;
|
||||||
|
ProjectRef = 70691F8E244D2A8E00A727F2 /* fiber.xcodeproj */;
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ProductGroup = 70691F89244D2A8E00A727F2 /* Products */;
|
||||||
|
ProjectRef = 70691F88244D2A8E00A727F2 /* fiber_cpp.xcodeproj */;
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ProductGroup = 70691F7D244D2A4B00A727F2 /* Products */;
|
||||||
|
ProjectRef = 70691F7C244D2A4B00A727F2 /* protocol.xcodeproj */;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
projectRoot = "";
|
||||||
|
targets = (
|
||||||
|
70691F46244C900900A727F2 /* fiber_http */,
|
||||||
|
70691F5E244C900B00A727F2 /* fiber_httpUITests */,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/* End PBXProject section */
|
||||||
|
|
||||||
|
/* Begin PBXReferenceProxy section */
|
||||||
|
70691F7B244D2A3E00A727F2 /* libacl.a */ = {
|
||||||
|
isa = PBXReferenceProxy;
|
||||||
|
fileType = archive.ar;
|
||||||
|
path = libacl.a;
|
||||||
|
remoteRef = 70691F7A244D2A3E00A727F2 /* PBXContainerItemProxy */;
|
||||||
|
sourceTree = BUILT_PRODUCTS_DIR;
|
||||||
|
};
|
||||||
|
70691F81244D2A4B00A727F2 /* libprotocol.a */ = {
|
||||||
|
isa = PBXReferenceProxy;
|
||||||
|
fileType = archive.ar;
|
||||||
|
path = libprotocol.a;
|
||||||
|
remoteRef = 70691F80244D2A4B00A727F2 /* PBXContainerItemProxy */;
|
||||||
|
sourceTree = BUILT_PRODUCTS_DIR;
|
||||||
|
};
|
||||||
|
70691F87244D2A5900A727F2 /* libacl_cpp.a */ = {
|
||||||
|
isa = PBXReferenceProxy;
|
||||||
|
fileType = archive.ar;
|
||||||
|
path = libacl_cpp.a;
|
||||||
|
remoteRef = 70691F86244D2A5900A727F2 /* PBXContainerItemProxy */;
|
||||||
|
sourceTree = BUILT_PRODUCTS_DIR;
|
||||||
|
};
|
||||||
|
70691F8D244D2A8E00A727F2 /* libfiber_cpp.a */ = {
|
||||||
|
isa = PBXReferenceProxy;
|
||||||
|
fileType = archive.ar;
|
||||||
|
path = libfiber_cpp.a;
|
||||||
|
remoteRef = 70691F8C244D2A8E00A727F2 /* PBXContainerItemProxy */;
|
||||||
|
sourceTree = BUILT_PRODUCTS_DIR;
|
||||||
|
};
|
||||||
|
70691F93244D2A8E00A727F2 /* libfiber.a */ = {
|
||||||
|
isa = PBXReferenceProxy;
|
||||||
|
fileType = archive.ar;
|
||||||
|
path = libfiber.a;
|
||||||
|
remoteRef = 70691F92244D2A8E00A727F2 /* PBXContainerItemProxy */;
|
||||||
|
sourceTree = BUILT_PRODUCTS_DIR;
|
||||||
|
};
|
||||||
|
/* End PBXReferenceProxy section */
|
||||||
|
|
||||||
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
|
70691F45244C900900A727F2 /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
70691F57244C900B00A727F2 /* LaunchScreen.storyboard in Resources */,
|
||||||
|
70691F54244C900B00A727F2 /* Assets.xcassets in Resources */,
|
||||||
|
70691F52244C900900A727F2 /* Main.storyboard in Resources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
70691F5D244C900B00A727F2 /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
70691F43244C900900A727F2 /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
70691F4F244C900900A727F2 /* ViewController.m in Sources */,
|
||||||
|
70691F5A244C900B00A727F2 /* main.m in Sources */,
|
||||||
|
70691F4C244C900900A727F2 /* AppDelegate.m in Sources */,
|
||||||
|
70691FB4244D4D4900A727F2 /* HttpTest.cpp in Sources */,
|
||||||
|
70691FB5244D4D4900A727F2 /* HttpRequest.mm in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
70691F5B244C900B00A727F2 /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
70691F64244C900B00A727F2 /* fiber_httpUITests.m in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXTargetDependency section */
|
||||||
|
70691F61244C900B00A727F2 /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
target = 70691F46244C900900A727F2 /* fiber_http */;
|
||||||
|
targetProxy = 70691F60244C900B00A727F2 /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
|
/* End PBXTargetDependency section */
|
||||||
|
|
||||||
|
/* Begin PBXVariantGroup section */
|
||||||
|
70691F50244C900900A727F2 /* Main.storyboard */ = {
|
||||||
|
isa = PBXVariantGroup;
|
||||||
|
children = (
|
||||||
|
70691F51244C900900A727F2 /* Base */,
|
||||||
|
);
|
||||||
|
name = Main.storyboard;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70691F55244C900B00A727F2 /* LaunchScreen.storyboard */ = {
|
||||||
|
isa = PBXVariantGroup;
|
||||||
|
children = (
|
||||||
|
70691F56244C900B00A727F2 /* Base */,
|
||||||
|
);
|
||||||
|
name = LaunchScreen.storyboard;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXVariantGroup section */
|
||||||
|
|
||||||
|
/* Begin XCBuildConfiguration section */
|
||||||
|
70691F66244C900B00A727F2 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
ENABLE_TESTABILITY = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"DEBUG=1",
|
||||||
|
"$(inherited)",
|
||||||
|
);
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
HEADER_SEARCH_PATHS = (
|
||||||
|
../../lib_acl_cpp/include,
|
||||||
|
../../lib_fiber/cpp/include,
|
||||||
|
);
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
|
||||||
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||||
|
MTL_FAST_MATH = YES;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"-lz",
|
||||||
|
"-liconv",
|
||||||
|
);
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
70691F67244C900B00A727F2 /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
HEADER_SEARCH_PATHS = (
|
||||||
|
../../lib_acl_cpp/include,
|
||||||
|
../../lib_fiber/cpp/include,
|
||||||
|
);
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
|
||||||
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
|
MTL_FAST_MATH = YES;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"-lz",
|
||||||
|
"-liconv",
|
||||||
|
);
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
VALIDATE_PRODUCT = YES;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
70691F69244C900B00A727F2 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||||
|
INFOPLIST_FILE = fiber_http/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
OTHER_LDFLAGS = "$(inherited)";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = "acl.fiber-http";
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
70691F6A244C900B00A727F2 /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||||
|
INFOPLIST_FILE = fiber_http/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
OTHER_LDFLAGS = "$(inherited)";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = "acl.fiber-http";
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
70691F6C244C900B00A727F2 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
INFOPLIST_FILE = fiber_httpUITests/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
"@loader_path/Frameworks",
|
||||||
|
);
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = "acl.fiber-httpUITests";
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
TEST_TARGET_NAME = fiber_http;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
70691F6D244C900B00A727F2 /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
INFOPLIST_FILE = fiber_httpUITests/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
"@loader_path/Frameworks",
|
||||||
|
);
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = "acl.fiber-httpUITests";
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
TEST_TARGET_NAME = fiber_http;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
|
/* Begin XCConfigurationList section */
|
||||||
|
70691F42244C900900A727F2 /* Build configuration list for PBXProject "fiber_http" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
70691F66244C900B00A727F2 /* Debug */,
|
||||||
|
70691F67244C900B00A727F2 /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
70691F68244C900B00A727F2 /* Build configuration list for PBXNativeTarget "fiber_http" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
70691F69244C900B00A727F2 /* Debug */,
|
||||||
|
70691F6A244C900B00A727F2 /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
70691F6B244C900B00A727F2 /* Build configuration list for PBXNativeTarget "fiber_httpUITests" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
70691F6C244C900B00A727F2 /* Debug */,
|
||||||
|
70691F6D244C900B00A727F2 /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
/* End XCConfigurationList section */
|
||||||
|
};
|
||||||
|
rootObject = 70691F3F244C900900A727F2 /* Project object */;
|
||||||
|
}
|
17
xcode/fiber_http/fiber_http/AppDelegate.h
Normal file
17
xcode/fiber_http/fiber_http/AppDelegate.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//
|
||||||
|
// AppDelegate.h
|
||||||
|
// fiber_http
|
||||||
|
//
|
||||||
|
// Created by shuxin zheng on 2020/4/19.
|
||||||
|
// Copyright © 2020 acl. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
||||||
|
|
||||||
|
@property (strong, nonatomic) UIWindow *window;
|
||||||
|
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
51
xcode/fiber_http/fiber_http/AppDelegate.m
Normal file
51
xcode/fiber_http/fiber_http/AppDelegate.m
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
//
|
||||||
|
// AppDelegate.m
|
||||||
|
// fiber_http
|
||||||
|
//
|
||||||
|
// Created by shuxin zheng on 2020/4/19.
|
||||||
|
// Copyright © 2020 acl. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "AppDelegate.h"
|
||||||
|
|
||||||
|
@interface AppDelegate ()
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation AppDelegate
|
||||||
|
|
||||||
|
|
||||||
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||||
|
// Override point for customization after application launch.
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (void)applicationWillResignActive:(UIApplication *)application {
|
||||||
|
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||||
|
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (void)applicationDidEnterBackground:(UIApplication *)application {
|
||||||
|
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||||
|
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
||||||
|
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (void)applicationDidBecomeActive:(UIApplication *)application {
|
||||||
|
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (void)applicationWillTerminate:(UIApplication *)application {
|
||||||
|
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@end
|
@ -0,0 +1,98 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "20x20",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "20x20",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "29x29",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "29x29",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "40x40",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "40x40",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "60x60",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"size" : "60x60",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "20x20",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "20x20",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "29x29",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "29x29",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "40x40",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "40x40",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "76x76",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "76x76",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"size" : "83.5x83.5",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"scale" : "1x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||||
|
<device id="retina6_1" orientation="portrait">
|
||||||
|
<adaptation id="fullscreen"/>
|
||||||
|
</device>
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
|
||||||
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--View Controller-->
|
||||||
|
<scene sceneID="EHf-IW-A2E">
|
||||||
|
<objects>
|
||||||
|
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||||
|
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Cmf-UT-B3Z">
|
||||||
|
<rect key="frame" x="40" y="149" width="173" height="30"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<nil key="textColor"/>
|
||||||
|
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||||
|
<textInputTraits key="textInputTraits"/>
|
||||||
|
</textField>
|
||||||
|
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="y86-Oq-X7W">
|
||||||
|
<rect key="frame" x="266" y="149" width="78" height="30"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<state key="normal" title="请求"/>
|
||||||
|
</button>
|
||||||
|
</subviews>
|
||||||
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="52.173913043478265" y="375"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
56
xcode/fiber_http/fiber_http/Base.lproj/Main.storyboard
Normal file
56
xcode/fiber_http/fiber_http/Base.lproj/Main.storyboard
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
||||||
|
<device id="retina6_1" orientation="portrait">
|
||||||
|
<adaptation id="fullscreen"/>
|
||||||
|
</device>
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
|
||||||
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--View Controller-->
|
||||||
|
<scene sceneID="tne-QT-ifu">
|
||||||
|
<objects>
|
||||||
|
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
|
||||||
|
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="w4y-XG-E2e">
|
||||||
|
<rect key="frame" x="302" y="159" width="51" height="35"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<state key="normal" title="请求"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="request:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Hdl-9O-RRe"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MUd-qc-eKl">
|
||||||
|
<rect key="frame" x="28" y="164" width="42" height="21"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||||
|
<nil key="textColor"/>
|
||||||
|
<nil key="highlightedColor"/>
|
||||||
|
</label>
|
||||||
|
<textField opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="http://www.baidu.com/" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="UAr-rh-Um6" userLabel="tf Url">
|
||||||
|
<rect key="frame" x="100" y="159" width="186" height="30"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<nil key="textColor"/>
|
||||||
|
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||||
|
<textInputTraits key="textInputTraits"/>
|
||||||
|
</textField>
|
||||||
|
</subviews>
|
||||||
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||||
|
</view>
|
||||||
|
<connections>
|
||||||
|
<outlet property="tfUrl" destination="UAr-rh-Um6" id="kiw-ke-qdb"/>
|
||||||
|
</connections>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="137.68115942028987" y="115.84821428571428"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
11
xcode/fiber_http/fiber_http/HttpRequest.h
Normal file
11
xcode/fiber_http/fiber_http/HttpRequest.h
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#ifndef HttpRequest_h
|
||||||
|
#define HttpRequest_h
|
||||||
|
|
||||||
|
@interface http_request : NSObject
|
||||||
|
|
||||||
|
- (NSString*) test: (NSString*) url;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
17
xcode/fiber_http/fiber_http/HttpRequest.mm
Normal file
17
xcode/fiber_http/fiber_http/HttpRequest.mm
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#include <string>
|
||||||
|
#include "HttpTest.hpp"
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
#import "HttpRequest.h"
|
||||||
|
|
||||||
|
@implementation http_request
|
||||||
|
|
||||||
|
- (NSString*) test: (NSString*) url
|
||||||
|
{
|
||||||
|
// std::string result = http_test([url UTF8String]);
|
||||||
|
http_test([url UTF8String]);
|
||||||
|
std::string result("ok");
|
||||||
|
NSString * aString = [NSString stringWithUTF8String:result.c_str()];
|
||||||
|
return aString;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
61
xcode/fiber_http/fiber_http/HttpTest.cpp
Normal file
61
xcode/fiber_http/fiber_http/HttpTest.cpp
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
#include <string>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include "acl_cpp/lib_acl.hpp"
|
||||||
|
#include "fiber/lib_fiber.hpp"
|
||||||
|
#include "HttpTest.hpp"
|
||||||
|
|
||||||
|
class fiber_http : public acl::fiber
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
fiber_http(const char* addr, const char* url) : addr_(addr), url_(url) {}
|
||||||
|
|
||||||
|
// @override
|
||||||
|
void run(void) {
|
||||||
|
acl::http_request request(addr_);
|
||||||
|
acl::http_header& hdr = request.request_header();
|
||||||
|
hdr.set_url(url_).set_host(addr_);
|
||||||
|
if (!request.request(NULL, 0)) {
|
||||||
|
delete this;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
acl::string body;
|
||||||
|
if (request.get_body(body)) {
|
||||||
|
printf("%s\r\n", body.c_str());
|
||||||
|
} else {
|
||||||
|
printf("get_body error=%s\r\n", acl::last_serror());
|
||||||
|
}
|
||||||
|
delete this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
acl::string addr_;
|
||||||
|
acl::string url_;
|
||||||
|
~fiber_http(void) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
|
static void fiber_thread(acl::string* addr, acl::string* url)
|
||||||
|
{
|
||||||
|
acl::fiber* fb = new fiber_http(addr->c_str(), url->c_str());
|
||||||
|
delete addr;
|
||||||
|
delete url;
|
||||||
|
fb->start(128000);
|
||||||
|
acl::fiber::schedule();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool http_test(const char* url)
|
||||||
|
{
|
||||||
|
static bool __inited = false;
|
||||||
|
if (!__inited) {
|
||||||
|
acl::acl_cpp_init();
|
||||||
|
__inited = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
acl::string* addr_buf = new acl::string("www.baidu.com:80");
|
||||||
|
acl::string* url_buf = new acl::string("/");
|
||||||
|
std::thread thread(fiber_thread, addr_buf, url_buf);
|
||||||
|
thread.detach();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
9
xcode/fiber_http/fiber_http/HttpTest.hpp
Normal file
9
xcode/fiber_http/fiber_http/HttpTest.hpp
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#ifndef HttpTest_hpp
|
||||||
|
#define HttpTest_hpp
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
extern bool http_test(const char* url);
|
||||||
|
|
||||||
|
#endif
|
45
xcode/fiber_http/fiber_http/Info.plist
Normal file
45
xcode/fiber_http/fiber_http/Info.plist
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<?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>$(DEVELOPMENT_LANGUAGE)</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>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1</string>
|
||||||
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
<true/>
|
||||||
|
<key>UILaunchStoryboardName</key>
|
||||||
|
<string>LaunchScreen</string>
|
||||||
|
<key>UIMainStoryboardFile</key>
|
||||||
|
<string>Main</string>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>armv7</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
16
xcode/fiber_http/fiber_http/ViewController.h
Normal file
16
xcode/fiber_http/fiber_http/ViewController.h
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
//
|
||||||
|
// ViewController.h
|
||||||
|
// fiber_http
|
||||||
|
//
|
||||||
|
// Created by shuxin zheng on 2020/4/19.
|
||||||
|
// Copyright © 2020 acl. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
@interface ViewController : UIViewController
|
||||||
|
|
||||||
|
@property (nonatomic, retain) IBOutlet UITextField *tfUrl;
|
||||||
|
- (IBAction) request:(id)obj;
|
||||||
|
@end
|
||||||
|
|
32
xcode/fiber_http/fiber_http/ViewController.m
Normal file
32
xcode/fiber_http/fiber_http/ViewController.m
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
//
|
||||||
|
// ViewController.m
|
||||||
|
// fiber_http
|
||||||
|
//
|
||||||
|
// Created by shuxin zheng on 2020/4/19.
|
||||||
|
// Copyright © 2020 acl. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "ViewController.h"
|
||||||
|
#import "HttpRequest.h"
|
||||||
|
|
||||||
|
@interface ViewController ()
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation ViewController
|
||||||
|
|
||||||
|
- (void)viewDidLoad {
|
||||||
|
[super viewDidLoad];
|
||||||
|
// Do any additional setup after loading the view.
|
||||||
|
}
|
||||||
|
|
||||||
|
- (IBAction)request:(id)obj {
|
||||||
|
NSString *url = [_tfUrl text];
|
||||||
|
http_request* req = [[http_request alloc] init];
|
||||||
|
NSString* res = [req test: url];
|
||||||
|
return;
|
||||||
|
NSString *message = [NSString stringWithFormat:@"url:%@\r\n\r\n%@", url, res];
|
||||||
|
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Information" message:message delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
|
||||||
|
[alert show];
|
||||||
|
}
|
||||||
|
@end
|
17
xcode/fiber_http/fiber_http/main.m
Normal file
17
xcode/fiber_http/fiber_http/main.m
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
//
|
||||||
|
// main.m
|
||||||
|
// fiber_http
|
||||||
|
//
|
||||||
|
// Created by shuxin zheng on 2020/4/19.
|
||||||
|
// Copyright © 2020 acl. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
#import "AppDelegate.h"
|
||||||
|
|
||||||
|
int main(int argc, char * argv[]) {
|
||||||
|
@autoreleasepool {
|
||||||
|
NSLog(@"hello world!");
|
||||||
|
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
||||||
|
}
|
||||||
|
}
|
22
xcode/fiber_http/fiber_httpUITests/Info.plist
Normal file
22
xcode/fiber_http/fiber_httpUITests/Info.plist
Normal file
@ -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>$(DEVELOPMENT_LANGUAGE)</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>
|
38
xcode/fiber_http/fiber_httpUITests/fiber_httpUITests.m
Normal file
38
xcode/fiber_http/fiber_httpUITests/fiber_httpUITests.m
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
//
|
||||||
|
// fiber_httpUITests.m
|
||||||
|
// fiber_httpUITests
|
||||||
|
//
|
||||||
|
// Created by shuxin zheng on 2020/4/19.
|
||||||
|
// Copyright © 2020 acl. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <XCTest/XCTest.h>
|
||||||
|
|
||||||
|
@interface fiber_httpUITests : XCTestCase
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation fiber_httpUITests
|
||||||
|
|
||||||
|
- (void)setUp {
|
||||||
|
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||||
|
|
||||||
|
// In UI tests it is usually best to stop immediately when a failure occurs.
|
||||||
|
self.continueAfterFailure = NO;
|
||||||
|
|
||||||
|
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
|
||||||
|
[[[XCUIApplication alloc] init] launch];
|
||||||
|
|
||||||
|
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)tearDown {
|
||||||
|
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)testExample {
|
||||||
|
// Use recording to get started writing UI tests.
|
||||||
|
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
7
xcode/samples.xcworkspace/contents.xcworkspacedata
generated
Normal file
7
xcode/samples.xcworkspace/contents.xcworkspacedata
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Workspace
|
||||||
|
version = "1.0">
|
||||||
|
<FileRef
|
||||||
|
location = "group:fiber_http/fiber_http.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
|
</Workspace>
|
Loading…
Reference in New Issue
Block a user