Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
SuperCleaner
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
SuperCleaner
Commits
a7323cee
Commit
a7323cee
authored
Aug 08, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network
parent
f893e762
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
127 additions
and
408 deletions
+127
-408
project.pbxproj
Pods/Pods.xcodeproj/project.pbxproj
+105
-105
Pods-superCleaner-resources-Debug-input-files.xcfilelist
.../Pods-superCleaner-resources-Debug-input-files.xcfilelist
+0
-2
Pods-superCleaner-resources-Debug-output-files.xcfilelist
...Pods-superCleaner-resources-Debug-output-files.xcfilelist
+0
-1
Pods-superCleaner-resources-Release-input-files.xcfilelist
...ods-superCleaner-resources-Release-input-files.xcfilelist
+0
-2
Pods-superCleaner-resources-Release-output-files.xcfilelist
...ds-superCleaner-resources-Release-output-files.xcfilelist
+0
-1
Pods-superCleaner-resources.sh
...rt Files/Pods-superCleaner/Pods-superCleaner-resources.sh
+0
-129
project.pbxproj
superCleaner.xcodeproj/project.pbxproj
+0
-6
ICWebViewController.m
superCleaner/Base/ICWebViewController.m
+0
-3
ICHomeViewController.m
superCleaner/Home/Controller/ICHomeViewController.m
+6
-12
ICNetworkSpeedViewController.m
superCleaner/Other/ICNetworkSpeedViewController.m
+3
-5
QJGIFView.h
superCleaner/ThirdSDK/HUD/QJGIFView.h
+0
-29
QJGIFView.m
superCleaner/ThirdSDK/HUD/QJGIFView.m
+0
-102
MeasurNetTools.m
superCleaner/ThirdSDK/NetTools/MeasurNetTools.m
+13
-11
No files found.
Pods/Pods.xcodeproj/project.pbxproj
View file @
a7323cee
This diff is collapsed.
Click to expand it.
Pods/Target Support Files/Pods-superCleaner/Pods-superCleaner-resources-Debug-input-files.xcfilelist
deleted
100644 → 0
View file @
f893e762
${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
Pods/Target Support Files/Pods-superCleaner/Pods-superCleaner-resources-Debug-output-files.xcfilelist
deleted
100644 → 0
View file @
f893e762
${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/BUAdSDK.bundle
\ No newline at end of file
Pods/Target Support Files/Pods-superCleaner/Pods-superCleaner-resources-Release-input-files.xcfilelist
deleted
100644 → 0
View file @
f893e762
${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
Pods/Target Support Files/Pods-superCleaner/Pods-superCleaner-resources-Release-output-files.xcfilelist
deleted
100644 → 0
View file @
f893e762
${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/BUAdSDK.bundle
\ No newline at end of file
Pods/Target Support Files/Pods-superCleaner/Pods-superCleaner-resources.sh
deleted
100755 → 0
View file @
f893e762
#!/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
superCleaner.xcodeproj/project.pbxproj
View file @
a7323cee
...
...
@@ -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 */
;
};
...
...
@@ -355,9 +354,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>"
;
};
...
...
@@ -857,8 +854,6 @@
A94C0DCD24DA7044007F577D
/* MBProgressHUD.bundle */
,
A94C0DC924DA7044007F577D
/* MBProgressHUD+MJ.h */
,
A94C0DCB24DA7044007F577D
/* MBProgressHUD+MJ.m */
,
A94C0DCC24DA7044007F577D
/* QJGIFView.h */
,
A94C0DCA24DA7044007F577D
/* QJGIFView.m */
,
);
path
=
HUD
;
sourceTree
=
"<group>"
;
...
...
@@ -1142,7 +1137,6 @@
A94C0E4B24DA7044007F577D
/* WKPhotoInfoItem.m in Sources */
,
A94C0E6D24DA7044007F577D
/* ICContactsTool.m in Sources */
,
A94C0E1D24DA7044007F577D
/* ICUserManager.m in Sources */
,
A94C0E6724DA7044007F577D
/* QJGIFView.m in Sources */
,
A94C0E0B24DA7044007F577D
/* ICWebViewController.m in Sources */
,
A94C0E1C24DA7044007F577D
/* WMEventCalendarTool.m in Sources */
,
A94C0E3224DA7044007F577D
/* ICBatteryCareSubTextViewCell.m in Sources */
,
...
...
superCleaner/Base/ICWebViewController.m
View file @
a7323cee
...
...
@@ -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
];
}
...
...
superCleaner/Home/Controller/ICHomeViewController.m
View file @
a7323cee
...
...
@@ -27,12 +27,6 @@
@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
;
...
...
@@ -347,14 +341,14 @@
break
;
case
4
:
{
if
([
ICUserManager
shared
].
isMember
)
{
//
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
];
}
//
}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
:
...
...
superCleaner/Other/ICNetworkSpeedViewController.m
View file @
a7323cee
...
...
@@ -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
{
...
...
superCleaner/ThirdSDK/HUD/QJGIFView.h
deleted
100644 → 0
View file @
f893e762
//
// 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
superCleaner/ThirdSDK/HUD/QJGIFView.m
deleted
100644 → 0
View file @
f893e762
//
// 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
superCleaner/ThirdSDK/NetTools/MeasurNetTools.m
View file @
a7323cee
...
...
@@ -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
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment