wangguolei

test

Showing 63 changed files with 220 additions and 0 deletions
No preview for this file type
Pod::Spec.new do |s|
s.name = 'HHDoctor'
s.version= "1.0.072813"
s.summary = 'A short description of hhvDoctorSDK.'
s.description = <<-DESC
TODO: Add long description of the pod here.
DESC
s.homepage = 'git@code.hh-medic.com:hh_public/hh_doctor_mini.git'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'hh_client@hh-medic.com' => 'chengyanfang@hh-medic.com' }
s.source = { :git => 'http://code.hh-medic.com/hh_public/hh_doctor_mini.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.source_files = 'HHDoctor/Classes/**/*'
# s.header_dir = 'hhvDoctorSDKForOC/Classes/**/*.h'
s.public_header_files = 'HHDoctor/Classes/PublicHeaders/*.h'
s.resources = 'HHDoctor/Resources/*.*'
# s.dependency 'TXLiteAVSDK_TRTC'
s.vendored_frameworks = 'HHDoctor/Vendors/*.framework'
# s.static_framework = true
s.frameworks = 'SystemConfiguration', 'AVFoundation', 'Accelerate'
s.libraries = 'c++', 'stdc++', 'resolv'
s.ios.deployment_target = '9.0'
s.pod_target_xcconfig = {
'OTHER_LDFLAGS' => '-ObjC',
'ENABLE_BITCODE' => 'NO',
'ARCHS' => ['arm64']
}
end
... ...
No preview for this file type
No preview for this file type
This file is too large to display.
No preview for this file type
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>HHBundleVersion</key>
<string>1.0.072813</string></dict>
</plist>
... ...
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "HHDoctor.h"
#import "HHPublicHeader.h"
#import "HHSDKOptions.h"
FOUNDATION_EXPORT double HHDoctorVersionNumber;
FOUNDATION_EXPORT const unsigned char HHDoctorVersionString[];
... ...
//
// HHDoctor.h
// HHDoctor
//
// Created by 程言方 on 2021/1/27.
//
#import "HHSDKOptions.h"
typedef NS_ENUM(NSInteger, HHMCallingState) {
onStart = 0,
waitingDoctor,
callFreeDoctor,
callConnect,
didRing,
};
typedef NS_ENUM(NSInteger, FailCode) {
loginFail = -6,
notLogin = -5,
permision = -4,
netError = -3,
fail = -2,
callMessageFail = -100002,
};
@protocol HHMVideoDelegate<NSObject>
/**
* 启动呼叫
*/
- (void) onStart: (NSString*) orderId;
/**
* 通话结束
*
* @param time 视频时长 单位秒
*/
- (void) onFinish: (long) time;
/**
* 呼叫成功,等待医生接受
*/
- (void) onCallSuccess;
/**
* 呼叫失败
* @param code 错误码
*/
- (void) onFail: (NSInteger) code;
/**
* 取消呼叫 含 取消排队
*/
- (void) onCancel;
@end
@interface HHDoctor : NSObject
+ (HHDoctor *) sharedInstance;
- (void) startWithOption : (HHSDKOptions * ) options;
- (void) loginWithUserToken : (NSString *) token
completion :(void (^)(NSString *errorMsg))completion;
-(void)setCallExtension:(NSString *)callExtension;
- (void) logout;
- (void) switchToDev: (BOOL) isDevelopment;
- (void) startCallWithUserToken : (NSString *) token;
- (void) add: (id<HHMVideoDelegate>) delegate;
- (void) remove: (id<HHMVideoDelegate>) delegate;
- (void) excute: (void (^)(id<HHMVideoDelegate> delegate))block;
- (void) remoteMessage: (NSString *) message;
- (NSString *) getMedicDetailUrlWithMedicId : (NSString *) medicId userToken: (NSString *) userToken patientUserToken: (NSString *) patientUserToken;
@end
... ...
//
// PublicHeader.h
// hhvDoctorSDK_OC
//
// Created by 程言方 on 2021/1/27.
//
#ifndef PublicHeader_h
#define PublicHeader_h
#define HHSecBaseURL @"https://sec.hh-medic.com/familyapp"
#define HHTestBaseURL @"https://test.hh-medic.com/familyapp"
#define HHMedicDetailBaseURL @"https://e.hh-medic.com"
#define HHFamilyUpload @"https://sec.hh-medic.com/orderapp/file/file_upload_family"
#define HHScreenWidth [[UIScreen mainScreen] bounds].size.width
#define HHScreenHeight [[UIScreen mainScreen] bounds].size.height
#define HHStatusBarHeight [UIApplication sharedApplication].statusBarFrame.size.height
#endif /* PublicHeader_h */
... ...
//
// HHSDKOptions.h
// hhvDoctorSDK_OC
//
// Created by 程言方 on 2021/1/27.
//
@protocol HHImageEngine <NSObject>
- (void) loadImageView : (UIImageView *) imageView placeholder : (UIImage *) placeholder url : (NSString *) url;
@end
@interface HHSDKOptions : NSObject
@property (nonatomic, assign) BOOL isDebug;
@property (nonatomic, assign) BOOL isDevelopment;
@property (nonatomic, strong) NSString * productId;
@property (nonatomic, strong) NSString * callExtension;
@property (nonatomic, strong) NSString * sdkVersion;
@property (nonatomic , weak) id <HHImageEngine> hhImageEngine;
+ (HHSDKOptions *)sharedInstance;
- (HHSDKOptions *) initWithProductId : (NSString *) productId isDebug : (BOOL) debug isDevelop : (BOOL) develop imageEngine : (id <HHImageEngine>) imageEngine;
- (void) loadConfig : (HHSDKOptions *) options;
@end
... ...
No preview for this file type
framework module HHDoctor {
umbrella header "HHDoctor-umbrella.h"
export *
module * { export * }
}
... ...
No preview for this file type