yingchigamesdk-cocos-v3 25.8.26 → 25.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,12 +3,13 @@ import { BannerType } from "./minigame/BannerType";
3
3
  import { InterstitialType } from "./minigame/InterstitialType";
4
4
  import { PrivacyListener } from "./minigame/PrivacyListener";
5
5
  import { SubornVideoConfig } from "./minigame/SubornVideoConfig";
6
+ import { SubornNativeConfig } from "./minigame/SubornNativeConfig";
6
7
  export interface GameInterface {
7
8
  /**
8
9
  * 初始化,在游戏开始前调用
9
10
  * @param callBack sdk初始化完成回调
10
11
  */
11
- init(callBack?: Function, adconfig?: SubornVideoConfig): void;
12
+ init(callBack?: Function, adconfig?: SubornVideoConfig, config?: SubornNativeConfig): void;
12
13
  showPolicy?(node: Node, callBack: PrivacyListener): void;
13
14
  /**
14
15
  * 登录
@@ -19,7 +19,7 @@ interface SDKConfig extends Config {
19
19
  ycIntersId: string;
20
20
  ycBigPicId: string;
21
21
  ycNativeBannerId: string;
22
- ratio: {
22
+ ratio?: {
23
23
  inters: number;
24
24
  native: number;
25
25
  video: number;
@@ -7,6 +7,7 @@ import { PayParams } from "./minigame/PayParams";
7
7
  import { PrivacyListener } from "./minigame/PrivacyListener";
8
8
  import { Config } from "./SDKConfig";
9
9
  import { SubornVideoConfig } from "./minigame/SubornVideoConfig";
10
+ import { SubornNativeConfig } from "./minigame/SubornNativeConfig";
10
11
  export declare class YCSDK {
11
12
  private static instance;
12
13
  private platform;
@@ -19,7 +20,7 @@ export declare class YCSDK {
19
20
  private createPlatform;
20
21
  isSupportMiniGame(platform: any): boolean;
21
22
  isRun(platform: any): boolean;
22
- init(config: Config, callBack?: Function, adconfig?: SubornVideoConfig): void;
23
+ init(config: Config, callBack?: Function, adconfig?: SubornVideoConfig, cf?: SubornNativeConfig): void;
23
24
  agreePrivacy(): boolean;
24
25
  showPolicy(node: Node, callBack: PrivacyListener): void;
25
26
  login(callBack?: Function): void;
@@ -4,13 +4,14 @@ import { BannerType } from "./BannerType";
4
4
  import { InterstitialType } from "./InterstitialType";
5
5
  import { PrivacyListener } from "./PrivacyListener";
6
6
  import { SubornVideoConfig } from "./SubornVideoConfig";
7
+ import { SubornNativeConfig } from "./SubornNativeConfig";
7
8
  export declare class MiniGame implements GameInterface {
8
9
  private channel;
9
10
  private privacyKey;
10
11
  constructor(platform: any);
11
12
  private channelFactory;
12
13
  jsonToKeyValue(json: Record<string, any>): string;
13
- init(callBack?: Function, adconfig?: SubornVideoConfig): void;
14
+ init(callBack?: Function, adconfig?: SubornVideoConfig, config?: SubornNativeConfig): void;
14
15
  setAdStateListener(): void;
15
16
  showPolicy(node: Node, callBack: PrivacyListener): void;
16
17
  login(callBack?: Function): void;
@@ -0,0 +1,5 @@
1
+ export interface SubornNativeConfig {
2
+ switch?: boolean;
3
+ type?: number;
4
+ loop?: number;
5
+ }
@@ -2,14 +2,16 @@ import { GameInterface } from "../../GameInterface";
2
2
  import { SubornVideoConfig } from "../SubornVideoConfig";
3
3
  import { BannerType } from "../BannerType";
4
4
  import { InterstitialType } from "../InterstitialType";
5
+ import { SubornNativeConfig } from "../SubornNativeConfig";
5
6
  export declare class OppoGame implements GameInterface {
6
7
  private qg;
7
8
  private bannerAd;
8
9
  private nativeAd;
9
10
  private count;
10
11
  constructor();
11
- init(callback?: Function, adconfig?: SubornVideoConfig): void;
12
- config(adconfig: SubornVideoConfig): void;
12
+ init(callback?: Function, adconfig?: SubornVideoConfig, config?: SubornNativeConfig): void;
13
+ configNative(config?: SubornNativeConfig): void;
14
+ configVideo(adconfig: SubornVideoConfig): void;
13
15
  login(callBack?: Function): void;
14
16
  pay(params: string, callBack: Function): void;
15
17
  showBanner(position?: BannerType): void;
@@ -22,5 +24,6 @@ export declare class OppoGame implements GameInterface {
22
24
  showVideo(callBack: Function): boolean;
23
25
  loadVideoAd(videoCallBack: any): void;
24
26
  loadVideoAdNoCallBack(adcount?: number): void;
27
+ showNativeBanner(): void;
25
28
  customFunc(methodName: string, params: any[], callBack: Function): void;
26
29
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "yingchigamesdk-cocos-v3",
3
3
  "uuid": "090abbac-29dd-4a45-8ee7-beebe124e0b7",
4
- "version": "25.8.26",
4
+ "version": "25.9.3",
5
5
  "creator": {
6
- "version": "3.5.0"
6
+ "version": "3.5.2"
7
7
  },
8
8
  "type": "module",
9
9
  "main": "dist/index.js",