@cc-component/cc-ex-component 1.2.5 → 1.2.7

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.
Files changed (82) hide show
  1. package/package.json +1 -1
  2. package/assets/platform/Interface.ts +0 -80
  3. package/assets/platform/Interface.ts.meta +0 -9
  4. package/assets/platform/android/AndroidModule.ts +0 -12
  5. package/assets/platform/android/AndroidModule.ts.meta +0 -9
  6. package/assets/platform/android/AndroidSDK.ts +0 -186
  7. package/assets/platform/android/AndroidSDK.ts.meta +0 -1
  8. package/assets/platform/android/AnyThinkAds/ATBanner.ts +0 -266
  9. package/assets/platform/android/AnyThinkAds/ATBanner.ts.meta +0 -9
  10. package/assets/platform/android/AnyThinkAds/ATInterstitial.ts +0 -185
  11. package/assets/platform/android/AnyThinkAds/ATInterstitial.ts.meta +0 -9
  12. package/assets/platform/android/AnyThinkAds/ATInterstitialAuto.ts +0 -180
  13. package/assets/platform/android/AnyThinkAds/ATInterstitialAuto.ts.meta +0 -9
  14. package/assets/platform/android/AnyThinkAds/ATNative.ts +0 -256
  15. package/assets/platform/android/AnyThinkAds/ATNative.ts.meta +0 -9
  16. package/assets/platform/android/AnyThinkAds/ATRewardedAutoVideo.ts +0 -175
  17. package/assets/platform/android/AnyThinkAds/ATRewardedAutoVideo.ts.meta +0 -9
  18. package/assets/platform/android/AnyThinkAds/ATRewardedVideo.ts +0 -243
  19. package/assets/platform/android/AnyThinkAds/ATRewardedVideo.ts.meta +0 -9
  20. package/assets/platform/android/AnyThinkAds/ATSDK.ts +0 -222
  21. package/assets/platform/android/AnyThinkAds/ATSDK.ts.meta +0 -9
  22. package/assets/platform/android/AnyThinkAds/ATSplash.ts +0 -155
  23. package/assets/platform/android/AnyThinkAds/ATSplash.ts.meta +0 -9
  24. package/assets/platform/android/AnyThinkAds/Android/ATAndroidBannerTS.ts +0 -71
  25. package/assets/platform/android/AnyThinkAds/Android/ATAndroidBannerTS.ts.meta +0 -9
  26. package/assets/platform/android/AnyThinkAds/Android/ATAndroidInterstitialAutoTS.ts +0 -52
  27. package/assets/platform/android/AnyThinkAds/Android/ATAndroidInterstitialAutoTS.ts.meta +0 -9
  28. package/assets/platform/android/AnyThinkAds/Android/ATAndroidInterstitialTS.ts +0 -41
  29. package/assets/platform/android/AnyThinkAds/Android/ATAndroidInterstitialTS.ts.meta +0 -9
  30. package/assets/platform/android/AnyThinkAds/Android/ATAndroidNativeTS.ts +0 -47
  31. package/assets/platform/android/AnyThinkAds/Android/ATAndroidNativeTS.ts.meta +0 -9
  32. package/assets/platform/android/AnyThinkAds/Android/ATAndroidRewardedVideoAutoTS.ts +0 -52
  33. package/assets/platform/android/AnyThinkAds/Android/ATAndroidRewardedVideoAutoTS.ts.meta +0 -9
  34. package/assets/platform/android/AnyThinkAds/Android/ATAndroidRewardedVideoTS.ts +0 -41
  35. package/assets/platform/android/AnyThinkAds/Android/ATAndroidRewardedVideoTS.ts.meta +0 -9
  36. package/assets/platform/android/AnyThinkAds/Android/ATAndroidSplashTS.ts +0 -42
  37. package/assets/platform/android/AnyThinkAds/Android/ATAndroidSplashTS.ts.meta +0 -9
  38. package/assets/platform/android/AnyThinkAds/Android/ATAndroidTS.ts +0 -73
  39. package/assets/platform/android/AnyThinkAds/Android/ATAndroidTS.ts.meta +0 -9
  40. package/assets/platform/android/AnyThinkAds/Android.meta +0 -9
  41. package/assets/platform/android/AnyThinkAds/iOS/ATiOSBannerTS.ts +0 -66
  42. package/assets/platform/android/AnyThinkAds/iOS/ATiOSBannerTS.ts.meta +0 -9
  43. package/assets/platform/android/AnyThinkAds/iOS/ATiOSInterstitiaAutolTS.ts +0 -54
  44. package/assets/platform/android/AnyThinkAds/iOS/ATiOSInterstitiaAutolTS.ts.meta +0 -9
  45. package/assets/platform/android/AnyThinkAds/iOS/ATiOSInterstitialTS.ts +0 -43
  46. package/assets/platform/android/AnyThinkAds/iOS/ATiOSInterstitialTS.ts.meta +0 -9
  47. package/assets/platform/android/AnyThinkAds/iOS/ATiOSNativeTS.ts +0 -47
  48. package/assets/platform/android/AnyThinkAds/iOS/ATiOSNativeTS.ts.meta +0 -9
  49. package/assets/platform/android/AnyThinkAds/iOS/ATiOSRewardedAutoVideoTS.ts +0 -55
  50. package/assets/platform/android/AnyThinkAds/iOS/ATiOSRewardedAutoVideoTS.ts.meta +0 -9
  51. package/assets/platform/android/AnyThinkAds/iOS/ATiOSRewardedVideoTS.ts +0 -43
  52. package/assets/platform/android/AnyThinkAds/iOS/ATiOSRewardedVideoTS.ts.meta +0 -9
  53. package/assets/platform/android/AnyThinkAds/iOS/ATiOSSplashTS.ts +0 -47
  54. package/assets/platform/android/AnyThinkAds/iOS/ATiOSSplashTS.ts.meta +0 -9
  55. package/assets/platform/android/AnyThinkAds/iOS/ATiOSTS.ts +0 -76
  56. package/assets/platform/android/AnyThinkAds/iOS/ATiOSTS.ts.meta +0 -9
  57. package/assets/platform/android/AnyThinkAds/iOS.meta +0 -9
  58. package/assets/platform/android/AnyThinkAds.meta +0 -9
  59. package/assets/platform/android/iOSSDK.ts +0 -14
  60. package/assets/platform/android/iOSSDK.ts.meta +0 -1
  61. package/assets/platform/android.meta +0 -11
  62. package/assets/platform/base/EditorSDK.ts +0 -30
  63. package/assets/platform/base/EditorSDK.ts.meta +0 -1
  64. package/assets/platform/base/PlatfprmModule.ts +0 -152
  65. package/assets/platform/base/PlatfprmModule.ts.meta +0 -9
  66. package/assets/platform/base/SDKBase.ts +0 -59
  67. package/assets/platform/base/SDKBase.ts.meta +0 -9
  68. package/assets/platform/base/SDKEnum.ts +0 -127
  69. package/assets/platform/base/SDKEnum.ts.meta +0 -9
  70. package/assets/platform/base/TTSDK.ts +0 -366
  71. package/assets/platform/base/TTSDK.ts.meta +0 -9
  72. package/assets/platform/base/WXSDK.ts +0 -149
  73. package/assets/platform/base/WXSDK.ts.meta +0 -1
  74. package/assets/platform/base.meta +0 -9
  75. package/assets/platform/wx/MiniSDK.ts +0 -1039
  76. package/assets/platform/wx/MiniSDK.ts.meta +0 -9
  77. package/assets/platform/wx/lib.douyin.d.ts +0 -168
  78. package/assets/platform/wx/lib.douyin.d.ts.meta +0 -9
  79. package/assets/platform/wx/wxmini.d.ts +0 -2452
  80. package/assets/platform/wx/wxmini.d.ts.meta +0 -9
  81. package/assets/platform/wx.meta +0 -9
  82. package/assets/platform.meta +0 -9
