Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DelphiTeacher committed Dec 12, 2023
1 parent b17f6a5 commit 8a57653
Show file tree
Hide file tree
Showing 42 changed files with 1,826 additions and 53 deletions.
84 changes: 84 additions & 0 deletions 3975Game_QSSDK/ProjectGroup1.groupproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{DB314C0E-E1AA-41C4-86C9-F80DF90E637D}</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<Projects Include="QSSDK_FMX_D12.dproj">
<Dependencies/>
</Projects>
<Projects Include="D:\MyFiles\ThirdPartySDK\微信支付接口\APP\WeiChatSDK_FMX_D12.dproj">
<Dependencies/>
</Projects>
<Projects Include="D:\MyFiles\ThirdPartySDK\百度身份验证\BaiduFaceCheck_FMX_D12.dproj">
<Dependencies/>
</Projects>
<Projects Include="D:\MyFiles\ThirdPartySDK\腾讯超级播放器\App\TencentSuperPlayer_FMX_D11.dproj">
<Dependencies/>
</Projects>
<Projects Include="D:\MyFiles\ThirdPartySDK\讯飞语音接口\XunFeiTest_D12.dproj">
<Dependencies/>
</Projects>
</ItemGroup>
<ProjectExtensions>
<Borland.Personality>Default.Personality.12</Borland.Personality>
<Borland.ProjectType/>
<BorlandProject>
<Default.Personality/>
</BorlandProject>
</ProjectExtensions>
<Target Name="QSSDK_FMX_D12">
<MSBuild Projects="QSSDK_FMX_D12.dproj"/>
</Target>
<Target Name="QSSDK_FMX_D12:Clean">
<MSBuild Projects="QSSDK_FMX_D12.dproj" Targets="Clean"/>
</Target>
<Target Name="QSSDK_FMX_D12:Make">
<MSBuild Projects="QSSDK_FMX_D12.dproj" Targets="Make"/>
</Target>
<Target Name="WeiChatSDK_FMX_D12">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\微信支付接口\APP\WeiChatSDK_FMX_D12.dproj"/>
</Target>
<Target Name="WeiChatSDK_FMX_D12:Clean">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\微信支付接口\APP\WeiChatSDK_FMX_D12.dproj" Targets="Clean"/>
</Target>
<Target Name="WeiChatSDK_FMX_D12:Make">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\微信支付接口\APP\WeiChatSDK_FMX_D12.dproj" Targets="Make"/>
</Target>
<Target Name="BaiduFaceCheck_FMX_D12">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\百度身份验证\BaiduFaceCheck_FMX_D12.dproj"/>
</Target>
<Target Name="BaiduFaceCheck_FMX_D12:Clean">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\百度身份验证\BaiduFaceCheck_FMX_D12.dproj" Targets="Clean"/>
</Target>
<Target Name="BaiduFaceCheck_FMX_D12:Make">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\百度身份验证\BaiduFaceCheck_FMX_D12.dproj" Targets="Make"/>
</Target>
<Target Name="TencentSuperPlayer_FMX_D11">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\腾讯超级播放器\App\TencentSuperPlayer_FMX_D11.dproj"/>
</Target>
<Target Name="TencentSuperPlayer_FMX_D11:Clean">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\腾讯超级播放器\App\TencentSuperPlayer_FMX_D11.dproj" Targets="Clean"/>
</Target>
<Target Name="TencentSuperPlayer_FMX_D11:Make">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\腾讯超级播放器\App\TencentSuperPlayer_FMX_D11.dproj" Targets="Make"/>
</Target>
<Target Name="XunFeiTest_D12">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\讯飞语音接口\XunFeiTest_D12.dproj"/>
</Target>
<Target Name="XunFeiTest_D12:Clean">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\讯飞语音接口\XunFeiTest_D12.dproj" Targets="Clean"/>
</Target>
<Target Name="XunFeiTest_D12:Make">
<MSBuild Projects="D:\MyFiles\ThirdPartySDK\讯飞语音接口\XunFeiTest_D12.dproj" Targets="Make"/>
</Target>
<Target Name="Build">
<CallTarget Targets="QSSDK_FMX_D12;WeiChatSDK_FMX_D12;BaiduFaceCheck_FMX_D12;TencentSuperPlayer_FMX_D11;XunFeiTest_D12"/>
</Target>
<Target Name="Clean">
<CallTarget Targets="QSSDK_FMX_D12:Clean;WeiChatSDK_FMX_D12:Clean;BaiduFaceCheck_FMX_D12:Clean;TencentSuperPlayer_FMX_D11:Clean;XunFeiTest_D12:Clean"/>
</Target>
<Target Name="Make">
<CallTarget Targets="QSSDK_FMX_D12:Make;WeiChatSDK_FMX_D12:Make;BaiduFaceCheck_FMX_D12:Make;TencentSuperPlayer_FMX_D11:Make;XunFeiTest_D12:Make"/>
</Target>
<Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/>
</Project>
8 changes: 4 additions & 4 deletions 3975Game_QSSDK/QSSDK_FMX_D12.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ uses
System.StartUpCopy,
FMX.Forms,
Unit1 in 'Unit1.pas' {Form1},
iOSApi.QsSdkOrderInfo in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkOrderInfo.pas',
iOSApi.QsSdkRoleInfo in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkRoleInfo.pas',
iOSApi.QsSdkUtils in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkUtils.pas',
iOSApi.QsSdk in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdk.pas',
iOSApi.QsSdkAppInfo in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkAppInfo.pas',
iOSApi.QsSdkBoxInfo in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkBoxInfo.pas',
iOSApi.QsSdkChannel in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkChannel.pas',
iOSApi.QsSdkDef in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkDef.pas',
iOSApi.QsSdkDeviceInfo in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkDeviceInfo.pas',
iOSApi.QsSdkHttpResponse in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkHttpResponse.pas',
iOSApi.QsSdkHttpsApi in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkHttpsApi.pas';
iOSApi.QsSdkHttpsApi in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkHttpsApi.pas',
iOSApi.QsSdkOrderInfo in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkOrderInfo.pas',
iOSApi.QsSdkRoleInfo in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkRoleInfo.pas',
iOSApi.QsSdkUtils in 'QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkUtils.pas';

