Browse Source

初始化

huangbo 9 years ago
parent
commit
28f2df3cbc
68 changed files with 714 additions and 0 deletions
  1. 16 0
      DisplayClient/DisplayClient/DCAppDelegate.h
  2. 23 0
      DisplayClient/DisplayClient/DCAppDelegate.m
  3. 15 0
      DisplayClient/DisplayClient/DCLocalViewController.h
  4. 23 0
      DisplayClient/DisplayClient/DCLocalViewController.m
  5. 25 0
      DisplayClient/DisplayClient/DCRemoteViewController.h
  6. 81 0
      DisplayClient/DisplayClient/DCRemoteViewController.m
  7. 119 0
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Contents.json
  8. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-120.png
  9. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-72.png
  10. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-72@2x.png
  11. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-76.png
  12. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-76@2x.png
  13. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Small
  14. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Small-50.png
  15. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Small.png
  16. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Spotlight-iOS7.png
  17. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Spotlight-iOS7@2x.png
  18. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-iPad-Spotlight-iOS7@2x.png
  19. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon.png
  20. BIN
      DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon@2x.png
  21. 68 0
      DisplayClient/DisplayClient/Images.xcassets/AppIcon.appiconset/Contents.json
  22. 6 0
      DisplayClient/DisplayClient/Images.xcassets/Contents.json
  23. 96 0
      DisplayClient/DisplayClient/Images.xcassets/LaunchImage.launchimage/Contents.json
  24. BIN
      DisplayClient/DisplayClient/Images.xcassets/LaunchImage.launchimage/Default-568h@2x-1.png
  25. BIN
      DisplayClient/DisplayClient/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png
  26. 17 0
      DisplayClient/DisplayClient/TestLuaParse.h
  27. 44 0
      DisplayClient/DisplayClient/TestLuaParse.m
  28. 67 0
      DisplayClient/DisplayClientTests/DCLuaTest.m
  29. 34 0
      DisplayClient/DisplayClientTests/DisplayClientTests.m
  30. BIN
      DisplayClient/Frameworks/AMap.bundle/public_key.der
  31. 1 0
      DisplayClient/Frameworks/AMapSearchKit.framework/AMapSearchKit
  32. 1 0
      DisplayClient/Frameworks/AMapSearchKit.framework/Headers
  33. 1 0
      DisplayClient/Frameworks/AMapSearchKit.framework/Resources
  34. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/Info.plist
  35. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/IpuMapBundle
  36. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-bg.png
  37. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-ok-bg-touchend.png
  38. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-ok-bg.png
  39. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-ok-icon.png
  40. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-pointer.png
  41. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/map_click.png
  42. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/map_end.png
  43. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/map_local.png
  44. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/map_other.png
  45. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/map_self.png
  46. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/map_start.png
  47. BIN
      DisplayClient/Frameworks/IpuMapBundle.bundle/map_target.png
  48. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/Info.plist
  49. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/KRVideoPlayerBundle
  50. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-close@2x.png
  51. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-close@3x.png
  52. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-fullscreen@2x.png
  53. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-fullscreen@3x.png
  54. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-pause@2x.png
  55. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-pause@3x.png
  56. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-play@2x.png
  57. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-play@3x.png
  58. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-point@2x.png
  59. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-point@3x.png
  60. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-shrinkscreen@2x.png
  61. BIN
      DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-shrinkscreen@3x.png
  62. 1 0
      DisplayClient/Frameworks/MAMapKit.framework/Headers
  63. 1 0
      DisplayClient/Frameworks/MAMapKit.framework/MAMapKit
  64. 1 0
      DisplayClient/Frameworks/MAMapKit.framework/Resources
  65. BIN
      DisplayClient/Frameworks/WadeMobileBundle.bundle/Info.plist
  66. BIN
      DisplayClient/Frameworks/WadeMobileBundle.bundle/WadeMobileBundle
  67. BIN
      DisplayClient/ZBarSDK/libzbar.a
  68. 74 0
      DisplayClient/luascript/testlua.lua

+ 16 - 0
DisplayClient/DisplayClient/DCAppDelegate.h

