Skip to content

Commit

Permalink
add carthage for DoraemonKit , only supports Core
Browse files Browse the repository at this point in the history
  • Loading branch information
ydlsl committed Oct 29, 2019
1 parent ad4528c commit c1a8933
Show file tree
Hide file tree
Showing 133 changed files with 3,316 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ xcuserdata/
# CocoaPods
Pods/

# Carthage
Carthage/

### Objective-C Patch ###
*.xcscmblueprint
*.xcworkspacedata
Expand Down
2 changes: 2 additions & 0 deletions iOS/DoraemonKit/Src/Core/Base/DoraemonNavBarItemModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, DoraemonNavBarItemType) {
DoraemonNavBarItemTypeText = 0,
DoraemonNavBarItemTypeImage,
Expand Down
1 change: 1 addition & 0 deletions iOS/DoraemonKit/Src/Core/Category/UIImage+Doraemon.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ + (UIImage *)doraemon_imageNamed:(NSString *)name{
if(name){
NSBundle *bundle = [NSBundle bundleForClass:NSClassFromString(@"DoraemonManager")];
NSURL *url = [bundle URLForResource:@"DoraemonKit" withExtension:@"bundle"];
if(!url) return nil;
NSBundle *imageBundle = [NSBundle bundleWithURL:url];

NSString *imageName = nil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by dengyouhua on 2019/9/5.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (Doraemon)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface DoraemonToastUtil : NSObject

Expand Down
2 changes: 1 addition & 1 deletion iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by yixiang on 2017/12/11.
//

#import <UIKit/UIKit.h>
#import "DoraemonManager.h"
#import "DoraemonEntryView.h"
#import "DoraemonCacheManager.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import "DoraemonPingThread.h"
#import <UIKit/UIKit.h>
#import <BSBacktraceLogger/BSBacktraceLogger.h>
#import "BSBacktraceLogger.h"
#import "DoraemonUtil.h"

@interface DoraemonPingThread()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#import <AddressBook/AddressBook.h>
#import <Contacts/Contacts.h>
#import <EventKit/EventKit.h>
#import <UIKit/UIKit.h>

#define IOS8 ([[[UIDevice currentDevice] systemVersion] doubleValue] >=8.0 ? YES : NO)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface DoraemonCPUUtil : NSObject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#import "DoraemonCPUUtil.h"
#import <mach/mach.h>
#import <UIKit/UIKit.h>
//#import <sys/sysctl.h>

@implementation DoraemonCPUUtil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import "DoraemonFPSUtil.h"
#import <UIKit/UIKit.h>

@interface DoraemonFPSUtil()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
//

#import "DoraemonNSLogManager.h"
#import <fishhook/fishhook.h>
#if __has_include(<fishhook/fishhook.h>)
#include <fishhook/fishhook.h>
#else
#include "fishhook.h"
#endif
#import "DoraemonStateBar.h"

//函数指针,用来保存原始的函数的地址
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#import "UIView+Doraemon.h"
#import "NSObject+Doraemon.h"
#import "DoraemonCacheManager.h"
#import <BSBacktraceLogger/BSBacktraceLogger.h>
#import "BSBacktraceLogger.h"
#import "DoraemonSubThreadUICheckManager.h"
#import "DoraemonUtil.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
#include <sys/time.h>
#include <objc/runtime.h>
#include <dispatch/dispatch.h>

#if __has_include(<fishhook/fishhook.h>)
#include <fishhook/fishhook.h>
#else
#include "fishhook.h"
#endif

static bool _call_record_enabled = true;
static uint64_t _min_time_cost = 1000; //us
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <DoraemonKit/DoraemonKit.h>
#import "DoraemonBaseViewController.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <DoraemonKit/DoraemonKit.h>
#import "DoraemonBaseViewController.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface DoraemonViewMetricsConfig : NSObject

Expand Down
7 changes: 6 additions & 1 deletion iOS/DoraemonKit/Src/Core/Util/Doraemoni18NUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ + (NSString *)localizedString:(NSString *)key {
if([language hasPrefix:@"en"]) {
fileNamePrefix = @"en";
}
NSBundle *tmp = [NSBundle bundleWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.bundle/", @"DoraemonKit"]]];
// NSBundle *tmp = [NSBundle bundleWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.bundle/", @"DoraemonKit"]]];
NSBundle *tmpBundle = [NSBundle bundleForClass:NSClassFromString(@"DoraemonManager")];
NSURL *url = [tmpBundle URLForResource:@"DoraemonKit" withExtension:@"bundle"];
if(!url) return key;
NSBundle *tmp = [NSBundle bundleWithURL:url];

NSString *path = [tmp pathForResource:fileNamePrefix ofType:@"lproj"];
NSBundle *bundle = [NSBundle bundleWithPath:path];
NSString *localizedString = [bundle localizedStringForKey:key value:nil table:@"Doraemon"];
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c1a8933

Please sign in to comment.