{$R *.res}

Expand Down
6 changes: 3 additions & 3 deletions 3975Game_QSSDK/QSSDK_FMX_D12.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,6 @@
<Form>Form1</Form>
<FormType>fmx</FormType>
</DCCReference>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkOrderInfo.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkRoleInfo.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkUtils.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdk.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkAppInfo.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkBoxInfo.pas"/>
Expand All @@ -301,6 +298,9 @@
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkDeviceInfo.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkHttpResponse.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkHttpsApi.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkOrderInfo.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkRoleInfo.pas"/>
<DCCReference Include="QsSdk\IOS\QsSdk.framework\Headers\iOSApi.QsSdkUtils.pas"/>
<None Include="QsSdk\IOS\QsSdk.framework\Headers\FrameworkDylibPath_QsSdk.inc"/>
<BuildConfiguration Include="Base">
<Key>Base</Key>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'QsSdk\IOS\QsSdk.framework\QsSdk'
66 changes: 66 additions & 0 deletions 3975Game_QSSDK/QsSdk/IOS/QsSdk.framework.full/Headers/QsSdk.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#import <UIKit/UIKit.h>

#import <QsSdk/QsSdkDef.h>
#import <QsSdk/QsSdkRoleInfo.h>
#import <QsSdk/QsSdkOrderInfo.h>
#import <QsSdk/QsSdkBoxInfo.h>


@interface QsSdk : NSObject

+ (void)initQsSdk:(InitQsSdkSuccess _Nonnull )initSuccess initFail:(InitQsSdkFail _Nonnull)initFail loginSuccess:(LoginQsSdkSuccess _Nonnull)loginSuccess loginFail:(LoginQsSdkFail _Nonnull)loginFail logoutSuccess:(LogoutQsSdkSuccess _Nonnull)logoutSuccess paySuccess:(PayQsSdkSuccess _Nonnull)paySuccess payFail:(PayQsSdkFail _Nonnull)payFail uploadSuccess:(UploadRoleInfoQsSdkSuccess _Nonnull)uploadSuccess uploadFail:(UploadRoleInfoQsSdkFail _Nonnull)uploadFail;

+ (void)loginQsSdk;

+ (void)logoutQsSdk;

+ (void)payQsSdk:(QsSdkOrderInfo *_Nonnull)orderInfo;

+ (void)uploadQsSdkRoleInfo:(QsSdkRoleInfo *_Nonnull)roleInfo type:(QsSdkUploadType)type;




+ (BOOL)application:(UIApplication *_Nullable)application didFinishLaunchingWithOptions:(NSDictionary *_Nullable)launchOptions;

+ (void)applicationWillResignActive:(UIApplication *_Nullable)application;

+ (void) applicationDidEnterBackground:(UIApplication *_Nullable)application;

+ (void) applicationWillEnterForeground:(UIApplication *_Nullable)application;

+ (void) applicationDidBecomeActive:(UIApplication *_Nullable)application;

+ (void) applicationWillTerminate:(UIApplication *_Nullable)application;

+ (void)application:(UIApplication *_Nullable)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *_Nullable)deviceToken;