@ -0,0 +1,16 @@
1
//
2
//  DCAppDelegate.h
3
//  DisplayClient
4
//
5
//  Created by miracle on 14-10-20.
6
//  Copyright (c) 2014年 ai. All rights reserved.
7
//
8
9
#import <UIKit/UIKit.h>
10
#import <WadeMobile/WDTemplateDelegate.h>
11
#import "DCRemoteViewController.h"
12
#import "DCLocalViewController.h"
13
14
@interface DCAppDelegate : WDTemplateDelegate
15
16
@end

+ 23 - 0
DisplayClient/DisplayClient/DCAppDelegate.m

@ -0,0 +1,23 @@
1
//
2
//  DCAppDelegate.m
3
//  DisplayClient
4
//
5
//  Created by miracle on 14-10-20.
6
//  Copyright (c) 2014年 ai. All rights reserved.
7
//
8
9
#import "DCAppDelegate.h"
10
11
@implementation DCAppDelegate
12
13
-(id) createViewController
14
{
15
    /*资源在远程的场景*/
16
    DCRemoteViewController* rootCtrl = [[DCRemoteViewController alloc] init];
17
    return rootCtrl;
18
    /*资源在本地的场景*/
19
//    DCLocalViewController* rootCtrl = [[DCLocalViewController alloc] init];
20
//    return rootCtrl;
21
}
22
23
@end

+ 15 - 0
DisplayClient/DisplayClient/DCLocalViewController.h

@ -0,0 +1,15 @@
1
//
2
//  DCLocalViewController.h
3
//  DisplayClient
4
//
5
//  Created by huangbo on 15/8/2.
6
//  Copyright (c) 2015年 ai. All rights reserved.
7
//
8
9
#import <Foundation/Foundation.h>
10
#import <WadeMobile/WDTemplateController.h>
11
#import <WadeMobile/WDTemplateManager.h>
12
13
@interface DCLocalViewController : WDTemplateController
14
15
@end

+ 23 - 0
DisplayClient/DisplayClient/DCLocalViewController.m

@ -0,0 +1,23 @@
1
//
2
//  DCLocalViewController.m
3
//  DisplayClient
4
//
5
//  Created by huangbo on 15/8/2.
6
//  Copyright (c) 2015年 ai. All rights reserved.
7
//
8
9
#import "DCLocalViewController.h"
10
#import <WadeMobile/WDTemplateManager.h>
11
12
@implementation DCLocalViewController
13
14
- (void)viewDidLoad
15
{
16
    [WDTemplateManager setTemplateBasePath:[WDAppPathManager getResPath:@"Res"]]; //设置基础路径
17
    [super viewDidLoad];
18
    
19
//    WDFMobileUI* plugin =  [WDPluginManager getPlugin:@"WDFMobileUI" withWademobile:self];
20
//    [plugin openTemplate:@"index" withData:nil];
21
}
22
23
@end

+ 25 - 0
DisplayClient/DisplayClient/DCRemoteViewController.h

@ -0,0 +1,25 @@
1
//
2
//  DCRemoteViewController.h
3
//  DisplayClient
4
//
5
//  Created by huangbo on 15/8/2.
6
//  Copyright (c) 2015年 ai. All rights reserved.
7
//
8
9
#import <Foundation/Foundation.h>
10
#import <UIKit/UIKit.h>
11
#import <WadeMobile/WDTemplateMainController.h>
12
#import <WadeMobile/WDTemplateWebView.h>
13
#import <WadeMobile/WDTemplateManager.h>
14
#import <WadeMobile/WDPluginManager.h>
15
#import <WadeMobile/WDMobileConfig.h>
16
#import <WadeMobile/WDNetWork.h>
17
#import <WadeMobileUI/WDAlertViewController.h>
18
#import <WadeMobileFunc/WDFMobileUI.h>
19
#import <WadeMobile/WDAutoUpdate.h>
20
21
@interface DCRemoteViewController : WDTemplateMainController<UIAlertViewDelegate>
22
23
@property (nonatomic,retain) WDAutoUpdate* autoUpdate;
24
25
@end

+ 81 - 0
DisplayClient/DisplayClient/DCRemoteViewController.m

