From 9f74aef971e8b2200f9e455f3f0cc1066d1f5ff4 Mon Sep 17 00:00:00 2001
From: liyuhua <15626451870@163.com>
Date: Mon, 9 Oct 2023 10:27:53 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
YuMi/Appdelegate/AppDelegate+ThirdConfig.m | 8 +++++---
YuMi/Info.plist | 2 ++
YuMi/Tools/SDPhotoBrowser/SDPhotoBrowser.m | 16 +++++++++-------
YuMi/YuMi.entitlements | 2 ++
YuMi/YuMiRelease.entitlements | 2 ++
5 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/YuMi/Appdelegate/AppDelegate+ThirdConfig.m b/YuMi/Appdelegate/AppDelegate+ThirdConfig.m
index 1a947594..c4b2153a 100644
--- a/YuMi/Appdelegate/AppDelegate+ThirdConfig.m
+++ b/YuMi/Appdelegate/AppDelegate+ThirdConfig.m
@@ -47,19 +47,21 @@ UIKIT_EXTERN NSString * adImageName;
- (void) configBugly {
BuglyConfig *config = [[BuglyConfig alloc] init];
- config.channel = @"App Enterprise";
- config.blockMonitorEnable = YES; // 卡顿监控开关,默认关闭
+
config.blockMonitorTimeout = 5;
config.unexpectedTerminatingDetectionEnable = YES; // 非正常退出事件记录开关,默认关闭
#ifdef DEBUG
config.debugMode = YES; // debug 模式下,开启调试模式
+ config.channel = [YYUtility getAppSource];; config.blockMonitorEnable = YES; // 卡顿监控开关,默认关闭
config.reportLogLevel = BuglyLogLevelVerbose; // 设置打印日志级别
[Bugly startWithAppId:@"86cf73b8d5" config:config];
#else
config.debugMode = NO; // release 模式下,关闭调试模式
+ config.channel = [YYUtility getAppSource];; config.blockMonitorEnable = NO; // 卡顿监控开关,默认关闭
config.reportLogLevel = BuglyLogLevelWarn; // 设置自定义日志上报的级别,默认不上报自定义日志
- [Bugly startWithAppId:@"0fcba36f9a" config:config];
+ NSString *buylyKey = isEnterprise == NO ? @"5334684d86" : @"d65df59a68";
+ [Bugly startWithAppId:buylyKey config:config];
#endif
}
diff --git a/YuMi/Info.plist b/YuMi/Info.plist
index 57342c37..fdd06df6 100644
--- a/YuMi/Info.plist
+++ b/YuMi/Info.plist
@@ -96,6 +96,8 @@
NSCameraUsageDescription
“Piko”需要您的同意,才可以访问进行拍照并上传您的图片,然后展示在您的个人主页上,便于他人查看
+ NSLocationWhenInUseUsageDescription
+ “Piko”需要您的同意,才可以进行定位服务,推荐附近好友
NSLocalNetworkUsageDescription
此App将可发现和连接到您所用网络上的设备。
NSMicrophoneUsageDescription
diff --git a/YuMi/Tools/SDPhotoBrowser/SDPhotoBrowser.m b/YuMi/Tools/SDPhotoBrowser/SDPhotoBrowser.m
index 88efb830..a6de9401 100755
--- a/YuMi/Tools/SDPhotoBrowser/SDPhotoBrowser.m
+++ b/YuMi/Tools/SDPhotoBrowser/SDPhotoBrowser.m
@@ -372,13 +372,15 @@
CGFloat margin = 150;
CGFloat x = scrollView.contentOffset.x;
if ((x - index * self.bounds.size.width) > margin || (x - index * self.bounds.size.width) < - margin) {
- SDBrowserImageView *imageView = _scrollView.subviews[index];
- if (imageView.isScaled) {
- [UIView animateWithDuration:0.5 animations:^{
- imageView.transform = CGAffineTransformIdentity;
- } completion:^(BOOL finished) {
- [imageView eliminateScale];
- }];
+ if(index < _scrollView.subviews.count){
+ SDBrowserImageView *imageView = _scrollView.subviews[index];
+ if (imageView.isScaled) {
+ [UIView animateWithDuration:0.5 animations:^{
+ imageView.transform = CGAffineTransformIdentity;
+ } completion:^(BOOL finished) {
+ [imageView eliminateScale];
+ }];
+ }
}
}
diff --git a/YuMi/YuMi.entitlements b/YuMi/YuMi.entitlements
index a812db50..80b5221d 100644
--- a/YuMi/YuMi.entitlements
+++ b/YuMi/YuMi.entitlements
@@ -2,6 +2,8 @@
+ aps-environment
+ development
com.apple.developer.applesignin
Default
diff --git a/YuMi/YuMiRelease.entitlements b/YuMi/YuMiRelease.entitlements
index a812db50..80b5221d 100644
--- a/YuMi/YuMiRelease.entitlements
+++ b/YuMi/YuMiRelease.entitlements
@@ -2,6 +2,8 @@
+ aps-environment
+ development
com.apple.developer.applesignin
Default