+ (void)application:(UIApplication *_Nullable)application didFailToRegisterForRemoteNotificationsWithError:(NSError *_Nullable)error;

+ (void)application:(UIApplication *_Nullable)application didReceiveRemoteNotification:(NSDictionary *_Nullable)userInfo;

+(UIInterfaceOrientationMask)application:(UIApplication *_Nullable)application supportedInterfaceOrientationsForWindow:(UIWindow *_Nullable)window;

+ (BOOL)application:(UIApplication *_Nullable)application handleOpenURL:(NSURL *_Nullable)url;

+ (BOOL)application:(UIApplication *_Nullable)application openURL:(NSURL *_Nullable)url sourceApplication:(NSString *_Nullable)sourceApplication annotation:(id _Nullable )annotation;

+ (BOOL)application:(UIApplication *_Nullable)application openURL:(NSURL *_Nullable)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *_Nullable)options;

+ (BOOL)application:(UIApplication *_Nullable)application continueUserActivity:(NSUserActivity *_Nullable)userActivity restorationHandler:(void(^_Nullable)(NSArray *_Nullable restorableObjects))restorationHandler;



+(void)setQsSdkBoxParams:(QsSdkBoxInfo *_Nullable)boxInfo;

+(void)boxInitQsSdk:(PayQsSdkSuccess _Nonnull)paySuccess payFail:(PayQsSdkFail _Nonnull)payFail uploadSuccess:(UploadRoleInfoQsSdkSuccess _Nonnull)uploadSuccess uploadFail:(UploadRoleInfoQsSdkFail _Nonnull)uploadFail;

+(void)boxLoginQsSdk:(LoginQsSdkSuccess _Nonnull)loginSuccess;

+(void)boxShowAgeTipsQsSdk;

+(void)boxHideAgeTipsQsSdk;

@end


Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

#import <UIKit/UIKit.h>

@interface QsSdkAppInfo : NSObject

+(QsSdkAppInfo *)insQsSdk;

-(NSString *)getQsSdkVersion;

-(NSString *)getQsSdkBundleId;

-(NSString *)getQsSdkAppVersion;

-(NSString *)getQsSdkAppBuildVersion;

-(NSString *)getQsSdkAppName;

-(UIView *)getQsSdkCurrentView;

-(UIViewController *)getQsSdkCurrentViewController;


@end



Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


@interface QsSdkBoxInfo : NSObject

@property (nonatomic, strong) NSString *mainUserIdQsSdk; //主帐号id
@property (nonatomic, strong) NSString *finalUserIdQsSdk; //子帐号id
@property (nonatomic, strong) NSString *tokenQsSdk; //token
//@property (nonatomic, strong) NSString *promoteIdQsSdk; //推广员id
@property (nonatomic, strong) NSString *packageIdQsSdk; //包id
@property (nonatomic, strong) NSString *appIdQsSdk; //应用id
@property (nonatomic, strong) NSString *appSecretQsSdk; //应用密钥
@property (nonatomic) BOOL isLandscapeQsSdk; //应用是否横屏
@property (nonatomic) BOOL releaseModeQsSdk; //是否正式环境
@property (nonatomic) NSString *urlTypeQsSdk; //域名类型:千年传"0", 传奇传"1"


@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#import <UIKit/UIKit.h>
#import <QsSdk/QsSdkRoleInfo.h>
#import <QsSdk/QsSdkOrderInfo.h>

typedef void (^ChannelInitQsSdkSuccess)(void);
typedef void (^ChannelInitQsSdkFail)(NSString * _Nullable code, NSString * _Nullable msg);
typedef void (^ChannelLoginQsSdkSuccess)(NSString * _Nullable userId, NSString * _Nullable token, NSString * _Nullable ext);
typedef void (^ChannelLoginQsSdkFail)(NSString * _Nullable code, NSString * _Nullable msg);
typedef void (^ChannelLogoutQsSdkSuccess)(void);
typedef void (^ChannelPayQsSdkSuccess)(NSString * _Nullable orderId);
typedef void (^ChannelPayQsSdkFail)(NSString * _Nullable code, NSString * _Nullable msg);


@interface QsSdkChannel : NSObject

+(instancetype _Nonnull )insQsSdk;

-(NSString *_Nonnull)getQsSdkChannelVersion;

- (void)channelInitQsSdk:(ChannelInitQsSdkSuccess _Nonnull )initSuccess initFail:(ChannelInitQsSdkFail _Nonnull)initFail loginSuccess:(ChannelLoginQsSdkSuccess _Nonnull)loginSuccess loginFail:(ChannelLoginQsSdkFail _Nonnull)loginFail logoutSuccess:(ChannelLogoutQsSdkSuccess _Nonnull)logoutSuccess paySuccess:(ChannelPayQsSdkSuccess _Nonnull)paySuccess payFail:(ChannelPayQsSdkFail _Nonnull)payFail;