@ -0,0 +1,81 @@
1
//
2
//  DCRemoteViewController.m
3
//  DisplayClient
4
//
5
//  Created by huangbo on 15/8/2.
6
//  Copyright (c) 2015年 ai. All rights reserved.
7
//
8
9
#import "DCRemoteViewController.h"
10
#import "TestLuaParse.h"
11
12
@implementation DCRemoteViewController
13
14
- (void)viewDidLoad
15
{
16
    [super viewDidLoad];
17
    
18
    if([self checkNetwork]){
19
        /*
20
        self.autoUpdate = [[WDAutoUpdate alloc] init];
21
        if ([self.autoUpdate isUpdate ]) {
22
            float currVersion = [[[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleVersionKey] floatValue];
23
            float newVersion = [self.autoUpdate getRemoteVersion];
24
            NSString *msg = [NSString stringWithFormat:@"当前版本为%.2f,最新版本为%.2f",currVersion,newVersion];
25
            UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"检测版本更新" message:msg delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"更新", nil];
26
            alert.tag = 1658;
27
            [alert show];
28
        }
29
        */
30
        [NSThread detachNewThreadSelector:@selector(updateResource) toTarget:self withObject:nil];
31
    }
32
    
33
    
34
    
35
//    [[[TestLuaParse alloc] init] test];
36
}
37
38
/*检查网络情况*/
39
-(BOOL)checkNetwork{
40
    NSString* host = [WDMobileConfig getRequestHost];
41
    NSURL* url = [NSURL URLWithString:host];
42
    host = [url host];
43
    WDNetworkStatus status = [WDNetWork reachabilityWithHostName:host];
44
    
45
    BOOL isCanDown = NO;
46
    switch (status) {
47
        case WDReachableViaWWAN:{
48
            //is first
49
            BOOL isFirst = [self isFirst];
50
            if (isFirst) {
51
                UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"是否切换至无线网络 ?" message:@"首次使用需要下载大量资源文件,当前正使用移动网络,建议到设置页面开启无线网络,完成后点击“刷新检测”" delegate:self cancelButtonTitle:@"刷新检测" otherButtonTitles:@"继续下载", nil];
52
                [alert show];
53
            }else{
54
                isCanDown = YES;
55
            }
56
            break;
57
        }
58
        case WDReachableViaWiFi:{
59
            isCanDown = YES;
60
            break;
61
        }
62
        case WDNotReachable:{
63
            UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"网络不通" message:[@"无法到达主机:" stringByAppendingString:host] delegate:self cancelButtonTitle:@"刷新检测" otherButtonTitles:nil, nil];
64
            [alert show];
65
            break;
66
        }
67
        default:
68
            break;
69
    }
70
    return isCanDown;
71
}
72
73
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
74
    if (alertView.tag == 1658) {
75
        if (buttonIndex == 1) {
76
            [self.autoUpdate update];
77
        }
78
    }
79
}
80
81
@end

+ 119 - 0
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Contents.json

