Commit c0eb4eff authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

Merge branch 'lmj_branch' into lmj_branch_unuse

# Conflicts:
#	superCleaner.xcodeproj/project.pbxproj
#	superCleaner/Home/Controller/ICHomeViewController.m
parents 14c7e0c6 a7323cee
......@@ -28,6 +28,7 @@
0967598607D521318F69D7D39D517B20 /* ViewController+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = AE65B863E8766476AC03F27E8FB4954D /* ViewController+MASAdditions.m */; };
098630ECDB64ED7B89F5F687C82B4AC3 /* NSArray+MASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 977E37B69C48656720EA2C8C178A871E /* NSArray+MASAdditions.m */; };
0AF1AD35706D90B1A91F291B899EF8C0 /* NSLayoutConstraint+MASDebugAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D163B88E42C14143D3E1072CF2AFB4 /* NSLayoutConstraint+MASDebugAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };
1418057D21AE7038A8B2E8CBBC9A4235 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12EDD0BF564072CA2EEEDAB0B64F55FD /* Foundation.framework */; };
15A29D5C6FEA9379BBC61F17614DDB15 /* SwiftyStoreKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23B7E0B2C3D36435E4EEC3F45044CBA9 /* SwiftyStoreKit.swift */; };
163B07BE98EAA270AF0A7AA82F84208E /* AFNetworkReachabilityManager.h in Headers */ = {isa = PBXBuildFile; fileRef = ACA4462392C70EFEC4A92DE2DC039AF4 /* AFNetworkReachabilityManager.h */; settings = {ATTRIBUTES = (Public, ); }; };
17695C42661E6DA8419E9C68F1BCD333 /* InAppReceipt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4302A800BB1A3A40E927398E566783BB /* InAppReceipt.swift */; };
......@@ -46,6 +47,7 @@
38B57953D8705FA2092852071CD3A462 /* UIButton+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F67FE56625EA554EC2B95DA19B66B6A /* UIButton+AFNetworking.m */; };
3B95F6D7813F2794DD6CF0BEAE2853DC /* PaymentQueueController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0F6C1F3C6DEF3C366D8EF1D21875E0E9 /* PaymentQueueController.swift */; };
3CA0C9185ED4469D427AA53B26E1B18F /* UIProgressView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = F078243FBD0A0E5D2599C473E2564031 /* UIProgressView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };
3D6D9CFB110C5B99A5D4185B51D93CD6 /* Pods-superCleaner-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 00EA3862F5184B989A8ED6AE415A52DE /* Pods-superCleaner-dummy.m */; };
3DA5F1D8E51CDD102A871C2F37770C7B /* MASViewAttribute.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8D26311A720ED32E4E853CC680496C /* MASViewAttribute.h */; settings = {ATTRIBUTES = (Public, ); }; };
3EB561D79F76C06AA538872D6302D35D /* AFNetworking-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 945C26F78498081560B61A9554E77904 /* AFNetworking-dummy.m */; };
40426F061CD9B0B435C690CAFEA2BD00 /* UIButton+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = FEEA6AB83AB8929073289CEFD5F2DF55 /* UIButton+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };
......@@ -53,13 +55,12 @@
4B0981F9AC628CF5100C50FF4A163A4A /* View+MASAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 68773803FCF905D27AA7F34257280A44 /* View+MASAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };
4BEC56EB2A2FBCEF4A32EE6EE1F48E22 /* SKProduct+LocalizedPrice.swift in Sources */ = {isa = PBXBuildFile; fileRef = AED20C85CFC6125092C73D70641ABF68 /* SKProduct+LocalizedPrice.swift */; };
4FCA4E8703DBF3D3FB7D5BA06229159D /* UIKit+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 1172B3ADFCC38F479E3B4969695D1338 /* UIKit+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };
595F9F55A1334849BA44229ACD247FC2 /* Pods-superCleaner-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 00EA3862F5184B989A8ED6AE415A52DE /* Pods-superCleaner-dummy.m */; };
5583C5A0AF5D96500BB8AD14620F8D7D /* Pods-superCleaner-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = CBB8F0626276CF93DF3F8CDDD8510110 /* Pods-superCleaner-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
64F46B6A8DBA885AF570A54A082D1BAA /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D5F2D6CB25AD8446D8991B9E8FFCE7FC /* QuartzCore.framework */; };
6A6AD3A5BBDBFD0B4AF936BD518EC0B1 /* Masonry-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4181545DC6278D479FE31028A6DCE065 /* Masonry-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
6EE482EF823C5090378A600998A120F9 /* AFAutoPurgingImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 204A7D412A3C88E3E3F97A02890CED85 /* AFAutoPurgingImageCache.h */; settings = {ATTRIBUTES = (Public, ); }; };
70EE1C774C978E1876AE6CA1224E897D /* MBProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = B4F8B85A37F71F39B9D9D858E32002B8 /* MBProgressHUD.m */; };
722EC0191A173ECB2121618467D32DF4 /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 31BDB19FB8F77EC81E60F25A2E832F3A /* AFNetworkActivityIndicatorManager.h */; settings = {ATTRIBUTES = (Public, ); }; };
74EE47896B0FE08CFFB289114A4503C3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12EDD0BF564072CA2EEEDAB0B64F55FD /* Foundation.framework */; };
76536A816A576F08FADD3366A2E40094 /* AFURLSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DDC8639F4DAD5CF6002AD2B6FAAD337 /* AFURLSessionManager.m */; };
78B2727EE5D693F58D019DB098005101 /* MASConstraintMaker.m in Sources */ = {isa = PBXBuildFile; fileRef = BACB7E0F04F4E55E6D00765E8D79D4F3 /* MASConstraintMaker.m */; };
7BFF65958F014760B6AC4742824892EB /* MASCompositeConstraint.m in Sources */ = {isa = PBXBuildFile; fileRef = A7E9D244E58DF328F8518E752CB541AF /* MASCompositeConstraint.m */; };
......@@ -94,7 +95,6 @@
C78E0AA446C0068A7BEFBCFE0756F45C /* RestorePurchasesController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E09E87885F3CA30F8DF687C52CDEC60 /* RestorePurchasesController.swift */; };
C9F701A2E6208D9E840E7A91287F21B9 /* AFHTTPSessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 7A91E33909044F64078BB7836E3AF160 /* AFHTTPSessionManager.h */; settings = {ATTRIBUTES = (Public, ); }; };
CE93C54413259B4AC3683B6EB874D466 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 703F148AD0D0AEBFE3B1673E331B9DFD /* UIKit.framework */; };
CF7A5F2DC8AA73E70DA159219B553AE8 /* Pods-superCleaner-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = CBB8F0626276CF93DF3F8CDDD8510110 /* Pods-superCleaner-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
D14B54215BC9EE0D8E75A9B9F6657F91 /* CompleteTransactionsController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C725AF1F3CC7FF6433F7DE0E8E77B26 /* CompleteTransactionsController.swift */; };
D66716504D475B6377F7DD5C7C2BBCDE /* AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = E1215DBC75C107E14C721FDD154C017C /* AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; };
DABF20F73D27572CD97071A6D4DB9004 /* MBProgressHUD-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6CE0774FAAB973D9A9CB36E8E63A9E3C /* MBProgressHUD-dummy.m */; };
......@@ -114,41 +114,41 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
2E2B9251799559754B92239C99986C85 /* PBXContainerItemProxy */ = {
25E4097209A7DACB29FA8F0AC156E067 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 6F6B630FA5213AB083E7CEF1F986FE44;
remoteInfo = UMCCommon;
};
61310B11E85643FCF650011126260C82 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 55AF53E6C77A10ED4985E04D74A8878E;
remoteInfo = Masonry;
};
6373537AE0CCAB13CC71EE12A0C8374A /* PBXContainerItemProxy */ = {
AC9B20BEC98FDEDFD5A3BE0EA687911F /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 82B0A41D3031FF27D78E17B0A9A46FB0;
remoteInfo = MBProgressHUD;
};
754679DC850F0B58189F8B6C6CD60575 /* PBXContainerItemProxy */ = {
C22B6FE6DC363766A464764040200FCA /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */;
proxyType = 1;
remoteGlobalIDString = FCD4F1901DD86FEB184BFDD6673F4A7B;
remoteInfo = SwiftyStoreKit;
remoteGlobalIDString = 55AF53E6C77A10ED4985E04D74A8878E;
remoteInfo = Masonry;
};
DC81D8526AD63980B6AF743845278486 /* PBXContainerItemProxy */ = {
D3B22F2EA72B3EAB399273AF66BBA42C /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 0130B3724283586C0E9D2A112D4F2AA1;
remoteInfo = AFNetworking;
};
EF776A460C980BC7F559A186C661BDDF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */;
proxyType = 1;
remoteGlobalIDString = FCD4F1901DD86FEB184BFDD6673F4A7B;
remoteInfo = SwiftyStoreKit;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
......@@ -306,19 +306,19 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
8F9BCCCF510F65077210B8D9944565EC /* Frameworks */ = {
777C7F220734A6931C66C1CAE60E2A4F /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
27256E913790A1EC111854E3D10E67F5 /* Foundation.framework in Frameworks */,
1418057D21AE7038A8B2E8CBBC9A4235 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A2971DC8703DD457E363DA411DFE9731 /* Frameworks */ = {
8F9BCCCF510F65077210B8D9944565EC /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
74EE47896B0FE08CFFB289114A4503C3 /* Foundation.framework in Frameworks */,
27256E913790A1EC111854E3D10E67F5 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -645,14 +645,6 @@
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
2DBE6ACCD1A4C6CDE553D110E17709C5 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
CF7A5F2DC8AA73E70DA159219B553AE8 /* Pods-superCleaner-umbrella.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
7858D37D2CE761259E3D0471D808DBB5 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
......@@ -693,6 +685,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
B27CAB502645F7C31C9B40CD99010E26 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
5583C5A0AF5D96500BB8AD14620F8D7D /* Pods-superCleaner-umbrella.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
B9ECBAE3144164158FDC62D90C3CEFDB /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
......@@ -760,21 +760,21 @@
};
596A560B22E98CCD9E2F4E063F10C485 /* Pods-superCleaner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0E432A67902623F89A6D89CC1F0C740A /* Build configuration list for PBXNativeTarget "Pods-superCleaner" */;
buildConfigurationList = 31C10D91AE7FCBB6A169F1C1EB23D28A /* Build configuration list for PBXNativeTarget "Pods-superCleaner" */;
buildPhases = (
2DBE6ACCD1A4C6CDE553D110E17709C5 /* Headers */,
23FE093DE013493443A5C15C4D026137 /* Sources */,
A2971DC8703DD457E363DA411DFE9731 /* Frameworks */,
F7133C531B5A0380DD33F20D6410827B /* Resources */,
B27CAB502645F7C31C9B40CD99010E26 /* Headers */,
4F7D530FBBEDEA7FAA1224810318BC8A /* Sources */,
777C7F220734A6931C66C1CAE60E2A4F /* Frameworks */,
F321120D2358C910C0DEDDF4FB389FFF /* Resources */,
);
buildRules = (
);
dependencies = (
1FFCC016051FABCA7950549066B661D6 /* PBXTargetDependency */,
018B54AFE7FF7EF5A4A32D12705EE7EF /* PBXTargetDependency */,
A2B6CB7F3252CD2DFF39D95FA45089B0 /* PBXTargetDependency */,
C7E62C808BB49871323E5C94770E8E06 /* PBXTargetDependency */,
BB74F83E26AB35EDB92BDD9432A6714F /* PBXTargetDependency */,
0E1638740F87D3AE37CB267CDDFB0DC1 /* PBXTargetDependency */,
B78A61122B72DCC946E90FA58424ABD4 /* PBXTargetDependency */,
12C025C294EF703DD9D25D3BC3889310 /* PBXTargetDependency */,
10E3E2E4BE3AA2A4BEFB9F399FFD1F9C /* PBXTargetDependency */,
148507A1AAEDF6B79F5EAC4C53511D56 /* PBXTargetDependency */,
);
name = "Pods-superCleaner";
productName = "Pods-superCleaner";
......@@ -878,7 +878,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
F7133C531B5A0380DD33F20D6410827B /* Resources */ = {
F321120D2358C910C0DEDDF4FB389FFF /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
......@@ -906,11 +906,11 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
23FE093DE013493443A5C15C4D026137 /* Sources */ = {
4F7D530FBBEDEA7FAA1224810318BC8A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
595F9F55A1334849BA44229ACD247FC2 /* Pods-superCleaner-dummy.m in Sources */,
3D6D9CFB110C5B99A5D4185B51D93CD6 /* Pods-superCleaner-dummy.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -971,57 +971,40 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
018B54AFE7FF7EF5A4A32D12705EE7EF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = MBProgressHUD;
target = 82B0A41D3031FF27D78E17B0A9A46FB0 /* MBProgressHUD */;
targetProxy = 6373537AE0CCAB13CC71EE12A0C8374A /* PBXContainerItemProxy */;
};
1FFCC016051FABCA7950549066B661D6 /* PBXTargetDependency */ = {
0E1638740F87D3AE37CB267CDDFB0DC1 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = AFNetworking;
target = 0130B3724283586C0E9D2A112D4F2AA1 /* AFNetworking */;
targetProxy = DC81D8526AD63980B6AF743845278486 /* PBXContainerItemProxy */;
targetProxy = D3B22F2EA72B3EAB399273AF66BBA42C /* PBXContainerItemProxy */;
};
10E3E2E4BE3AA2A4BEFB9F399FFD1F9C /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = SwiftyStoreKit;
target = FCD4F1901DD86FEB184BFDD6673F4A7B /* SwiftyStoreKit */;
targetProxy = EF776A460C980BC7F559A186C661BDDF /* PBXContainerItemProxy */;
};
A2B6CB7F3252CD2DFF39D95FA45089B0 /* PBXTargetDependency */ = {
12C025C294EF703DD9D25D3BC3889310 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = Masonry;
target = 55AF53E6C77A10ED4985E04D74A8878E /* Masonry */;
targetProxy = 61310B11E85643FCF650011126260C82 /* PBXContainerItemProxy */;
targetProxy = C22B6FE6DC363766A464764040200FCA /* PBXContainerItemProxy */;
};
BB74F83E26AB35EDB92BDD9432A6714F /* PBXTargetDependency */ = {
148507A1AAEDF6B79F5EAC4C53511D56 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = UMCCommon;
target = 6F6B630FA5213AB083E7CEF1F986FE44 /* UMCCommon */;
targetProxy = 2E2B9251799559754B92239C99986C85 /* PBXContainerItemProxy */;
targetProxy = 25E4097209A7DACB29FA8F0AC156E067 /* PBXContainerItemProxy */;
};
C7E62C808BB49871323E5C94770E8E06 /* PBXTargetDependency */ = {
B78A61122B72DCC946E90FA58424ABD4 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = SwiftyStoreKit;
target = FCD4F1901DD86FEB184BFDD6673F4A7B /* SwiftyStoreKit */;
targetProxy = 754679DC850F0B58189F8B6C6CD60575 /* PBXContainerItemProxy */;
name = MBProgressHUD;
target = 82B0A41D3031FF27D78E17B0A9A46FB0 /* MBProgressHUD */;
targetProxy = AC9B20BEC98FDEDFD5A3BE0EA687911F /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
48530AD7A526D8262A15B7A3D6F9D07A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 60342FE58787C5A35B89AD2E3CB4D196 /* UMCCommon.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
6DDB68313EFF514EFC9C72E0E6C50BD4 /* Release */ = {
2A2D02D0BB6ABBE1ACA2C0BD38B1F591 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 2712880A7388C16608C9E673593396FD /* Pods-superCleaner.release.xcconfig */;
buildSettings = {
......@@ -1059,42 +1042,22 @@
};
name = Release;
};
72863A41A2ACED3786BB891D482FF30D /* Debug */ = {
48530AD7A526D8262A15B7A3D6F9D07A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 101E45D50D7A721840C2FB1C28F3F25D /* Pods-superCleaner.debug.xcconfig */;
baseConfigurationReference = 60342FE58787C5A35B89AD2E3CB4D196 /* UMCCommon.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Target Support Files/Pods-superCleaner/Pods-superCleaner-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = "Target Support Files/Pods-superCleaner/Pods-superCleaner.modulemap";
OTHER_LDFLAGS = "";
OTHER_LIBTOOLFLAGS = "";
PODS_ROOT = "$(SRCROOT)";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
VALIDATE_PRODUCT = YES;
};
name = Debug;
name = Release;
};
8B237D5CF5EE5F3A2D5F2DA454FFA45B /* Release */ = {
isa = XCBuildConfiguration;
......@@ -1450,6 +1413,43 @@
};
name = Release;
};
CD0CDA9D4348F22336B92CEEFF140CA8 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 101E45D50D7A721840C2FB1C28F3F25D /* Pods-superCleaner.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "Target Support Files/Pods-superCleaner/Pods-superCleaner-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MODULEMAP_FILE = "Target Support Files/Pods-superCleaner/Pods-superCleaner.modulemap";
OTHER_LDFLAGS = "";
OTHER_LIBTOOLFLAGS = "";
PODS_ROOT = "$(SRCROOT)";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
F77873C50060007140299C23D87897DC /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 11F91FEBE426F0CCC9D1413E2E432052 /* SwiftyStoreKit.debug.xcconfig */;
......@@ -1523,11 +1523,11 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
0E432A67902623F89A6D89CC1F0C740A /* Build configuration list for PBXNativeTarget "Pods-superCleaner" */ = {
31C10D91AE7FCBB6A169F1C1EB23D28A /* Build configuration list for PBXNativeTarget "Pods-superCleaner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
72863A41A2ACED3786BB891D482FF30D /* Debug */,
6DDB68313EFF514EFC9C72E0E6C50BD4 /* Release */,
CD0CDA9D4348F22336B92CEEFF140CA8 /* Debug */,
2A2D02D0BB6ABBE1ACA2C0BD38B1F591 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
......
${PODS_ROOT}/Target Support Files/Pods-superCleaner/Pods-superCleaner-resources.sh
${PODS_ROOT}/Bytedance-UnionAD/Bytedance-UnionAd/Frameworks/BUAdSDK.bundle
\ No newline at end of file
${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/BUAdSDK.bundle
\ No newline at end of file
${PODS_ROOT}/Target Support Files/Pods-superCleaner/Pods-superCleaner-resources.sh
${PODS_ROOT}/Bytedance-UnionAD/Bytedance-UnionAd/Frameworks/BUAdSDK.bundle
\ No newline at end of file
${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/BUAdSDK.bundle
\ No newline at end of file
#!/bin/sh
set -e
set -u
set -o pipefail
function on_error {
echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR
if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then
# If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy
# resources to, so exit 0 (signalling the script phase was successful).
exit 0
fi
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
# This protects against multiple targets copying the same framework dependency at the same time. The solution
# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
case "${TARGETED_DEVICE_FAMILY:-}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
TARGET_DEVICE_ARGS="--target-device iphone"
;;
2)
TARGET_DEVICE_ARGS="--target-device ipad"
;;
3)
TARGET_DEVICE_ARGS="--target-device tv"
;;
4)
TARGET_DEVICE_ARGS="--target-device watch"
;;
*)
TARGET_DEVICE_ARGS="--target-device mac"
;;
esac
install_resource()
{
if [[ "$1" = /* ]] ; then
RESOURCE_PATH="$1"
else
RESOURCE_PATH="${PODS_ROOT}/$1"
fi
if [[ ! -e "$RESOURCE_PATH" ]] ; then
cat << EOM
error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
EOM
exit 1
fi
case $RESOURCE_PATH in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
;;
*.xib)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
;;
*.framework)
echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
;;
*.xcdatamodel)
echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true
xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
;;
*.xcdatamodeld)
echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true
xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
;;
*.xcmappingmodel)
echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true
xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
;;
*.xcassets)
ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
;;
*)
echo "$RESOURCE_PATH" || true
echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY"
;;
esac
}
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_resource "${PODS_ROOT}/Bytedance-UnionAD/Bytedance-UnionAd/Frameworks/BUAdSDK.bundle"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_resource "${PODS_ROOT}/Bytedance-UnionAD/Bytedance-UnionAd/Frameworks/BUAdSDK.bundle"
fi
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ]
then
# Find all other xcassets (this unfortunately includes those of path pods and other targets).
OTHER_XCASSETS=$(find -L "$PWD" -iname "*.xcassets" -type d)
while read line; do
if [[ $line != "${PODS_ROOT}*" ]]; then
XCASSET_FILES+=("$line")
fi
done <<<"$OTHER_XCASSETS"
if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
else
printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist"
fi
fi
......@@ -125,7 +125,6 @@
A94C0E6424DA7044007F577D /* KeychainItemWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0DC224DA7044007F577D /* KeychainItemWrapper.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
A94C0E6524DA7044007F577D /* KeychainItemManager.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0DC424DA7044007F577D /* KeychainItemManager.m */; };
A94C0E6624DA7044007F577D /* Data.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0DC624DA7044007F577D /* Data.m */; };
A94C0E6724DA7044007F577D /* QJGIFView.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0DCA24DA7044007F577D /* QJGIFView.m */; };
A94C0E6824DA7044007F577D /* MBProgressHUD+MJ.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0DCB24DA7044007F577D /* MBProgressHUD+MJ.m */; };
A94C0E6924DA7044007F577D /* MBProgressHUD.bundle in Resources */ = {isa = PBXBuildFile; fileRef = A94C0DCD24DA7044007F577D /* MBProgressHUD.bundle */; };
A94C0E6A24DA7044007F577D /* PYHDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0DD324DA7044007F577D /* PYHDocument.m */; };
......@@ -197,6 +196,8 @@
A94C0F6924DBF952007F577D /* AAChartModel.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0F4124DBF952007F577D /* AAChartModel.m */; };
A94C0F6A24DBF952007F577D /* AAOptions.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0F4324DBF952007F577D /* AAOptions.m */; };
A94C0F6B24DBF952007F577D /* AASeriesElement.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0F4424DBF952007F577D /* AASeriesElement.m */; };
A94C0F6F24DC0606007F577D /* SCHomeHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = A94C0F6D24DC0606007F577D /* SCHomeHeaderView.m */; };
A94C0F7024DC0606007F577D /* SCHomeHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = A94C0F6E24DC0606007F577D /* SCHomeHeaderView.xib */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
......@@ -391,9 +392,7 @@
A94C0DC624DA7044007F577D /* Data.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Data.m; sourceTree = "<group>"; };
A94C0DC724DA7044007F577D /* KeychainItemManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KeychainItemManager.h; sourceTree = "<group>"; };
A94C0DC924DA7044007F577D /* MBProgressHUD+MJ.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MBProgressHUD+MJ.h"; sourceTree = "<group>"; };
A94C0DCA24DA7044007F577D /* QJGIFView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QJGIFView.m; sourceTree = "<group>"; };
A94C0DCB24DA7044007F577D /* MBProgressHUD+MJ.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "MBProgressHUD+MJ.m"; sourceTree = "<group>"; };
A94C0DCC24DA7044007F577D /* QJGIFView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QJGIFView.h; sourceTree = "<group>"; };
A94C0DCD24DA7044007F577D /* MBProgressHUD.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = MBProgressHUD.bundle; sourceTree = "<group>"; };
A94C0DD024DA7044007F577D /* ICContactListModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ICContactListModel.h; sourceTree = "<group>"; };
A94C0DD124DA7044007F577D /* ICContactsBackup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ICContactsBackup.h; sourceTree = "<group>"; };
......@@ -528,6 +527,9 @@
A94C0F4424DBF952007F577D /* AASeriesElement.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AASeriesElement.m; sourceTree = "<group>"; };
A94C0F4524DBF952007F577D /* AAChartView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AAChartView.h; sourceTree = "<group>"; };
A94C0F4624DBF952007F577D /* AAChartModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AAChartModel.h; sourceTree = "<group>"; };
A94C0F6C24DC0606007F577D /* SCHomeHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SCHomeHeaderView.h; sourceTree = "<group>"; };
A94C0F6D24DC0606007F577D /* SCHomeHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SCHomeHeaderView.m; sourceTree = "<group>"; };
A94C0F6E24DC0606007F577D /* SCHomeHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SCHomeHeaderView.xib; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
......@@ -845,6 +847,9 @@
A94C0D9124DA7043007F577D /* WKSimilarPhotoCell.m */,
A94C0D9724DA7043007F577D /* WKSimilarPhotoHeadView.h */,
A94C0D9224DA7043007F577D /* WKSimilarPhotoHeadView.m */,
A94C0F6C24DC0606007F577D /* SCHomeHeaderView.h */,
A94C0F6D24DC0606007F577D /* SCHomeHeaderView.m */,
A94C0F6E24DC0606007F577D /* SCHomeHeaderView.xib */,
);
path = View;
sourceTree = "<group>";
......@@ -965,8 +970,6 @@
A94C0DCD24DA7044007F577D /* MBProgressHUD.bundle */,
A94C0DC924DA7044007F577D /* MBProgressHUD+MJ.h */,
A94C0DCB24DA7044007F577D /* MBProgressHUD+MJ.m */,
A94C0DCC24DA7044007F577D /* QJGIFView.h */,
A94C0DCA24DA7044007F577D /* QJGIFView.m */,
);
path = HUD;
sourceTree = "<group>";
......@@ -1267,6 +1270,7 @@
A94C0D0424DA69B3007F577D /* pets.mp3 in Resources */,
A94C0E2C24DA7044007F577D /* BatteryCareLocation.plist in Resources */,
A94C0E2F24DA7044007F577D /* ICBatteryCareMainTextViewCell.xib in Resources */,
A94C0F7024DC0606007F577D /* SCHomeHeaderView.xib in Resources */,
A94C0E7D24DA7044007F577D /* ICContactManageViewCell.xib in Resources */,
A94C0E2624DA7044007F577D /* BatteryCareNotification.plist in Resources */,
A94C0F6724DBF952007F577D /* AAJSFiles.bundle in Resources */,
......@@ -1391,6 +1395,7 @@
A94C0F5824DBF952007F577D /* AAPlotLinesElement.m in Sources */,
A94C0E4624DA7044007F577D /* ICNormalPhotoViewController.m in Sources */,
A94C0E2E24DA7044007F577D /* SCNetWorkDashBoardView.swift in Sources */,
A94C0F6F24DC0606007F577D /* SCHomeHeaderView.m in Sources */,
A94C0E2724DA7044007F577D /* ICDbTestViewController.m in Sources */,
A94C0E7324DA7044007F577D /* ICContactListViewController.m in Sources */,
A94C0E3424DA7044007F577D /* ICBatteryCareMainTextViewCell.m in Sources */,
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "tongji-4.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -17,62 +17,8 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_cycle_bg_img" translatesAutoresizingMaskIntoConstraints="NO" id="wmu-x0-Mk9">
<rect key="frame" x="103.5" y="14" width="168" height="168"/>
<constraints>
<constraint firstAttribute="width" secondItem="wmu-x0-Mk9" secondAttribute="height" id="Ade-2U-sH3"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="52.3/64 GB" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GIL-aJ-tee">
<rect key="frame" x="150.5" y="190" width="74.5" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XKd-Oj-r0n">
<rect key="frame" x="145.5" y="56" width="84" height="84"/>
<color key="backgroundColor" red="0.14901960784313725" green="0.74117647058823533" blue="0.36078431372549019" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" secondItem="XKd-Oj-r0n" secondAttribute="height" id="AEe-EP-YM5"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<state key="normal">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="massBackgroundColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="smartClearAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="6lA-1G-Fqd"/>
</connections>
</button>
<stackView opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="Z7S-k2-nm1">
<rect key="frame" x="171" y="88.5" width="33.5" height="19.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="82%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HQx-4u-FB6">
<rect key="frame" x="0.0" y="0.0" width="33.5" height="19.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.13333333333333333" green="0.16078431372549018" blue="0.23921568627450979" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<button clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1sG-bW-WsD">
<rect key="frame" x="93.5" y="219" width="188" height="50"/>
<state key="normal" title="立即清理" backgroundImage="home_button_bg">
<color key="titleColor" red="0.20392156862745098" green="0.20392156862745098" blue="0.20392156862745098" alpha="1" colorSpace="calibratedRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="kMassColor" value="YES"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="manualClearAction:" destination="BYZ-38-t0r" eventType="touchUpInside" id="PfZ-yQ-Chy"/>
</connections>
</button>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="Zue-L2-u5X">
<rect key="frame" x="6" y="281" width="363" height="350"/>
<rect key="frame" x="10" y="10" width="355" height="627"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<collectionViewFlowLayout key="collectionViewLayout" automaticEstimatedItemSize="YES" minimumLineSpacing="10" minimumInteritemSpacing="10" id="io8-Nh-8vt">
<size key="itemSize" width="327" height="92"/>
......@@ -82,7 +28,7 @@
</collectionViewFlowLayout>
<cells>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="SCHomeCell" id="n5F-3D-esz" customClass="SCHomeCell">
<rect key="frame" x="18" y="0.0" width="327" height="92"/>
<rect key="frame" x="14" y="0.0" width="327" height="92"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<collectionViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="qF0-JD-PDf">
<rect key="frame" x="0.0" y="0.0" width="327" height="92"/>
......@@ -95,64 +41,44 @@
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FUe-po-yXc">
<rect key="frame" x="78.5" y="27" width="35.5" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.20392156862745098" green="0.20392156862745098" blue="0.20392156862745098" alpha="0.84705882352941175" colorSpace="calibratedRGB"/>
<rect key="frame" x="78.5" y="27" width="36" height="17"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.84705882352941175" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qr2-CO-OPH">
<rect key="frame" x="78.5" y="52" width="28.5" height="13.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qr2-CO-OPH">
<rect key="frame" x="78.5" y="52" width="245" height="13.5"/>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" red="0.60784313725490191" green="0.70196078431372544" blue="0.82352941176470584" alpha="0.84705882352941175" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="0.84999999999999998" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YJh-Qm-QMN">
<rect key="frame" x="0.0" y="0.0" width="327" height="0.5"/>
<color key="backgroundColor" red="0.71372549019607845" green="0.83921568627450982" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.93725490196078431" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="4F4-Qx-peC"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="massBackgroundColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gXT-DX-0tB">
<rect key="frame" x="0.0" y="91.5" width="327" height="0.5"/>
<color key="backgroundColor" red="0.71372549019607845" green="0.83921568627450982" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.93725490196078431" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="eYN-wY-6mm"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="massBackgroundColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ueJ-Hi-iHu">
<rect key="frame" x="0.0" y="0.0" width="0.5" height="92"/>
<color key="backgroundColor" red="0.71372549019607845" green="0.83921568627450982" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.93725490196078431" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="0.5" id="2HY-KF-4Uk"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="massBackgroundColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cNF-xd-ZI3">
<rect key="frame" x="326.5" y="0.0" width="0.5" height="92"/>
<color key="backgroundColor" red="0.71372549019607845" green="0.83921568627450982" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.93725490196078431" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="0.5" id="dMT-k5-LvS"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="massBackgroundColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<constraints>
......@@ -163,6 +89,7 @@
<constraint firstItem="q6x-Wi-XlX" firstAttribute="centerY" secondItem="qF0-JD-PDf" secondAttribute="centerY" id="Bfh-9b-clB"/>
<constraint firstAttribute="bottom" secondItem="cNF-xd-ZI3" secondAttribute="bottom" id="GBq-tj-zlW"/>
<constraint firstAttribute="bottom" secondItem="gXT-DX-0tB" secondAttribute="bottom" id="Ghl-BA-NS0"/>
<constraint firstItem="cNF-xd-ZI3" firstAttribute="leading" secondItem="Qr2-CO-OPH" secondAttribute="trailing" constant="3" id="Hc6-bk-mo3"/>
<constraint firstItem="Qr2-CO-OPH" firstAttribute="top" secondItem="FUe-po-yXc" secondAttribute="bottom" constant="8" id="Jcq-qe-SD3"/>
<constraint firstAttribute="trailing" secondItem="cNF-xd-ZI3" secondAttribute="trailing" id="Pyf-Ko-c7B"/>
<constraint firstItem="Qr2-CO-OPH" firstAttribute="leading" secondItem="FUe-po-yXc" secondAttribute="leading" id="QYI-r0-Jks"/>
......@@ -194,32 +121,15 @@
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="1sG-bW-WsD" firstAttribute="top" secondItem="GIL-aJ-tee" secondAttribute="bottom" constant="12" id="15E-bu-HkO"/>
<constraint firstItem="wmu-x0-Mk9" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="14" id="Cwl-JC-xeO"/>
<constraint firstItem="Zue-L2-u5X" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="6" id="FUw-Dc-y7h"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="Zue-L2-u5X" secondAttribute="trailing" constant="6" id="IKP-Tz-m87"/>
<constraint firstItem="wmu-x0-Mk9" firstAttribute="centerY" secondItem="XKd-Oj-r0n" secondAttribute="centerY" id="ISX-fB-zjC"/>
<constraint firstItem="1sG-bW-WsD" firstAttribute="centerX" secondItem="GIL-aJ-tee" secondAttribute="centerX" id="Ko8-p2-PkU"/>
<constraint firstItem="Z7S-k2-nm1" firstAttribute="centerX" secondItem="XKd-Oj-r0n" secondAttribute="centerX" id="KrE-vQ-NZc"/>
<constraint firstItem="wmu-x0-Mk9" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="MxY-Ax-f30"/>
<constraint firstItem="wmu-x0-Mk9" firstAttribute="width" secondItem="8bC-Xf-vdC" secondAttribute="width" multiplier="168:375" id="N7y-RJ-yio"/>
<constraint firstItem="GIL-aJ-tee" firstAttribute="top" secondItem="wmu-x0-Mk9" secondAttribute="bottom" constant="8" id="X1o-ek-Au6"/>
<constraint firstItem="wmu-x0-Mk9" firstAttribute="centerX" secondItem="XKd-Oj-r0n" secondAttribute="centerX" id="jeJ-kW-Q4s"/>
<constraint firstItem="Zue-L2-u5X" firstAttribute="top" secondItem="1sG-bW-WsD" secondAttribute="bottom" constant="12" id="kX6-w6-7tx"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="Zue-L2-u5X" secondAttribute="bottom" constant="36" id="riZ-Pq-fVh"/>
<constraint firstItem="XKd-Oj-r0n" firstAttribute="width" secondItem="wmu-x0-Mk9" secondAttribute="width" multiplier="1:2" id="xJp-bR-jUI"/>
<constraint firstItem="Z7S-k2-nm1" firstAttribute="centerY" secondItem="XKd-Oj-r0n" secondAttribute="centerY" id="xQl-z4-W0d"/>
<constraint firstItem="GIL-aJ-tee" firstAttribute="centerX" secondItem="wmu-x0-Mk9" secondAttribute="centerX" id="zxi-uS-0QC"/>
<constraint firstItem="Zue-L2-u5X" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="10" id="FUw-Dc-y7h"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="Zue-L2-u5X" secondAttribute="trailing" constant="10" id="IKP-Tz-m87"/>
<constraint firstItem="Zue-L2-u5X" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="10" id="WCE-es-jxA"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="Zue-L2-u5X" secondAttribute="bottom" constant="30" id="riZ-Pq-fVh"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<connections>
<outlet property="collectionView" destination="Zue-L2-u5X" id="ZTE-H5-bkB"/>
<outlet property="cycleImageView" destination="wmu-x0-Mk9" id="Urr-Ar-eVo"/>
<outlet property="manualButton" destination="1sG-bW-WsD" id="ibd-c8-udH"/>
<outlet property="smartClearButton" destination="XKd-Oj-r0n" id="z7V-R1-dNA"/>
<outlet property="spacePercentLabel" destination="GIL-aJ-tee" id="8Bn-fb-iSA"/>
<outlet property="usedSpaceScaleLabel" destination="HQx-4u-FB6" id="FcO-D7-eKn"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
......@@ -905,8 +815,8 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tQ9-Em-wwg">
<rect key="frame" x="15" y="422.5" width="345" height="60"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥498.00/年" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mFU-Hz-CUd">
<rect key="frame" x="123.5" y="19.5" width="98.5" height="21.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥478.00/年" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mFU-Hz-CUd">
<rect key="frame" x="124" y="19.5" width="97" height="21.5"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
......@@ -1878,8 +1788,6 @@
<image name="contact_choose" width="22" height="22"/>
<image name="contact_choosed" width="22" height="22"/>
<image name="global_green_btn_bg" width="324" height="62"/>
<image name="home_button_bg" width="188" height="50"/>
<image name="home_cycle_bg_img" width="168" height="168"/>
<image name="home_pause_btn_bg" width="26" height="26"/>
<image name="inAppPurchase_cancel" width="20" height="20"/>
<image name="inAppPurchase_discount_icon" width="74" height="18"/>
......
......@@ -10,6 +10,7 @@
#import "superCleaner-Swift.h"
#import "ICWebViewController.h"
#import "ICIPAProductModel.h"
#import "Data.h"
@interface ICIAPViewController ()
......@@ -48,6 +49,13 @@
UITapGestureRecognizer *yearTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(selectedYearAction)];
[self.yearContentView addGestureRecognizer: yearTap];
self.weakPriceLabel.text = @"3天免费试用,之后";
Data * data = [[Data alloc] init];
NSDictionary * dic = [[data Read] objectForKey:@"config"];
if (dic) {
self.weakPriceLabel.text = [dic objectForKey:@"pay_3day_txt"];
}
self.products = [NSMutableArray array];
[self getIpaList];
......@@ -69,10 +77,8 @@
[weakSelf.products addObject:model];
if ([model.productId containsString:@"week"]) {
weakSelf.weakPeriodOfUseLabel.text = model.name;
weakSelf.weakPriceLabel.text = model.payDesc;
} else if ([model.productId containsString:@"year"]) {
weakSelf.yearPeriodOfUseLabel.text = model.name;
weakSelf.yearPriceLabel.text = [NSString stringWithFormat:@"%@ (%@)", model.payDesc, model.greyBgStr];
}
}
}
......
......@@ -201,9 +201,6 @@
[alertController addAction:([UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
completionHandler();
// self->_requestW = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:message]];
// [self.webView loadRequest:self->_requestW];
}])];
[self presentViewController:alertController animated:YES completion:nil];
}
......
......@@ -24,15 +24,13 @@
#import "ICContactsViewController.h"
#import "ICCalendarManageController.h"
#import "StatisticsViewController.h"
#import "SCHomeHeaderView.h"
@interface ICHomeViewController ()<UICollectionViewDelegate,UICollectionViewDataSource>
@property (weak, nonatomic) IBOutlet UILabel *usedSpaceScaleLabel;
@property (weak, nonatomic) IBOutlet UILabel *spacePercentLabel;
@property (weak, nonatomic) IBOutlet UIButton *smartClearButton;
@property (weak, nonatomic) IBOutlet UIImageView *cycleImageView;
@property (weak, nonatomic) IBOutlet UIButton *manualButton;
@property (weak, nonatomic) IBOutlet UICollectionView * collectionView;
@property (strong, nonatomic) SCHomeHeaderView * headerView;
@property (strong, nonatomic) NSArray * dataSource;
@end
......@@ -49,11 +47,11 @@
@{@"image":@"home_cell_4", @"title":@"网速检测", @"details":@"一键测试你的网络速度"},
@{@"image":@"home_cell_5", @"title":@"分贝检测", @"details":@"专业的噪音检测仪"},
@{@"image":@"home_cell_6", @"title":@"电池寿命", @"details":@"延长iPhone电池寿命"},
@{@"image":@"", @"title":@"", @"details":@""}];
@{@"image":@"home_cell_7", @"title":@"相册统计", @"details":@"种类占比"}];
[self setupUI];
[self getDivceSize];
[self rotateAction];
// [self getDivceSize];
// [self rotateAction];
[[ICUserManager shared] loginAndGetUserInfo:^(ZTUserInfoModel * _Nonnull model) {
[[ICUserManager shared] getServiceInfo];
......@@ -76,7 +74,7 @@
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[self.smartClearButton addRadarAnimation];
[self.headerView.smartClearButton addRadarAnimation];
}
- (void)viewWillAppear:(BOOL)animated {
......@@ -86,7 +84,7 @@
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
[self.smartClearButton removeRadarAnimation];
[self.headerView.smartClearButton removeRadarAnimation];
}
- (void)setupUI{
......@@ -107,25 +105,23 @@
[self.view layoutIfNeeded];
[self.view layoutSubviews];
self.smartClearButton.layer.cornerRadius = self.smartClearButton.frame.size.height/2;
self.smartClearButton.radarColor = kMassColor;
self.smartClearButton.radarBorderColor = kMassColor;
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
layout.itemSize = CGSizeMake((KScreenWidth-12)/2, KScaleWidth(78));
layout.itemSize = CGSizeMake((KScreenWidth-20)/2, KScaleWidth(78));
layout.minimumLineSpacing = 0;
layout.minimumInteritemSpacing = 0;
layout.sectionInset = UIEdgeInsetsMake(0, 0, 0, 0);
_collectionView.collectionViewLayout = layout;
_collectionView.delegate = self;
_collectionView.dataSource = self;
_collectionView.showsVerticalScrollIndicator = NO;
// [_collectionView registerNib:[UINib nibWithNibName:@"ZJChooseIconCell" bundle:nil] forCellWithReuseIdentifier:@"cell"];
[_collectionView registerNib:[UINib nibWithNibName:@"SCHomeHeaderView" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"SCHomeHeaderView"];
}
//设置一个函数 便于嵌套使用
-(void)rotateAction{
[UIView animateWithDuration: 2 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{
self.cycleImageView.transform = CGAffineTransformRotate(self.cycleImageView.transform, M_PI);
self.headerView.cycleImageView.transform = CGAffineTransformRotate(self.headerView.cycleImageView.transform, M_PI);
} completion:^(BOOL finished) {
[self rotateAction];
}];
......@@ -153,9 +149,8 @@
NSLog(@"%.1f/%.0f", usedMem, totalMem);
NSLog(@"%.2f", usedMem/totalMem);
self.usedSpaceScaleLabel.text = [NSString stringWithFormat:@"%@ %.0f%%",ICLocalized(@"Used"), [[ICDiskKit takenSpace] floatValue]/totalMem * 100];
self.spacePercentLabel.text = [NSString stringWithFormat:@"%@/%.0fGB", [ICDiskKit takenSpace], totalMem];
self.headerView.usedSpaceScaleLabel.text = [NSString stringWithFormat:@"%@ %.0f%%",ICLocalized(@"Used"), [[ICDiskKit takenSpace] floatValue]/totalMem * 100];
self.headerView.spacePercentLabel.text = [NSString stringWithFormat:@"%@/%.0fGB", [ICDiskKit takenSpace], totalMem];
}
// 智能清理
......@@ -261,6 +256,35 @@
return cell;
}
- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath{
if (kind == UICollectionElementKindSectionHeader) {
SCHomeHeaderView * header = [collectionView dequeueReusableSupplementaryViewOfKind:kind withReuseIdentifier:@"SCHomeHeaderView" forIndexPath:indexPath];
header.backgroundColor = [UIColor whiteColor];
self.headerView = header;
self.headerView.frame = CGRectMake(0, 0, KScreenWidth-20, 151+KScaleWidth(168));
[self.headerView layoutIfNeeded];
[self.headerView layoutSubviews];
self.headerView.smartClearButton.layer.cornerRadius = self.headerView.smartClearButton.frame.size.height/2;
self.headerView.smartClearButton.radarColor = kMassColor;
self.headerView.smartClearButton.radarBorderColor = kMassColor;
[self.headerView.smartClearButton addRadarAnimation];
[self rotateAction];
[self getDivceSize];
[self.headerView.smartClearButton addTarget:self action:@selector(smartClearAction:) forControlEvents:(UIControlEventTouchUpInside)];
[self.headerView.manualButton addTarget:self action:@selector(smartClearAction:) forControlEvents:(UIControlEventTouchUpInside)];
return self.headerView;
}
return nil;
}
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section{
return CGSizeMake(KScreenWidth-20, 151+KScaleWidth(168));
}
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
[collectionView deselectItemAtIndexPath:indexPath animated:YES];
......@@ -307,26 +331,50 @@
break;
case 3:
{
if ([ICUserManager shared].isMember) {
ICCleanDustViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICCleanDustViewController"];
[self.navigationController pushViewController:vc animated:true];
}else {
ICIAPViewController *iapVC = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICIAPViewController"];
ICNavigationController *navc = [[ICNavigationController alloc] initWithRootViewController:iapVC];
[self presentViewController:navc animated:true completion:nil];
}
}
break;
case 4:
{
// if ([ICUserManager shared].isMember) {
ICNetworkSpeedViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICNetworkSpeedViewController"];
[self.navigationController pushViewController:vc animated:true];
// }else {
// ICIAPViewController *iapVC = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICIAPViewController"];
// ICNavigationController *navc = [[ICNavigationController alloc] initWithRootViewController:iapVC];
// [self presentViewController:navc animated:true completion:nil];
// }
}
break;
case 5:
{
if ([ICUserManager shared].isMember) {
ICDbTestViewController *vc = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICDbTestViewController"];
[self.navigationController pushViewController:vc animated:true];
}else {
ICIAPViewController *iapVC = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICIAPViewController"];
ICNavigationController *navc = [[ICNavigationController alloc] initWithRootViewController:iapVC];
[self presentViewController:navc animated:true completion:nil];
}
}
break;
case 6:
{
// if ([ICUserManager shared].isMember) {
ICBatteryCareViewController *vc = [[ICBatteryCareViewController alloc] init];
[self.navigationController pushViewController:vc animated:true];
// }else {
// ICIAPViewController *iapVC = [[UIStoryboard storyboardWithName:@"Main" bundle: nil] instantiateViewControllerWithIdentifier:@"ICIAPViewController"];
// ICNavigationController *navc = [[ICNavigationController alloc] initWithRootViewController:iapVC];
// [self presentViewController:navc animated:true completion:nil];
// }
}
break;
case 7:{
......
......@@ -103,6 +103,39 @@
_similarPhotoContentView.backgroundColor = kMassColorAlpha(0.15);
_similarVideoContentView.backgroundColor = kMassColorAlpha(0.15);
_screenshotContentView.tag = 0x8c+1;
_livePhotoContentView.tag = 0x8c+3;
_similarPhotoContentView.tag = 0x8c;
_similarVideoContentView.tag = 0x8c+2;
UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapGes:)];
UITapGestureRecognizer * tap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapGes:)];
UITapGestureRecognizer * tap2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapGes:)];
UITapGestureRecognizer * tap3 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapGes:)];
[_screenshotContentView addGestureRecognizer:tap];
[_livePhotoContentView addGestureRecognizer:tap1];
[_similarPhotoContentView addGestureRecognizer:tap2];
[_similarVideoContentView addGestureRecognizer:tap3];
}
- (void)viewTapGes:(UITapGestureRecognizer *)ges{
switch (ges.view.tag-0x8c) {
case 0:
[self similarPhotoDetailAction];
break;
case 1:
[self screenshotDetailAction];
break;
case 2:
break;
case 3:
[self livePhotoDetailAction];
break;
default:
break;
}
}
- (void)updateUI{
......
//
// SCHomeHeaderView.h
// superCleaner
//
// Created by 明津李 on 2020/8/6.
// Copyright © 2020 Mazy. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SCHomeHeaderView : UICollectionReusableView
@property (weak, nonatomic) IBOutlet UILabel *usedSpaceScaleLabel;
@property (weak, nonatomic) IBOutlet UILabel *spacePercentLabel;
@property (weak, nonatomic) IBOutlet UIButton *smartClearButton;
@property (weak, nonatomic) IBOutlet UIImageView *cycleImageView;
@property (weak, nonatomic) IBOutlet UIButton *manualButton;
@end
NS_ASSUME_NONNULL_END
//
// SCHomeHeaderView.m
// superCleaner
//
// Created by 明津李 on 2020/8/6.
// Copyright © 2020 Mazy. All rights reserved.
//
#import "SCHomeHeaderView.h"
@implementation SCHomeHeaderView
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
@end
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<collectionReusableView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="SCHomeHeaderView" id="U6b-Vx-4bR" customClass="SCHomeHeaderView">
<rect key="frame" x="0.0" y="0.0" width="415" height="350"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_cycle_bg_img" translatesAutoresizingMaskIntoConstraints="NO" id="Zv4-WU-omb">
<rect key="frame" x="109.5" y="25" width="196" height="196.5"/>
<constraints>
<constraint firstAttribute="width" secondItem="Zv4-WU-omb" secondAttribute="height" id="8bM-lL-T2A"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="52.3/64 GB" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zHw-24-34Q">
<rect key="frame" x="170.5" y="241.5" width="74.5" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kdu-zn-cpc">
<rect key="frame" x="113.5" y="272.5" width="188" height="50"/>
<state key="normal" title="立即清理" backgroundImage="home_button_bg">
<color key="titleColor" red="0.20392156859999999" green="0.20392156859999999" blue="0.20392156859999999" alpha="1" colorSpace="calibratedRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="kMassColor" value="YES"/>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1jd-Wk-3GP">
<rect key="frame" x="152" y="67.5" width="111" height="111"/>
<color key="backgroundColor" red="0.14901960780000001" green="0.74117647060000003" blue="0.36078431370000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" secondItem="1jd-Wk-3GP" secondAttribute="height" id="8Oy-XT-kKI"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<state key="normal">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="massBackgroundColor">
<color key="value" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<stackView opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="ggP-Tm-Bko">
<rect key="frame" x="191" y="113.5" width="33.5" height="19.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="82%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yC1-rk-Hns">
<rect key="frame" x="0.0" y="0.0" width="33.5" height="19.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.1333333333" green="0.16078431369999999" blue="0.23921568630000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
</subviews>
<constraints>
<constraint firstItem="ggP-Tm-Bko" firstAttribute="centerX" secondItem="1jd-Wk-3GP" secondAttribute="centerX" id="4Jk-2s-Isl"/>
<constraint firstItem="zHw-24-34Q" firstAttribute="centerX" secondItem="Zv4-WU-omb" secondAttribute="centerX" id="5lQ-Pu-Nbh"/>
<constraint firstItem="1jd-Wk-3GP" firstAttribute="centerY" secondItem="Zv4-WU-omb" secondAttribute="centerY" id="B66-oI-GDt"/>
<constraint firstItem="ggP-Tm-Bko" firstAttribute="centerX" secondItem="U6b-Vx-4bR" secondAttribute="centerX" id="CGu-e6-A6F"/>
<constraint firstItem="1jd-Wk-3GP" firstAttribute="centerX" secondItem="Zv4-WU-omb" secondAttribute="centerX" id="GUh-Om-2FR"/>
<constraint firstItem="zHw-24-34Q" firstAttribute="centerX" secondItem="U6b-Vx-4bR" secondAttribute="centerX" id="GjT-uU-6bX"/>
<constraint firstItem="Zv4-WU-omb" firstAttribute="top" secondItem="U6b-Vx-4bR" secondAttribute="top" constant="25" id="Gjn-0n-8YZ"/>
<constraint firstItem="1jd-Wk-3GP" firstAttribute="width" secondItem="Zv4-WU-omb" secondAttribute="width" multiplier="95:168" id="HQJ-iW-vZ9"/>
<constraint firstItem="kdu-zn-cpc" firstAttribute="centerX" secondItem="U6b-Vx-4bR" secondAttribute="centerX" id="HcD-OE-9YK"/>
<constraint firstItem="ggP-Tm-Bko" firstAttribute="centerY" secondItem="1jd-Wk-3GP" secondAttribute="centerY" id="Stx-Ch-vQ5"/>
<constraint firstItem="kdu-zn-cpc" firstAttribute="top" secondItem="zHw-24-34Q" secondAttribute="bottom" constant="14" id="Vb3-jJ-47a"/>
<constraint firstItem="zHw-24-34Q" firstAttribute="top" secondItem="Zv4-WU-omb" secondAttribute="bottom" constant="20" id="Vy1-Zq-bGV"/>
<constraint firstItem="Zv4-WU-omb" firstAttribute="width" secondItem="U6b-Vx-4bR" secondAttribute="width" multiplier="168:355" id="X6Y-WL-zDQ"/>
<constraint firstItem="Zv4-WU-omb" firstAttribute="width" secondItem="Zv4-WU-omb" secondAttribute="height" id="ZcV-l7-Tmo"/>
<constraint firstItem="kdu-zn-cpc" firstAttribute="centerX" secondItem="Zv4-WU-omb" secondAttribute="centerX" id="Zcs-zK-Anc"/>
<constraint firstItem="1jd-Wk-3GP" firstAttribute="centerX" secondItem="U6b-Vx-4bR" secondAttribute="centerX" id="gbh-51-ooP"/>
<constraint firstItem="1jd-Wk-3GP" firstAttribute="width" secondItem="1jd-Wk-3GP" secondAttribute="height" id="jjh-CL-fBu"/>
<constraint firstItem="Zv4-WU-omb" firstAttribute="centerX" secondItem="U6b-Vx-4bR" secondAttribute="centerX" id="ulc-67-RPm"/>
</constraints>
<viewLayoutGuide key="safeArea" id="9Gg-ye-v9C"/>
<connections>
<outlet property="cycleImageView" destination="Zv4-WU-omb" id="7R7-Y5-uew"/>
<outlet property="manualButton" destination="kdu-zn-cpc" id="TVz-VU-f4f"/>
<outlet property="smartClearButton" destination="1jd-Wk-3GP" id="MG6-5N-v0z"/>
<outlet property="spacePercentLabel" destination="zHw-24-34Q" id="MPT-Vt-mQ8"/>
<outlet property="usedSpaceScaleLabel" destination="yC1-rk-Hns" id="jN8-3G-tXo"/>
</connections>
<point key="canvasLocation" x="306.52173913043481" y="98.4375"/>
</collectionReusableView>
</objects>
<resources>
<image name="home_button_bg" width="188" height="50"/>
<image name="home_cycle_bg_img" width="168" height="168"/>
</resources>
</document>
......@@ -51,10 +51,16 @@ static ICUserManager * manager;
}
- (BOOL)isMember {
NSString *dateString = [[NSUserDefaults standardUserDefaults] valueForKeyPath:@"expiryDate"];
if (dateString.length <= 0) {
#ifdef DEBUG
return false;
#else
return self.model.isMember;
#endif
}
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"yyyy-MM-dd HH:mm";
NSDate *expiryDate = [formatter dateFromString:dateString];
......@@ -66,7 +72,6 @@ static ICUserManager * manager;
// else if ([expiryDate timeIntervalSinceDate:[NSDate date]] <= 0) {
// return false;
// }
return self.model.isMember;
}
......@@ -162,7 +167,11 @@ static ICUserManager * manager;
} else {
[data removeDicForKey:@"urlInfo"];
}
if ([[[response objectForKey:@"result"] objectForKey:@"data"] objectForKey:@"config"]) {
[data WirteDic:[[[response objectForKey:@"result"] objectForKey:@"data"] objectForKey:@"config"] Key:@"config"];
} else {
[data removeDicForKey:@"config"];
}
}
} failure:^(NSError * _Nonnull error) {
......@@ -171,5 +180,4 @@ static ICUserManager * manager;
}];
}
@end
......@@ -24,7 +24,7 @@ class ICPurchaseManager: NSObject {
case .success(let product):
print("Purchase Success: \(product.productId)")
let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "0dee7332e952467c97e5d4ecd1f788f6")
let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "ed0f68aca7964038a5cdf2a68c8c35c4")
let hud = MBProgressHUD.showAdded(to: inView, animated: true)
SwiftyStoreKit.verifyReceipt(using: appleValidator) { result in
hud.hide(animated: true)
......@@ -230,7 +230,7 @@ class ICPurchaseManager: NSObject {
print("Restore sortedResults: \(sortedResults)")
if let purchase = sortedResults.last {
let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "0dee7332e952467c97e5d4ecd1f788f6")
let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "ed0f68aca7964038a5cdf2a68c8c35c4")
let hud = MBProgressHUD.showAdded(to: UIApplication.shared.delegate!.window!!, animated: true)
SwiftyStoreKit.verifyReceipt(using: appleValidator) { result in
hud.hide(animated: true)
......
......@@ -11,6 +11,8 @@
@interface WMEventCalendarTool()
@property (nonatomic ,copy) completion completion;
@property (nonatomic ,copy) completion calendarCompletion;
@property (nonatomic ,copy) completed completed;
@property (nonatomic, strong) EKEventStore *eventStore;
......@@ -34,12 +36,12 @@
- (void)checkCalendarCanUsedCompletion:(completion)completion{
// EKEntityTypeEvent日历事件
// EKEntityTypeReminder提醒事项
self.completion = completion;
self.calendarCompletion = completion;
EKAuthorizationStatus eventStatus = [EKEventStore authorizationStatusForEntityType:EKEntityTypeEvent];
if (eventStatus == EKAuthorizationStatusAuthorized) {
// 已授权,可使用
if (self.completion) {
self.completion(YES, nil);
if (self.calendarCompletion) {
self.calendarCompletion(YES, nil);
}
}else if(eventStatus == EKAuthorizationStatusNotDetermined){
// 未进行授权选择
......@@ -54,16 +56,16 @@
NSLog(@"用户没有点允许访问日历");
}
dispatch_async(dispatch_get_main_queue(), ^{
if(self.completion){
self.completion(isGranted, isError);
if(self.calendarCompletion){
self.calendarCompletion(isGranted, isError);
}
});
}];
}else{
// 未授权
NSError *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSUserCancelledError userInfo:@{NSLocalizedDescriptionKey : @"未授权"}];
if (self.completion) {
self.completion(NO, error);
if (self.calendarCompletion) {
self.calendarCompletion(NO, error);
}
}
}
......@@ -404,7 +406,10 @@
- (void)checkCompletedRemindersStartDate:(NSDate *)startDate addEndDate:(NSDate *)endDate fetchCompleted: (completed)completed {
self.completed = completed;
// 查询到所有的日历
NSArray *tempA = [self.eventStore calendarsForEntityType: EKEntityTypeReminder];
EKEventStore * store = [[EKEventStore alloc] init];
NSArray *tempA = [store calendarsForEntityType: EKEntityTypeReminder];
NSMutableArray *only3D = [NSMutableArray array];
for (int i = 0 ; i < tempA.count; i ++) {
......@@ -416,7 +421,7 @@
[only3D addObject: temCalendar];
}
}
self.eventStore = store;
NSPredicate *predicate = [self.eventStore predicateForCompletedRemindersWithCompletionDateStarting:startDate ending:endDate calendars:only3D];
// 获取到范围内的所有事件
......
......@@ -17,6 +17,7 @@
@property (nonatomic, assign) NSInteger total;
@property (nonatomic, assign) AAChartModel *aaChartModel;
@property (nonatomic, strong) AAChartView *aaChartView;
@property (nonatomic, strong) UILabel * totalLab;
@end
......@@ -27,23 +28,30 @@
[self.navigationController setNavigationBarHidden:NO animated:YES];
self.title = @"图片统计";
[MBProgressHUD showMessage:@"加载中..." delayTime:1.f toView:nil];
// [MBProgressHUD showMessage:@"加载中..." delayTime:1.f toView:nil];
[self setUpTheChartView:AAChartTypePie];
}
- (void)setUpTheChartView:(AAChartType)chartType {
CGRect chartViewFrame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
CGRect chartViewFrame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.width);
self.aaChartView = [[AAChartView alloc]initWithFrame:chartViewFrame];
self.view.backgroundColor = [UIColor whiteColor];
self.aaChartView.scrollEnabled = NO;
[self.view addSubview:self.aaChartView];
_totalLab = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.aaChartView.frame), KScreenWidth, 20)];
_totalLab.textAlignment = NSTextAlignmentCenter;
[self.view addSubview:_totalLab];
self.photoMgr.pauseAction = false;
// if (self.photoMgr.notificationStatus == WKPhotoNotificationStatusNeed) {
if (self.photoMgr.fetchResult == nil) {
[self loadPhotoData: true];
// self.photoMgr.notificationStatus = WKPhotoNotificationStatusDefualt;
// }
}else{
self.total = self.photoMgr.fetchResult.count;
self.aaChartModel = [self configureTheChartModel:nil];
[self.aaChartView aa_drawChartWithChartModel:self.aaChartModel];
}
}
- (WKClearPhotoManager *)photoMgr {
......@@ -55,7 +63,7 @@
- (void)loadPhotoData: (BOOL)isFirstLoad {
[MBProgressHUD showLoading:@"正在查询,请稍后..." toView:self.view];
[MBProgressHUD showLoading:@"正在统计,请稍后..." toView:self.view];
self.photoMgr.currentIndex = 0;
self.photoMgr.pauseAction = false;
[self.photoMgr loadPhotoWithProcess:^(NSInteger current, NSInteger total) {
......@@ -69,7 +77,7 @@
- (void)loadLocationAssets {
[MBProgressHUD showLoading:@"正在查询,请稍后..." toView:self.view];
[MBProgressHUD showLoading:@"正在统计,请稍后..." toView:self.view];
[self.photoMgr loadLocationPhotoWithProcess:^(NSInteger current, NSInteger total) {
NSLog(@"loadLocationPhotoWithProcess %ld", (long)current);
......@@ -84,14 +92,26 @@
- (AAChartModel *)configureTheChartModel:(NSString *)chartType {
NSInteger f = self.photoMgr.similarLiveArray.count;
NSInteger ff = self.photoMgr.similarArray.count;
NSInteger f = 0;
for (NSArray * subArr in self.photoMgr.similarLiveArray){
f += subArr.count;
}
NSInteger ff = 0;
for (NSArray * subArr in self.photoMgr.similarArray){
ff += subArr.count;
}
NSInteger fff = self.photoMgr.snapshotArray.count;
NSInteger ffff = self.photoMgr.locationArray.count;
NSInteger ffff = 0;
for (NSArray * subArr in self.photoMgr.locationArray){
ffff += subArr.count;
}
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
self.totalLab.text = [NSString stringWithFormat:@"合计:%ld", (long)self.total];
});
NSInteger fffff = self.total -f -ff-fff-ffff;
AASeriesElement *element = AASeriesElement.new
.nameSet(@"语言热度值")
.nameSet(@"数量")
.innerSizeSet(@"20%")//内部圆环半径大小占比
.sizeSet(@200)//尺寸大小
.borderWidthSet(@0)//描边的宽度
......@@ -101,21 +121,21 @@
.enabledSet(false)//禁用点击区块之后出现的半透明遮罩层
))
.dataSet(@[
@[@"IE", [NSNumber numberWithInteger:f]],
@[@"相似动态图片", [NSNumber numberWithInteger:f]],
@{@"sliced": @true,
@"selected": @true,
@"name": @"Chrome",
@"name": @"相似图片",
@"y": [NSNumber numberWithInteger:ff]},
@[@"Safari", [NSNumber numberWithInteger:fff]],
@[@"Opera", [NSNumber numberWithInteger:ffff]],
@[@"Others", [NSNumber numberWithInteger:fffff]],
@[@"屏幕截图", [NSNumber numberWithInteger:fff]],
@[@"同地点图片", [NSNumber numberWithInteger:ffff]],
@[@"其他", [NSNumber numberWithInteger:fffff]],
]);
return AAChartModel.new
.chartTypeSet(AAChartTypePie)
.colorsThemeSet(@[@"#0c9674",@"#7dffc0",@"#ff3333",@"#facd32",@"#ffffa0",@"#EA007B"])
.dataLabelsEnabledSet(true)//是否直接显示扇形图数据
.yAxisTitleSet(@"摄氏度")
.yAxisTitleSet(@"")
.seriesSet(@[element])
;
}
......
......@@ -48,8 +48,10 @@
if (granted) {
NSArray *events = [[WMEventCalendarTool sharedCalendar] checkToStartDate:[NSDate dateWithTimeIntervalSince1970:1514375207] addEndDate: [NSDate date] addModifytitle:nil addCalendarIdentifier: nil];
self.events = events.mutableCopy;
dispatch_async(dispatch_get_main_queue(), ^{
[self.tableView reloadData];
[self.tableView layoutIfNeeded];
});
// for (int i = 0; i < events.count; i++) {
// EKEvent *event = events[i];
// NSLog(@"%@ - %@",event.title,event.eventIdentifier);
......@@ -65,9 +67,10 @@
[[WMEventCalendarTool sharedCalendar] checkCalendarReminderCanUsedCompletion:^(BOOL granted, NSError *error) {
if (granted) {
[[WMEventCalendarTool sharedCalendar] checkCompletedRemindersStartDate:[NSDate dateWithTimeIntervalSince1970:1514375207] addEndDate:[NSDate date] fetchCompleted:^(NSArray<EKReminder *> *reminders) {
dispatch_async(dispatch_get_main_queue(), ^{
self.reminders = reminders.mutableCopy;
dispatch_async(dispatch_get_main_queue(), ^{
[self.tableView reloadData];
[self.tableView layoutIfNeeded];
// // EKReminder *event = reminders[i];
// for (EKReminder *reminder in reminders) {
// NSLog(@"提醒事项 - %@ ",reminder.title);
......
......@@ -86,7 +86,7 @@
- (void)pingActionFired {
self.pingServices = [STDPingServices startPingAddress: @"117.78.49.136" monitorTime: 5 callbackHandler:^(STDPingItem *pingItem, NSArray *pingItems) {
self.pingServices = [STDPingServices startPingAddress: @"https://www.baidu.com" monitorTime: 5 callbackHandler:^(STDPingItem *pingItem, NSArray *pingItems) {
if (pingItem.status != STDPingStatusFinished) {
NSLog(@"-----%@", pingItem.description);
} else {
......@@ -129,12 +129,10 @@
if ([[QBTools formattedFileSize:speed] containsString:@"KB"]) {
networkSpeed = [[QBTools formattedFileSize:speed] floatValue] / 1024;
unit = @"KB";
}
if ([[QBTools formattedFileSize:speed] containsString:@"bytes"]) {
}else if ([[QBTools formattedFileSize:speed] containsString:@"bytes"]) {
networkSpeed = [[QBTools formattedFileSize:speed] floatValue] / 1024 / 1024;
unit = @"bytes";
}
if ([[QBTools formattedFileSize:speed] containsString:@"GB"]) {
}else if ([[QBTools formattedFileSize:speed] containsString:@"GB"]) {
networkSpeed = [[QBTools formattedFileSize:speed] floatValue] * 1024;
unit = @"GB";
} else {
......
//
// QJGIFView.h
// xiaoquguanjia
//
// Created by WuXian on 16/1/18.
// Copyright © 2016年 buybal. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <ImageIO/ImageIO.h>
@interface QJGIFView : UIView{
CGImageSourceRef gif; // 保存gif动画
NSDictionary *gifProperties; // 保存gif动画属性
size_t index;// gif动画播放开始的帧序号
size_t count;// gif动画的总帧数
NSTimer *timer;// 播放gif动画所使用的timer
}
@property (nonatomic,copy) NSData * gifData;
- (id)initWithFrame:(CGRect)frame filePath:(NSString *)_filePath;
- (id)initWithFrame:(CGRect)frame data:(NSData *)_data;
- (void)startWithData:(NSData *)gifData;
- (void)stopGif;
@end
//
// QJGIFView.m
// xiaoquguanjia
//
// Created by WuXian on 16/1/18.
// Copyright © 2016年 buybal. All rights reserved.
//
#import "QJGIFView.h"
#import <QuartzCore/QuartzCore.h>
@implementation QJGIFView
- (id)initWithFrame:(CGRect)frame filePath:(NSString *)_filePath{
self = [super initWithFrame:frame];
if (self) {
gifProperties = [NSDictionary dictionaryWithObject:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:0] forKey:(NSString *)kCGImagePropertyGIFLoopCount]
forKey:(NSString *)kCGImagePropertyGIFDictionary];
gif = CGImageSourceCreateWithURL((CFURLRef)[NSURL fileURLWithPath:_filePath], (CFDictionaryRef)gifProperties);
count =CGImageSourceGetCount(gif);
timer = [NSTimer scheduledTimerWithTimeInterval:0.12 target:self selector:@selector(play) userInfo:nil repeats:YES];
[timer fire];
}
return self;
}
- (id)initWithFrame:(CGRect)frame data:(NSData *)_data{
self = [super initWithFrame:frame];
if (self) {
gifProperties = [NSDictionary dictionaryWithObject:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:0] forKey:(NSString *)kCGImagePropertyGIFLoopCount]
forKey:(NSString *)kCGImagePropertyGIFDictionary];
// gif = CGImageSourceCreateWithURL((CFURLRef)[NSURL fileURLWithPath:_filePath], (CFDictionaryRef)gifProperties);
gif = CGImageSourceCreateWithData((CFDataRef)_data, (CFDictionaryRef)gifProperties);
count =CGImageSourceGetCount(gif);
timer = [NSTimer scheduledTimerWithTimeInterval:0.12 target:self selector:@selector(play) userInfo:nil repeats:YES];
[timer fire];
}
return self;
}
- (void)startWithData:(NSData *)gifData
{
if (gifData == nil) {
gifData = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"jumafu_loading.gif" ofType:nil]];
}
gifProperties = [NSDictionary dictionaryWithObject:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:0] forKey:(NSString *)kCGImagePropertyGIFLoopCount]
forKey:(NSString *)kCGImagePropertyGIFDictionary];
gif = CGImageSourceCreateWithData((CFDataRef)gifData, (CFDictionaryRef)gifProperties);
count =CGImageSourceGetCount(gif);
timer = [NSTimer scheduledTimerWithTimeInterval:0.12 target:self selector:@selector(play) userInfo:nil repeats:YES];
[timer fire];
}
-(void)play
{
index ++;
index = index%count;
CGImageRef ref = CGImageSourceCreateImageAtIndex(gif, index, (CFDictionaryRef)gifProperties);
self.layer.contents = (__bridge id)ref;
CFRelease(ref);
}
-(void)removeFromSuperview
{
NSLog(@"removeFromSuperview");
[timer invalidate];
timer = nil;
[super removeFromSuperview];
}
- (void)dealloc {
NSLog(@"dealloc");
CFRelease(gif);
}
- (void)stopGif
{
[timer invalidate];
timer = nil;
}
- (NSData *)loadDataForType:(NSInteger)type {
NSData *data = nil;
if (type == 0) {
//网络
data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://s14.sinaimg.cn/mw690/005APVsyzy6MFOsVFfv5d&690"]];
}else {
//本地
data = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"run" ofType:@"gif"]];
}
return data;
}
@end
......@@ -7,8 +7,6 @@
//
#define start1 -0.33
//#define urlString @"http://cdn2.ime.sogou.com/4ecd0732b804944f2939ac4aeaff5198/5f2270d9/dl/index/1588947491/sogou_mac_58a.zip"//3M
//#define urlString @"https://ucan.25pp.com/PPAssistant_PP_103.apk"//3M
#import "MeasurNetTools.h"
@interface MeasurNetTools ()
......@@ -67,11 +65,7 @@
-(void)meausurNet
{
NSArray *urlArray = @[@"https://wap.pp.cn/app/dl/fs08/2020/07/29/9/106_d25a9ecceb45514ad2583bb440740704.apk",
@"https://wap.pp.cn/app/dl/fs08/2020/07/15/7/110_b4a157dc5f4aaaedc9351a4acc72d967.apk",
@"https://wap.pp.cn/app/dl/fs08/2020/07/23/4/1_fd63e3d0d7161c0671e385b8ac7d5967.apk",
@"https://ucan.25pp.com/PPAssistant_PP_103.apk",
@"https://wap.pp.cn/app/dl/fs08/2020/07/28/9/123_88a8613b9cdacc254f028e9041339de2.apk"];
NSArray *urlArray = @[@"http://speedtest1.tj.chinamobile.com:8080/speedtest/random4000x4000.jpg", @"http://speedtest1.tj.chinamobile.com:8080/speedtest/random4000x4000.jpg", @"http://speedtest1.he.chinamobile.com:8080/speedtest/random4000x4000.jpg", @"http://speedtest.bmcc.com.cn:8080/speedtest/random4000x4000.jpg", @"http://bj3.unicomtest.com:8080/speedtest/random4000x4000.jpg"];
int value = arc4random() % urlArray.count;
......@@ -120,8 +114,6 @@
_connect = nil;
}
#pragma mark - urlconnect delegate methods
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
if (self.faildBlock) {
......@@ -137,7 +129,17 @@
- (void)connectionDidFinishLoading:(NSURLConnection *)connection{
NSLog(@"connectionDidFinishLoading");
[self finishMeasure];
// [self finishMeasure];
NSArray *urlArray = @[@"http://speedtest1.tj.chinamobile.com:8080/speedtest/random4000x4000.jpg", @"http://speedtest1.tj.chinamobile.com:8080/speedtest/random4000x4000.jpg", @"http://speedtest1.he.chinamobile.com:8080/speedtest/random4000x4000.jpg", @"http://speedtest.bmcc.com.cn:8080/speedtest/random4000x4000.jpg", @"http://bj3.unicomtest.com:8080/speedtest/random4000x4000.jpg"];
int value = arc4random() % urlArray.count;
NSString *urlString = urlArray[value];
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
connection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES];
}
......
......@@ -66,19 +66,19 @@
#define ICLocalized(name) [NSString stringWithFormat:@"%@",NSLocalizedString(name, nil)]
// 正常打印(包括方法名和代码所在的行数)
#ifdef DEBUG
#define ServerReport @"http://reporttest.zhangxinhulian.com"
#define ServerHost @"https://feedapitest.zhangxinhulian.com" // 服务端接口地址
#define NSLog(format, ...) printf("\n[%s] %s [%d行] %s\n", __TIME__, __FUNCTION__, __LINE__, [[NSString stringWithFormat:format, ## __VA_ARGS__] UTF8String]);
#else
//#ifdef DEBUG
//
//#define ServerReport @"http://reporttest.zhangxinhulian.com"
//#define ServerHost @"https://feedapitest.zhangxinhulian.com" // 服务端接口地址
//
//#define NSLog(format, ...) printf("\n[%s] %s [%d行] %s\n", __TIME__, __FUNCTION__, __LINE__, [[NSString stringWithFormat:format, ## __VA_ARGS__] UTF8String]);
//#else
#define ServerReport @"http://report.zhangxinhulian.com"
#define ServerHost @"https://feedapi.zhangxinhulian.com"
#define NSLog(format, ...) nil
#endif
//#define NSLog(format, ...) nil
//#endif
typedef enum: NSUInteger {
SimilayNormalPhoto = 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment