From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001
From: 单军华
Date: Wed, 11 Jul 2018 10:47:42 +0800
Subject: [PATCH] 首次上传

---
 screendisplay/Pods/HMEmoticon/表情键盘/Emoticon/HMEmoticonPackage.m |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git "a/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticonPackage.m" "b/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticonPackage.m"
new file mode 100755
index 0000000..c9f53d5
--- /dev/null
+++ "b/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticonPackage.m"
@@ -0,0 +1,52 @@
+//
+//  HMEmoticonPackage.m
+//  ������������
+//
+//  Created by ������ on 16/3/3.
+//  Copyright �� 2016��� itcast. All rights reserved.
+//
+
+#import "HMEmoticonPackage.h"
+#import "HMEmoticon.h"
+#import "NSBundle+HMEmoticon.h"
+
+@implementation HMEmoticonPackage
+
+#pragma mark - ������������
++ (instancetype)packageWithDict:(NSDictionary *)dict {
+    return [[self alloc] initWithDict:dict];
+}
+
+- (instancetype)initWithDict:(NSDictionary *)dict {
+    
+    self = [super init];
+    if (self) {
+        [self setValuesForKeysWithDictionary:dict];
+        
+        // ������������������
+        _emoticonsList = [[NSMutableArray alloc] init];
+        
+        // ������������������������
+        if (_directory != nil) {
+            // ������������������
+            NSString *fileName = [NSString stringWithFormat:@"%@/info.plist", _directory];
+            NSString *path = [[NSBundle hm_emoticonBundle] pathForResource:fileName ofType:nil];
+            NSArray *array = [NSArray arrayWithContentsOfFile:path];
+            
+            for (NSDictionary *dict in array) {
+                [_emoticonsList addObject:[HMEmoticon emoticonWithDict:dict]];
+                _emoticonsList.lastObject.directory = _directory;
+            }
+        }
+        
+    }
+    return self;
+}
+
+- (NSString *)description {
+    NSArray *keys = @[@"groupName", @"directory", @"emoticonsList"];
+    
+    return [self dictionaryWithValuesForKeys:keys].description;
+}
+
+@end

--
Gitblit v1.8.0