瀏覽代碼

更新WadeMobile,适配Xcode12

liuql6 4 年之前
父節點
當前提交
339f93e5dc
共有 60 個文件被更改,包括 369 次插入211 次删除
  1. 3 3
      IPUCommon/IPUMobile.framework/Headers/IPUFlipperView.h
  2. 59 6
      IPUCommon/IPUMobile.framework/Headers/IPUMobileDelegate.h
  3. 1 1
      IPUCommon/IPUMobile.framework/Headers/IPUMobileWebView.h
  4. 2 3
      IPUCommon/IPUMobile.framework/Headers/IPUNetMainViewController.h
  5. 0 2
      IPUCommon/IPUMobile.framework/Headers/IPUResVersionManager.h
  6. 0 1
      IPUCommon/IPUMobile.framework/Headers/IPUTemplateViewController.h
  7. 1 1
      IPUCommon/IPUMobile.framework/Headers/IPUTemplateWebView.h
  8. 2 3
      IPUCommon/IPUMobile.framework/Headers/IPUViewController.h
  9. 4 2
      IPUCommon/IPUMobile.framework/Headers/IPUWebView.h
  10. 二進制
      IPUCommon/IPUMobile.framework/IPUMobile
  11. 二進制
      IPUCommon/IPUMobile.framework/Info.plist
  12. 2 2
      IPUCommon/IPUMobileFunc.framework/Headers/IPUMobileUIPlugin.h
  13. 13 4
      IPUCommon/IPUMobileFunc.framework/Headers/IPUScreenCapture.h
  14. 二進制
      IPUCommon/IPUMobileFunc.framework/IPUMobileFunc
  15. 二進制
      IPUCommon/IPUMobileFunc.framework/Info.plist
  16. 二進制
      IPUCommon/IPUMobileUI.framework/IPUMobileUI
  17. 二進制
      IPUCommon/IPUMobileUI.framework/Info.plist
  18. 二進制
      IPUMobileFunc/IPUMobileFunc.xcodeproj/project.xcworkspace/xcuserdata/benny.xcuserdatad/UserInterfaceState.xcuserstate
  19. 1 1
      IPUMobileFunc/IPUMobileFunc.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  20. 5 6
      IPUMobileFunc/IPUMobileFunc/IPUMobileUIPlugin.m
  21. 199 43
      IPUMobileFunc/IPUMobileFunc/IPUScreenCapture.m
  22. 1 1
      SuperMenu/ReactNative/node_modules/react-native-camera/ios/RNCamera.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  23. 1 1
      SuperMenu/ReactNative/node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  24. 2 2
      SuperMenu/ReactNative/node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  25. 1 1
      SuperMenu/ReactNative/node_modules/react-native-webview/ios/RNCWebView.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  26. 2 2
      SuperMenu/ReactNative/node_modules/react-native/Libraries/ART/ART.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  27. 1 1
      SuperMenu/ReactNative/node_modules/react-native/Libraries/CameraRoll/RCTCameraRoll.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  28. 2 2
      SuperMenu/ReactNative/node_modules/react-native/Libraries/Image/RCTImage.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  29. 2 2
      SuperMenu/ReactNative/node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  30. 2 2
      SuperMenu/ReactNative/node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  31. 2 2
      SuperMenu/ReactNative/node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  32. 2 2
      SuperMenu/ReactNative/node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  33. 2 2
      SuperMenu/ReactNative/node_modules/react-native/Libraries/Text/RCTText.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  34. 4 4
      SuperMenu/ReactNative/node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  35. 16 16
      SuperMenu/ReactNative/node_modules/react-native/React/React.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  36. 1 0
      SuperMenu/Res/config/mobile-config.xml
  37. 1 1
      SuperMenu/SuperMenu.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  38. 3 0
      SuperMenu/SuperMenu.xcworkspace/contents.xcworkspacedata
  39. 二進制
      SuperMenu/SuperMenu.xcworkspace/xcuserdata/benny.xcuserdatad/UserInterfaceState.xcuserstate
  40. 0 16
      SuperMenu/SuperMenu.xcworkspace/xcuserdata/benny.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  41. 3 3
      SuperMenu/SuperMenu/ViewController.mm
  42. 1 1
      display-center/ReactNative/node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  43. 2 2
      display-center/ReactNative/node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  44. 1 1
      display-center/ReactNative/node_modules/react-native-webview/ios/RNCWebView.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  45. 1 1
      display-center/ReactNative/node_modules/react-native/Libraries/ART/ART.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  46. 1 1
      display-center/ReactNative/node_modules/react-native/Libraries/Image/RCTImage.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  47. 1 1
      display-center/ReactNative/node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  48. 1 1
      display-center/ReactNative/node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  49. 1 1
      display-center/ReactNative/node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  50. 1 1
      display-center/ReactNative/node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  51. 1 1
      display-center/ReactNative/node_modules/react-native/Libraries/Text/RCTText.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  52. 2 2
      display-center/ReactNative/node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  53. 9 9
      display-center/ReactNative/node_modules/react-native/React/React.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  54. 2 2
      display-center/Res/config/mobile-config.xml
  55. 1 1
      display-center/display-center.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist
  56. 二進制
      display-center/display-center.xcworkspace/xcuserdata/benny.xcuserdatad/UserInterfaceState.xcuserstate
  57. 0 32
      display-center/display-center.xcworkspace/xcuserdata/benny.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  58. 3 6
      display-center/display-center/IPUFaceCheckPlugin.m
  59. 1 9
      display-center/display-center/IPUViewController+IPUOverrideJSAlert.m
  60. 0 1
      display-center/display-center/ViewController.m

+ 3 - 3
IPUCommon/IPUMobile.framework/Headers/IPUFlipperView.h

@ -8,6 +8,8 @@
8 8
9 9
#import <UIKit/UIKit.h>
10 10
11
#import "IPUMobileDelegate.h"
12
11 13
NS_ASSUME_NONNULL_BEGIN
12 14
13 15
typedef NS_OPTIONS(NSUInteger, IPUAnimationType) {
@ -17,8 +19,6 @@ typedef NS_OPTIONS(NSUInteger, IPUAnimationType) {
17 19
    IPUAnimationFade                 = 1 << 2
18 20
};
19 21
20
@class IPUMobileWebView;
21
22 22
@interface IPUFlipperView : UIView
23 23
24 24
/**
@ -47,7 +47,7 @@ typedef NS_OPTIONS(NSUInteger, IPUAnimationType) {
47 47
48 48
 @return <#return value description#>
49 49
 */
50
- (IPUMobileWebView *)getFormerView;
50
- (IPUCommonWebView)getFormerView;
51 51
52 52
/**
53 53
 显示下一级视图

+ 59 - 6
IPUCommon/IPUMobile.framework/Headers/IPUMobileDelegate.h

@ -11,20 +11,24 @@
11 11
12 12
@class IPUMobileWebView;
13 13
14
@protocol IPUCallbackProtocol;
14
typedef void(^WebViewLoadCompletion)(void);
15
16
@protocol IPUCallbackProtocol, IPUWebViewProtocol;
17
18
typedef id<IPUCallbackProtocol, IPUWebViewProtocol> IPUCommonWebView;
15 19
16 20
@protocol IPUMobileDelegate <NSObject>
17 21
18 22
/* 获取web视图的代理监听 */
19 23
@optional		
20
- (id <UIWebViewDelegate>)getWebViewDelegate;
24
- (id)getWebViewDelegate;
21 25
22 26
/* 获取当前web视图 */
23 27
@optional
24
- (IPUMobileWebView *)getCurrentWebView IPU_API_DEPRECATED("use '- (id <IPUCallbackProtocol>)getCurrentView' instead");
28
- (IPUMobileWebView *)getCurrentWebView IPU_API_DEPRECATED("use '- (IPUCommonWebView)getCurrentView' instead");
25 29
26 30
@optional
27
- (id <IPUCallbackProtocol>)getCurrentView;
31
- (IPUCommonWebView)getCurrentView;
28 32
29 33
/* 获取当前的视图集合对象 */
30 34
@optional
@ -32,11 +36,11 @@
32 36
33 37
/* 创建一个新的web视图 */
34 38
@optional
35
- (IPUMobileWebView *)createNewWebView;
39
- (IPUCommonWebView)createNewWebView;
36 40
37 41
/* 设置WebView对象的样式 */
38 42
@optional
39
- (void)setUIWebViewStyle:(IPUMobileWebView *)webView;
43
- (void)setUIWebViewStyle:(IPUCommonWebView)webView;
40 44
41 45
@optional
42 46
- (UIViewController *)getViewController;
@ -56,3 +60,52 @@
56 60
- (void)error:(NSString *)message callbackID:(NSString *)callbackID;
57 61
58 62
@end
63
64
@protocol IPUWebViewProtocol <NSObject>
65
66
@optional
67
@property (nonatomic, strong) NSString *pageAction;
68
69
@property (nonatomic, assign) BOOL scalesPageToFit;
70
71
@property (nonatomic, weak) id delegate;
72
73
@property (nonatomic, assign) CGRect frame;
74
75
@property (nonatomic, assign) CGRect bounds;
76
77
@property (nonatomic, strong) CALayer *layer;
78
79
@property (nonatomic, strong) UIScrollView *scrollView;
80
81
@property (nonatomic, copy) WebViewLoadCompletion loadCompletion;
82
83
@property (nonatomic, strong) UIView *superview;
84
85
@property (nonatomic, assign) BOOL translatesAutoresizingMaskIntoConstraints;
86
87
- (id)initWithFrame:(CGRect)frame;
88
89
- (void)loadUrl:(NSString *)urlString;
90
91
- (void)loadLocalUrl:(NSString *)filePath;
92
93
- (void)setBaseUrl:(NSString *)basePath;
94
95
- (void)loadRequest:(NSURLRequest *)request;
96
97
- (void)loadTemplate:(NSString *) filePath data:(IPUDataMap *)data;
98
99
- (NSString *)getTemplate:(NSString *) filePath data:(IPUDataMap *) data;
100
101
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script;
102
103
- (BOOL)canGoBack;
104
105
- (void)goBack;
106
107
- (void)free;
108
109
- (void)reload;
110
111
@end

+ 1 - 1
IPUCommon/IPUMobile.framework/Headers/IPUMobileWebView.h

@ -14,7 +14,7 @@ typedef void(^WebViewLoadCompletion)(void);
14 14
15 15
@class IPUPlugin;
16 16
17
@interface IPUMobileWebView : UIWebView <IPUCallbackProtocol>
17
@interface IPUMobileWebView : UIWebView <IPUWebViewProtocol, IPUCallbackProtocol>
18 18
19 19
@property (nonatomic, copy) NSString *pageAction; // 页面名称
20 20

+ 2 - 3
IPUCommon/IPUMobile.framework/Headers/IPUNetMainViewController.h

@ -7,8 +7,7 @@
7 7
//
8 8
9 9
#import "IPUViewController.h"
10
11
@class IPUMobileWebView;
10
#import "IPUMobileDelegate.h"
12 11
13 12
@protocol IPUCurrentViewDelegate;
14 13
@ -18,7 +17,7 @@
18 17
19 18
@property(nonatomic, weak) UIView *contentView;
20 19
21
@property(nonatomic, weak) IPUMobileWebView *webView;
20
@property(nonatomic, weak) IPUCommonWebView webView;
22 21
23 22
- (UIColor *)topViewBackgroundColor;
24 23

+ 0 - 2
IPUCommon/IPUMobile.framework/Headers/IPUResVersionManager.h

@ -87,6 +87,4 @@
87 87
/// @param dict <#dict description#>
88 88
+ (void)updateCachedDifferRes:(NSDictionary *)dict;
89 89
90
+ (void)deleteWillUpdateFile:(NSString *)filePath;
91
92 90
@end

+ 0 - 1
IPUCommon/IPUMobile.framework/Headers/IPUTemplateViewController.h

@ -8,7 +8,6 @@
8 8
9 9
#import "IPUViewController.h"
10 10
11
#import "IPUTemplateWebView.h"
12 11
#import "IPUFlipperView.h"
13 12
14 13
NS_ASSUME_NONNULL_BEGIN

+ 1 - 1
IPUCommon/IPUMobile.framework/Headers/IPUTemplateWebView.h

@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
12 12
13 13
@class IPUDataMap;
14 14
15
@interface IPUTemplateWebView : IPUMobileWebView
15
@interface IPUTemplateWebView : IPUMobileWebView <IPUWebViewProtocol, IPUCallbackProtocol>
16 16
{
17 17
    NSURL *baseUrl;
18 18
}

+ 2 - 3
IPUCommon/IPUMobile.framework/Headers/IPUViewController.h

@ -9,7 +9,6 @@
9 9
#import <UIKit/UIKit.h>
10 10
11 11
#import <UIKit/UIKit.h>
12
#import "IPUMobileWebView.h"
13 12
#import "IPUPluginManager.h"
14 13
#import "IPUMobileConfig.h"
15 14
#import "IPUConstant.h"
@ -32,9 +31,9 @@ WKUIDelegate,
32 31
WKNavigationDelegate
33 32
>
34 33
{
35
    IPUMobileWebView *mobileWebView;
34
   IPUCommonWebView mobileWebView;
36 35
}
37
@property(nonatomic,strong)IPUProgressHUD *ipuHud;
36
@property (nonatomic, strong) IPUProgressHUD *ipuHud;
38 37
/**
39 38
 获取视图窗体大小
40 39

+ 4 - 2
IPUCommon/IPUMobile.framework/Headers/IPUWebView.h

@ -8,11 +8,11 @@
8 8
9 9
#import <WebKit/WebKit.h>
10 10
11
#import "IPUMobileWebView.h"
11
#import "IPUMobileDelegate.h"
12 12
13 13
@class IPUDataMap;
14 14
15
@interface IPUWebView : WKWebView
15
@interface IPUWebView : WKWebView <IPUWebViewProtocol, IPUCallbackProtocol>
16 16
{
17 17
    NSURL *baseUrl;
18 18
}
@ -37,4 +37,6 @@
37 37
38 38
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script;
39 39
40
- (void)free;
41
40 42
@end

二進制
IPUCommon/IPUMobile.framework/IPUMobile


二進制
IPUCommon/IPUMobile.framework/Info.plist


+ 2 - 2
IPUCommon/IPUMobileFunc.framework/Headers/IPUMobileUIPlugin.h

@ -56,13 +56,13 @@
56 56
57 57
- (void)openTemplate:(NSString *)pageAction
58 58
            withData:(IPUDataMap *)data
59
              isCurr:(BOOL)isCurr;
59
              isCurr:(NSNumber *)isCurr;
60 60
61 61
- (void)openPage:(NSArray *)param;
62 62
63 63
- (void)openPage:(NSString *)pageAction
64 64
            data:(NSString *)dataParam
65
      isCurrView:(BOOL)isCurr;
65
      isCurrView:(NSNumber *)isCurr;
66 66
67 67
- (void)loadPage:(NSArray *)param;
68 68

+ 13 - 4
IPUCommon/IPUMobileFunc.framework/Headers/IPUScreenCapture.h

@ -14,21 +14,30 @@
14 14
 全屏截屏
15 15
 参数1:0-文件路径,1-base64编码
16 16
 */
17
-(void)fullScreenCapture:(NSArray *)params;
17
- (void)fullScreenCapture:(NSArray *)params;
18
18 19
/*
19 20
 无状态栏截屏
20 21
 参数1:0-文件路径,1-base64编码
21 22
 */
22
-(void)noStatusScreenCapture:(NSArray *)params;
23
- (void)noStatusScreenCapture:(NSArray *)params;
24
23 25
/*
24 26
 手动截屏
25 27
 参数1:0-文件路径,1-base64编码
26 28
 */
27
-(void)handMovementScreenCapture:(NSArray *)params;
29
- (void)handMovementScreenCapture:(NSArray *)params;
30
28 31
/*
29 32
 webview长图截屏
30 33
 参数1:0-文件路径,1-base64编码
31 34
 */
32
-(void)webviewScreenCapture:(NSArray *)params;
35
- (void)webviewScreenCapture:(NSArray *)params;
36
37
- (UIImage *)screenFullShot;
38
39
- (UIImage *)screenNoStatusShot;
40
41
- (UIImage *)screenWebviewShot;
33 42
34 43
@end

二進制
IPUCommon/IPUMobileFunc.framework/IPUMobileFunc


二進制
IPUCommon/IPUMobileFunc.framework/Info.plist


二進制
IPUCommon/IPUMobileUI.framework/IPUMobileUI


二進制
IPUCommon/IPUMobileUI.framework/Info.plist


二進制
IPUMobileFunc/IPUMobileFunc.xcodeproj/project.xcworkspace/xcuserdata/benny.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 1
IPUMobileFunc/IPUMobileFunc.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -12,7 +12,7 @@
12 12
		<key>IPUMobileFunc.xcscheme_^#shared#^_</key>
13 13
		<dict>
14 14
			<key>orderHint</key>
15
			<integer>7</integer>
15
			<integer>8</integer>
16 16
		</dict>
17 17
		<key>IPUMobileFuncResource.xcscheme</key>
18 18
		<dict>

+ 5 - 6
IPUMobileFunc/IPUMobileFunc/IPUMobileUIPlugin.m

@ -257,13 +257,13 @@
257 257
    IPUFlipperView *flipperView = [self.mobileDelegate getFlipperView];
258 258
    // 是否需要新开View
259 259
    if (isCurr.boolValue) {
260
        IPUTemplateWebView *tWebview = (IPUTemplateWebView *)[flipperView getCurrView];
260
        IPUCommonWebView tWebview = (IPUCommonWebView)[flipperView getCurrView];
261 261
        tWebview.pageAction = pageAction;
262 262
        [tWebview loadTemplate:templatePath data:data];
263 263
    } else {
264
        IPUTemplateWebView *tWebview = (IPUTemplateWebView *)[flipperView getNextView];
264
        IPUCommonWebView tWebview = (IPUCommonWebView)[flipperView getNextView];
265 265
        if (!tWebview) {
266
            tWebview = (IPUTemplateWebView*)[self.mobileDelegate createNewWebView];
266
            tWebview = [self.mobileDelegate createNewWebView];
267 267
            tWebview.delegate = self.mobileDelegate;
268 268
            [self.mobileDelegate setUIWebViewStyle:tWebview];
269 269
            [flipperView addView:tWebview];
@ -295,11 +295,10 @@
295 295
}
296 296
297 297
- (NSString *)getTemplateHtml:(NSString *)pageAction widthData:(IPUDataMap *)data {
298
    IPUFlipperView *flipperView = [self.mobileDelegate getFlipperView];
299
    IPUTemplateWebView *tWebview = (IPUTemplateWebView *)[flipperView getCurrView];
298
    IPUCommonWebView webView = [self.mobileDelegate getCurrentView];
300 299
    
301 300
    NSString *templatePath = [IPUServerPage getTemplate:pageAction];
302
    return [tWebview getTemplate:templatePath data:data];
301
    return [webView getTemplate:templatePath data:data];
303 302
}
304 303
305 304
/**

+ 199 - 43
IPUMobileFunc/IPUMobileFunc/IPUScreenCapture.m

@ -8,16 +8,27 @@
8 8
9 9
#import "IPUScreenCapture.h"
10 10
11
#import <Photos/Photos.h>
12
13
typedef void(^IPUCommonCompletion)(BOOL success);
14
11 15
@interface IPUScreenCapture ()
12 16
{
13 17
    BOOL base64;
18
    BOOL isSaveToPhoto;
19
    IPUCommonCompletion completion;
14 20
}
15 21
16 22
@property (nonatomic, weak) UIView *clipLeftView;
23
17 24
@property (nonatomic, weak) UIView *clipRightView;
25
18 26
@property (nonatomic, weak) UIView *clipTopView;
27
19 28
@property (nonatomic, weak) UIView *clipBottomView;
29
20 30
@property (nonatomic, weak) UIView *clipView;
31
21 32
@property (nonatomic, assign) CGPoint startPoint;
22 33
23 34
@end
@ -35,16 +46,30 @@
35 46
        base64 = NO;
36 47
    }
37 48
    
49
    if (params.count > 1 && params[1] != [NSNull null]) {
50
        if ([params[1] integerValue] == 0) {
51
            isSaveToPhoto = NO;
52
        } else {
53
            isSaveToPhoto = YES;
54
        }
55
    } else {
56
        isSaveToPhoto = NO;
57
    }
58
    
38 59
    UIImage *image = [self screenFullShot];
39
    NSString *path = [IPUUtility createDirInDocument:@"images"
40
                                        withFileName:nil
41
                                   withPathExtension:@"jpg"];
42
    NSData * data = UIImageJPEGRepresentation(image, 1.0);
43
    [data writeToFile:path atomically:YES];
44
    if (base64) {
45
        [self callback:[self base64EncodingWithData:data]];
60
    if (isSaveToPhoto) {
61
        __weak typeof(self) weakSelf = self;
62
        [self requestPhotoLibraryAuthorization:^(BOOL success) {
63
            __strong typeof(self) strongSelf = weakSelf;
64
            if (!success) {
65
                [strongSelf callback:@""];
66
                return;
67
            }
68
            
69
            [strongSelf callbackResultImage:image];
70
        }];
46 71
    } else {
47
        [self callback:path];
72
        [self callbackResultImage:image];
48 73
    }
49 74
}
50 75
@ -58,14 +83,31 @@
58 83
    } else {
59 84
        base64 = NO;
60 85
    }
86
    
87
    if (params.count > 1 && params[1] != [NSNull null]) {
88
        if ([params[1] integerValue] == 0) {
89
            isSaveToPhoto = NO;
90
        } else {
91
            isSaveToPhoto = YES;
92
        }
93
    } else {
94
        isSaveToPhoto = NO;
95
    }
96
    
61 97
    UIImage *image = [self screenNoStatusShot];
62
    NSString* path = [IPUUtility createDirInDocument:@"images" withFileName:nil withPathExtension:@"jpg"];
63
    NSData * data = UIImageJPEGRepresentation(image, 1.0);
64
    [data writeToFile:path atomically:YES];
65
    if (base64) {
66
        [self callback:[self base64EncodingWithData:data]];
98
    if (isSaveToPhoto) {
99
        __weak typeof(self) weakSelf = self;
100
        [self requestPhotoLibraryAuthorization:^(BOOL success) {
101
            __strong typeof(self) strongSelf = weakSelf;
102
            if (!success) {
103
                [strongSelf callback:@""];
104
                return;
105
            }
106
            
107
            [strongSelf callbackResultImage:image];
108
        }];
67 109
    } else {
68
        [self callback:path];
110
        [self callbackResultImage:image];
69 111
    }
70 112
}
71 113
@ -79,6 +121,17 @@
79 121
    } else {
80 122
        base64 = NO;
81 123
    }
124
    
125
    if (params.count > 1 && params[1] != [NSNull null]) {
126
        if ([params[1] integerValue] == 0) {
127
            isSaveToPhoto = NO;
128
        } else {
129
            isSaveToPhoto = YES;
130
        }
131
    } else {
132
        isSaveToPhoto = NO;
133
    }
134
    
82 135
    [self addPanGesture];
83 136
}
84 137
@ -92,16 +145,32 @@
92 145
    } else {
93 146
        base64 = NO;
94 147
    }
148
    
149
    if (params.count > 1 && params[1] != [NSNull null]) {
150
        if ([params[1] integerValue] == 0) {
151
            isSaveToPhoto = NO;
152
        } else {
153
            isSaveToPhoto = YES;
154
        }
155
    } else {
156
        isSaveToPhoto = NO;
157
    }
158
    
95 159
    UIImage *image = [self screenWebviewShot];
96
    NSString* path = [IPUUtility createDirInDocument:@"images"
97
                                        withFileName:nil
98
                                   withPathExtension:@"jpg"];
99
    NSData * data = UIImageJPEGRepresentation(image, 1.0);
100
    [data writeToFile:path atomically:YES];
101
    if (base64) {
102
        [self callback:[self base64EncodingWithData:data]];
160
    
161
    if (isSaveToPhoto) {
162
        __weak typeof(self) weakSelf = self;
163
        [self requestPhotoLibraryAuthorization:^(BOOL success) {
164
            __strong typeof(self) strongSelf = weakSelf;
165
            if (!success) {
166
                [strongSelf callback:@""];
167
                return;
168
            }
169
            
170
            [strongSelf callbackResultImage:image];
171
        }];
103 172
    } else {
104
        [self callback:path];
173
        [self callbackResultImage:image];
105 174
    }
106 175
}
107 176
@ -117,7 +186,7 @@
117 186
}
118 187
119 188
- (UIImage *)screenNoStatusShot {
120
    IPUMobileWebView *webview = [self getWebView];
189
    UIView *webview = (UIView *)[self getWebView];
121 190
    UIGraphicsBeginImageContextWithOptions(CGSizeMake(SCREEN_WIDTH, SCREEN_HEIGHT), NO, 0.0);
122 191
    [webview.layer renderInContext:UIGraphicsGetCurrentContext()];
123 192
    UIImage *screenShotImage = UIGraphicsGetImageFromCurrentImageContext();
@ -126,7 +195,8 @@
126 195
}
127 196
128 197
- (UIImage *)screenWebviewShot {
129
    IPUMobileWebView *webview = [self getWebView];
198
    IPUCommonWebView webview = [self.mobileDelegate getCurrentView];
199
    
130 200
    // 1.获取WebView的宽高
131 201
    CGSize boundsSize = webview.bounds.size;
132 202
    CGFloat boundsWidth = boundsSize.width;
@ -238,15 +308,22 @@
238 308
        CGRect pxrect =  CGRectMake(self.clipView.left*px, self.clipView.top*px, self.clipView.width*px, self.clipView.height*px);
239 309
        CGImageRef imageRefRect = CGImageCreateWithImageInRect(imageRef, pxrect);
240 310
        UIImage *clipeImage = [[UIImage alloc] initWithCGImage:imageRefRect];
241
        //保存截图至本地,并callback本地路径给js
242
        NSString* path = [IPUUtility createDirInDocument:@"images" withFileName:nil withPathExtension:@"jpg"];
243
        NSData * data = UIImageJPEGRepresentation(clipeImage, 1.0);
244
        [data writeToFile:path atomically:YES];
245
        if (base64) {
246
            [self callback:[self base64EncodingWithData:data]];
247
        }else{
248
            [self callback:path];
311
        
312
        if (isSaveToPhoto) {
313
            __weak typeof(self) weakSelf = self;
314
            [self requestPhotoLibraryAuthorization:^(BOOL success) {
315
                __strong typeof(self) strongSelf = weakSelf;
316
                if (!success) {
317
                    [strongSelf callback:@""];
318
                    return;
319
                }
320
                
321
                [strongSelf callbackResultImage:clipeImage];
322
            }];
323
        } else {
324
            [self callbackResultImage:clipeImage];
249 325
        }
326
        
250 327
        //移除剪切区域视图控件,并清空
251 328
        [self.clipView removeFromSuperview];
252 329
        [self.clipBottomView removeFromSuperview];
@ -274,7 +351,7 @@
274 351
}
275 352
276 353
- (UIView *)clipLeftView {
277
    if (_clipLeftView == nil) {
354
    if (!_clipLeftView) {
278 355
        UIView *view = [[UIView alloc] init];
279 356
        _clipLeftView = view;
280 357
        view.backgroundColor = [UIColor blackColor];
@ -286,7 +363,7 @@
286 363
}
287 364
288 365
- (UIView *)clipRightView {
289
    if (_clipRightView == nil) {
366
    if (!_clipRightView) {
290 367
        UIView *view = [[UIView alloc] init];
291 368
        _clipRightView = view;
292 369
        view.backgroundColor = [UIColor blackColor];
@ -298,7 +375,7 @@
298 375
}
299 376
300 377
- (UIView *)clipTopView {
301
    if (_clipTopView == nil) {
378
    if (!_clipTopView) {
302 379
        UIView *view = [[UIView alloc] init];
303 380
        _clipTopView = view;
304 381
        view.backgroundColor = [UIColor blackColor];
@ -309,8 +386,8 @@
309 386
    return _clipTopView;
310 387
}
311 388
312
-(UIView *)clipBottomView{
313
    if (_clipBottomView==nil) {
389
- (UIView *)clipBottomView {
390
    if (!_clipBottomView) {
314 391
        UIView *view = [[UIView alloc] init];
315 392
        _clipBottomView = view;
316 393
        view.backgroundColor = [UIColor blackColor];
@ -322,19 +399,98 @@
322 399
}
323 400
324 401
#pragma mark - other
325
-(void)captureScreen:(NSArray *)params{
402
403
- (void)captureScreen:(NSArray *)params{
326 404
    BOOL isCapture = false;
327
    if (params.count>0) {
328
        if (params[0]==[NSNull null]) {
405
    if (params.count > 0) {
406
        if (params[0] == [NSNull null]) {
329 407
            isCapture = false;
330
        }else{
408
        } else {
331 409
            isCapture = [params[0] boolValue];
332 410
        }
333 411
    }
412
    
334 413
    if (isCapture) {//允许截屏
414
        return;
415
    }
416
    
417
    [[NSNotificationCenter defaultCenter] addObserver:self
418
                                             selector:@selector(screenFullShot)
419
                                                 name:UIApplicationUserDidTakeScreenshotNotification
420
                                               object:nil];
421
}
422
423
- (void)saveScreenCaptureToPhotos:(UIImage *)image completion:(IPUCommonCompletion)completion {
424
    __weak typeof(self) weakSelf = self;
425
    [self requestPhotoLibraryAuthorization:^(BOOL success) {
426
        __strong typeof(self) strongSelf = weakSelf;
427
        if (!success) {
428
            [strongSelf callback:@""];
429
            return;
430
        }
335 431
        
336
    }else{//禁止截屏
337
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(screenFullShot) name:UIApplicationUserDidTakeScreenshotNotification object:nil];
432
        strongSelf->completion = completion;
433
        
434
        // 图片保存到相册
435
        UIImageWriteToSavedPhotosAlbum(image, strongSelf, @selector(image:didFinishSavingWithError:contextInfo:), nil);
436
    }];
437
}
438
439
/*
440
 图片成功保存到相册回调
441
 */
442
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo {
443
    if (!completion) {
444
        return;
445
    }
446
    
447
    completion(!error);
448
}
449
450
- (void)callbackResultImage:(UIImage *)image {
451
    NSData *data = UIImageJPEGRepresentation(image, 1.0);
452
    if (base64) {
453
        [self callback:[self base64EncodingWithData:data]];
454
    } else {
455
        NSString *path = [IPUUtility createDirInDocument:@"images"
456
                                            withFileName:nil
457
                                       withPathExtension:@"jpg"];
458
        [data writeToFile:path atomically:YES];
459
        [self callback:path];
460
    }
461
}
462
463
/// 申请相册权限
464
/// @param completion 结果回调
465
- (void)requestPhotoLibraryAuthorization:(IPUCommonCompletion)completion {
466
    if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
467
        completion(NO);
468
        return;
469
    }
470
    
471
    PHAuthorizationStatus authorizationStatus = [PHPhotoLibrary authorizationStatus];
472
    
473
    switch (authorizationStatus) {
474
        case PHAuthorizationStatusAuthorized:
475
        {
476
            completion(YES);
477
        }
478
            break;
479
        case PHAuthorizationStatusNotDetermined:
480
        {
481
            [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
482
                completion(status == PHAuthorizationStatusAuthorized);
483
            }];
484
        }
485
            break;
486
            
487
        case PHAuthorizationStatusDenied:
488
        case PHAuthorizationStatusRestricted:
489
        default:
490
        {
491
            completion(NO);
492
        }
493
            break;
338 494
    }
339 495
}
340 496

+ 1 - 1
SuperMenu/ReactNative/node_modules/react-native-camera/ios/RNCamera.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -7,7 +7,7 @@
7 7
		<key>RNCamera.xcscheme_^#shared#^_</key>
8 8
		<dict>
9 9
			<key>orderHint</key>
10
			<integer>37</integer>
10
			<integer>35</integer>
11 11
		</dict>
12 12
	</dict>
13 13
</dict>

+ 1 - 1
SuperMenu/ReactNative/node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -7,7 +7,7 @@
7 7
		<key>RNGestureHandler.xcscheme_^#shared#^_</key>
8 8
		<dict>
9 9
			<key>orderHint</key>
10
			<integer>22</integer>
10
			<integer>32</integer>
11 11
		</dict>
12 12
	</dict>
13 13
</dict>

+ 2 - 2
SuperMenu/ReactNative/node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,12 +9,12 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>0</integer>
12
			<integer>1</integer>
13 13
		</dict>
14 14
		<key>RNVectorIcons.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>39</integer>
17
			<integer>27</integer>
18 18
		</dict>
19 19
	</dict>
20 20
	<key>SuppressBuildableAutocreation</key>

+ 1 - 1
SuperMenu/ReactNative/node_modules/react-native-webview/ios/RNCWebView.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -7,7 +7,7 @@
7 7
		<key>RNCWebView.xcscheme_^#shared#^_</key>
8 8
		<dict>
9 9
			<key>orderHint</key>
10
			<integer>35</integer>
10
			<integer>31</integer>
11 11
		</dict>
12 12
	</dict>
13 13
</dict>

+ 2 - 2
SuperMenu/ReactNative/node_modules/react-native/Libraries/ART/ART.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,12 +9,12 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>11</integer>
12
			<integer>12</integer>
13 13
		</dict>
14 14
		<key>ART.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>32</integer>
17
			<integer>29</integer>
18 18
		</dict>
19 19
	</dict>
20 20
	<key>SuppressBuildableAutocreation</key>

+ 1 - 1
SuperMenu/ReactNative/node_modules/react-native/Libraries/CameraRoll/RCTCameraRoll.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -7,7 +7,7 @@
7 7
		<key>RCTCameraRoll.xcscheme_^#shared#^_</key>
8 8
		<dict>
9 9
			<key>orderHint</key>
10
			<integer>20</integer>
10
			<integer>28</integer>
11 11
		</dict>
12 12
	</dict>
13 13
</dict>

+ 2 - 2
SuperMenu/ReactNative/node_modules/react-native/Libraries/Image/RCTImage.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,12 +9,12 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>3</integer>
12
			<integer>4</integer>
13 13
		</dict>
14 14
		<key>RCTImage.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>26</integer>
17
			<integer>33</integer>
18 18
		</dict>
19 19
	</dict>
20 20
	<key>SuppressBuildableAutocreation</key>

+ 2 - 2
SuperMenu/ReactNative/node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,12 +9,12 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>8</integer>
12
			<integer>9</integer>
13 13
		</dict>
14 14
		<key>RCTLinking.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>33</integer>
17
			<integer>39</integer>
18 18
		</dict>
19 19
	</dict>
20 20
	<key>SuppressBuildableAutocreation</key>

+ 2 - 2
SuperMenu/ReactNative/node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,12 +9,12 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>5</integer>
12
			<integer>6</integer>
13 13
		</dict>
14 14
		<key>RCTAnimation.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>30</integer>
17
			<integer>22</integer>
18 18
		</dict>
19 19
	</dict>
20 20
	<key>SuppressBuildableAutocreation</key>

+ 2 - 2
SuperMenu/ReactNative/node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,12 +9,12 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>1</integer>
12
			<integer>2</integer>
13 13
		</dict>
14 14
		<key>RCTNetwork.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>31</integer>
17
			<integer>25</integer>
18 18
		</dict>
19 19
	</dict>
20 20
	<key>SuppressBuildableAutocreation</key>

+ 2 - 2
SuperMenu/ReactNative/node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,12 +9,12 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>9</integer>
12
			<integer>10</integer>
13 13
		</dict>
14 14
		<key>RCTSettings.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>29</integer>
17
			<integer>36</integer>
18 18
		</dict>
19 19
	</dict>
20 20
	<key>SuppressBuildableAutocreation</key>

+ 2 - 2
SuperMenu/ReactNative/node_modules/react-native/Libraries/Text/RCTText.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,12 +9,12 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>13</integer>
12
			<integer>14</integer>
13 13
		</dict>
14 14
		<key>RCTText.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>28</integer>
17
			<integer>40</integer>
18 18
		</dict>
19 19
	</dict>
20 20
	<key>SuppressBuildableAutocreation</key>

+ 4 - 4
SuperMenu/ReactNative/node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,24 +9,24 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>15</integer>
12
			<integer>16</integer>
13 13
		</dict>
14 14
		<key>RCTWebSocket.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>40</integer>
17
			<integer>41</integer>
18 18
		</dict>
19 19
		<key>fishhook-tvOS.xcscheme_^#shared#^_</key>
20 20
		<dict>
21 21
			<key>isShown</key>
22 22
			<false/>
23 23
			<key>orderHint</key>
24
			<integer>17</integer>
24
			<integer>18</integer>
25 25
		</dict>
26 26
		<key>fishhook.xcscheme_^#shared#^_</key>
27 27
		<dict>
28 28
			<key>orderHint</key>
29
			<integer>25</integer>
29
			<integer>34</integer>
30 30
		</dict>
31 31
	</dict>
32 32
	<key>SuppressBuildableAutocreation</key>

+ 16 - 16
SuperMenu/ReactNative/node_modules/react-native/React/React.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,96 +9,96 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>4</integer>
12
			<integer>5</integer>
13 13
		</dict>
14 14
		<key>React.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>orderHint</key>
17
			<integer>19</integer>
17
			<integer>20</integer>
18 18
		</dict>
19 19
		<key>cxxreact-tvOS.xcscheme_^#shared#^_</key>
20 20
		<dict>
21 21
			<key>isShown</key>
22 22
			<false/>
23 23
			<key>orderHint</key>
24
			<integer>12</integer>
24
			<integer>13</integer>
25 25
		</dict>
26 26
		<key>cxxreact.xcscheme_^#shared#^_</key>
27 27
		<dict>
28 28
			<key>orderHint</key>
29
			<integer>36</integer>
29
			<integer>30</integer>
30 30
		</dict>
31 31
		<key>double-conversion-tvOS.xcscheme_^#shared#^_</key>
32 32
		<dict>
33 33
			<key>isShown</key>
34 34
			<false/>
35 35
			<key>orderHint</key>
36
			<integer>14</integer>
36
			<integer>15</integer>
37 37
		</dict>
38 38
		<key>double-conversion.xcscheme_^#shared#^_</key>
39 39
		<dict>
40 40
			<key>orderHint</key>
41
			<integer>21</integer>
41
			<integer>42</integer>
42 42
		</dict>
43 43
		<key>jsi-tvOS.xcscheme_^#shared#^_</key>
44 44
		<dict>
45 45
			<key>isShown</key>
46 46
			<false/>
47 47
			<key>orderHint</key>
48
			<integer>16</integer>
48
			<integer>17</integer>
49 49
		</dict>
50 50
		<key>jsi.xcscheme_^#shared#^_</key>
51 51
		<dict>
52 52
			<key>orderHint</key>
53
			<integer>34</integer>
53
			<integer>38</integer>
54 54
		</dict>
55 55
		<key>jsiexecutor-tvOS.xcscheme_^#shared#^_</key>
56 56
		<dict>
57 57
			<key>isShown</key>
58 58
			<false/>
59 59
			<key>orderHint</key>
60
			<integer>18</integer>
60
			<integer>19</integer>
61 61
		</dict>
62 62
		<key>jsiexecutor.xcscheme_^#shared#^_</key>
63 63
		<dict>
64 64
			<key>orderHint</key>
65
			<integer>24</integer>
65
			<integer>23</integer>
66 66
		</dict>
67 67
		<key>jsinspector-tvOS.xcscheme_^#shared#^_</key>
68 68
		<dict>
69 69
			<key>isShown</key>
70 70
			<false/>
71 71
			<key>orderHint</key>
72
			<integer>7</integer>
72
			<integer>8</integer>
73 73
		</dict>
74 74
		<key>jsinspector.xcscheme_^#shared#^_</key>
75 75
		<dict>
76 76
			<key>orderHint</key>
77
			<integer>38</integer>
77
			<integer>37</integer>
78 78
		</dict>
79 79
		<key>third-party-tvOS.xcscheme_^#shared#^_</key>
80 80
		<dict>
81 81
			<key>isShown</key>
82 82
			<false/>
83 83
			<key>orderHint</key>
84
			<integer>10</integer>
84
			<integer>11</integer>
85 85
		</dict>
86 86
		<key>third-party.xcscheme_^#shared#^_</key>
87 87
		<dict>
88 88
			<key>orderHint</key>
89
			<integer>23</integer>
89
			<integer>26</integer>
90 90
		</dict>
91 91
		<key>yoga-tvOS.xcscheme_^#shared#^_</key>
92 92
		<dict>
93 93
			<key>isShown</key>
94 94
			<false/>
95 95
			<key>orderHint</key>
96
			<integer>6</integer>
96
			<integer>7</integer>
97 97
		</dict>
98 98
		<key>yoga.xcscheme_^#shared#^_</key>
99 99
		<dict>
100 100
			<key>orderHint</key>
101
			<integer>27</integer>
101
			<integer>21</integer>
102 102
		</dict>
103 103
	</dict>
104 104
	<key>SuppressBuildableAutocreation</key>

+ 1 - 0
SuperMenu/Res/config/mobile-config.xml

@ -57,5 +57,6 @@
57 57
    <config name="j_push_channel" value="Publish channel"/>
58 58
    <config name="j_push_production" value="false"/>
59 59
    <config name="baidu_map_key" value="lFs1DdNVs4PVvlQ0qZnV9hWp90B2gwgp"/>
60
    <config name="WebView" value="WKWebView"/>
60 61
    
61 62
</configs>

+ 1 - 1
SuperMenu/SuperMenu.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -12,7 +12,7 @@
12 12
		<key>SuperMenu.xcscheme_^#shared#^_</key>
13 13
		<dict>
14 14
			<key>orderHint</key>
15
			<integer>2</integer>
15
			<integer>3</integer>
16 16
		</dict>
17 17
	</dict>
18 18
	<key>SuppressBuildableAutocreation</key>

+ 3 - 0
SuperMenu/SuperMenu.xcworkspace/contents.xcworkspacedata

@ -2,6 +2,9 @@
2 2
<Workspace
3 3
   version = "1.0">
4 4
   <FileRef
5
      location = "group:../../iOS/IPUMobile/IPUMobile.xcodeproj">
6
   </FileRef>
7
   <FileRef
5 8
      location = "group:SuperMenu.xcodeproj">
6 9
   </FileRef>
7 10
</Workspace>

二進制
SuperMenu/SuperMenu.xcworkspace/xcuserdata/benny.xcuserdatad/UserInterfaceState.xcuserstate


+ 0 - 16
SuperMenu/SuperMenu.xcworkspace/xcuserdata/benny.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@ -15,21 +15,5 @@
15 15
            stopOnStyle = "0">
16 16
         </BreakpointContent>
17 17
      </BreakpointProxy>
