Skip to content

Commit

Permalink
Merge branch 'tencent-translate' of https://github.com/Jerry23011/Eas…
Browse files Browse the repository at this point in the history
…ydict into tencent-translate
  • Loading branch information
Jerry23011 committed Nov 28, 2023
2 parents 0398d33 + 8994c1d commit 8f3db89
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Easydict/App/Easydict-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
#import "EZQueryService.h"
#import "EZConstKey.h"
#import "FWEncryptorAES.h"
#import "NSString+EZChineseText.h"
#import "NSString+EZChineseText.h"
1 change: 0 additions & 1 deletion Easydict/Feature/Service/Caiyun/CaiyunTranslateType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import Foundation

struct CaiyunTranslateType: RawRepresentable {
var rawValue: String

static let unsupported = CaiyunTranslateType(rawValue: "unsupported")

// Align with the web interface https://fanyi.caiyunapp.com/#/
Expand Down
3 changes: 3 additions & 0 deletions Easydict/Feature/Service/Model/EZConstKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ static NSString *const EZDeepLAuthKey = @"EZDeepLAuthKey";

static NSString *const EZBingCookieKey = @"EZBingCookieKey";
static NSString *const EZNiuTransAPIKey = @"EZNiuTransAPIKey";

static NSString *const EZTencentAPIKey = @"EZTencentAPIKey";

static NSString *const EZCaiyunToken = @"EZCaiyunToken";
static NSString *const EZTencentAPIKey = @"EZTencentAPIKey";

Expand Down
1 change: 1 addition & 0 deletions Easydict/Feature/Service/Model/EZEnumTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ FOUNDATION_EXPORT EZServiceType const EZServiceTypeNiuTrans;
FOUNDATION_EXPORT EZServiceType const EZServiceTypeCaiyun;
FOUNDATION_EXPORT EZServiceType const EZServiceTypeTencent;


FOUNDATION_EXPORT NSString *const EZQueryTextTypeKey;
FOUNDATION_EXPORT NSString *const EZIntelligentQueryTextTypeKey;

Expand Down
1 change: 1 addition & 0 deletions Easydict/Feature/Service/Model/EZEnumTypes.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
NSString *const EZServiceTypeCaiyun = @"Caiyun";
NSString *const EZServiceTypeTencent = @"Tencent";


NSString *const EZServiceTypeAppleDictionary = @"AppleDictionary";

NSString *const EZQueryTextTypeKey = @"QueryTextType";
Expand Down
3 changes: 3 additions & 0 deletions Easydict/Feature/Utility/EZLinkParser/EZSchemeParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ - (NSArray *)allowedReadWriteKeys {
EZDeepLAuthKey,
EZDeepLTranslationAPIKey,
EZNiuTransAPIKey,

EZTencentAPIKey,

EZCaiyunToken,

EZTencentAPIKey,
Expand Down

0 comments on commit 8f3db89

Please sign in to comment.