@ -0,0 +1,119 @@
1
{
2
  "images" : [
3
    {
4
      "size" : "29x29",
5
      "idiom" : "iphone",
6
      "filename" : "Icon-Small.png",
7
      "scale" : "1x"
8
    },
9
    {
10
      "size" : "29x29",
11
      "idiom" : "iphone",
12
      "filename" : "Icon-Small@2x.png",
13
      "scale" : "2x"
14
    },
15
    {
16
      "idiom" : "iphone",
17
      "size" : "29x29",
18
      "scale" : "3x"
19
    },
20
    {
21
      "size" : "40x40",
22
      "idiom" : "iphone",
23
      "filename" : "Icon-Spotlight-iOS7@2x.png",
24
      "scale" : "2x"
25
    },
26
    {
27
      "idiom" : "iphone",
28
      "size" : "40x40",
29
      "scale" : "3x"
30
    },
31
    {
32
      "size" : "57x57",
33
      "idiom" : "iphone",
34
      "filename" : "Icon.png",
35
      "scale" : "1x"
36
    },
37
    {
38
      "size" : "57x57",
39
      "idiom" : "iphone",
40
      "filename" : "Icon@2x.png",
41
      "scale" : "2x"
42
    },
43
    {
44
      "size" : "60x60",
45
      "idiom" : "iphone",
46
      "filename" : "Icon-120.png",
47
      "scale" : "2x"
48
    },
49
    {
50
      "idiom" : "iphone",
51
      "size" : "60x60",
52
      "scale" : "3x"
53
    },
54
    {
55
      "size" : "29x29",
56
      "idiom" : "ipad",
57
      "filename" : "Icon-Small.png",
58
      "scale" : "1x"
59
    },
60
    {
61
      "size" : "29x29",
62
      "idiom" : "ipad",
63
      "filename" : "Icon-Small@2x.png",
64
      "scale" : "2x"
65
    },
66
    {
67
      "size" : "40x40",
68
      "idiom" : "ipad",
69
      "filename" : "Icon-Spotlight-iOS7.png",
70
      "scale" : "1x"
71
    },
72
    {
73
      "size" : "40x40",
74
      "idiom" : "ipad",
75
      "filename" : "Icon-Spotlight-iOS7@2x.png",
76
      "scale" : "2x"
77
    },
78
    {
79
      "size" : "50x50",
80
      "idiom" : "ipad",
81
      "filename" : "Icon-Small-50.png",
82
      "scale" : "1x"
83
    },
84
    {
85
      "size" : "50x50",
86
      "idiom" : "ipad",
87
      "filename" : "Icon-iPad-Spotlight-iOS7@2x.png",
88
      "scale" : "2x"
89
    },
90
    {
91
      "size" : "72x72",
92
      "idiom" : "ipad",
93
      "filename" : "Icon-72.png",
94
      "scale" : "1x"
95
    },
96
    {
97
      "size" : "72x72",
98
      "idiom" : "ipad",
99
      "filename" : "Icon-72@2x.png",
100
      "scale" : "2x"
101
    },
102
    {
103
      "size" : "76x76",
104
      "idiom" : "ipad",
105
      "filename" : "Icon-76.png",
106
      "scale" : "1x"
107
    },
108
    {
109
      "size" : "76x76",
110
      "idiom" : "ipad",
111
      "filename" : "Icon-76@2x.png",
112
      "scale" : "2x"
113
    }
114
  ],
115
  "info" : {
116
    "version" : 1,
117
    "author" : "xcode"
118
  }
119
}

BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-120.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-72.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-72@2x.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-76.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-76@2x.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Small


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Small-50.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Small.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Spotlight-iOS7.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-Spotlight-iOS7@2x.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon-iPad-Spotlight-iOS7@2x.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon.png


BIN
DisplayClient/DisplayClient/Images.xcassets/AppIcon-2.appiconset/Icon@2x.png


+ 68 - 0
DisplayClient/DisplayClient/Images.xcassets/AppIcon.appiconset/Contents.json

@ -0,0 +1,68 @@
1
{
2
  "images" : [
3
    {
4
      "idiom" : "iphone",
5
      "size" : "29x29",
6
      "scale" : "2x"
7
    },
8
    {
9
      "idiom" : "iphone",
10
      "size" : "29x29",
11
      "scale" : "3x"
12
    },
13
    {
14
      "idiom" : "iphone",
15
      "size" : "40x40",
16
      "scale" : "2x"
17
    },
18
    {
19
      "idiom" : "iphone",
20
      "size" : "40x40",
21
      "scale" : "3x"
22
    },
23
    {
24
      "idiom" : "iphone",
25
      "size" : "60x60",
26
      "scale" : "2x"
27
    },
28
    {
29
      "idiom" : "iphone",
30
      "size" : "60x60",
31
      "scale" : "3x"
32
    },
33
    {
34
      "idiom" : "ipad",
35
      "size" : "29x29",
36
      "scale" : "1x"
37
    },
38
    {
39
      "idiom" : "ipad",
40
      "size" : "29x29",
41
      "scale" : "2x"
42
    },
43
    {
44
      "idiom" : "ipad",
45
      "size" : "40x40",
46
      "scale" : "1x"
47
    },
48
    {
49
      "idiom" : "ipad",
50
      "size" : "40x40",
51
      "scale" : "2x"
52
    },
53
    {
54
      "idiom" : "ipad",
55
      "size" : "76x76",
56
      "scale" : "1x"
57
    },
58
    {
59
      "idiom" : "ipad",
60
      "size" : "76x76",
61
      "scale" : "2x"
62
    }
63
  ],
64
  "info" : {
65
    "version" : 1,
66
    "author" : "xcode"
67
  }
68
}

+ 6 - 0
DisplayClient/DisplayClient/Images.xcassets/Contents.json

@ -0,0 +1,6 @@
1
{
2
  "info" : {
3
    "version" : 1,
4
    "author" : "xcode"
5
  }
6
}

+ 96 - 0
DisplayClient/DisplayClient/Images.xcassets/LaunchImage.launchimage/Contents.json

