Skip to content

Commit d261fcb

Browse files
author
yixiang
committed
解决didi#13
1 parent a7f373a commit d261fcb

8 files changed

Lines changed: 19 additions & 14 deletions

File tree

DoraemonKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Pod::Spec.new do |s|
99
s.name = 'DoraemonKit'
10-
s.version = '1.1.0'
10+
s.version = '1.1.1'
1111
s.summary = 'iOS各式各样的工具集合'
1212
s.description = <<-DESC
1313
iOS各式各样的工具集合 Desc

DoraemonKit/Src/Core/Plugin/H5/DoraemonH5ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#import "DoraemonToastUtil.h"
1111
#import "DoraemonDefine.h"
1212
#import "Doraemoni18NUtil.h"
13-
#import <UITextView+Placeholder/UITextView+Placeholder.h>
13+
#import "UITextView+Placeholder.h"
1414

1515
@interface DoraemonH5ViewController ()
1616

DoraemonKit/Src/Core/Util/Doraemoni18NUtil.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ @implementation Doraemoni18NUtil
2626

2727
+ (NSString *)localizedString:(NSString *)key {
2828

29+
return key;
30+
//暂时不支持国际化
2931
NSString *language = [[NSLocale preferredLanguages] firstObject];
3032
if (language.length == 0) {
3133
return key;
@@ -42,6 +44,9 @@ + (NSString *)localizedString:(NSString *)key {
4244
NSString *path = [tmp pathForResource:fileNamePrefix ofType:@"lproj"];
4345
NSBundle *bundle = [NSBundle bundleWithPath:path];
4446
NSString *localizedString = [bundle localizedStringForKey:key value:nil table:@"Doraemon"];
47+
if (!localizedString) {
48+
localizedString = key;
49+
}
4550
return localizedString;
4651
}
4752

DoraemonKit/Src/Logger/Function/DoraemonCocoaLumberjackLogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by yixiang on 2018/12/5.
66
//
77

8-
#import "DDLog.h"
8+
#import <CocoaLumberjack/DDLog.h>
99

1010
NS_ASSUME_NONNULL_BEGIN
1111

DoraemonKitDemo/DoraemonKitDemo.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
B65C2263AF96F94C50A222DF /* libPods-DoraemonKitDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 29E964A2D92411C9DC5482EF /* libPods-DoraemonKitDemo.a */; };
1011
DA0C6F331FDEBC2E00F43588 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DA0C6F311FDEBC2E00F43588 /* LaunchScreen.storyboard */; };
1112
DA0C6F3A1FDEBE3800F43588 /* TestPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = DA0C6F391FDEBE3800F43588 /* TestPlugin.m */; };
1213
DAC8A87C1FDE2C3B00F03E6F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DAC8A87B1FDE2C3B00F03E6F /* AppDelegate.m */; };
@@ -25,11 +26,10 @@
2526
DAFE052D21BD4A4D00F97A59 /* DoraemonDemoMockGPSAnnotation.m in Sources */ = {isa = PBXBuildFile; fileRef = DAFE051E21BD4A4C00F97A59 /* DoraemonDemoMockGPSAnnotation.m */; };
2627
DAFE052E21BD4A4D00F97A59 /* DoraemonDemoMockGPSViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DAFE052121BD4A4C00F97A59 /* DoraemonDemoMockGPSViewController.m */; };
2728
DAFE052F21BD4A4D00F97A59 /* DoraemonDemoPerformanceViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DAFE052321BD4A4C00F97A59 /* DoraemonDemoPerformanceViewController.m */; };
28-
EF63DA315CE9C3FF91A5B115 /* libPods-DoraemonKitDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8416D6FFC369740B6116CA2B /* libPods-DoraemonKitDemo.a */; };
2929
/* End PBXBuildFile section */
3030