- (void)channelLoginQsSdk;

- (void)channelLogoutQsSdk;

- (void)channelPayQsSdk:(QsSdkOrderInfo *_Nonnull)orderInfo;

- (void)channelUploadQsSdkRoleInfo:(QsSdkRoleInfo *_Nonnull)roleInfo type:(QsSdkUploadType)type;




- (BOOL)application:(UIApplication *_Nullable)application didFinishLaunchingWithOptions:(NSDictionary *_Nullable)launchOptions;

- (void)applicationWillResignActive:(UIApplication *_Nullable)application;

- (void) applicationDidEnterBackground:(UIApplication *_Nullable)application;

- (void) applicationWillEnterForeground:(UIApplication *_Nullable)application;

- (void) applicationDidBecomeActive:(UIApplication *_Nullable)application;

- (void) applicationWillTerminate:(UIApplication *_Nullable)application;

- (void)application:(UIApplication *_Nullable)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *_Nullable)deviceToken;

- (void)application:(UIApplication *_Nullable)application didFailToRegisterForRemoteNotificationsWithError:(NSError *_Nullable)error;

- (void)application:(UIApplication *_Nullable)application didReceiveRemoteNotification:(NSDictionary *_Nullable)userInfo;

-(UIInterfaceOrientationMask)application:(UIApplication *_Nullable)application supportedInterfaceOrientationsForWindow:(UIWindow *_Nullable)window;

- (BOOL)application:(UIApplication *_Nullable)application handleOpenURL:(NSURL *_Nullable)url;

- (BOOL)application:(UIApplication *_Nullable)application openURL:(NSURL *_Nullable)url sourceApplication:(NSString *_Nullable)sourceApplication annotation:(id _Nullable )annotation;

- (BOOL)application:(UIApplication *_Nullable)application openURL:(NSURL *_Nullable)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *_Nullable)options;

- (BOOL)application:(UIApplication *_Nullable)application continueUserActivity:(NSUserActivity *_Nullable)userActivity restorationHandler:(void(^_Nullable)(NSArray *_Nullable restorableObjects))restorationHandler;
@end
19 changes: 19 additions & 0 deletions 3975Game_QSSDK/QsSdk/IOS/QsSdk.framework.full/Headers/QsSdkDef.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#define QsSdkVersion @"1.0.1"

typedef void (^InitQsSdkSuccess)(void);
typedef void (^InitQsSdkFail)(NSString *code, NSString *msg);
typedef void (^LoginQsSdkSuccess)(NSString *userId, NSString *token);
typedef void (^LoginQsSdkFail)(NSString *code, NSString *msg);
typedef void (^LogoutQsSdkSuccess)(void);
typedef void (^PayQsSdkSuccess)(NSString *orderId);
typedef void (^PayQsSdkFail)(NSString *code, NSString *msg);
typedef void (^UploadRoleInfoQsSdkSuccess)(void);
typedef void (^UploadRoleInfoQsSdkFail)(NSString *code, NSString *msg);


typedef void (^QsSdkCommonCb)(void);
typedef void (^QsSdkStrCommonCb)(NSString *msg);
typedef void (^QsSdkDicCommonCb)(NSDictionary *dic);
typedef void (^QsSdkStrCb)(NSString *code, NSString *msg, NSString *ext);

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

#import <UIKit/UIKit.h>

@interface QsSdkDeviceInfo : NSObject

+(QsSdkDeviceInfo *)insQsSdk;

-(NSString *)getQsSdkIDFA;

-(NSString *)getQsSdkIDFV;

-(NSString *)getQsSdkDeviceId;

// 判断是否是刘海屏
-(BOOL)isIPhoneNotchScreenQsSdk;

// 获取刘海屏高度
-(CGFloat)getIPhoneNotchScreenHeightQsSdk;

-(NSString *)getQsSdkDeviceModel;

-(NSString *)getQsSdkSystemVersion;

-(NSString *)getQsSdkUA;

-(NSString *)getQsSdkNetType;

-(NSString *)getQsSdkNetIsp;

-(NSString *)getQsSdkResolution;
@end



Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@




@interface QsSdkHttpResponse : NSObject

@property (nonatomic, retain) NSString *codeQsSdk;
@property (nonatomic, retain) NSString *msgQsSdk;
@property (nonatomic, retain) NSDictionary *dataQsSdk;

@end
Loading

0 comments on commit 8a57653

Please sign in to comment.