@ -0,0 +1,96 @@
1
{
2
  "images" : [
3
    {
4
      "orientation" : "portrait",
5
      "idiom" : "iphone",
6
      "filename" : "Default-568h@2x.png",
7
      "extent" : "full-screen",
8
      "minimum-system-version" : "7.0",
9
      "scale" : "2x"
10
    },
11
    {
12
      "extent" : "full-screen",
13
      "idiom" : "iphone",
14
      "subtype" : "retina4",
15
      "filename" : "Default-568h@2x-1.png",
16
      "minimum-system-version" : "7.0",
17
      "orientation" : "portrait",
18
      "scale" : "2x"
19
    },
20
    {
21
      "orientation" : "portrait",
22
      "idiom" : "ipad",
23
      "extent" : "full-screen",
24
      "minimum-system-version" : "7.0",
25
      "scale" : "1x"
26
    },
27
    {
28
      "orientation" : "landscape",
29
      "idiom" : "ipad",
30
      "extent" : "full-screen",
31
      "minimum-system-version" : "7.0",
32
      "scale" : "1x"
33
    },
34
    {
35
      "orientation" : "portrait",
36
      "idiom" : "ipad",
37
      "extent" : "full-screen",
38
      "minimum-system-version" : "7.0",
39
      "scale" : "2x"
40
    },
41
    {
42
      "orientation" : "landscape",
43
      "idiom" : "ipad",
44
      "extent" : "full-screen",
45
      "minimum-system-version" : "7.0",
46
      "scale" : "2x"
47
    },
48
    {
49
      "orientation" : "portrait",
50
      "idiom" : "iphone",
51
      "extent" : "full-screen",
52
      "scale" : "1x"
53
    },
54
    {
55
      "orientation" : "portrait",
56
      "idiom" : "iphone",
57
      "extent" : "full-screen",
58
      "scale" : "2x"
59
    },
60
    {
61
      "orientation" : "portrait",
62
      "idiom" : "iphone",
63
      "extent" : "full-screen",
64
      "subtype" : "retina4",
65
      "scale" : "2x"
66
    },
67
    {
68
      "orientation" : "portrait",
69
      "idiom" : "ipad",
70
      "extent" : "to-status-bar",
71
      "scale" : "1x"
72
    },
73
    {
74
      "orientation" : "landscape",
75
      "idiom" : "ipad",
76
      "extent" : "to-status-bar",
77
      "scale" : "1x"
78
    },
79
    {
80
      "orientation" : "portrait",
81
      "idiom" : "ipad",
82
      "extent" : "to-status-bar",
83
      "scale" : "2x"
84
    },
85
    {
86
      "orientation" : "landscape",
87
      "idiom" : "ipad",
88
      "extent" : "to-status-bar",
89
      "scale" : "2x"
90
    }
91
  ],
92
  "info" : {
93
    "version" : 1,
94
    "author" : "xcode"
95
  }
96
}

BIN
DisplayClient/DisplayClient/Images.xcassets/LaunchImage.launchimage/Default-568h@2x-1.png


BIN
DisplayClient/DisplayClient/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png


+ 17 - 0
DisplayClient/DisplayClient/TestLuaParse.h

@ -0,0 +1,17 @@
1
//
2
//  TestLuaParse.h
3
//  DisplayClient
4
//
5
//  Created by miracle on 14-11-27.
6
//  Copyright (c) 2014年 ai. All rights reserved.
7
//
8
9
#import <Foundation/Foundation.h>
10
#import <WadeMobile/WDLuaUtility.h>
11
#import <WadeMobile/WDLuaMonitor.h>
12
13
@interface TestLuaParse : NSObject
14
15
-(void)test;
16
17
@end

+ 44 - 0
DisplayClient/DisplayClient/TestLuaParse.m

