evernote · mbhybird/Coding-iOS@6b78db4 · GitHub
Skip to content

Commit 6b78db4

Browse files
committed
evernote
1 parent 1b74bbc commit 6b78db4

13 files changed

Lines changed: 79 additions & 460 deletions

File tree

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 0 additions & 18 deletions

Coding_iOS/.DS_Store

0 Bytes
Binary file not shown.

Coding_iOS/AppDelegate.m

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#import <UMengSocial/UMSocial.h>
2929
#import <UMengSocial/UMSocialWechatHandler.h>
3030
#import <UMengSocial/UMSocialQQHandler.h>
31-
#import <UMengSocial/UMSocialSinaHandler.h>
31+
#import <evernote-cloud-sdk-ios/ENSDK/ENSDK.h>
3232
#import "UMSocialSinaSSOHandler.h"
3333

3434
#import "Tweet.h"
@@ -119,17 +119,11 @@ - (void)completionStartAnimationWithOptions:(NSDictionary *)launchOptions{
119119
[MobClick startWithAppkey:kUmeng_AppKey reportPolicy:BATCH channelId:nil];
120120

121121
// UMENG Social
122-
// [UMSocialData setAppKey:@"507fcab25270157b37000010"];
123-
// [UMSocialWechatHandler setWXAppId:@"wxd930ea5d5a258f4f" appSecret:@"db426a9829e4b49a0dcac7b4162da6b6" url:[NSObject baseURLStr]];
124-
// [UMSocialQQHandler setQQWithAppId:@"100424468" appKey:@"c7394704798a158208a74ab60104f0ba" url:[NSObject baseURLStr]];
125-
// [UMSocialSinaHandler openSSOWithRedirectURL:@"http://sns.whalecloud.com/sina2/callback"];
126-
127122
[UMSocialData setAppKey:kUmeng_AppKey];
128123
[UMSocialWechatHandler setWXAppId:kSocial_WX_ID appSecret:kSocial_WX_Secret url:[NSObject baseURLStr]];
129124
[UMSocialQQHandler setQQWithAppId:kSocial_QQ_ID appKey:kSocial_QQ_Secret url:[NSObject baseURLStr]];
130-
131-
[UMSocialSinaHandler openSSOWithRedirectURL:@"http://sns.whalecloud.com/sina2/callback"];
132-
// [UMSocialSinaSSOHandler openNewSinaSSOWithRedirectURL:@"http://sns.whalecloud.com/sina2/callback"];
125+
[ENSession setSharedSessionConsumerKey:kSocial_EN_Key consumerSecret:kSocial_EN_Secret optionalHost:ENSessionHostSandbox];
126+
[UMSocialSinaSSOHandler openNewSinaSSOWithRedirectURL:kSocial_Sina_RedirectURL];
133127

134128
// 信鸽推送
135129
[XGPush startApp:kXGPush_Id appKey:kXGPush_Key];
@@ -250,6 +244,9 @@ - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceAppl
250244
[BaseViewController presentLinkStr:url.absoluteString];
251245
}
252246
return YES;
247+
}else if ([url.absoluteString hasPrefix:@"en-:"]){
248+
return [[ENSession sharedSession] handleOpenURL:url];
249+
return NO;
253250
}else{
254251
return [UMSocialSnsService handleOpenURL:url];
255252
}

Coding_iOS/Coding_iOS-Info.plist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
<key>CFBundleURLSchemes</key>
2929
<array>
3030
<string>coding-net</string>
31-
<string>wb126663232</string>
31+
<string>wb600921819</string>
3232
<string>QQ41C16356</string>
3333
<string>wx261aca93a0e9893c</string>
34+
<string>en-</string>
3435
</array>
3536
</dict>
3637
</array>

Coding_iOS/Coding_iOS-Prefix.pch.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
#define kSocial_WX_Secret @""
6060
#define kSocial_QQ_ID @""
6161
#define kSocial_QQ_Secret @""
62+
#define kSocial_EN_Key @""
63+
#define kSocial_EN_Secret @""
64+
#define kSocial_Sina_RedirectURL @""
6265

6366
//信鸽推送
6467
#define kXGPush_Id 123456

Coding_iOS/Util/OC_Category/NSObject+Common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- (void)showHudTipStr:(NSString *)tipStr;
1717
- (void)showStatusBarQueryStr:(NSString *)tipStr;
1818
- (void)showStatusBarSuccessStr:(NSString *)tipStr;
19+
- (void)showStatusBarErrorStr:(NSString *)errorStr;
1920
- (void)showStatusBarError:(NSError *)error;
2021
- (void)showStatusBarProgress:(CGFloat)progress;
2122
- (void)hideStatusBarProgress;

Coding_iOS/Util/OC_Category/NSObject+Common.m

Lines changed: 8 additions & 3 deletions

0 commit comments

Comments
 (0)