@@ -1,73 +0,0 @@
1
- import { native } from 'cc';
2
-
3
- const classJavaName = "com/anythink/cocosjs/ATJSBridge";
4
-
5
- export const ATAndroidTS = {
6
- printJsLog: function (msg: any) {
7
- if (undefined != msg) {
8
- native.reflection.callStaticMethod("android/util/Log", "i", "(Ljava/lang/String;Ljava/lang/String;)I", "AT-Cocos-JS", msg);
9
- }
10
- },
11
-
12
- initSDK: function (appid: any, appkey: any) {
13
- native.reflection.callStaticMethod(classJavaName, "initSDK", "(Ljava/lang/String;Ljava/lang/String;)V", appid, appkey);
14
- // native.bridge.sendToNative(SDKEnum.DeviceInfo);
15
- },
16
-
17
- initCustomMap: function (customMap: any) {
18
- native.reflection.callStaticMethod(classJavaName, "initCustomMap", "(Ljava/lang/String;)V", customMap);
19
- },
20
-
21
- setPlacementCustomMap: function (placmentId: any, customMap: any) {
22
- native.reflection.callStaticMethod(classJavaName, "setPlacementCustomMap", "(Ljava/lang/String;Ljava/lang/String;)V", placmentId, customMap);
23
- },
24
-
25
- setGDPRLevel: function (level: any) {
26
- native.reflection.callStaticMethod(classJavaName, "setGDPRLevel", "(I)V", level);
27
- },
28
-
29
- getGDPRLevel: function () {
30
- return native.reflection.callStaticMethod(classJavaName, "getGDPRLevel", "()I");
31
- },
32
-
33
- getUserLocation: function (callbackMethod: any) {
34
- native.reflection.callStaticMethod(classJavaName, "getUserLocation", "(Ljava/lang/String;)V", callbackMethod);
35
- },
36
-
37
- showGDPRAuth: function () {
38
- native.reflection.callStaticMethod(classJavaName, "showGDPRAuth", "()V");
39
- },
40
-
41
- setLogDebug: function (debug: any) {
42
- native.reflection.callStaticMethod(classJavaName, "setLogDebug", "(Z)V", debug);
43
- },
44
-
45
- deniedUploadDeviceInfo: function (deniedInfo: any) {
46
- native.reflection.callStaticMethod(classJavaName, "deniedUploadDeviceInfo", "(Ljava/lang/String;)V", deniedInfo);
47
- },
48
-
49
- setChannel: function (channel: any) {
50
- native.reflection.callStaticMethod(classJavaName, "setChannel", "(Ljava/lang/String;)V", channel);
51
- },
52
-
53
- setSubChannel: function (subChannel: any) {
54
- native.reflection.callStaticMethod(classJavaName, "setSubChannel", "(Ljava/lang/String;)V", subChannel);
55
- },
56
-
57
- showGDPRConsent: function (callbackMethod: any) {
58
- native.reflection.callStaticMethod(classJavaName, "showGDPRConsent", "(Ljava/lang/String;)V", callbackMethod);
59
- },
60
-
61
- showDebuggerUI: function (debugKey: any) {
62
- try {
63
- native.reflection.callStaticMethod(classJavaName, "showDebuggerUI", "(Ljava/lang/String;)V", debugKey);
64
- } catch (error) {
65
- if (error instanceof Error) {
66
- console.error(error.message);
67
- } else {
68
- console.error('unknown error', error);
69
- }
70
- }
71
- }
72
-
73
- };
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "7063e7a5-5411-45dc-84b4-d234fed35c5f",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "1.2.0",
3
- "importer": "directory",
4
- "imported": true,
5
- "uuid": "447c22e9-e888-4b3d-b336-e832f3739ae8",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,66 +0,0 @@
1
- import { native } from 'cc';
2
-
3
- import {ATiOSTS} from "./ATiOSTS";
4
- const OC_WRAPPER_CLASS = "ATBannerAdWrapper";
5
- export const ATiOSBannerTS = {
6
- loadBanner: function(placementId, extra) {
7
- ATiOSTS.printJsLog("ATiOSBannerJS::loadBanner(" + placementId + ", " + extra + ")");
8
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "loadBannerWithPlacementID:extra:", placementId, extra);
9
- },
10
-
11
- setAdListener : function (listener) {
12
- ATiOSTS.printJsLog("ATiOSBannerJS::setAdListener(" + listener + ")");
13
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "setDelegates:", listener);
14
- },
15
-
16
- hasAdReady : function(placementId) {
17
- ATiOSTS.printJsLog("ATiOSBannerJS::hasAdReady(" + placementId + ")");
18
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "bannerReadyForPlacementID:", placementId);
19
- },
20
-
21
- checkAdStatus : function(placementId) {
22
- ATiOSTS.printJsLog("ATiOSBannerJS::checkAdStatus(" + placementId + ")");
23
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "bannerCheckAdStatusForPlacementID:", placementId);
24
- },
25
-
26
- showAdInPosition : function(placementId, position) {
27
- ATiOSTS.printJsLog("ATiOSBannerJS::showAdInPosition(" + placementId + ", " + position + ")");
28
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showBannerWithPlacementID:scene:position:", placementId, null, position);
29
- },
30
-
31
- showAdInPositionAndScenario : function(placementId, position, scenario) {
32
- ATiOSTS.printJsLog("ATiOSBannerJS::showAdInPositionAndScenario(" + placementId + ", " + position + ", " + scenario + ")");
33
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showBannerWithPlacementID:scene:position:", placementId, scenario, position);
34
- },
35
-
36
- showAdInRectangle : function(placementId, showAdRect) {
37
- ATiOSTS.printJsLog("ATiOSBannerJS::showAdInRectangle(" + placementId + ", " + showAdRect + ")");
38
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showBannerWithPlacementID:scene:rect:", placementId, null, showAdRect);
39
- },
40
-
41
- showAdInRectangleAndScenario : function(placementId, showAdRect, scenario) {
42
- ATiOSTS.printJsLog("ATiOSBannerJS::showAdInRectangleAndScenario(" + placementId + ", " + showAdRect + ", " + scenario + ")");
43
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showBannerWithPlacementID:scene:rect:", placementId, scenario, showAdRect);
44
- },
45
-
46
- removeAd : function(placementId) {
47
- ATiOSTS.printJsLog("ATiOSBannerJS::removeAd(" + placementId + ")");
48
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "removeAd:", placementId);
49
- },
50
-
51
- reShowAd : function(placementId) {
52
- ATiOSTS.printJsLog("ATiOSBannerJS::reShowAd(" + placementId + ")");
53
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "reShowAd:", placementId);
54
- },
55
-
56
- hideAd : function(placementId) {
57
- ATiOSTS.printJsLog("ATiOSBannerJS::hideAd(" + placementId + ")");
58
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "hideAd:", placementId);
59
- },
60
-
61
- entryAdScenario: function (placementId, scenario) {
62
- // cc.log("Android-entryAdScenario:" + placementId + "---" + scenario);
63
- // native.reflection.callStaticMethod(classJavaName, "entryAdScenario", "(Ljava/lang/String;Ljava/lang/String;)V", placementId, scenario);
64
- }
65
- };
66
-
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "f4070aaf-0413-40b1-bf4e-e10653bbdb70",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,54 +0,0 @@
1
- import { native } from 'cc';
2
-
3
- import {ATiOSTS} from "./ATiOSTS";
4
- const OC_WRAPPER_CLASS = "ATInterstitialAutoAdWrapper";
5
- export const ATiOSInterstitialAutoAdTS = {
6
-
7
- setAdListener : function (listener) {
8
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::setAdListener(" + listener + ")");
9
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "setDelegates:", listener);
10
- },
11
-
12
- setAdExtraData : function (placementId, extra) {
13
-
14
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::setAdExtraData(" + placementId + ", " + extra + ")");
15
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "setAutoLocalExtra:customDataJSONString:", placementId, extra);
16
- },
17
-
18
- addPlacementIds : function (placementId) {
19
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::addPlacementIds(" + placementId + ")");
20
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "addAutoLoadAdPlacementID:", placementId);
21
- },
22
-
23
- removePlacementId : function (placementId) {
24
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::removePlacementId(" + placementId + ")");
25
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "removeAutoLoadAdPlacementID:", placementId);
26
- },
27
-
28
- hasAdReady : function (placementId) {
29
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::hasAdReady(" + placementId + ")");
30
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "autoLoadInterstitialAdReadyForPlacementID:", placementId);
31
- },
32
-
33
- checkAdStatus : function (placementId) {
34
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::hasAdReady(" + placementId + ")");
35
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "checkAutoAdStatus:",placementId);
36
- },
37
-
38
- entryAdScenario : function(placementId, scenario) {
39
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::entryAdScenario(" + placementId + ", " + scenario + ")");
40
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "entryAutoAdScenarioWithPlacementID:scenarioID:", placementId, scenario);
41
- },
42
-
43
-
44
- showAd : function(placementId) {
45
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::showAd(" + placementId + ")");
46
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showAutoInterstitialAdWithPlacementID:scenarioID:", placementId, null);
47
- },
48
-
49
- showAdInScenario : function(placementId, scenario) {
50
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::showAdInScenario(" + placementId + ", " + scenario + ")");
51
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showAutoInterstitialAdWithPlacementID:scenarioID:", placementId, scenario);
52
- },
53
-
54
- };
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "70970500-1d81-4ee2-91ea-9bf586113fb0",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,43 +0,0 @@
1
- import { native } from 'cc';
2
-
3
- import {ATiOSTS} from "./ATiOSTS";
4
- const OC_WRAPPER_CLASS = "ATInterstitialAdWrapper";
5
- export const ATiOSInterstitialTS = {
6
- loadInterstitial : function (placementId, extra) {
7
- ATiOSTS.printJsLog("ATiOSInterstitialJS::loadInterstitial(" + placementId + ", " + extra + ")");
8
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "loadInterstitialWithPlacementID:extra:", placementId, extra);
9
- },
10
-
11
- setAdListener : function (listener) {
12
- ATiOSTS.printJsLog("ATiOSInterstitialJS::setAdListener(" + listener + ")");
13
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "setDelegates:", listener);
14
- },
15
-
16
- hasAdReady : function (placementId) {
17
- ATiOSTS.printJsLog("ATiOSInterstitialJS::hasAdReady(" + placementId + ")");
18
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "interstitialReadyForPlacementID:", placementId);
19
- },
20
-
21
- checkAdStatus : function (placementId) {
22
- ATiOSTS.printJsLog("ATiOSInterstitialJS::checkAdStatus(" + placementId + ")");
23
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "checkAdStatus:", placementId);
24
- },
25
-
26
- showAd : function(placementId) {
27
- ATiOSTS.printJsLog("ATiOSInterstitialJS::showAd(" + placementId + ")");
28
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showInterstitialWithPlacementID:scene:", placementId, null);
29
-
30
- },
31
-
32
- showAdInScenario : function(placementId, scenario) {
33
- ATiOSTS.printJsLog("ATiOSInterstitialJS::showAd(" + placementId + ", " + scenario + ")");
34
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showInterstitialWithPlacementID:scene:", placementId, scenario);
35
- },
36
-
37
- entryAdScenario : function(placementId, scenario) {
38
- ATiOSTS.printJsLog("ATiOSInterstitialJS::entryAdScenario(" + placementId + ", " + scenario + ")");
39
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "entryAdScenarioWithPlacementID:scene:", placementId, scenario);
40
- }
41
-
42
- };
43
-
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "4c785e31-d74f-4c23-9a84-b5fd70509ac4",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,47 +0,0 @@
1
- import { native } from 'cc';
2
-
3
- import {ATiOSTS} from "./ATiOSTS";
4
- const OC_WRAPPER_CLASS = "ATNativeAdWrapper";
5
-
6
- export const ATiOSNativeTS = {
7
- loadNative : function(placementId, settings) {
8
- ATiOSTS.printJsLog("ATiOSBannerJS::loadNative(" + placementId + ", " + settings + ")");
9
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "loadNativeWithPlacementID:extra:", placementId, settings);
10
- },
11
-
12
- setAdListener : function (listener) {
13
- ATiOSTS.printJsLog("ATiOSNativeJS::setAdListener(" + listener + ")");
14
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "setDelegates:", listener);
15
- },
16
-
17
- hasAdReady : function(placementId) {
18
- ATiOSTS.printJsLog("ATiOSNativeJS::hasAdReady(" + placementId + ")");
19
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "nativeReadyForPlacementID:", placementId);
20
- },
21
-
22
- checkAdStatus : function(placementId) {
23
- ATiOSTS.printJsLog("ATiOSNativeJS::checkAdStatus(" + placementId + ")");
24
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "nativeCheckAdStatusForPlacementID:", placementId);
25
- },
26
-
27
- showAd : function(placementId, adViewProperty) {
28
- ATiOSTS.printJsLog("ATiOSNativeJS::showAd(" + placementId + ", " + adViewProperty + ")");
29
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showNativeWithPlacementID:scene:metrics:", placementId, null, adViewProperty);
30
- },
31
-
32
- showAdInScenario : function(placementId, adViewProperty, scenario) {
33
- ATiOSTS.printJsLog("ATiOSNativeJS::showAdInScenario(" + placementId + ", " + adViewProperty + ", " + scenario + ")");
34
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showNativeWithPlacementID:scene:metrics:", placementId, scenario, adViewProperty);
35
- },
36
-
37
- removeAd : function(placementId) {
38
- ATiOSTS.printJsLog("ATiOSNativeJS::removeAd(" + placementId + ")");
39
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "removeNativeWithPlacementID:", placementId);
40
- },
41
- entryAdScenario : function(placementId, scenario) {
42
- ATiOSTS.printJsLog("ATiOSInterstitialJS::entryAdScenario(" + placementId + ", " + scenario + ")");
43
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "entryAdScenarioWithPlacementID:scene:", placementId, scenario);
44
- }
45
- };
46
-
47
-
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "8a80b868-4f0b-4663-ba3e-5a2b0d095fc3",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,55 +0,0 @@
1
- import { native } from 'cc';
2
-
3
- import {ATiOSTS} from "./ATiOSTS";
4
- const OC_RV_WRAPPER_CLASS = "ATRewardedVideoAutoAdWrapper";
5
-
6
- export const ATiOSRewardedVideoAutoAdJS = {
7
-
8
- setAdListener : function (listener) {
9
- ATiOSTS.printJsLog("ATiOSRewardedVideoAutoAdJS::setAdListener(" + listener + ")");
10
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "setDelegates:", listener);
11
- },
12
-
13
- setAdExtraData : function (placementId, extra) {
14
-
15
- ATiOSTS.printJsLog("ATiOSRewardedVideoAutoAdJS::setAdExtraData(" + placementId + ", " + extra + ")");
16
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "setAutoLocalExtra:customDataJSONString:", placementId, extra);
17
- },
18
-
19
- addPlacementIds : function (placementId) {
20
- ATiOSTS.printJsLog("ATiOSRewardedVideoAutoAdJS::addPlacementIds(" + placementId + ")");
21
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "addAutoLoadAdPlacementID:", placementId);
22
- },
23
-
24
- removePlacementId : function (placementId) {
25
- ATiOSTS.printJsLog("ATiOSRewardedVideoAutoAdJS::removePlacementId(" + placementId + ")");
26
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "removeAutoLoadAdPlacementID:", placementId);
27
- },
28
-
29
- hasAdReady : function (placementId) {
30
- ATiOSTS.printJsLog("ATiOSRewardedVideoAutoAdJS::hasAdReady(" + placementId + ")");
31
- return native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "autoLoadRewardedVideoReadyForPlacementID:", placementId);
32
- },
33
-
34
- checkAdStatus : function (placementId) {
35
- ATiOSTS.printJsLog("ATiOSRewardedVideoAutoAdJS::hasAdReady(" + placementId + ")");
36
- return native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "checkAutoAdStatus:", placementId);
37
- },
38
-
39
- entryAdScenario : function(placementId, scenario) {
40
- ATiOSTS.printJsLog("ATiOSInterstitialAutoAdJS::entryAdScenario(" + placementId + ", " + scenario + ")");
41
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "entryAutoAdScenarioWithPlacementID:scenarioID:", placementId, scenario);
42
- },
43
-
44
- showAd : function(placementId) {
45
- ATiOSTS.printJsLog("ATiOSRewardedVideoAutoAdJS::showAd(" + placementId + ")");
46
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "showAutoRewardedVideoWithPlacementID:scenarioID:", placementId, null);
47
- },
48
-
49
- showAdInScenario : function(placementId, scenario) {
50
- ATiOSTS.printJsLog("ATiOSRewardedVideoAutoAdJS::showAdInScenario(" + placementId + ", " + scenario + ")");
51
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "showAutoRewardedVideoWithPlacementID:scenarioID:", placementId, scenario);
52
- }
53
-
54
- };
55
-
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "d2637612-96e3-4cb1-97d6-2e9bd6aa8fe4",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,43 +0,0 @@
1
- import { native } from 'cc';
2
- import {ATiOSTS} from "./ATiOSTS";
3
-
4
- const OC_RV_WRAPPER_CLASS = "ATRewardedVideoWrapper";
5
- export const ATiOSRewardedVideoTS = {
6
- loadRewardedVideo : function (placementId, extra) {
7
- ATiOSTS.printJsLog("ATiOSRewardedVideoJS::loadRewardedVideo(" + placementId + ", " + extra + ")");
8
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "loadRewardedVideoWithPlacementID:extra:", placementId, extra);
9
- },
10
-
11
- setAdListener : function (listener) {
12
- ATiOSTS.printJsLog("ATiOSRewardedVideoJS::setAdListener(" + listener + ")");
13
- native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "setDelegates:", listener);
14
- },
15
-
16
- hasAdReady : function (placementId) {
17
- ATiOSTS.printJsLog("ATiOSRewardedVideoJS::hasAdReady(" + placementId + ")");
18
- return native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "rewardedVideoReadyForPlacementID:", placementId);
19
- },
20
-
21
- checkAdStatus : function (placementId) {
22
- ATiOSTS.printJsLog("ATiOSRewardedVideoJS::checkAdStatus(" + placementId + ")");
23
- return native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "checkAdStatus:", placementId);
24
- },
25
-
26
- showAd : function(placementId) {
27
- ATiOSTS.printJsLog("ATiOSRewardedVideoJS::showAd(" + placementId + ")");
28
- return native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "showRewardedVideoWithPlacementID:scene:", placementId, null);
29
-
30
- },
31
-
32
- showAdInScenario : function(placementId, scenario) {
33
- ATiOSTS.printJsLog("ATiOSRewardedVideoJS::showAdInScenario(" + placementId + ", " + scenario + ")");
34
- return native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "showRewardedVideoWithPlacementID:scene:", placementId, scenario);
35
- },
36
-
37
- entryAdScenario : function(placementId, scenario) {
38
- ATiOSTS.printJsLog("ATiOSInterstitialJS::entryAdScenario(" + placementId + ", " + scenario + ")");
39
- return native.reflection.callStaticMethod(OC_RV_WRAPPER_CLASS, "entryAdScenarioWithPlacementID:scene:", placementId, scenario);
40
- }
41
-
42
- };
43
-
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "569953c1-6041-4746-8a9b-955791d0108e",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,47 +0,0 @@
1
- import {ATiOSTS} from "./ATiOSTS";
2
- import { native } from 'cc';
3
-
4
- const OC_WRAPPER_CLASS = "ATSplashAdWrapper";
5
-
6
- export const ATiOSSplashTS = {
7
- loadSplash : function (placementId, extra) {
8
- ATiOSTS.printJsLog("ATiOSSplashJS::loadSplash(" + placementId + ", " + extra + ")");
9
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "loadSplashWithPlacementID:extra:", placementId, extra);
10
- },
11
-
12
- setAdListener : function (listener) {
13
- ATiOSTS.printJsLog("ATiOSSplashJS::setAdListener(" + listener + ")");
14
- native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "setDelegates:", listener);
15
- },
16
-
17
- hasAdReady : function (placementId) {
18
- ATiOSTS.printJsLog("ATiOSSplashJS::hasAdReady(" + placementId + ")");
19
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "splashReadyForPlacementID:", placementId);
20
- },
21
-
22
- checkAdStatus : function (placementId) {
23
- ATiOSTS.printJsLog("ATiOSSplashJS::checkAdStatus(" + placementId + ")");
24
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "checkAdStatus:", placementId);
25
- },
26
-
27
- showAd : function(placementId) {
28
- ATiOSTS.printJsLog("ATiOSSplashJS::showAd(" + placementId + ")");
29
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showSplashWithPlacementID:scene:", placementId, null);
30
- },
31
-
32
- showAdWithExtra : function(placementId, showExtra) {
33
- ATiOSTS.printJsLog("ATiOSSplashJS::showAd(" + placementId + " , " + showExtra + ")");
34
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showSplashWithPlacementID:showExtra:", placementId, showExtra);
35
- },
36
-
37
- showAdInScenario : function(placementId, scenario) {
38
- ATiOSTS.printJsLog("ATiOSSplashJS::showAd(" + placementId + ", " + scenario + ")");
39
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "showSplashWithPlacementID:scene:", placementId, scenario);
40
- },
41
-
42
- entryAdScenario : function(placementId, scenario) {
43
- ATiOSTS.printJsLog("ATiOSSplashJS::entryAdScenario(" + placementId + ", " + scenario + ")");
44
- return native.reflection.callStaticMethod(OC_WRAPPER_CLASS, "entryAdScenarioWithPlacementID:scene:", placementId, scenario);
45
- }
46
-
47
- };
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "71adc935-ea10-4e3b-a913-f4451abcaaa7",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,76 +0,0 @@
1
- import { native } from 'cc';
2
-
3
- const OC_ATSDK_MANAGER_CLASS = "ATSDKManager";
4
- const OC_BIRDGE_CLASS = "ATJSBridge";
5
-
6
- export const ATiOSTS = {
7
- initSDK : function(appid, appkey) {
8
- this.printJsLog("ATiOSJS::initSDK(" + appid + "," + appkey + ")");
9
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "startWithAppID:appKey:", appid, appkey);
10
- },
11
-
12
- initCustomMap : function(customMap) {
13
- this.printJsLog("ATiOSJS::initCustomMap(" + customMap + ")");
14
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "setCustomData:", customMap);
15
- },
16
-
17
- setPlacementCustomMap : function(placmentId, customMap) {
18
- this.printJsLog("ATiOSJS::setPlacementCustomMap(" + placmentId + ", " + customMap + ")");
19
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "setCustomData:forPlacementID:", customMap, placmentId);
20
- },
21
-
22
- setGDPRLevel : function(level) {
23
- this.printJsLog("ATiOSJS::setGDPRLevel(" + level + ")");
24
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "setDataConsent:", level);
25
- },
26
-
27
- getGDPRLevel : function() {
28
- this.printJsLog("ATiOSJS::getGDPRLevel()");
29
- return native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "dataConsent", "()I");
30
- },
31
-
32
- getUserLocation : function(callbackMethod) {
33
- this.printJsLog("ATiOSJS::getUserLocation(" + callbackMethod + ")");
34
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "getUserLocationWithCallback:", callbackMethod);
35
- },
36
-
37
- showGDPRAuth : function () {
38
- this.printJsLog("ATiOSJS::showGDPRAuth()");
39
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "presentDataConsentDialog", "()I");
40
- },
41
-
42
- setLogDebug : function (debug) {
43
- this.printJsLog("ATiOSJS::setLogDebug(" + debug + ")");
44
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "setDebugLog:", debug);
45
- },
46
-
47
- printJsLog : function(msg) {
48
- console.log(msg);
49
- if (undefined != msg && msg != null) {
50
- native.reflection.callStaticMethod(OC_BIRDGE_CLASS, "log:", msg);
51
- }
52
- },
53
-
54
- deniedUploadDeviceInfo : function (deniedInfo) {
55
- this.printJsLog("ATiOSJS::deniedUploadDeviceInfo(" + deniedInfo + ")");
56
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "deniedUploadDeviceInfo:", deniedInfo);
57
- },
58
-
59
- showGDPRConsent : function(callbackMethod) {
60
- // native.reflection.callStaticMethod(classJavaName, "showGDPRConsentDialog", "(Ljava/lang/String;)V", callbackMethod);
61
- },
62
-
63
- showDebuggerUI : function (debugKey) {
64
- native.reflection.callStaticMethod(OC_ATSDK_MANAGER_CLASS, "showDebuggerUIWithDebugKey:", debugKey);
65
- },
66
-
67
- setChannel : function(channel: any) {
68
- // native.reflection.callStaticMethod(classJavaName, "setChannel", "(I)V", channel);
69
- },
70
-
71
- setSubChannel : function(subChannel: any) {
72
- // native.reflection.callStaticMethod(classJavaName, "setSubChannel", "(I)V", subChannel);
73
- }
74
-
75
- };
76
-
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "e3db35d1-d1a0-43c4-9b94-282f39809fb6",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "1.2.0",
3
- "importer": "directory",
4
- "imported": true,
5
- "uuid": "2c33f891-af81-4553-8f94-b79bf27c919d",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "ver": "1.2.0",
3
- "importer": "directory",
4
- "imported": true,
5
- "uuid": "6c1e31da-6fc3-473e-b37e-136e0a9f5743",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
@@ -1,14 +0,0 @@
1
- import { _decorator, Component, Node } from 'cc';
2
- const { ccclass, property } = _decorator;
3
-
4
- @ccclass('TTSDK')
5
- export class TTSDK extends Component {
6
- start() {
7
-
8
- }
9
-
10
- update(deltaTime: number) {
11
-
12
- }
13
- }
14
-