@ -0,0 +1,44 @@
1
//
2
//  TestLuaParse.m
3
//  DisplayClient
4
//
5
//  Created by miracle on 14-11-27.
6
//  Copyright (c) 2014年 ai. All rights reserved.
7
//
8
9
#import "TestLuaParse.h"
10
11
@implementation TestLuaParse
12
13
-(void)test{
14
//    NSString* bundleId = [[NSBundle mainBundle] bundleIdentifier];
15
//    NSLog(@"bundleId:%@",bundleId);
16
//    bundleId = [[NSBundle mainBundle] resourcePath];
17
//    NSLog(@"bundleId:%@",bundleId);
18
//    WDLuaUtility* luautil = [[WDLuaUtility alloc] init];
19
//    [luautil openLua];
20
//
21
//    NSString* p = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"testlua.lua"];
22
//
23
//    [luautil loadLua:p];
24
//    [luautil closeLua];
25
    
26
    
27
    NSString* html = @"<wm-tab >   哈哈哈哈11111 </wm-tab>";
28
    
29
    WDLuaUtility* util = [[WDLuaUtility alloc] init];
30
    [util openLua];
31
    NSString* luaPath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"Res/lua"];
32
    NSString* path = [luaPath stringByAppendingPathComponent:@"index.lua"];
33
    [util loadLua:path];
34
    WDLuaMonitor* monitor = [[WDLuaMonitor alloc] init];
35
    //[util execLua:@"setMonitor",monitor,nil];
36
    [util execLua:@"setPackagePath",luaPath,nil];
37
    NSString* a = [util execLua:@"htmlparse",html,nil];
38
    //    NSString* a = [util executeCall:@"init",[NSString stringWithFormat:@"%d",1].UTF8String, "2",nil];
39
    NSLog(@"result:%@",a);
40
    [util closeLua];
41
    
42
}
43
44
@end

+ 67 - 0
DisplayClient/DisplayClientTests/DCLuaTest.m

@ -0,0 +1,67 @@
1
//
2
//  DCLuaTest.m
3
//  DisplayClient
4
//
5
//  Created by huangbo on 15/8/22.
6
//  Copyright (c) 2015年 ai. All rights reserved.
7
//
8
9
#import <XCTest/XCTest.h>
10
#import <WadeMobile/WDLuaUtility.h>
11
12
@interface DCLuaTest : XCTestCase
13
14
@end
15
16
@implementation DCLuaTest
17
18
- (void)setUp {
19
    [super setUp];
20
    // Put setup code here. This method is called before the invocation of each test method in the class.
21
}
22
23
- (void)tearDown {
24
    // Put teardown code here. This method is called after the invocation of each test method in the class.
25
    [super tearDown];
26
}
27
28
- (void)testLua {
29
    // This is an example of a functional test case.
30
//    NSString* bundleId = [[NSBundle mainBundle] bundleIdentifier];
31
//    NSLog(@"bundleId:%@",bundleId);
32
//    bundleId = [[NSBundle mainBundle] resourcePath];
33
//    NSLog(@"bundleId:%@",bundleId);
34
//    WDLuaUtility* luautil = [[WDLuaUtility alloc] init];
35
//    [luautil openLua];
36
//    
37
//    NSString* p = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"testlua.lua"];
38
//    
39
//    [luautil loadLua:p];
40
//    [luautil closeLua];
41
    
42
    
43
    /*
44
    NSString* html = @"<wm-tab >   哈哈哈哈11111 </wm-tab>";
45
    
46
    WDLuaUtility* util = [[WDLuaUtility alloc] init];
47
    [util openLua];
48
    NSString* luaPath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"Res/lua"];
49
    NSString* path = [luaPath stringByAppendingPathComponent:@"index.lua"];
50
    [util loadLua:path];
51
    //    [util executeCall:@"setMonitor", nil];
52
    [util execLua:@"setPackagePath", luaPath,nil];
53
    NSString* a = [util execLua:@"htmlparse",html,nil];
54
    //    NSString* a = [util executeCall:@"init",[NSString stringWithFormat:@"%d",1].UTF8String, "2",nil];
55
    NSLog(@"result:%@",a);
56
    [util closeLua];
57
     */
58
}
59
60
- (void)testPerformanceExample {
61
    // This is an example of a performance test case.
62
    [self measureBlock:^{
63
        // Put the code you want to measure the time of here.
64
    }];
65
}
66
67
@end

+ 34 - 0
DisplayClient/DisplayClientTests/DisplayClientTests.m