3131
/* Begin PBXFileReference section */
32-
8416D6FFC369740B6116CA2B /* libPods-DoraemonKitDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-DoraemonKitDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
32+
29E964A2D92411C9DC5482EF /* libPods-DoraemonKitDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-DoraemonKitDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3333
DA0C6F321FDEBC2E00F43588 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
3434
DA0C6F381FDEBE3800F43588 /* TestPlugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestPlugin.h; sourceTree = "<group>"; };
3535
DA0C6F391FDEBE3800F43588 /* TestPlugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestPlugin.m; sourceTree = "<group>"; };
@@ -75,7 +75,7 @@
7575
isa = PBXFrameworksBuildPhase;
7676
buildActionMask = 2147483647;
7777
files = (
78-
EF63DA315CE9C3FF91A5B115 /* libPods-DoraemonKitDemo.a in Frameworks */,
78+
B65C2263AF96F94C50A222DF /* libPods-DoraemonKitDemo.a in Frameworks */,
7979
);
8080
runOnlyForDeploymentPostprocessing = 0;
8181
};
@@ -94,7 +94,7 @@
9494
9B3A6EF2639894DCF5DB2FD4 /* Frameworks */ = {
9595
isa = PBXGroup;
9696
children = (
97-
8416D6FFC369740B6116CA2B /* libPods-DoraemonKitDemo.a */,
97+
29E964A2D92411C9DC5482EF /* libPods-DoraemonKitDemo.a */,
9898
);
9999
name = Frameworks;
100100
sourceTree = "<group>";
@@ -266,7 +266,7 @@
266266
DAC8A8731FDE2C3B00F03E6F /* Sources */,
267267
DAC8A8741FDE2C3B00F03E6F /* Frameworks */,
268268
DAC8A8751FDE2C3B00F03E6F /* Resources */,
269-
187131D466B63701214420E4 /* [CP] Copy Pods Resources */,
269+
4338E62332869AF074F6B38C /* [CP] Copy Pods Resources */,
270270
);
271271
buildRules = (
272272
);
@@ -323,7 +323,7 @@
323323
/* End PBXResourcesBuildPhase section */
324324

325325
/* Begin PBXShellScriptBuildPhase section */
326-
187131D466B63701214420E4 /* [CP] Copy Pods Resources */ = {
326+
4338E62332869AF074F6B38C /* [CP] Copy Pods Resources */ = {
327327
isa = PBXShellScriptBuildPhase;
328328
buildActionMask = 2147483647;
329329
files = (

DoraemonKitDemo/DoraemonKitDemo/DemoVC/Net/DoraemonDemoNetViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2018年 yixiang. All rights reserved.
77
//
88

9-
#import <DoraemonKit/DoraemonKit.h>
9+
#import <DoraemonKit/DoraemonBaseViewController.h>
1010

1111
@interface DoraemonDemoNetViewController : DoraemonBaseViewController
1212

DoraemonKitDemo/DoraemonKitDemo/DemoVC/UI/DoraemonDemoUIViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2018年 yixiang. All rights reserved.
77
//
88

9-
#import <DoraemonKit/DoraemonKit.h>
9+
#import <DoraemonKit/DoraemonBaseViewController.h>
1010

1111
@interface DoraemonDemoUIViewController : DoraemonBaseViewController
1212

DoraemonKitDemo/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ PODS:
2727
- CocoaLumberjack/Default (3.4.2)
2828
- CocoaLumberjack/Extensions (3.4.2):
2929
- CocoaLumberjack/Default
30-
- DoraemonKit/Core (1.0.4):
30+
- DoraemonKit/Core (1.1.0):
3131
- AFNetworking
3232
- BSBacktraceLogger
3333
- fishhook
3434
- PNChart
3535
- "UITextView+Placeholder"
36-
- DoraemonKit/WithLogger (1.0.4):
36+
- DoraemonKit/WithLogger (1.1.0):
3737
- AFNetworking
3838
- BSBacktraceLogger
3939
- CocoaLumberjack
@@ -69,7 +69,7 @@ SPEC CHECKSUMS:
6969
AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60
7070
BSBacktraceLogger: 06b983ee93a9f87d957960e9c73d660d5966b447
7171
CocoaLumberjack: db7cc9e464771f12054c22ff6947c5a58d43a0fd
72-
DoraemonKit: 890210a96e2b9131787f1a47c786629ce155e5fc
72+
DoraemonKit: b5f93ead3dc6d5522ba0d811be7987c58245c6ed
7373
fishhook: ea19933abfe8f2f52c55fd8b6e2718467d3ebc89
7474
PNChart: 84774d225c2126ded6c93d4dbe6ae98c3a73c2d2
7575
UICountingLabel: 1db4e7d023e1762171eb226d6dff47a7a84f27aa

0 commit comments

Comments
 (0)