18
      <BreakpointProxy
19
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
20
         <BreakpointContent
21
            uuid = "3E9146BF-91B0-45B3-97A9-095A595CD90A"
22
            shouldBeEnabled = "No"
23
            ignoreCount = "0"
24
            continueAfterRunningActions = "No"
25
            filePath = "SuperMenu/IPUFlipperView+Addition.m"
26
            startingColumnNumber = "9223372036854775807"
27
            endingColumnNumber = "9223372036854775807"
28
            startingLineNumber = "27"
29
            endingLineNumber = "27"
30
            landmarkName = "-swizzle_addSubview:"
31
            landmarkType = "7">
32
         </BreakpointContent>
33
      </BreakpointProxy>
34 18
   </Breakpoints>
35 19
</Bucket>

+ 3 - 3
SuperMenu/SuperMenu/ViewController.mm

@ -117,7 +117,7 @@
117 117
}
118 118
119 119
- (void)openPage:(NSString *)pageName {
120
    IPUMobileWebView *webView = [self getCurrentWebView];
120
    IPUCommonWebView webView = [self getCurrentView];
121 121
    if ([webView.pageAction isEqualToString:pageName]) {
122 122
        return;
123 123
    }
@ -129,7 +129,7 @@
129 129
- (void)back {
130 130
    UIViewController *viewController = [self getCurrentViewController];
131 131
    
132
    IPUMobileWebView *webView = [self getCurrentWebView];
132
    IPUCommonWebView webView = [self getCurrentView];
133 133
134 134
    if ([webView.pageAction isEqualToString:@"Login"]) {
135 135
        [self alert:@"提示" content:@"当前为最上层页面,无法返回!"];
@ -140,7 +140,7 @@
140 140
        [viewController dismissViewControllerAnimated:YES completion:nil];
141 141
    } else if ([viewController isKindOfClass:[IPUViewController class]]) {
142 142
        IPUViewController *wdViewController = (IPUViewController *)viewController;
143
        UIWebView *webView = [wdViewController getCurrentWebView];
143
        IPUCommonWebView webView = [self getCurrentView];
144 144
        if ([webView canGoBack]) {
145 145
            [webView goBack];
146 146
        } else {

+ 1 - 1
display-center/ReactNative/node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>23</integer>
12
			<integer>24</integer>
13 13
		</dict>
14 14
	</dict>
15 15
	<key>SuppressBuildableAutocreation</key>

+ 2 - 2
display-center/ReactNative/node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,14 +9,14 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>2</integer>
12
			<integer>3</integer>
13 13
		</dict>
14 14
		<key>RNVectorIcons.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>isShown</key>
17 17
			<false/>
18 18
			<key>orderHint</key>
19
			<integer>24</integer>
19
			<integer>25</integer>
20 20
		</dict>
21 21
	</dict>
22 22
	<key>SuppressBuildableAutocreation</key>

+ 1 - 1
display-center/ReactNative/node_modules/react-native-webview/ios/RNCWebView.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>22</integer>
12
			<integer>23</integer>
13 13
		</dict>
14 14
	</dict>
15 15
	<key>SuppressBuildableAutocreation</key>

+ 1 - 1
display-center/ReactNative/node_modules/react-native/Libraries/ART/ART.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>17</integer>
12
			<integer>18</integer>
13 13
		</dict>
14 14
		<key>ART.xcscheme_^#shared#^_</key>
15 15
		<dict>

+ 1 - 1
display-center/ReactNative/node_modules/react-native/Libraries/Image/RCTImage.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>4</integer>
12
			<integer>5</integer>
13 13
		</dict>
14 14
		<key>RCTImage.xcscheme_^#shared#^_</key>
15 15
		<dict>

+ 1 - 1
display-center/ReactNative/node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>10</integer>
12
			<integer>11</integer>
13 13
		</dict>
14 14
		<key>RCTLinking.xcscheme_^#shared#^_</key>
15 15
		<dict>

+ 1 - 1
display-center/ReactNative/node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>6</integer>
12
			<integer>7</integer>
13 13
		</dict>
14 14
		<key>RCTAnimation.xcscheme_^#shared#^_</key>
15 15
		<dict>

+ 1 - 1
display-center/ReactNative/node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>3</integer>
12
			<integer>4</integer>
13 13
		</dict>
14 14
		<key>RCTNetwork.xcscheme_^#shared#^_</key>
15 15
		<dict>

+ 1 - 1
display-center/ReactNative/node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>1</integer>
12
			<integer>2</integer>
13 13
		</dict>
14 14
		<key>RCTSettings.xcscheme_^#shared#^_</key>
15 15
		<dict>

+ 1 - 1
display-center/ReactNative/node_modules/react-native/Libraries/Text/RCTText.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>14</integer>
12
			<integer>15</integer>
13 13
		</dict>
14 14
		<key>RCTText.xcscheme_^#shared#^_</key>
15 15
		<dict>

+ 2 - 2
display-center/ReactNative/node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,7 +9,7 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>16</integer>
12
			<integer>17</integer>
13 13
		</dict>
14 14
		<key>RCTWebSocket.xcscheme_^#shared#^_</key>
15 15
		<dict>
@ -23,7 +23,7 @@
23 23
			<key>isShown</key>
24 24
			<false/>
25 25
			<key>orderHint</key>
26
			<integer>19</integer>
26
			<integer>20</integer>
27 27
		</dict>
28 28
		<key>fishhook.xcscheme_^#shared#^_</key>
29 29
		<dict>

+ 9 - 9
display-center/ReactNative/node_modules/react-native/React/React.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -9,21 +9,21 @@
9 9
			<key>isShown</key>
10 10
			<false/>
11 11
			<key>orderHint</key>
12
			<integer>5</integer>
12
			<integer>6</integer>
13 13
		</dict>
14 14
		<key>React.xcscheme_^#shared#^_</key>
15 15
		<dict>
16 16
			<key>isShown</key>
17 17
			<false/>
18 18
			<key>orderHint</key>
19
			<integer>11</integer>
19
			<integer>12</integer>
20 20
		</dict>
21 21
		<key>cxxreact-tvOS.xcscheme_^#shared#^_</key>
22 22
		<dict>
23 23
			<key>isShown</key>
24 24
			<false/>
25 25
			<key>orderHint</key>
26
			<integer>13</integer>
26
			<integer>14</integer>
27 27
		</dict>
28 28
		<key>cxxreact.xcscheme_^#shared#^_</key>
29 29
		<dict>
@ -37,7 +37,7 @@
37 37
			<key>isShown</key>
38 38
			<false/>
39 39
			<key>orderHint</key>
40
			<integer>15</integer>
40
			<integer>16</integer>
41 41
		</dict>
42 42
		<key>double-conversion.xcscheme_^#shared#^_</key>
43 43
		<dict>
@ -51,7 +51,7 @@
51 51
			<key>isShown</key>
52 52
			<false/>
53 53
			<key>orderHint</key>
54
			<integer>18</integer>
54
			<integer>19</integer>
55 55
		</dict>
56 56
		<key>jsi.xcscheme_^#shared#^_</key>
57 57
		<dict>
@ -65,7 +65,7 @@
65 65
			<key>isShown</key>
66 66
			<false/>
67 67
			<key>orderHint</key>
68
			<integer>20</integer>
68
			<integer>21</integer>
69 69
		</dict>
70 70
		<key>jsiexecutor.xcscheme_^#shared#^_</key>
71 71
		<dict>
@ -79,7 +79,7 @@
79 79
			<key>isShown</key>
80 80
			<false/>
81 81
			<key>orderHint</key>
82
			<integer>9</integer>
82
			<integer>10</integer>
83 83
		</dict>
84 84
		<key>jsinspector.xcscheme_^#shared#^_</key>
85 85
		<dict>
@ -93,7 +93,7 @@
93 93
			<key>isShown</key>
94 94
			<false/>
95 95
			<key>orderHint</key>
96
			<integer>12</integer>
96
			<integer>13</integer>
97 97
		</dict>
98 98
		<key>third-party.xcscheme_^#shared#^_</key>
99 99
		<dict>
@ -107,7 +107,7 @@
107 107
			<key>isShown</key>
108 108
			<false/>
109 109
			<key>orderHint</key>
110
			<integer>8</integer>
110
			<integer>9</integer>
111 111
		</dict>
112 112
		<key>yoga.xcscheme_^#shared#^_</key>
113 113
		<dict>

+ 2 - 2
display-center/Res/config/mobile-config.xml

@ -3,8 +3,8 @@
3 3
    <config name="request_host" value="http://www.aiipu.com:8083"/>
4 4
    <config name="request_path" value="/show"/>
5 5
6
<!--    <config name="request_host" value="http://192.168.1.170:8070"/>-->
7
<!--    <config name="request_path" value="/show-server"/>-->
6
<!--    <config name="request_host" value="http://192.168.1.171:8070"/>-->
7
<!--    <config name="request_path" value="/show"/>-->
8 8
    
9 9
    <config name="request_servlet" value="/mobiledata"/>
10 10
    <config name="loading_page" value="Res/local/welcome.html"/>

+ 1 - 1
display-center/display-center.xcodeproj/xcuserdata/benny.xcuserdatad/xcschemes/xcschememanagement.plist

@ -7,7 +7,7 @@
7 7
		<key>display-center.xcscheme_^#shared#^_</key>
8 8
		<dict>
9 9
			<key>orderHint</key>
10
			<integer>21</integer>
10
			<integer>22</integer>
11 11
		</dict>
12 12
	</dict>
13 13
	<key>SuppressBuildableAutocreation</key>

二進制
display-center/display-center.xcworkspace/xcuserdata/benny.xcuserdatad/UserInterfaceState.xcuserstate


+ 0 - 32
display-center/display-center.xcworkspace/xcuserdata/benny.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@ -66,38 +66,6 @@
66 66
      <BreakpointProxy
67 67
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
68 68
         <BreakpointContent
69
            uuid = "0B263F44-49DA-4EBB-82EA-13C5A41C1A7E"
70
            shouldBeEnabled = "Yes"
71
            ignoreCount = "0"
72
            continueAfterRunningActions = "No"
73
            filePath = "../../iOS/IPUMobile/IPUMobile/IPUViewController.m"
74
            startingColumnNumber = "9223372036854775807"
75
            endingColumnNumber = "9223372036854775807"
76
            startingLineNumber = "530"
77
            endingLineNumber = "530"
78
            landmarkName = "-webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:"
79
            landmarkType = "7">
80
         </BreakpointContent>
81
      </BreakpointProxy>
82
      <BreakpointProxy
83
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
84
         <BreakpointContent
85
            uuid = "7AF98E6D-5C8C-4E0C-AAAC-F788CA7AA4B8"
86
            shouldBeEnabled = "Yes"
87
            ignoreCount = "0"
88
            continueAfterRunningActions = "No"
89
            filePath = "../../iOS/IPUMobile/IPUMobile/IPUViewController.m"
90
            startingColumnNumber = "9223372036854775807"
91
            endingColumnNumber = "9223372036854775807"
92
            startingLineNumber = "644"
93
            endingLineNumber = "644"
94
            landmarkName = "-webView:didFailNavigation:withError:"
95
            landmarkType = "7">
96
         </BreakpointContent>
97
      </BreakpointProxy>
98
      <BreakpointProxy
99
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
100
         <BreakpointContent
101 69
            uuid = "FD19D7B6-6219-4AAC-A65E-267AB2D4350D"
102 70
            shouldBeEnabled = "Yes"
103 71
            ignoreCount = "0"

+ 3 - 6
display-center/display-center/IPUFaceCheckPlugin.m

@ -29,14 +29,14 @@
29 29
 */
30 30
31 31
#pragma -mark 识别
32
32 33
- (void)faceCheck:(NSArray *)params {
33
    NSLog(@"IPU faceCheck params = %@",params);
34
     [self opreateParams:params isRegister:NO];
34
    [self opreateParams:params isRegister:NO];
35 35
}
36 36
37 37
#pragma -mark 注册
38
38 39
- (void)faceRegister:(NSArray *)params {
39
    NSLog(@"IPU faceRegister params = %@",params);
40 40
    [self opreateParams:params isRegister:YES];
41 41
}
42 42
@ -50,10 +50,8 @@
50 50
        imgType = [params[2] intValue];
51 51
    }
52 52
    NSString *host = [IPUMobileConfig getValue:@"face_host"];
53
    NSLog(@"IPUFaceCheck host = %@",host);
54 53
    if (imgType == 0) {
55 54
        IpuFaceCheckViewController *viewController = [[IpuFaceCheckViewController alloc] init];
56
//        viewController.plugin = self;
57 55
        viewController.isRegister = isRegister;
58 56
        viewController.appid = appid;
59 57
        viewController.uid = uid;
@ -83,7 +81,6 @@
83 81
84 82
#pragma -mark IpuFacecheckViewControllerDelegate
85 83
- (void)backMsg:(NSDictionary *)callBackDic {
86
    NSLog(@"back Msg content = %@",callBackDic);
87 84
    [self callback:[IPUJSONHelper toJSONString:callBackDic]];
88 85
}
89 86

+ 1 - 9
display-center/display-center/IPUViewController+IPUOverrideJSAlert.m

@ -18,8 +18,6 @@
18 18
@implementation IPUViewController (IPUOverrideJSAlert)
19 19
20 20
+ (void)load {
21
//    return;
22
    
23 21
    NSError *error = nil;
24 22
    [self jr_swizzleMethod:@selector(webViewDidFinishLoad:)
25 23
                withMethod:@selector(ipuOverride_webViewDidFinishLoad:)
@ -40,13 +38,7 @@
40 38
        NSString *action = params[0];
41 39
        NSString *callbackID = params[1];
42 40
        NSArray *param = [IPUJSONHelper toArray:params[2]];
43
        
44
        NSLog(@"::::::::::::::::::");
45
        NSLog(@"当前线程: %@", [NSThread currentThread]);
46
        NSLog(@"插件Action: %@", action);
47
        NSLog(@"参数: %@", param);
48
        NSLog(@"::::::::::::::::::");
49
        
41
50 42
        dispatch_async(dispatch_get_main_queue(), ^{
51 43
            [IPUPluginManager execute:self
52 44
                               action:action

+ 0 - 1
display-center/display-center/ViewController.m

@ -54,7 +54,6 @@
54 54
    });
55 55
}
56 56
57
58 57
- (void)back {
59 58
    UIViewController *viewController = [IPUUITool getCurrentViewController];
60 59