@ -0,0 +1,34 @@
1
//
2
//  DisplayClientTests.m
3
//  DisplayClientTests
4
//
5
//  Created by miracle on 14-10-20.
6
//  Copyright (c) 2014年 ai. All rights reserved.
7
//
8
9
#import <XCTest/XCTest.h>
10
11
@interface DisplayClientTests : XCTestCase
12
13
@end
14
15
@implementation DisplayClientTests
16
17
- (void)setUp
18
{
19
    [super setUp];
20
    // Put setup code here. This method is called before the invocation of each test method in the class.
21
}
22
23
- (void)tearDown
24
{
25
    // Put teardown code here. This method is called after the invocation of each test method in the class.
26
    [super tearDown];
27
}
28
29
- (void)testExample
30
{
31
    XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32
}
33
34
@end

BIN
DisplayClient/Frameworks/AMap.bundle/public_key.der


+ 1 - 0
DisplayClient/Frameworks/AMapSearchKit.framework/AMapSearchKit

@ -0,0 +1 @@
1
Versions/Current/AMapSearchKit

+ 1 - 0
DisplayClient/Frameworks/AMapSearchKit.framework/Headers

@ -0,0 +1 @@
1
Versions/Current/Headers

+ 1 - 0
DisplayClient/Frameworks/AMapSearchKit.framework/Resources

@ -0,0 +1 @@
1
Versions/Current/Resources

BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/Info.plist


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/IpuMapBundle


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-bg.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-ok-bg-touchend.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-ok-bg.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-ok-icon.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/bubble-pointer.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/map_click.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/map_end.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/map_local.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/map_other.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/map_self.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/map_start.png


BIN
DisplayClient/Frameworks/IpuMapBundle.bundle/map_target.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/Info.plist


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/KRVideoPlayerBundle


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-close@2x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-close@3x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-fullscreen@2x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-fullscreen@3x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-pause@2x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-pause@3x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-play@2x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-play@3x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-point@2x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-point@3x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-shrinkscreen@2x.png


BIN
DisplayClient/Frameworks/KRVideoPlayerBundle.bundle/kr-video-player-shrinkscreen@3x.png


+ 1 - 0
DisplayClient/Frameworks/MAMapKit.framework/Headers

@ -0,0 +1 @@
1
Versions/Current/Headers

+ 1 - 0
DisplayClient/Frameworks/MAMapKit.framework/MAMapKit

@ -0,0 +1 @@
1
Versions/Current/MAMapKit

+ 1 - 0
DisplayClient/Frameworks/MAMapKit.framework/Resources

@ -0,0 +1 @@
1
Versions/Current/Resources

BIN
DisplayClient/Frameworks/WadeMobileBundle.bundle/Info.plist


BIN
DisplayClient/Frameworks/WadeMobileBundle.bundle/WadeMobileBundle


BIN
DisplayClient/ZBarSDK/libzbar.a


+ 74 - 0
DisplayClient/luascript/testlua.lua

@ -0,0 +1,74 @@
1
function init(a,b)
2
    print("hahahahhahha!!!");
3
    print(a+b);
4
    return 1000;
5
end;
6
7
function lefthandcall(a, b)
8
    local c = lhc(a, b);
9
    print("LUA:", c);
10
    return c;
11
end;
12
13
--单行注释
14
15
--[[
16
多行注释
17
--]]
18
print(b);
19
b=1010232;
20
print(b);
21
22
print(type("hello"));
23
print(type(123*33.33));
24
print(type(type));
25
print(type(print));
26
print(type(nil));
27
print(type(true));
28
print(type(type(3)));
29
a = print
30
a("eeee")
31
32
c="one string";
33
d = string.gsub(c,"one","another");
34
print(c);
35
print(d);
36
37
print("-------------------------------");
38
39
--多行字符串[[-------]]
40
page = [[
41
<div id="tabs1417586153" class="c_tab">
42
   <div class="title">
43
       <ul></ul>
44
   </div>
45
   <div class="pages">   哈哈哈哈11111    </div>
46
</div>
47
<script type="text/javascript">
48
require(["wmTab"],function(WmTab) {
49
    new WmTab("tabs1417586153");
50
});
51
</script>
52
]]
53
print(page);
54
print("-------------------------------");
55
56
--lua任何一个值都可以表示一个条件,只有false和nil为假,除此之外全部为真(包括0和空字符串)
57
if 0 then
58
    print("0:true");
59
else
60
    print("0:false");
61
end
62
if nil then
63
    print("nil:true");
64
else
65
    print("nil:false");
66
end
67
if "" then
68
    print("\"\":true");
69
else
70
    print("\"\":false");
71
end
72
--write("hhe");
73
74