更新ironsource

This commit is contained in:
xiekaidong 2023-08-23 20:21:05 +08:00
parent e4df3deb60
commit b3091fbf49
70 changed files with 7114 additions and 1036 deletions

View File

@ -8,20 +8,29 @@
url "https://maven.google.com" url "https://maven.google.com"
} }
maven { maven {
url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:16, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:48, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8, Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:16, Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9, Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17
} }
maven { maven {
url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:40, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15
}
maven {
url "https://cboost.jfrog.io/artifactory/chartboost-ads/" // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15
} }
maven { maven {
url "https://repo.maven.apache.org/maven2/" // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 url "https://repo.maven.apache.org/maven2/" // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8
} }
maven {
url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/" // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:16, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:24, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:32
}
maven { maven {
url "https://artifact.bytedance.com/repository/pangle/" // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 url "https://artifact.bytedance.com/repository/pangle/" // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15
} }
maven { maven {
url "https://sdk.tapjoy.com/" // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 url "https://sdk.tapjoy.com/" // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15
} }
maven {
url "https://jitpack.io/" // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8
}
mavenLocal() mavenLocal()
jcenter() jcenter()
mavenCentral() mavenCentral()
@ -34,42 +43,50 @@ apply plugin: 'com.android.library'
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start // Android Resolver Dependencies Start
implementation 'androidx.recyclerview:recyclerview:1.2.1' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:40
implementation 'com.adcolony:sdk:4.8.0' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8 implementation 'com.adcolony:sdk:4.8.0' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8
implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:10 implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:10
implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.applovin:applovin-sdk:11.7.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15 implementation 'com.applovin:applovin-sdk:11.10.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15
implementation 'com.appsflyer:af-android-sdk:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:6 implementation 'com.appsflyer:af-android-sdk:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:6
implementation 'com.appsflyer:unity-wrapper:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:8 implementation 'com.appsflyer:unity-wrapper:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:8
implementation 'com.chartboost:chartboost-sdk:9.2.0' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15 implementation 'com.chartboost:chartboost-sdk:9.3.1' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15
implementation 'com.facebook.android:audience-network-sdk:6.12.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8 implementation 'com.facebook.android:audience-network-sdk:6.15.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8
implementation 'com.facebook.android:facebook-applinks:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:6 implementation 'com.facebook.android:facebook-applinks:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:6
implementation 'com.facebook.android:facebook-core:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:5 implementation 'com.facebook.android:facebook-core:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:5
implementation 'com.facebook.android:facebook-gamingservices:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:9 implementation 'com.facebook.android:facebook-gamingservices:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:9
implementation 'com.facebook.android:facebook-login:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:7 implementation 'com.facebook.android:facebook-login:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:7
implementation 'com.facebook.android:facebook-share:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:8 implementation 'com.facebook.android:facebook-share:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:8
implementation 'com.fyber:marketplace-sdk:8.2.2' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 implementation 'com.fyber:marketplace-sdk:8.2.3' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8
implementation 'com.google.android.gms:play-services-ads:21.5.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8 implementation 'com.google.android.gms:play-services-ads:22.2.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17 implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17
implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25 implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25
implementation 'com.ironsource.adapters:adcolonyadapter:4.3.14' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:adcolonyadapter:4.3.14' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16
implementation 'com.ironsource.adapters:admobadapter:4.3.35' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:admobadapter:4.3.39' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16
implementation 'com.ironsource.adapters:applovinadapter:4.3.37' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:applovinadapter:4.3.39' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8
implementation 'com.ironsource.adapters:chartboostadapter:4.3.11' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:chartboostadapter:4.3.12' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8
implementation 'com.ironsource.adapters:facebookadapter:4.3.39' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:facebookadapter:4.3.44' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16
implementation 'com.ironsource.adapters:fyberadapter:4.3.24' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:fyberadapter:4.3.26' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16
implementation 'com.ironsource.adapters:liftoffadapter:4.3.5' // Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:mintegraladapter:4.3.17' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:48
implementation 'com.ironsource.adapters:pangleadapter:4.3.17' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:pangleadapter:4.3.20' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8
implementation 'com.ironsource.adapters:tapjoyadapter:4.1.24' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:tapjoyadapter:4.1.25' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8
implementation 'com.ironsource.adapters:unityadsadapter:4.3.27' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:unityadsadapter:4.3.31' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8
implementation 'com.ironsource.sdk:mediationsdk:7.3.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9 implementation 'com.ironsource.adapters:vungleadapter:4.3.21' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:16
implementation 'com.pangle.global:ads-sdk:5.0.0.8' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 implementation 'com.ironsource.sdk:mediationsdk:7.3.1.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9
implementation 'com.ironsource.unity:adqualitysdk:7.13.0' // Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17
implementation 'com.ironsource:adqualitysdk:7.13.0' // Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9
implementation 'com.mbridge.msdk.oversea:mbbanner:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:24
implementation 'com.mbridge.msdk.oversea:mbbid:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:32
implementation 'com.mbridge.msdk.oversea:newinterstitial:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8
implementation 'com.mbridge.msdk.oversea:reward:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:16
implementation 'com.pangle.global:ads-sdk:5.2.0.6' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15
implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:4 implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:4
implementation 'com.tapjoy:tapjoy-android-sdk:12.11.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 implementation 'com.tapjoy:tapjoy-android-sdk:13.0.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15
implementation 'com.unity3d.ads:unity-ads:4.6.1' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 implementation 'com.unity3d.ads:unity-ads:4.8.0' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15
implementation 'io.liftoff:liftoffads:1.9.1' // Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:8 implementation 'com.vungle:publisher-sdk-android:6.12.1' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8
// Android Resolver Dependencies End // Android Resolver Dependencies End
**DEPS**} **DEPS**}

View File

@ -31,6 +31,7 @@ namespace BF
// SDK init // SDK init
BFLog.Log("unity-script: IronSource.Agent.init"); BFLog.Log("unity-script: IronSource.Agent.init");
// IronSource.Agent.setMetaData("is_test_suite", "enable");
IronSource.Agent.init(appKey); IronSource.Agent.init(appKey);
IronSource.Agent.setManualLoadRewardedVideo(true); IronSource.Agent.setManualLoadRewardedVideo(true);
@ -155,6 +156,8 @@ namespace BF
void SdkInitializationCompletedEvent() void SdkInitializationCompletedEvent()
{ {
BFLog.Log("unity-script: I got SdkInitializationCompletedEvent"); BFLog.Log("unity-script: I got SdkInitializationCompletedEvent");
//Launch test suite
// IronSource.Agent.launchTestSuite();
} }
#endregion #endregion

View File

@ -1,5 +1,5 @@
<dependencies> <dependencies>
<unityversion>4.3.19.0</unityversion> <unityversion>4.3.19.1</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.adcolony:sdk:4.8.0"> <androidPackage spec="com.adcolony:sdk:4.8.0">
<repositories> <repositories>
@ -17,7 +17,7 @@
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceAdColonyAdapter" version="4.3.16.0"> <iosPod name="IronSourceAdColonyAdapter" version="4.3.16.1">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,7 +1,7 @@
<dependencies> <dependencies>
<unityversion>4.3.47.0</unityversion> <unityversion>4.3.52.0</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.google.android.gms:play-services-ads:21.5.0"> <androidPackage spec="com.google.android.gms:play-services-ads:22.2.0">
<repositories> <repositories>
<repository>https://maven.google.com/</repository> <repository>https://maven.google.com/</repository>
</repositories> </repositories>
@ -9,7 +9,7 @@
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:admobadapter:4.3.35"> <androidPackage spec="com.ironsource.adapters:admobadapter:4.3.39">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
@ -17,7 +17,7 @@
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceAdMobAdapter" version="4.3.41.0"> <iosPod name="IronSourceAdMobAdapter" version="4.3.45.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,21 +1,21 @@
<dependencies> <dependencies>
<unityversion>4.3.42.0</unityversion> <unityversion>4.3.44.1</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:applovinadapter:4.3.37"> <androidPackage spec="com.ironsource.adapters:applovinadapter:4.3.39">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.applovin:applovin-sdk:11.7.1"> <androidPackage spec="com.applovin:applovin-sdk:11.10.1">
<repositories> <repositories>
<repository>https://maven.google.com/</repository> <repository>https://maven.google.com/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceAppLovinAdapter" version="4.3.38.0"> <iosPod name="IronSourceAppLovinAdapter" version="4.3.40.1">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,21 +1,21 @@
<dependencies> <dependencies>
<unityversion>4.3.17.0</unityversion> <unityversion>4.3.19.0</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:chartboostadapter:4.3.11"> <androidPackage spec="com.ironsource.adapters:chartboostadapter:4.3.12">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.chartboost:chartboost-sdk:9.2.0"> <androidPackage spec="com.chartboost:chartboost-sdk:9.3.1">
<repositories> <repositories>
<repository>https://maven.google.com/</repository> <repository>https://cboost.jfrog.io/artifactory/chartboost-ads/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceChartboostAdapter" version="4.3.13.0"> <iosPod name="IronSourceChartboostAdapter" version="4.3.15.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,7 +1,7 @@
<dependencies> <dependencies>
<unityversion>4.3.52.0</unityversion> <unityversion>4.3.57.0</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.facebook.android:audience-network-sdk:6.12.0"> <androidPackage spec="com.facebook.android:audience-network-sdk:6.15.0">
<repositories> <repositories>
<repository>https://maven.google.com/</repository> <repository>https://maven.google.com/</repository>
</repositories> </repositories>
@ -9,7 +9,7 @@
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:facebookadapter:4.3.39"> <androidPackage spec="com.ironsource.adapters:facebookadapter:4.3.44">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
@ -17,7 +17,7 @@
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceFacebookAdapter" version="4.3.39.0"> <iosPod name="IronSourceFacebookAdapter" version="4.3.39.1">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,7 +1,7 @@
<dependencies> <dependencies>
<unityversion>4.3.34.0</unityversion> <unityversion>4.3.36.1</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.fyber:marketplace-sdk:8.2.2"> <androidPackage spec="com.fyber:marketplace-sdk:8.2.3">
<repositories> <repositories>
<repository>https://repo.maven.apache.org/maven2/</repository> <repository>https://repo.maven.apache.org/maven2/</repository>
</repositories> </repositories>
@ -9,7 +9,7 @@
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:fyberadapter:4.3.24"> <androidPackage spec="com.ironsource.adapters:fyberadapter:4.3.26">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
@ -17,7 +17,7 @@
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceFyberAdapter" version="4.3.28.0"> <iosPod name="IronSourceFyberAdapter" version="4.3.30.1">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,7 +1,7 @@
<dependencies> <dependencies>
<unityversion>4.3.16.0</unityversion> <unityversion>4.3.17.0</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.mbridge.msdk.oversea:newinterstitial:16.4.41"> <androidPackage spec="com.mbridge.msdk.oversea:newinterstitial:16.4.61">
<repositories> <repositories>
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository> <repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository>
</repositories> </repositories>
@ -9,7 +9,7 @@
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.mbridge.msdk.oversea:reward:16.4.41"> <androidPackage spec="com.mbridge.msdk.oversea:reward:16.4.61">
<repositories> <repositories>
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository> <repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository>
</repositories> </repositories>
@ -17,7 +17,7 @@
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.mbridge.msdk.oversea:mbbanner:16.4.41"> <androidPackage spec="com.mbridge.msdk.oversea:mbbanner:16.4.61">
<repositories> <repositories>
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository> <repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository>
</repositories> </repositories>
@ -25,7 +25,7 @@
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.mbridge.msdk.oversea:mbbid:16.4.41"> <androidPackage spec="com.mbridge.msdk.oversea:mbbid:16.4.61">
<repositories> <repositories>
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository> <repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository>
</repositories> </repositories>
@ -41,7 +41,7 @@
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:mintegraladapter:4.3.16"> <androidPackage spec="com.ironsource.adapters:mintegraladapter:4.3.17">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
@ -49,7 +49,7 @@
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceMintegralAdapter" version="4.3.15.0"> <iosPod name="IronSourceMintegralAdapter" version="4.3.16.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,21 +1,21 @@
<dependencies> <dependencies>
<unityversion>4.3.22.0</unityversion> <unityversion>4.3.25.0</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:pangleadapter:4.3.17"> <androidPackage spec="com.ironsource.adapters:pangleadapter:4.3.20">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.pangle.global:ads-sdk:5.0.0.8"> <androidPackage spec="com.pangle.global:ads-sdk:5.2.0.6">
<repositories> <repositories>
<repository>https://artifact.bytedance.com/repository/pangle/</repository> <repository>https://artifact.bytedance.com/repository/pangle/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourcePangleAdapter" version="4.3.19.0"> <iosPod name="IronSourcePangleAdapter" version="4.3.22.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,21 +1,21 @@
<dependencies> <dependencies>
<unityversion>4.1.29.0</unityversion> <unityversion>4.1.30.1</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:tapjoyadapter:4.1.24"> <androidPackage spec="com.ironsource.adapters:tapjoyadapter:4.1.25">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.tapjoy:tapjoy-android-sdk:12.11.1"> <androidPackage spec="com.tapjoy:tapjoy-android-sdk:13.0.1">
<repositories> <repositories>
<repository>https://sdk.tapjoy.com/</repository> <repository>https://sdk.tapjoy.com/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceTapjoyAdapter" version="4.1.24.0"> <iosPod name="IronSourceTapjoyAdapter" version="4.1.25.1">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,14 +1,14 @@
<dependencies> <dependencies>
<unityversion>4.3.32.0</unityversion> <unityversion>4.3.36.0</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:unityadsadapter:4.3.27"> <androidPackage spec="com.ironsource.adapters:unityadsadapter:4.3.31">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.unity3d.ads:unity-ads:4.6.1"> <androidPackage spec="com.unity3d.ads:unity-ads:4.8.0">
<repositories> <repositories>
<repository>https://maven.google.com/</repository> <repository>https://maven.google.com/</repository>
</repositories> </repositories>
@ -16,7 +16,7 @@
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceUnityAdsAdapter" version="4.3.28.0"> <iosPod name="IronSourceUnityAdsAdapter" version="4.3.31.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -1,5 +1,5 @@
<dependencies> <dependencies>
<unityversion>4.3.33.0</unityversion> <unityversion>4.3.36.0</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.vungle:publisher-sdk-android:6.12.1"> <androidPackage spec="com.vungle:publisher-sdk-android:6.12.1">
<repositories> <repositories>
@ -9,7 +9,7 @@
</androidPackages> </androidPackages>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.adapters:vungleadapter:4.3.20"> <androidPackage spec="com.ironsource.adapters:vungleadapter:4.3.21">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
@ -17,7 +17,7 @@
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceVungleAdapter" version="4.3.26.0"> <iosPod name="IronSourceVungleAdapter" version="4.3.28.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -220,7 +220,7 @@ public class IronSourceDependenciesManager : EditorWindow
ProviderInfo info = new ProviderInfo(); ProviderInfo info = new ProviderInfo();
object providerXML; object providerXML;
var lowerCaseItem = item.Key.ToLower(); var lowerCaseItem = item.Key.ToLower(new System.Globalization.CultureInfo("en"));
linksDictionary.TryGetValue(lowerCaseItem, out providerXML); linksDictionary.TryGetValue(lowerCaseItem, out providerXML);

View File

@ -22,7 +22,7 @@ public class IronSourceManifestProcessor : IPreprocessBuild
private const string AD_ID_PERMISSION_ATTR = "com.google.android.gms.permission.AD_ID"; private const string AD_ID_PERMISSION_ATTR = "com.google.android.gms.permission.AD_ID";
private const string MANIFEST_PERMISSION = "uses-permission"; private const string MANIFEST_PERMISSION = "uses-permission";
private const string MANIFEST_META_DATA = "meta-data"; private const string MANIFEST_META_DATA = "meta-data";
private const string IRONSOURCE_MANIFEST_PATH = "IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml"; private const string IRONSOURCE_MANIFEST_PATH = "IronSource/Plugins/Android/IronSource.androidlib/AndroidManifest.xml";
private string manifestPath = ""; private string manifestPath = "";
private XNamespace ns = "http://schemas.android.com/apk/res/android"; private XNamespace ns = "http://schemas.android.com/apk/res/android";

View File

@ -1,8 +1,8 @@
<dependencies> <dependencies>
<unityversion>7.3.0.1</unityversion> <unityversion>7.3.1.1</unityversion>
<androidPackages> <androidPackages>
<androidPackage spec="com.ironsource.sdk:mediationsdk:7.3.0.1"> <androidPackage spec="com.ironsource.sdk:mediationsdk:7.3.1.1">
<repositories> <repositories>
<repository>https://android-sdk.is.com/</repository> <repository>https://android-sdk.is.com/</repository>
</repositories> </repositories>
@ -26,7 +26,7 @@
</androidPackages> </androidPackages>
<!-- <iosPods> <!-- <iosPods>
<iosPod name="IronSourceSDK" version="7.3.0.0"> <iosPod name="IronSourceSDK" version="7.3.1.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 78bb03eee4d26fb4da4755f7e6529784
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,28 @@
fileFormatVersion: 2
guid: 718f851be2f4c4ee9b4c748b225a7ea2
folderAsset: yes
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ironsource.unity">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application>
<!-- AdMob -->
<!--As Requiered By Admob please add your App ID-->
<!--<meta-data-->
<!--android:name="com.google.android.gms.ads.APPLICATION_ID"-->
<!--android:value="YOUR_ADMOB_APP_ID"/>-->
</application>
</manifest>

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e46e3d39a8bec48d9ae81d0008842ad4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a5936d92d17be4fde864e068dd13d202
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: cbe75846a2b4da1459371181319ce8e3 guid: f10a601320ff74e1e96ecfd77be278c5
PluginImporter: PluginImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,2 @@
target=android-9
android.library=true

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f6d91e910c9af49d7a1d0254340e9dca
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,22 @@
using System;
/// <summary>
/// Represents the available formats for displaying advertisements.
/// </summary>
public enum AdFormat
{
/// <summary>
/// Represents a rewarded video ad format.
/// </summary>
RewardedVideo,
/// <summary>
/// Represents an interstitial ad format.
/// </summary>
Interstitial,
/// <summary>
/// Represents a banner ad format.
/// </summary>
Banner
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8124546645b9349f7858c4510ea7de78
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -2,15 +2,20 @@
using UnityEngine; using UnityEngine;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization;
using System; using System;
public class AndroidAgent : IronSourceIAgent public class AndroidAgent : IronSourceIAgent
{ {
private static AndroidJavaObject _androidBridge; static AndroidJavaObject _androidBridge;
private readonly static string AndroidBridge = "com.ironsource.unity.androidbridge.AndroidBridge"; readonly static string AndroidBridge = "com.ironsource.unity.androidbridge.AndroidBridge";
private const string REWARD_AMOUNT = "reward_amount"; const string REWARD_AMOUNT = "reward_amount";
private const string REWARD_NAME = "reward_name"; const string REWARD_NAME = "reward_name";
private const string PLACEMENT_NAME = "placement_name"; const string PLACEMENT_NAME = "placement_name";
const string WATERFALL_CONFIG_FLOOR = "floor";
const string WATERFALL_CONFIG_CEILING = "ceiling";
const string WATERFALL_CONFIG_API = "setWaterfallConfiguration";
public AndroidAgent () public AndroidAgent ()
{ {
@ -34,6 +39,48 @@ public class AndroidAgent : IronSourceIAgent
//******************* Base API *******************// //******************* Base API *******************//
/// <summary>
/// Allows publishers to set configurations for a waterfall of a given ad type.
/// </summary>
/// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
/// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat)
{
var ceiling = waterfallConfiguration.Ceiling;
var floor = waterfallConfiguration.Floor;
var dict = new Dictionary<string, string>();
if (ceiling.HasValue)
{
dict.Add(WATERFALL_CONFIG_CEILING, ceiling.Value.ToString(CultureInfo.InvariantCulture));
}
if (floor.HasValue)
{
dict.Add(WATERFALL_CONFIG_FLOOR, floor.Value.ToString(CultureInfo.InvariantCulture));
}
var json = IronSourceJSON.Json.Serialize(dict);
string stringAdFormat;
switch (adFormat)
{
case AdFormat.RewardedVideo:
stringAdFormat = "REWARDED_VIDEO";
break;
case AdFormat.Interstitial:
stringAdFormat = "INTERSTITIAL";
break;
case AdFormat.Banner:
stringAdFormat = "BANNER";
break;
default:
return;
}
getBridge().Call(WATERFALL_CONFIG_API, json, stringAdFormat);
}
public void onApplicationPause (bool pause) public void onApplicationPause (bool pause)
{ {
if (pause) if (pause)

View File

@ -7,7 +7,7 @@ public class IronSource : IronSourceIAgent
{ {
private IronSourceIAgent _platformAgent; private IronSourceIAgent _platformAgent;
private static IronSource _instance; private static IronSource _instance;
public static string UNITY_PLUGIN_VERSION = "7.3.0.1-r"; public static string UNITY_PLUGIN_VERSION = "7.3.1.1-r";
private static bool isUnsupportedPlatform; private static bool isUnsupportedPlatform;
private IronSource() private IronSource()
@ -67,6 +67,16 @@ public class IronSource : IronSourceIAgent
//******************* Base API *******************// //******************* Base API *******************//
/// <summary>
/// Allows publishers to set configurations for a waterfall of a given ad type.
/// </summary>
/// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
/// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat)
{
_platformAgent.SetWaterfallConfiguration(waterfallConfiguration, adFormat);
}
public void onApplicationPause(bool pause) public void onApplicationPause(bool pause)
{ {
_platformAgent.onApplicationPause(pause); _platformAgent.onApplicationPause(pause);
@ -256,21 +266,25 @@ public class IronSource : IronSourceIAgent
//******************* Offerwall API *******************// //******************* Offerwall API *******************//
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public void showOfferwall() public void showOfferwall()
{ {
_platformAgent.showOfferwall(); _platformAgent.showOfferwall();
} }
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public void showOfferwall(string placementName) public void showOfferwall(string placementName)
{ {
_platformAgent.showOfferwall(placementName); _platformAgent.showOfferwall(placementName);
} }
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public void getOfferwallCredits() public void getOfferwallCredits()
{ {
_platformAgent.getOfferwallCredits(); _platformAgent.getOfferwallCredits();
} }
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public bool isOfferwallAvailable() public bool isOfferwallAvailable()
{ {
return _platformAgent.isOfferwallAvailable(); return _platformAgent.isOfferwallAvailable();

View File

@ -83,11 +83,17 @@ public class IronSourceEvents : MonoBehaviour
[Obsolete("This API has been deprecated as of SDK 7.3.0.1", false)] [Obsolete("This API has been deprecated as of SDK 7.3.0.1", false)]
public static event Action<string, IronSourceError> onInterstitialAdShowFailedDemandOnlyEvent; public static event Action<string, IronSourceError> onInterstitialAdShowFailedDemandOnlyEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action<bool> onOfferwallAvailableEvent; public static event Action<bool> onOfferwallAvailableEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action onOfferwallOpenedEvent; public static event Action onOfferwallOpenedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action<Dictionary<string, object>> onOfferwallAdCreditedEvent; public static event Action<Dictionary<string, object>> onOfferwallAdCreditedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action<IronSourceError> onGetOfferwallCreditsFailedEvent; public static event Action<IronSourceError> onGetOfferwallCreditsFailedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action onOfferwallClosedEvent; public static event Action onOfferwallClosedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action<IronSourceError> onOfferwallShowFailedEvent; public static event Action<IronSourceError> onOfferwallShowFailedEvent;
[Obsolete("This API has been deprecated as of SDK 7.3.0. Please use the alternate API in IronSourceBannerEvents listener instead.", false)] [Obsolete("This API has been deprecated as of SDK 7.3.0. Please use the alternate API in IronSourceBannerEvents listener instead.", false)]
@ -1643,6 +1649,7 @@ public class IronSourceEvents : MonoBehaviour
private static event Action _onOfferwallOpenedEvent; private static event Action _onOfferwallOpenedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action onOfferwallOpenedEvent public static event Action onOfferwallOpenedEvent
{ {
add add
@ -1672,6 +1679,7 @@ public class IronSourceEvents : MonoBehaviour
private static event Action<IronSourceError> _onOfferwallShowFailedEvent; private static event Action<IronSourceError> _onOfferwallShowFailedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action<IronSourceError> onOfferwallShowFailedEvent public static event Action<IronSourceError> onOfferwallShowFailedEvent
{ {
add add
@ -1702,6 +1710,7 @@ public class IronSourceEvents : MonoBehaviour
private static event Action _onOfferwallClosedEvent; private static event Action _onOfferwallClosedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action onOfferwallClosedEvent public static event Action onOfferwallClosedEvent
{ {
add add
@ -1731,6 +1740,7 @@ public class IronSourceEvents : MonoBehaviour
private static event Action<IronSourceError> _onGetOfferwallCreditsFailedEvent; private static event Action<IronSourceError> _onGetOfferwallCreditsFailedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action<IronSourceError> onGetOfferwallCreditsFailedEvent public static event Action<IronSourceError> onGetOfferwallCreditsFailedEvent
{ {
add add
@ -1762,6 +1772,7 @@ public class IronSourceEvents : MonoBehaviour
private static event Action<Dictionary<string, object>> _onOfferwallAdCreditedEvent; private static event Action<Dictionary<string, object>> _onOfferwallAdCreditedEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action<Dictionary<string, object>> onOfferwallAdCreditedEvent public static event Action<Dictionary<string, object>> onOfferwallAdCreditedEvent
{ {
add add
@ -1789,6 +1800,7 @@ public class IronSourceEvents : MonoBehaviour
private static event Action<bool> _onOfferwallAvailableEvent; private static event Action<bool> _onOfferwallAvailableEvent;
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
public static event Action<bool> onOfferwallAvailableEvent public static event Action<bool> onOfferwallAvailableEvent
{ {
add add

View File

@ -4,6 +4,13 @@ public interface IronSourceIAgent
{ {
//******************* Base API *******************// //******************* Base API *******************//
/// <summary>
/// Allows publishers to set configurations for a waterfall of a given ad type.
/// </summary>
/// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
/// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat);
void onApplicationPause(bool pause); void onApplicationPause(bool pause);
string getAdvertiserId(); string getAdvertiserId();

View File

@ -11,6 +11,15 @@ public class UnsupportedPlatformAgent : IronSourceIAgent
#region IronSourceAgent implementation #region IronSourceAgent implementation
/// <summary>
/// This function is not supported on the current platform and does nothing.
/// </summary>
/// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
/// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat)
{
}
public void start() public void start()
{ {
} }

View File

@ -0,0 +1,92 @@
using System.Collections.Generic;
using System;
/// <summary>
/// Configuration class which allows users to customize or filter a Waterfall.
/// </summary>
public class WaterfallConfiguration
{
readonly double? ceiling;
readonly double? floor;
/// <summary>
/// Gets the ceiling value.
/// </summary>
public double? Ceiling { get { return ceiling; } }
/// <summary>
/// Gets the floor value.
/// </summary>
public double? Floor { get { return floor; } }
/// <summary>
/// Initializes a new instance of the WaterfallConfiguration class.
/// </summary>
/// <param name="ceiling">The ceiling value.</param>
/// <param name="floor">The floor value.</param>
private WaterfallConfiguration(double? ceiling, double? floor)
{
this.ceiling = ceiling;
this.floor = floor;
}
/// <summary>
/// Gets a builder for creating instances of WaterfallConfiguration.
/// </summary>
/// <returns>The WaterfallConfigurationBuilder.</returns>
public static WaterfallConfigurationBuilder Builder()
{
return new WaterfallConfigurationBuilder();
}
/// <summary>
/// Creates an empty instance of WaterfallConfiguration.
/// </summary>
/// <returns>The empty WaterfallConfiguration.</returns>
public static WaterfallConfiguration Empty()
{
return new WaterfallConfiguration(double.NaN, double.NaN);
}
/// <summary>
/// Builder class which to create a WaterfallConfiguration.
/// </summary>
public class WaterfallConfigurationBuilder
{
double? ceiling;
double? floor;
internal WaterfallConfigurationBuilder() {}
/// <summary>
/// Sets the ceiling value.
/// </summary>
/// <param name="ceiling">The ceiling value.</param>
/// <returns>The WaterfallConfigurationBuilder.</returns>
public WaterfallConfigurationBuilder SetCeiling(double ceiling)
{
this.ceiling = ceiling;
return this;
}
/// <summary>
/// Sets the floor value.
/// </summary>
/// <param name="floor">The floor value.</param>
/// <returns>The WaterfallConfigurationBuilder.</returns>
public WaterfallConfigurationBuilder SetFloor(double floor)
{
this.floor = floor;
return this;
}
/// <summary>
/// Builds an instance of WaterfallConfiguration based on the configured values.
/// </summary>
/// <returns>The created WaterfallConfiguration.</returns>
public WaterfallConfiguration Build()
{
return new WaterfallConfiguration(ceiling, floor);
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 354652886a99945cba942b569effe7bb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,14 +1,23 @@
#if UNITY_IPHONE || UNITY_IOS #if UNITY_IPHONE || UNITY_IOS
using UnityEngine; using UnityEngine;
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Linq;
using System; using System;
using System.Globalization; using System.Globalization;
// public class iOSAgent : IronSourceIAgent // public class iOSAgent : IronSourceIAgent
// { // {
// struct IOSWaterfallConfiguration
// {
// public double Floor;
// public double Ceiling;
// }
// [DllImport("__Internal")]
// private static extern void LPPSetWaterfallConfiguration(IOSWaterfallConfiguration configurationParams, AdFormat adFormat);
// [DllImport("__Internal")] // [DllImport("__Internal")]
// private static extern void CFSetPluginData(string pluginType, string pluginVersion, string pluginFrameworkVersion); // private static extern void CFSetPluginData(string pluginType, string pluginVersion, string pluginFrameworkVersion);
@ -191,6 +200,22 @@ using System.Globalization;
// //******************* Base API *******************// // //******************* Base API *******************//
// /// <summary>
// /// Allows publishers to set configurations for a waterfall of a given ad type.
// /// </summary>
// /// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
// /// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
// public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat)
// {
// var config = new IOSWaterfallConfiguration
// {
// Floor = waterfallConfiguration.Floor ?? 0.0,
// Ceiling = waterfallConfiguration.Ceiling ?? 0.0
// };
// LPPSetWaterfallConfiguration(config, adFormat);
// }
// public void onApplicationPause(bool pause) // public void onApplicationPause(bool pause)
// { // {

File diff suppressed because it is too large Load Diff

View File

@ -2007,7 +2007,30 @@ namespace XLua
#endif #endif
} }
public string __Gen_Delegate_Imp89(System.DateTime p0) public void __Gen_Delegate_Imp89(ISAdQualityInitError p0, string p1)
{
#if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock)
{
#endif
RealStatePtr L = luaEnv.rawL;
int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
ObjectTranslator translator = luaEnv.translator;
translator.PushISAdQualityInitError(L, p0);
LuaAPI.lua_pushstring(L, p1);
PCall(L, 2, 0, errFunc);
LuaAPI.lua_settop(L, errFunc - 1);
#if THREAD_SAFE || HOTFIX_ENABLE
}
#endif
}
public string __Gen_Delegate_Imp90(System.DateTime p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2029,7 +2052,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp90(com.adjust.sdk.AdjustAttribution p0) public void __Gen_Delegate_Imp91(com.adjust.sdk.AdjustAttribution p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2051,7 +2074,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp91(com.adjust.sdk.AdjustEventSuccess p0) public void __Gen_Delegate_Imp92(com.adjust.sdk.AdjustEventSuccess p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2073,7 +2096,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp92(com.adjust.sdk.AdjustEventFailure p0) public void __Gen_Delegate_Imp93(com.adjust.sdk.AdjustEventFailure p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2095,7 +2118,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp93(com.adjust.sdk.AdjustSessionSuccess p0) public void __Gen_Delegate_Imp94(com.adjust.sdk.AdjustSessionSuccess p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2117,7 +2140,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp94(com.adjust.sdk.AdjustSessionFailure p0) public void __Gen_Delegate_Imp95(com.adjust.sdk.AdjustSessionFailure p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2139,7 +2162,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp95(int p0, string p1, bool p2) public void __Gen_Delegate_Imp96(int p0, string p1, bool p2)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2163,7 +2186,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp96(Http.ResultInfo p0) public void __Gen_Delegate_Imp97(Http.ResultInfo p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2185,7 +2208,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp97(System.IAsyncResult p0) public void __Gen_Delegate_Imp98(System.IAsyncResult p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2207,7 +2230,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp98(object p0, System.EventArgs p1) public void __Gen_Delegate_Imp99(object p0, System.EventArgs p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2230,7 +2253,7 @@ namespace XLua
#endif #endif
} }
public bool __Gen_Delegate_Imp99(int p0) public bool __Gen_Delegate_Imp100(int p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2252,7 +2275,7 @@ namespace XLua
#endif #endif
} }
public int __Gen_Delegate_Imp100(int p0, int p1) public int __Gen_Delegate_Imp101(int p0, int p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2275,7 +2298,7 @@ namespace XLua
#endif #endif
} }
public bool __Gen_Delegate_Imp101(float p0) public bool __Gen_Delegate_Imp102(float p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2297,7 +2320,7 @@ namespace XLua
#endif #endif
} }
public int __Gen_Delegate_Imp102(float p0, float p1) public int __Gen_Delegate_Imp103(float p0, float p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2320,7 +2343,7 @@ namespace XLua
#endif #endif
} }
public int __Gen_Delegate_Imp103(string p0, string p1) public int __Gen_Delegate_Imp104(string p0, string p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2343,7 +2366,7 @@ namespace XLua
#endif #endif
} }
public bool __Gen_Delegate_Imp104(TMPro.TMP_FontAsset p0) public bool __Gen_Delegate_Imp105(TMPro.TMP_FontAsset p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2365,7 +2388,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp105(TMPro.TMP_FontAsset p0) public void __Gen_Delegate_Imp106(TMPro.TMP_FontAsset p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2387,7 +2410,7 @@ namespace XLua
#endif #endif
} }
public int __Gen_Delegate_Imp106(TMPro.TMP_FontAsset p0, TMPro.TMP_FontAsset p1) public int __Gen_Delegate_Imp107(TMPro.TMP_FontAsset p0, TMPro.TMP_FontAsset p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2410,7 +2433,7 @@ namespace XLua
#endif #endif
} }
public bool __Gen_Delegate_Imp107(UnityEngine.Camera p0) public bool __Gen_Delegate_Imp108(UnityEngine.Camera p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2432,7 +2455,7 @@ namespace XLua
#endif #endif
} }
public int __Gen_Delegate_Imp108(UnityEngine.Camera p0, UnityEngine.Camera p1) public int __Gen_Delegate_Imp109(UnityEngine.Camera p0, UnityEngine.Camera p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2455,7 +2478,7 @@ namespace XLua
#endif #endif
} }
public bool __Gen_Delegate_Imp109(System.Collections.Generic.List<string> p0) public bool __Gen_Delegate_Imp110(System.Collections.Generic.List<string> p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2477,7 +2500,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp110(System.Collections.Generic.List<string> p0) public void __Gen_Delegate_Imp111(System.Collections.Generic.List<string> p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2499,7 +2522,7 @@ namespace XLua
#endif #endif
} }
public int __Gen_Delegate_Imp111(System.Collections.Generic.List<string> p0, System.Collections.Generic.List<string> p1) public int __Gen_Delegate_Imp112(System.Collections.Generic.List<string> p0, System.Collections.Generic.List<string> p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2522,7 +2545,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp112(UnityEngine.Playables.PlayableDirector p0) public void __Gen_Delegate_Imp113(UnityEngine.Playables.PlayableDirector p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2544,7 +2567,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp113(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.LoadSceneMode p1) public void __Gen_Delegate_Imp114(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.LoadSceneMode p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2567,7 +2590,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp114(UnityEngine.SceneManagement.Scene p0) public void __Gen_Delegate_Imp115(UnityEngine.SceneManagement.Scene p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2589,7 +2612,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp115(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.Scene p1) public void __Gen_Delegate_Imp116(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.Scene p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2612,7 +2635,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp116(UnityEngine.Video.VideoPlayer p0) public void __Gen_Delegate_Imp117(UnityEngine.Video.VideoPlayer p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2634,7 +2657,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp117(UnityEngine.Video.VideoPlayer p0, string p1) public void __Gen_Delegate_Imp118(UnityEngine.Video.VideoPlayer p0, string p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2657,7 +2680,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp118(UnityEngine.Video.VideoPlayer p0, double p1) public void __Gen_Delegate_Imp119(UnityEngine.Video.VideoPlayer p0, double p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2680,7 +2703,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp119(UnityEngine.Video.VideoPlayer p0, long p1) public void __Gen_Delegate_Imp120(UnityEngine.Video.VideoPlayer p0, long p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2703,7 +2726,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp120(Spine.TrackEntry p0) public void __Gen_Delegate_Imp121(Spine.TrackEntry p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2725,7 +2748,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp121(Spine.TrackEntry p0, Spine.Event p1) public void __Gen_Delegate_Imp122(Spine.TrackEntry p0, Spine.Event p1)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2748,7 +2771,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp122(UnityEngine.Mesh p0, UnityEngine.Material p1, UnityEngine.Texture p2) public void __Gen_Delegate_Imp123(UnityEngine.Mesh p0, UnityEngine.Material p1, UnityEngine.Texture p2)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2772,7 +2795,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp123(int p0, UnityEngine.Mesh[] p1, UnityEngine.Material[] p2, UnityEngine.Texture[] p3) public void __Gen_Delegate_Imp124(int p0, UnityEngine.Mesh[] p1, UnityEngine.Material[] p2, UnityEngine.Texture[] p3)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2797,7 +2820,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp124(Spine.Unity.SkeletonGraphic p0) public void __Gen_Delegate_Imp125(Spine.Unity.SkeletonGraphic p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2819,7 +2842,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp125(Spine.Unity.SkeletonRendererInstruction p0) public void __Gen_Delegate_Imp126(Spine.Unity.SkeletonRendererInstruction p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2841,7 +2864,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp126(Spine.Unity.ISkeletonAnimation p0) public void __Gen_Delegate_Imp127(Spine.Unity.ISkeletonAnimation p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2863,7 +2886,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp127(Spine.Unity.MeshGeneratorBuffers p0) public void __Gen_Delegate_Imp128(Spine.Unity.MeshGeneratorBuffers p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -2885,7 +2908,7 @@ namespace XLua
#endif #endif
} }
public void __Gen_Delegate_Imp128(Spine.Unity.SkeletonRenderer p0) public void __Gen_Delegate_Imp129(Spine.Unity.SkeletonRenderer p0)
{ {
#if THREAD_SAFE || HOTFIX_ENABLE #if THREAD_SAFE || HOTFIX_ENABLE
lock (luaEnv.luaEnvLock) lock (luaEnv.luaEnvLock)
@ -3481,214 +3504,219 @@ namespace XLua
return new System.Action<IronSourcePlacement>(__Gen_Delegate_Imp88); return new System.Action<IronSourcePlacement>(__Gen_Delegate_Imp88);
} }
if (type == typeof(System.Action<ISAdQualityInitError, string>))
{
return new System.Action<ISAdQualityInitError, string>(__Gen_Delegate_Imp89);
}
if (type == typeof(System.Func<System.DateTime, string>)) if (type == typeof(System.Func<System.DateTime, string>))
{ {
return new System.Func<System.DateTime, string>(__Gen_Delegate_Imp89); return new System.Func<System.DateTime, string>(__Gen_Delegate_Imp90);
} }
if (type == typeof(System.Action<com.adjust.sdk.AdjustAttribution>)) if (type == typeof(System.Action<com.adjust.sdk.AdjustAttribution>))
{ {
return new System.Action<com.adjust.sdk.AdjustAttribution>(__Gen_Delegate_Imp90); return new System.Action<com.adjust.sdk.AdjustAttribution>(__Gen_Delegate_Imp91);
} }
if (type == typeof(System.Action<com.adjust.sdk.AdjustEventSuccess>)) if (type == typeof(System.Action<com.adjust.sdk.AdjustEventSuccess>))
{ {
return new System.Action<com.adjust.sdk.AdjustEventSuccess>(__Gen_Delegate_Imp91); return new System.Action<com.adjust.sdk.AdjustEventSuccess>(__Gen_Delegate_Imp92);
} }
if (type == typeof(System.Action<com.adjust.sdk.AdjustEventFailure>)) if (type == typeof(System.Action<com.adjust.sdk.AdjustEventFailure>))
{ {
return new System.Action<com.adjust.sdk.AdjustEventFailure>(__Gen_Delegate_Imp92); return new System.Action<com.adjust.sdk.AdjustEventFailure>(__Gen_Delegate_Imp93);
} }
if (type == typeof(System.Action<com.adjust.sdk.AdjustSessionSuccess>)) if (type == typeof(System.Action<com.adjust.sdk.AdjustSessionSuccess>))
{ {
return new System.Action<com.adjust.sdk.AdjustSessionSuccess>(__Gen_Delegate_Imp93); return new System.Action<com.adjust.sdk.AdjustSessionSuccess>(__Gen_Delegate_Imp94);
} }
if (type == typeof(System.Action<com.adjust.sdk.AdjustSessionFailure>)) if (type == typeof(System.Action<com.adjust.sdk.AdjustSessionFailure>))
{ {
return new System.Action<com.adjust.sdk.AdjustSessionFailure>(__Gen_Delegate_Imp94); return new System.Action<com.adjust.sdk.AdjustSessionFailure>(__Gen_Delegate_Imp95);
} }
if (type == typeof(System.Action<int, string, bool>)) if (type == typeof(System.Action<int, string, bool>))
{ {
return new System.Action<int, string, bool>(__Gen_Delegate_Imp95); return new System.Action<int, string, bool>(__Gen_Delegate_Imp96);
} }
if (type == typeof(System.Action<Http.ResultInfo>)) if (type == typeof(System.Action<Http.ResultInfo>))
{ {
return new System.Action<Http.ResultInfo>(__Gen_Delegate_Imp96); return new System.Action<Http.ResultInfo>(__Gen_Delegate_Imp97);
} }
if (type == typeof(System.AsyncCallback)) if (type == typeof(System.AsyncCallback))
{ {
return new System.AsyncCallback(__Gen_Delegate_Imp97); return new System.AsyncCallback(__Gen_Delegate_Imp98);
} }
if (type == typeof(System.EventHandler)) if (type == typeof(System.EventHandler))
{ {
return new System.EventHandler(__Gen_Delegate_Imp98); return new System.EventHandler(__Gen_Delegate_Imp99);
} }
if (type == typeof(System.Predicate<int>)) if (type == typeof(System.Predicate<int>))
{ {
return new System.Predicate<int>(__Gen_Delegate_Imp99); return new System.Predicate<int>(__Gen_Delegate_Imp100);
} }
if (type == typeof(System.Comparison<int>)) if (type == typeof(System.Comparison<int>))
{ {
return new System.Comparison<int>(__Gen_Delegate_Imp100); return new System.Comparison<int>(__Gen_Delegate_Imp101);
} }
if (type == typeof(System.Predicate<float>)) if (type == typeof(System.Predicate<float>))
{ {
return new System.Predicate<float>(__Gen_Delegate_Imp101); return new System.Predicate<float>(__Gen_Delegate_Imp102);
} }
if (type == typeof(System.Comparison<float>)) if (type == typeof(System.Comparison<float>))
{ {
return new System.Comparison<float>(__Gen_Delegate_Imp102); return new System.Comparison<float>(__Gen_Delegate_Imp103);
} }
if (type == typeof(System.Comparison<string>)) if (type == typeof(System.Comparison<string>))
{ {
return new System.Comparison<string>(__Gen_Delegate_Imp103); return new System.Comparison<string>(__Gen_Delegate_Imp104);
} }
if (type == typeof(System.Predicate<TMPro.TMP_FontAsset>)) if (type == typeof(System.Predicate<TMPro.TMP_FontAsset>))
{ {
return new System.Predicate<TMPro.TMP_FontAsset>(__Gen_Delegate_Imp104); return new System.Predicate<TMPro.TMP_FontAsset>(__Gen_Delegate_Imp105);
} }
if (type == typeof(System.Action<TMPro.TMP_FontAsset>)) if (type == typeof(System.Action<TMPro.TMP_FontAsset>))
{ {
return new System.Action<TMPro.TMP_FontAsset>(__Gen_Delegate_Imp105); return new System.Action<TMPro.TMP_FontAsset>(__Gen_Delegate_Imp106);
} }
if (type == typeof(System.Comparison<TMPro.TMP_FontAsset>)) if (type == typeof(System.Comparison<TMPro.TMP_FontAsset>))
{ {
return new System.Comparison<TMPro.TMP_FontAsset>(__Gen_Delegate_Imp106); return new System.Comparison<TMPro.TMP_FontAsset>(__Gen_Delegate_Imp107);
} }
if (type == typeof(System.Predicate<UnityEngine.Camera>)) if (type == typeof(System.Predicate<UnityEngine.Camera>))
{ {
return new System.Predicate<UnityEngine.Camera>(__Gen_Delegate_Imp107); return new System.Predicate<UnityEngine.Camera>(__Gen_Delegate_Imp108);
} }
if (type == typeof(System.Comparison<UnityEngine.Camera>)) if (type == typeof(System.Comparison<UnityEngine.Camera>))
{ {
return new System.Comparison<UnityEngine.Camera>(__Gen_Delegate_Imp108); return new System.Comparison<UnityEngine.Camera>(__Gen_Delegate_Imp109);
} }
if (type == typeof(System.Predicate<System.Collections.Generic.List<string>>)) if (type == typeof(System.Predicate<System.Collections.Generic.List<string>>))
{ {
return new System.Predicate<System.Collections.Generic.List<string>>(__Gen_Delegate_Imp109); return new System.Predicate<System.Collections.Generic.List<string>>(__Gen_Delegate_Imp110);
} }
if (type == typeof(System.Action<System.Collections.Generic.List<string>>)) if (type == typeof(System.Action<System.Collections.Generic.List<string>>))
{ {
return new System.Action<System.Collections.Generic.List<string>>(__Gen_Delegate_Imp110); return new System.Action<System.Collections.Generic.List<string>>(__Gen_Delegate_Imp111);
} }
if (type == typeof(System.Comparison<System.Collections.Generic.List<string>>)) if (type == typeof(System.Comparison<System.Collections.Generic.List<string>>))
{ {
return new System.Comparison<System.Collections.Generic.List<string>>(__Gen_Delegate_Imp111); return new System.Comparison<System.Collections.Generic.List<string>>(__Gen_Delegate_Imp112);
} }
if (type == typeof(System.Action<UnityEngine.Playables.PlayableDirector>)) if (type == typeof(System.Action<UnityEngine.Playables.PlayableDirector>))
{ {
return new System.Action<UnityEngine.Playables.PlayableDirector>(__Gen_Delegate_Imp112); return new System.Action<UnityEngine.Playables.PlayableDirector>(__Gen_Delegate_Imp113);
} }
if (type == typeof(UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.LoadSceneMode>)) if (type == typeof(UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.LoadSceneMode>))
{ {
return new UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.LoadSceneMode>(__Gen_Delegate_Imp113); return new UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.LoadSceneMode>(__Gen_Delegate_Imp114);
} }
if (type == typeof(UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene>)) if (type == typeof(UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene>))
{ {
return new UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene>(__Gen_Delegate_Imp114); return new UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene>(__Gen_Delegate_Imp115);
} }
if (type == typeof(UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.Scene>)) if (type == typeof(UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.Scene>))
{ {
return new UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.Scene>(__Gen_Delegate_Imp115); return new UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene, UnityEngine.SceneManagement.Scene>(__Gen_Delegate_Imp116);
} }
if (type == typeof(UnityEngine.Video.VideoPlayer.EventHandler)) if (type == typeof(UnityEngine.Video.VideoPlayer.EventHandler))
{ {
return new UnityEngine.Video.VideoPlayer.EventHandler(__Gen_Delegate_Imp116); return new UnityEngine.Video.VideoPlayer.EventHandler(__Gen_Delegate_Imp117);
} }
if (type == typeof(UnityEngine.Video.VideoPlayer.ErrorEventHandler)) if (type == typeof(UnityEngine.Video.VideoPlayer.ErrorEventHandler))
{ {
return new UnityEngine.Video.VideoPlayer.ErrorEventHandler(__Gen_Delegate_Imp117); return new UnityEngine.Video.VideoPlayer.ErrorEventHandler(__Gen_Delegate_Imp118);
} }
if (type == typeof(UnityEngine.Video.VideoPlayer.TimeEventHandler)) if (type == typeof(UnityEngine.Video.VideoPlayer.TimeEventHandler))
{ {
return new UnityEngine.Video.VideoPlayer.TimeEventHandler(__Gen_Delegate_Imp118); return new UnityEngine.Video.VideoPlayer.TimeEventHandler(__Gen_Delegate_Imp119);
} }
if (type == typeof(UnityEngine.Video.VideoPlayer.FrameReadyEventHandler)) if (type == typeof(UnityEngine.Video.VideoPlayer.FrameReadyEventHandler))
{ {
return new UnityEngine.Video.VideoPlayer.FrameReadyEventHandler(__Gen_Delegate_Imp119); return new UnityEngine.Video.VideoPlayer.FrameReadyEventHandler(__Gen_Delegate_Imp120);
} }
if (type == typeof(Spine.AnimationState.TrackEntryDelegate)) if (type == typeof(Spine.AnimationState.TrackEntryDelegate))
{ {
return new Spine.AnimationState.TrackEntryDelegate(__Gen_Delegate_Imp120); return new Spine.AnimationState.TrackEntryDelegate(__Gen_Delegate_Imp121);
} }
if (type == typeof(Spine.AnimationState.TrackEntryEventDelegate)) if (type == typeof(Spine.AnimationState.TrackEntryEventDelegate))
{ {
return new Spine.AnimationState.TrackEntryEventDelegate(__Gen_Delegate_Imp121); return new Spine.AnimationState.TrackEntryEventDelegate(__Gen_Delegate_Imp122);
} }
if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle)) if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle))
{ {
return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle(__Gen_Delegate_Imp122); return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle(__Gen_Delegate_Imp123);
} }
if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple)) if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple))
{ {
return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple(__Gen_Delegate_Imp123); return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple(__Gen_Delegate_Imp124);
} }
if (type == typeof(Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate)) if (type == typeof(Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate))
{ {
return new Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate(__Gen_Delegate_Imp124); return new Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate(__Gen_Delegate_Imp125);
} }
if (type == typeof(Spine.Unity.SkeletonGraphic.InstructionDelegate)) if (type == typeof(Spine.Unity.SkeletonGraphic.InstructionDelegate))
{ {
return new Spine.Unity.SkeletonGraphic.InstructionDelegate(__Gen_Delegate_Imp125); return new Spine.Unity.SkeletonGraphic.InstructionDelegate(__Gen_Delegate_Imp126);
} }
if (type == typeof(Spine.Unity.SkeletonRenderer.InstructionDelegate)) if (type == typeof(Spine.Unity.SkeletonRenderer.InstructionDelegate))
{ {
return new Spine.Unity.SkeletonRenderer.InstructionDelegate(__Gen_Delegate_Imp125); return new Spine.Unity.SkeletonRenderer.InstructionDelegate(__Gen_Delegate_Imp126);
} }
if (type == typeof(Spine.Unity.ISkeletonAnimationDelegate)) if (type == typeof(Spine.Unity.ISkeletonAnimationDelegate))
{ {
return new Spine.Unity.ISkeletonAnimationDelegate(__Gen_Delegate_Imp126); return new Spine.Unity.ISkeletonAnimationDelegate(__Gen_Delegate_Imp127);
} }
if (type == typeof(Spine.Unity.UpdateBonesDelegate)) if (type == typeof(Spine.Unity.UpdateBonesDelegate))
{ {
return new Spine.Unity.UpdateBonesDelegate(__Gen_Delegate_Imp126); return new Spine.Unity.UpdateBonesDelegate(__Gen_Delegate_Imp127);
} }
if (type == typeof(Spine.Unity.MeshGeneratorDelegate)) if (type == typeof(Spine.Unity.MeshGeneratorDelegate))
{ {
return new Spine.Unity.MeshGeneratorDelegate(__Gen_Delegate_Imp127); return new Spine.Unity.MeshGeneratorDelegate(__Gen_Delegate_Imp128);
} }
if (type == typeof(Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate)) if (type == typeof(Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate))
{ {
return new Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate(__Gen_Delegate_Imp128); return new Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate(__Gen_Delegate_Imp129);
} }
return null; return null;

View File

@ -16,6 +16,70 @@ namespace XLua.CSObjectWrap
{ {
using Utils = XLua.Utils; using Utils = XLua.Utils;
public class AdFormatWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
Utils.BeginObjectRegister(typeof(AdFormat), L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(typeof(AdFormat), L, translator, null, null, null, null, null);
Utils.BeginClassRegister(typeof(AdFormat), L, null, 4, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RewardedVideo", AdFormat.RewardedVideo);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Interstitial", AdFormat.Interstitial);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Banner", AdFormat.Banner);
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
Utils.EndClassRegister(typeof(AdFormat), L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CastFrom(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
if (lua_type == LuaTypes.LUA_TNUMBER)
{
translator.PushAdFormat(L, (AdFormat)LuaAPI.xlua_tointeger(L, 1));
}
else if(lua_type == LuaTypes.LUA_TSTRING)
{
if (LuaAPI.xlua_is_eq_str(L, 1, "RewardedVideo"))
{
translator.PushAdFormat(L, AdFormat.RewardedVideo);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Interstitial"))
{
translator.PushAdFormat(L, AdFormat.Interstitial);
}
else if (LuaAPI.xlua_is_eq_str(L, 1, "Banner"))
{
translator.PushAdFormat(L, AdFormat.Banner);
}
else
{
return LuaAPI.luaL_error(L, "invalid string for AdFormat!");
}
}
else
{
return LuaAPI.luaL_error(L, "invalid lua type for AdFormat! Expect number or string, got + " + lua_type);
}
return 1;
}
}
public class IronSourceBannerPositionWrap public class IronSourceBannerPositionWrap
{ {
public static void __Register(RealStatePtr L) public static void __Register(RealStatePtr L)

View File

@ -0,0 +1,212 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class ISAdQualityAndroidInitHandlerWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(ISAdQualityAndroidInitHandler);
Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "adQualitySdkInitSuccess", _m_adQualitySdkInitSuccess);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "adQualitySdkInitFailed", _m_adQualitySdkInitFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdQualitySdkInitSuccess", _e_OnAdQualitySdkInitSuccess);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdQualitySdkInitFailed", _e_OnAdQualitySdkInitFailed);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new ISAdQualityAndroidInitHandler();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityAndroidInitHandler constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_adQualitySdkInitSuccess(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.adQualitySdkInitSuccess( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_adQualitySdkInitFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1);
{
int _adQualitySdkInitError = LuaAPI.xlua_tointeger(L, 2);
string _errorMessage = LuaAPI.lua_tostring(L, 3);
gen_to_be_invoked.adQualitySdkInitFailed( _adQualitySdkInitError, _errorMessage );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdQualitySdkInitSuccess(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdQualitySdkInitSuccess += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdQualitySdkInitSuccess -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityAndroidInitHandler.OnAdQualitySdkInitSuccess!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdQualitySdkInitFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1);
System.Action<ISAdQualityInitError, string> gen_delegate = translator.GetDelegate<System.Action<ISAdQualityInitError, string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<ISAdQualityInitError, string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdQualitySdkInitFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdQualitySdkInitFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityAndroidInitHandler.OnAdQualitySdkInitFailed!");
return 0;
}
}
}

View File

@ -0,0 +1,294 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceBannerAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceBannerAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLoaded", _e_OnBannerAdLoaded);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLeftApplication", _e_OnBannerAdLeftApplication);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdScreenDismissed", _e_OnBannerAdScreenDismissed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdScreenPresented", _e_OnBannerAdScreenPresented);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdClicked", _e_OnBannerAdClicked);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLoadFailed", _e_OnBannerAdLoadFailed);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceBannerAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnBannerAdLoaded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnBannerAdLoaded += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnBannerAdLoaded -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdLoaded!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnBannerAdLeftApplication(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnBannerAdLeftApplication += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnBannerAdLeftApplication -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdLeftApplication!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnBannerAdScreenDismissed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnBannerAdScreenDismissed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnBannerAdScreenDismissed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdScreenDismissed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnBannerAdScreenPresented(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnBannerAdScreenPresented += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnBannerAdScreenPresented -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdScreenPresented!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnBannerAdClicked(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnBannerAdClicked += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnBannerAdClicked -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdClicked!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnBannerAdLoadFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnBannerAdLoadFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnBannerAdLoadFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdLoadFailed!");
return 0;
}
}
}

View File

@ -34,11 +34,11 @@ namespace XLua.CSObjectWrap
Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadedEvent", _e_onAdLoadedEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadedEvent", _e_onAdLoadedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadFailedEvent", _e_onAdLoadFailedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClickedEvent", _e_onAdClickedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenPresentedEvent", _e_onAdScreenPresentedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenDismissedEvent", _e_onAdScreenDismissedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLeftApplicationEvent", _e_onAdLeftApplicationEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLeftApplicationEvent", _e_onAdLeftApplicationEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenDismissedEvent", _e_onAdScreenDismissedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenPresentedEvent", _e_onAdScreenPresentedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClickedEvent", _e_onAdClickedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadFailedEvent", _e_onAdLoadFailedEvent);
@ -116,36 +116,7 @@ namespace XLua.CSObjectWrap
} }
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onAdLoadFailedEvent(RealStatePtr L) static int _e_onAdLeftApplicationEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceError>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceBannerEvents.onAdLoadFailedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceBannerEvents.onAdLoadFailedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdLoadFailedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onAdClickedEvent(RealStatePtr L)
{ {
try { try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
@ -157,49 +128,20 @@ namespace XLua.CSObjectWrap
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceBannerEvents.onAdClickedEvent += gen_delegate; IronSourceBannerEvents.onAdLeftApplicationEvent += gen_delegate;
return 0; return 0;
} }
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceBannerEvents.onAdClickedEvent -= gen_delegate; IronSourceBannerEvents.onAdLeftApplicationEvent -= gen_delegate;
return 0; return 0;
} }
} catch(System.Exception gen_e) { } catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e); return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
} }
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdClickedEvent!"); return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdLeftApplicationEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onAdScreenPresentedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceBannerEvents.onAdScreenPresentedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceBannerEvents.onAdScreenPresentedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdScreenPresentedEvent!");
} }
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
@ -232,7 +174,7 @@ namespace XLua.CSObjectWrap
} }
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onAdLeftApplicationEvent(RealStatePtr L) static int _e_onAdScreenPresentedEvent(RealStatePtr L)
{ {
try { try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
@ -244,20 +186,78 @@ namespace XLua.CSObjectWrap
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceBannerEvents.onAdLeftApplicationEvent += gen_delegate; IronSourceBannerEvents.onAdScreenPresentedEvent += gen_delegate;
return 0; return 0;
} }
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceBannerEvents.onAdLeftApplicationEvent -= gen_delegate; IronSourceBannerEvents.onAdScreenPresentedEvent -= gen_delegate;
return 0; return 0;
} }
} catch(System.Exception gen_e) { } catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e); return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
} }
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdLeftApplicationEvent!"); return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdScreenPresentedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onAdClickedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceBannerEvents.onAdClickedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceBannerEvents.onAdClickedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdClickedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onAdLoadFailedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceError>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceBannerEvents.onAdLoadFailedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceBannerEvents.onAdLoadFailedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdLoadFailedEvent!");
} }
} }

View File

@ -0,0 +1,294 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceBannerLevelPlayAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceBannerLevelPlayAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoaded", _e_OnAdLoaded);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLeftApplication", _e_OnAdLeftApplication);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdScreenDismissed", _e_OnAdScreenDismissed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdScreenPresented", _e_OnAdScreenPresented);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceBannerLevelPlayAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdLoaded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdLoaded += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdLoaded -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdLoaded!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdLeftApplication(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdLeftApplication += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdLeftApplication -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdLeftApplication!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdScreenDismissed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdScreenDismissed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdScreenDismissed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdScreenDismissed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdScreenPresented(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdScreenPresented += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdScreenPresented -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdScreenPresented!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdClicked(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdClicked += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdClicked -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdClicked!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdLoadFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdLoadFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdLoadFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdLoadFailed!");
return 0;
}
}
}

View File

@ -37,17 +37,11 @@ namespace XLua.CSObjectWrap
Utils.EndObjectRegister(type, L, translator, null, null, Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null); null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 16, 0, 0); Utils.BeginClassRegister(type, L, __CreateInstance, 10, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onImpressionDataReadyEvent", _e_onImpressionDataReadyEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onSdkInitializationCompletedEvent", _e_onSdkInitializationCompletedEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onSdkInitializationCompletedEvent", _e_onSdkInitializationCompletedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onSegmentReceivedEvent", _e_onSegmentReceivedEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onSegmentReceivedEvent", _e_onSegmentReceivedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallOpenedEvent", _e_onOfferwallOpenedEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onImpressionDataReadyEvent", _e_onImpressionDataReadyEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallShowFailedEvent", _e_onOfferwallShowFailedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallClosedEvent", _e_onOfferwallClosedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onGetOfferwallCreditsFailedEvent", _e_onGetOfferwallCreditsFailedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallAdCreditedEvent", _e_onOfferwallAdCreditedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallAvailableEvent", _e_onOfferwallAvailableEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidFailToLoadWithErrorEvent", _e_onConsentViewDidFailToLoadWithErrorEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidFailToLoadWithErrorEvent", _e_onConsentViewDidFailToLoadWithErrorEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidFailToShowWithErrorEvent", _e_onConsentViewDidFailToShowWithErrorEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidFailToShowWithErrorEvent", _e_onConsentViewDidFailToShowWithErrorEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidAcceptEvent", _e_onConsentViewDidAcceptEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidAcceptEvent", _e_onConsentViewDidAcceptEvent);
@ -269,35 +263,6 @@ namespace XLua.CSObjectWrap
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onImpressionDataReadyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<IronSourceImpressionData> gen_delegate = translator.GetDelegate<System.Action<IronSourceImpressionData>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceImpressionData>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onImpressionDataReadyEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onImpressionDataReadyEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onImpressionDataReadyEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onSdkInitializationCompletedEvent(RealStatePtr L) static int _e_onSdkInitializationCompletedEvent(RealStatePtr L)
{ {
@ -357,177 +322,32 @@ namespace XLua.CSObjectWrap
} }
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onOfferwallOpenedEvent(RealStatePtr L) static int _e_onImpressionDataReadyEvent(RealStatePtr L)
{ {
try { try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L); int gen_param_count = LuaAPI.lua_gettop(L);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 2); System.Action<IronSourceImpressionData> gen_delegate = translator.GetDelegate<System.Action<IronSourceImpressionData>>(L, 2);
if (gen_delegate == null) { if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action!"); return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceImpressionData>!");
} }
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onOfferwallOpenedEvent += gen_delegate; IronSourceEvents.onImpressionDataReadyEvent += gen_delegate;
return 0; return 0;
} }
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onOfferwallOpenedEvent -= gen_delegate; IronSourceEvents.onImpressionDataReadyEvent -= gen_delegate;
return 0; return 0;
} }
} catch(System.Exception gen_e) { } catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e); return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
} }
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onOfferwallOpenedEvent!"); return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onImpressionDataReadyEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onOfferwallShowFailedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceError>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onOfferwallShowFailedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onOfferwallShowFailedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onOfferwallShowFailedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onOfferwallClosedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onOfferwallClosedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onOfferwallClosedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onOfferwallClosedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onGetOfferwallCreditsFailedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceError>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onGetOfferwallCreditsFailedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onGetOfferwallCreditsFailedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onGetOfferwallCreditsFailedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onOfferwallAdCreditedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<System.Collections.Generic.Dictionary<string, object>> gen_delegate = translator.GetDelegate<System.Action<System.Collections.Generic.Dictionary<string, object>>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<System.Collections.Generic.Dictionary<string, object>>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onOfferwallAdCreditedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onOfferwallAdCreditedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onOfferwallAdCreditedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onOfferwallAvailableEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<bool> gen_delegate = translator.GetDelegate<System.Action<bool>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<bool>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onOfferwallAvailableEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onOfferwallAvailableEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onOfferwallAvailableEvent!");
} }
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]

View File

@ -21,8 +21,9 @@ namespace XLua.CSObjectWrap
{ {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceIAgent); System.Type type = typeof(IronSourceIAgent);
Utils.BeginObjectRegister(type, L, translator, 0, 45, 0, 0); Utils.BeginObjectRegister(type, L, translator, 0, 46, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWaterfallConfiguration", _m_SetWaterfallConfiguration);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause); Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "validateIntegration", _m_validateIntegration); Utils.RegisterFunc(L, Utils.METHOD_IDX, "validateIntegration", _m_validateIntegration);
@ -99,6 +100,35 @@ namespace XLua.CSObjectWrap
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetWaterfallConfiguration(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1);
{
WaterfallConfiguration _waterfallConfiguration = (WaterfallConfiguration)translator.GetObject(L, 2, typeof(WaterfallConfiguration));
AdFormat _adFormat;translator.Get(L, 3, out _adFormat);
gen_to_be_invoked.SetWaterfallConfiguration( _waterfallConfiguration, _adFormat );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onApplicationPause(RealStatePtr L) static int _m_onApplicationPause(RealStatePtr L)
{ {

View File

@ -0,0 +1,212 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceImpressionDataAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceImpressionDataAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onImpressionSuccess", _m_onImpressionSuccess);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onImpressionDataReady", _m_onImpressionDataReady);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnImpressionSuccess", _e_OnImpressionSuccess);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnImpressionDataReady", _e_OnImpressionDataReady);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceImpressionDataAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceImpressionDataAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onImpressionSuccess(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceImpressionDataAndroid gen_to_be_invoked = (IronSourceImpressionDataAndroid)translator.FastGetCSObj(L, 1);
{
string _data = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onImpressionSuccess( _data );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onImpressionDataReady(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceImpressionDataAndroid gen_to_be_invoked = (IronSourceImpressionDataAndroid)translator.FastGetCSObj(L, 1);
{
string _data = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onImpressionDataReady( _data );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnImpressionSuccess(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceImpressionDataAndroid gen_to_be_invoked = (IronSourceImpressionDataAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceImpressionData> gen_delegate = translator.GetDelegate<System.Action<IronSourceImpressionData>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceImpressionData>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnImpressionSuccess += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnImpressionSuccess -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceImpressionDataAndroid.OnImpressionSuccess!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnImpressionDataReady(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceImpressionDataAndroid gen_to_be_invoked = (IronSourceImpressionDataAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceImpressionData> gen_delegate = translator.GetDelegate<System.Action<IronSourceImpressionData>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceImpressionData>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnImpressionDataReady += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnImpressionDataReady -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceImpressionDataAndroid.OnImpressionDataReady!");
return 0;
}
}
}

View File

@ -0,0 +1,119 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceInitializationAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceInitializationAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSdkInitializationCompletedEvent", _e_OnSdkInitializationCompletedEvent);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceInitializationAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInitializationAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnSdkInitializationCompletedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInitializationAndroid gen_to_be_invoked = (IronSourceInitializationAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnSdkInitializationCompletedEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnSdkInitializationCompletedEvent -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInitializationAndroid.OnSdkInitializationCompletedEvent!");
return 0;
}
}
}

View File

@ -0,0 +1,574 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceInterstitialAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceInterstitialAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 14, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowFailed", _e_OnInterstitialAdShowFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdLoadFailed", _e_OnInterstitialAdLoadFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdReady", _e_OnInterstitialAdReady);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdOpened", _e_OnInterstitialAdOpened);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClosed", _e_OnInterstitialAdClosed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowSucceeded", _e_OnInterstitialAdShowSucceeded);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClicked", _e_OnInterstitialAdClicked);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdRewarded", _e_OnInterstitialAdRewarded);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdReadyDemandOnly", _e_OnInterstitialAdReadyDemandOnly);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdOpenedDemandOnly", _e_OnInterstitialAdOpenedDemandOnly);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClosedDemandOnly", _e_OnInterstitialAdClosedDemandOnly);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdLoadFailedDemandOnly", _e_OnInterstitialAdLoadFailedDemandOnly);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClickedDemandOnly", _e_OnInterstitialAdClickedDemandOnly);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowFailedDemandOnly", _e_OnInterstitialAdShowFailedDemandOnly);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceInterstitialAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdShowFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdShowFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdShowFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdShowFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdLoadFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdLoadFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdLoadFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdLoadFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdReady(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdReady += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdReady -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdReady!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdOpened(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdOpened += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdOpened -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdOpened!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdClosed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdClosed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdClosed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdClosed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdShowSucceeded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdShowSucceeded += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdShowSucceeded -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdShowSucceeded!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdClicked(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdClicked += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdClicked -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdClicked!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdRewarded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdRewarded += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdRewarded -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdRewarded!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdReadyDemandOnly(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdReadyDemandOnly += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdReadyDemandOnly -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdReadyDemandOnly!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdOpenedDemandOnly(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdOpenedDemandOnly += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdOpenedDemandOnly -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdOpenedDemandOnly!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdClosedDemandOnly(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdClosedDemandOnly += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdClosedDemandOnly -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdClosedDemandOnly!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdLoadFailedDemandOnly(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action<string, IronSourceError> gen_delegate = translator.GetDelegate<System.Action<string, IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string, IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdLoadFailedDemandOnly += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdLoadFailedDemandOnly -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdLoadFailedDemandOnly!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdClickedDemandOnly(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdClickedDemandOnly += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdClickedDemandOnly -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdClickedDemandOnly!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnInterstitialAdShowFailedDemandOnly(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1);
System.Action<string, IronSourceError> gen_delegate = translator.GetDelegate<System.Action<string, IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string, IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnInterstitialAdShowFailedDemandOnly += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnInterstitialAdShowFailedDemandOnly -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdShowFailedDemandOnly!");
return 0;
}
}
}

View File

@ -0,0 +1,329 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceInterstitialLevelPlayAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceInterstitialLevelPlayAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowFailed", _e_OnAdShowFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdReady", _e_OnAdReady);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdOpened", _e_OnAdOpened);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClosed", _e_OnAdClosed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowSucceeded", _e_OnAdShowSucceeded);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceInterstitialLevelPlayAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdShowFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError, IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceError, IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError, IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdShowFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdShowFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdShowFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdLoadFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdLoadFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdLoadFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdLoadFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdReady(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdReady += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdReady -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdReady!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdOpened(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdOpened += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdOpened -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdOpened!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdClosed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdClosed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdClosed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdClosed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdShowSucceeded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdShowSucceeded += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdShowSucceeded -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdShowSucceeded!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdClicked(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdClicked += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdClicked -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdClicked!");
return 0;
}
}
}

View File

@ -0,0 +1,466 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceOfferwallAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceOfferwallAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 12, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallOpened", _m_onOfferwallOpened);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallShowFailed", _m_onOfferwallShowFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallClosed", _m_onOfferwallClosed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onGetOfferwallCreditsFailed", _m_onGetOfferwallCreditsFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallAdCredited", _m_onOfferwallAdCredited);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallAvailable", _m_onOfferwallAvailable);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallShowFailed", _e_OnOfferwallShowFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallOpened", _e_OnOfferwallOpened);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallClosed", _e_OnOfferwallClosed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGetOfferwallCreditsFailed", _e_OnGetOfferwallCreditsFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallAdCredited", _e_OnOfferwallAdCredited);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallAvailable", _e_OnOfferwallAvailable);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceOfferwallAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onOfferwallOpened(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.onOfferwallOpened( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onOfferwallShowFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
{
string _description = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onOfferwallShowFailed( _description );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onOfferwallClosed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.onOfferwallClosed( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onGetOfferwallCreditsFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
{
string _description = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onGetOfferwallCreditsFailed( _description );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onOfferwallAdCredited(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
{
string _json = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onOfferwallAdCredited( _json );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onOfferwallAvailable(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
{
string _stringAvailable = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onOfferwallAvailable( _stringAvailable );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnOfferwallShowFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnOfferwallShowFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnOfferwallShowFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallShowFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnOfferwallOpened(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnOfferwallOpened += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnOfferwallOpened -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallOpened!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnOfferwallClosed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnOfferwallClosed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnOfferwallClosed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallClosed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnGetOfferwallCreditsFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnGetOfferwallCreditsFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnGetOfferwallCreditsFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnGetOfferwallCreditsFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnOfferwallAdCredited(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
System.Action<System.Collections.Generic.Dictionary<string, object>> gen_delegate = translator.GetDelegate<System.Action<System.Collections.Generic.Dictionary<string, object>>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<System.Collections.Generic.Dictionary<string, object>>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnOfferwallAdCredited += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnOfferwallAdCredited -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallAdCredited!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnOfferwallAvailable(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1);
System.Action<bool> gen_delegate = translator.GetDelegate<System.Action<bool>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<bool>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnOfferwallAvailable += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnOfferwallAvailable -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallAvailable!");
return 0;
}
}
}

View File

@ -0,0 +1,609 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceRewardedVideoAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceRewardedVideoAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 15, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdShowFailed", _e_OnRewardedVideoAdShowFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdOpened", _e_OnRewardedVideoAdOpened);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClosed", _e_OnRewardedVideoAdClosed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdStarted", _e_OnRewardedVideoAdStarted);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdEnded", _e_OnRewardedVideoAdEnded);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdRewarded", _e_OnRewardedVideoAdRewarded);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClicked", _e_OnRewardedVideoAdClicked);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAvailabilityChanged", _e_OnRewardedVideoAvailabilityChanged);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdOpenedDemandOnlyEvent", _e_OnRewardedVideoAdOpenedDemandOnlyEvent);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClosedDemandOnlyEvent", _e_OnRewardedVideoAdClosedDemandOnlyEvent);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadedDemandOnlyEvent", _e_OnRewardedVideoAdLoadedDemandOnlyEvent);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdRewardedDemandOnlyEvent", _e_OnRewardedVideoAdRewardedDemandOnlyEvent);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdShowFailedDemandOnlyEvent", _e_OnRewardedVideoAdShowFailedDemandOnlyEvent);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClickedDemandOnlyEvent", _e_OnRewardedVideoAdClickedDemandOnlyEvent);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadFailedDemandOnlyEvent", _e_OnRewardedVideoAdLoadFailedDemandOnlyEvent);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceRewardedVideoAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdShowFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdShowFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdShowFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdShowFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdOpened(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdOpened += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdOpened -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdOpened!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdClosed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdClosed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdClosed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdClosed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdStarted(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdStarted += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdStarted -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdStarted!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdEnded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdEnded += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdEnded -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdEnded!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdRewarded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourcePlacement> gen_delegate = translator.GetDelegate<System.Action<IronSourcePlacement>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourcePlacement>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdRewarded += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdRewarded -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdRewarded!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdClicked(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourcePlacement> gen_delegate = translator.GetDelegate<System.Action<IronSourcePlacement>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourcePlacement>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdClicked += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdClicked -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdClicked!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAvailabilityChanged(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<bool> gen_delegate = translator.GetDelegate<System.Action<bool>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<bool>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAvailabilityChanged += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAvailabilityChanged -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAvailabilityChanged!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdOpenedDemandOnlyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdOpenedDemandOnlyEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdOpenedDemandOnlyEvent -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdOpenedDemandOnlyEvent!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdClosedDemandOnlyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdClosedDemandOnlyEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdClosedDemandOnlyEvent -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdClosedDemandOnlyEvent!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdLoadedDemandOnlyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdLoadedDemandOnlyEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdLoadedDemandOnlyEvent -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdLoadedDemandOnlyEvent!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdRewardedDemandOnlyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdRewardedDemandOnlyEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdRewardedDemandOnlyEvent -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdRewardedDemandOnlyEvent!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdShowFailedDemandOnlyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<string, IronSourceError> gen_delegate = translator.GetDelegate<System.Action<string, IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string, IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdShowFailedDemandOnlyEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdShowFailedDemandOnlyEvent -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdShowFailedDemandOnlyEvent!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdClickedDemandOnlyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdClickedDemandOnlyEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdClickedDemandOnlyEvent -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdClickedDemandOnlyEvent!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdLoadFailedDemandOnlyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1);
System.Action<string, IronSourceError> gen_delegate = translator.GetDelegate<System.Action<string, IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<string, IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdLoadFailedDemandOnlyEvent += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdLoadFailedDemandOnlyEvent -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdLoadFailedDemandOnlyEvent!");
return 0;
}
}
}

View File

@ -0,0 +1,329 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceRewardedVideoLevelPlayAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceRewardedVideoLevelPlayAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowFailed", _e_OnAdShowFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdOpened", _e_OnAdOpened);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClosed", _e_OnAdClosed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdRewarded", _e_OnAdRewarded);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdAvailable", _e_OnAdAvailable);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdUnavailable", _e_OnAdUnavailable);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceRewardedVideoLevelPlayAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdShowFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError, IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceError, IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError, IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdShowFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdShowFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdShowFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdOpened(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdOpened += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdOpened -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdOpened!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdClosed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdClosed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdClosed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdClosed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdRewarded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourcePlacement, IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourcePlacement, IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourcePlacement, IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdRewarded += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdRewarded -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdRewarded!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdClicked(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourcePlacement, IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourcePlacement, IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourcePlacement, IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdClicked += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdClicked -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdClicked!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdAvailable(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdAvailable += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdAvailable -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdAvailable!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdUnavailable(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdUnavailable += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdUnavailable -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdUnavailable!");
return 0;
}
}
}

View File

@ -0,0 +1,154 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceRewardedVideoLevelPlayManualAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceRewardedVideoLevelPlayManualAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdReady", _e_OnAdReady);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceRewardedVideoLevelPlayManualAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayManualAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdLoadFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayManualAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayManualAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdLoadFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdLoadFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayManualAndroid.OnAdLoadFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnAdReady(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoLevelPlayManualAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayManualAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceAdInfo> gen_delegate = translator.GetDelegate<System.Action<IronSourceAdInfo>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceAdInfo>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnAdReady += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnAdReady -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayManualAndroid.OnAdReady!");
return 0;
}
}
}

View File

@ -0,0 +1,154 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class IronSourceRewardedVideoManualAndroidWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceRewardedVideoManualAndroid);
Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadFailed", _e_OnRewardedVideoAdLoadFailed);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdReady", _e_OnRewardedVideoAdReady);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceRewardedVideoManualAndroid();
translator.Push(L, gen_ret);
return 1;
}
}
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoManualAndroid constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdLoadFailed(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoManualAndroid gen_to_be_invoked = (IronSourceRewardedVideoManualAndroid)translator.FastGetCSObj(L, 1);
System.Action<IronSourceError> gen_delegate = translator.GetDelegate<System.Action<IronSourceError>>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action<IronSourceError>!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdLoadFailed += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdLoadFailed -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoManualAndroid.OnRewardedVideoAdLoadFailed!");
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_OnRewardedVideoAdReady(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
IronSourceRewardedVideoManualAndroid gen_to_be_invoked = (IronSourceRewardedVideoManualAndroid)translator.FastGetCSObj(L, 1);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#3 need System.Action!");
}
if (gen_param_count == 3)
{
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
gen_to_be_invoked.OnRewardedVideoAdReady += gen_delegate;
return 0;
}
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
gen_to_be_invoked.OnRewardedVideoAdReady -= gen_delegate;
return 0;
}
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoManualAndroid.OnRewardedVideoAdReady!");
return 0;
}
}
}

View File

@ -21,8 +21,9 @@ namespace XLua.CSObjectWrap
{ {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSource); System.Type type = typeof(IronSource);
Utils.BeginObjectRegister(type, L, translator, 0, 38, 0, 0); Utils.BeginObjectRegister(type, L, translator, 0, 36, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWaterfallConfiguration", _m_SetWaterfallConfiguration);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause); Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "validateIntegration", _m_validateIntegration); Utils.RegisterFunc(L, Utils.METHOD_IDX, "validateIntegration", _m_validateIntegration);
@ -47,9 +48,6 @@ namespace XLua.CSObjectWrap
Utils.RegisterFunc(L, Utils.METHOD_IDX, "showInterstitial", _m_showInterstitial); Utils.RegisterFunc(L, Utils.METHOD_IDX, "showInterstitial", _m_showInterstitial);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialReady", _m_isInterstitialReady); Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialReady", _m_isInterstitialReady);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialPlacementCapped", _m_isInterstitialPlacementCapped); Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialPlacementCapped", _m_isInterstitialPlacementCapped);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "showOfferwall", _m_showOfferwall);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "getOfferwallCredits", _m_getOfferwallCredits);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "isOfferwallAvailable", _m_isOfferwallAvailable);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadBanner", _m_loadBanner); Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadBanner", _m_loadBanner);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "destroyBanner", _m_destroyBanner); Utils.RegisterFunc(L, Utils.METHOD_IDX, "destroyBanner", _m_destroyBanner);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "displayBanner", _m_displayBanner); Utils.RegisterFunc(L, Utils.METHOD_IDX, "displayBanner", _m_displayBanner);
@ -160,6 +158,35 @@ namespace XLua.CSObjectWrap
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetWaterfallConfiguration(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1);
{
WaterfallConfiguration _waterfallConfiguration = (WaterfallConfiguration)translator.GetObject(L, 2, typeof(WaterfallConfiguration));
AdFormat _adFormat;translator.Get(L, 3, out _adFormat);
gen_to_be_invoked.SetWaterfallConfiguration( _waterfallConfiguration, _adFormat );
return 0; return 0;
} }
@ -890,102 +917,6 @@ namespace XLua.CSObjectWrap
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_showOfferwall(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 1)
{
gen_to_be_invoked.showOfferwall( );
return 0;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
{
string _placementName = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.showOfferwall( _placementName );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSource.showOfferwall!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_getOfferwallCredits(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.getOfferwallCredits( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_isOfferwallAvailable(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.isOfferwallAvailable( );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1; return 1;
} }

View File

@ -21,8 +21,9 @@ namespace XLua.CSObjectWrap
{ {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnsupportedPlatformAgent); System.Type type = typeof(UnsupportedPlatformAgent);
Utils.BeginObjectRegister(type, L, translator, 0, 46, 0, 0); Utils.BeginObjectRegister(type, L, translator, 0, 47, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWaterfallConfiguration", _m_SetWaterfallConfiguration);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "start", _m_start); Utils.RegisterFunc(L, Utils.METHOD_IDX, "start", _m_start);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause); Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId);
@ -117,6 +118,35 @@ namespace XLua.CSObjectWrap
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetWaterfallConfiguration(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1);
{
WaterfallConfiguration _waterfallConfiguration = (WaterfallConfiguration)translator.GetObject(L, 2, typeof(WaterfallConfiguration));
AdFormat _adFormat;translator.Get(L, 3, out _adFormat);
gen_to_be_invoked.SetWaterfallConfiguration( _waterfallConfiguration, _adFormat );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_start(RealStatePtr L) static int _m_start(RealStatePtr L)
{ {

View File

@ -0,0 +1,151 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class WaterfallConfigurationWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(WaterfallConfiguration);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Ceiling", _g_get_Ceiling);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Floor", _g_get_Floor);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "Builder", _m_Builder_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "Empty", _m_Empty_xlua_st_);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "WaterfallConfiguration does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Builder_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
var gen_ret = WaterfallConfiguration.Builder( );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Empty_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
var gen_ret = WaterfallConfiguration.Empty( );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_Ceiling(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
WaterfallConfiguration gen_to_be_invoked = (WaterfallConfiguration)translator.FastGetCSObj(L, 1);
translator.PushAny(L, gen_to_be_invoked.Ceiling);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_Floor(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
WaterfallConfiguration gen_to_be_invoked = (WaterfallConfiguration)translator.FastGetCSObj(L, 1);
translator.PushAny(L, gen_to_be_invoked.Floor);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
}
}

View File

@ -0,0 +1,156 @@
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class WaterfallConfigurationWaterfallConfigurationBuilderWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(WaterfallConfiguration.WaterfallConfigurationBuilder);
Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCeiling", _m_SetCeiling);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloor", _m_SetFloor);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Build", _m_Build);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "WaterfallConfiguration.WaterfallConfigurationBuilder does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetCeiling(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1);
{
double _ceiling = LuaAPI.lua_tonumber(L, 2);
var gen_ret = gen_to_be_invoked.SetCeiling( _ceiling );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetFloor(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1);
{
double _floor = LuaAPI.lua_tonumber(L, 2);
var gen_ret = gen_to_be_invoked.SetFloor( _floor );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Build(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.Build( );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
}
}

View File

@ -34,6 +34,7 @@ namespace XLua
translator.RegisterPushAndGetAndUpdate<UnityEngine.Ray>(translator.PushUnityEngineRay, translator.Get, translator.UpdateUnityEngineRay); translator.RegisterPushAndGetAndUpdate<UnityEngine.Ray>(translator.PushUnityEngineRay, translator.Get, translator.UpdateUnityEngineRay);
translator.RegisterPushAndGetAndUpdate<UnityEngine.Bounds>(translator.PushUnityEngineBounds, translator.Get, translator.UpdateUnityEngineBounds); translator.RegisterPushAndGetAndUpdate<UnityEngine.Bounds>(translator.PushUnityEngineBounds, translator.Get, translator.UpdateUnityEngineBounds);
translator.RegisterPushAndGetAndUpdate<UnityEngine.Ray2D>(translator.PushUnityEngineRay2D, translator.Get, translator.UpdateUnityEngineRay2D); translator.RegisterPushAndGetAndUpdate<UnityEngine.Ray2D>(translator.PushUnityEngineRay2D, translator.Get, translator.UpdateUnityEngineRay2D);
translator.RegisterPushAndGetAndUpdate<AdFormat>(translator.PushAdFormat, translator.Get, translator.UpdateAdFormat);
translator.RegisterPushAndGetAndUpdate<IronSourceBannerPosition>(translator.PushIronSourceBannerPosition, translator.Get, translator.UpdateIronSourceBannerPosition); translator.RegisterPushAndGetAndUpdate<IronSourceBannerPosition>(translator.PushIronSourceBannerPosition, translator.Get, translator.UpdateIronSourceBannerPosition);
translator.RegisterPushAndGetAndUpdate<ISAdQualityDeviceIdType>(translator.PushISAdQualityDeviceIdType, translator.Get, translator.UpdateISAdQualityDeviceIdType); translator.RegisterPushAndGetAndUpdate<ISAdQualityDeviceIdType>(translator.PushISAdQualityDeviceIdType, translator.Get, translator.UpdateISAdQualityDeviceIdType);
translator.RegisterPushAndGetAndUpdate<ISAdQualityAdType>(translator.PushISAdQualityAdType, translator.Get, translator.UpdateISAdQualityAdType); translator.RegisterPushAndGetAndUpdate<ISAdQualityAdType>(translator.PushISAdQualityAdType, translator.Get, translator.UpdateISAdQualityAdType);
@ -653,6 +654,90 @@ namespace XLua
} }
} }
int AdFormat_TypeID = -1;
int AdFormat_EnumRef = -1;
public void PushAdFormat(RealStatePtr L, AdFormat val)
{
if (AdFormat_TypeID == -1)
{
bool is_first;
AdFormat_TypeID = getTypeId(L, typeof(AdFormat), out is_first);
if (AdFormat_EnumRef == -1)
{
Utils.LoadCSTable(L, typeof(AdFormat));
AdFormat_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX);
}
}
if (LuaAPI.xlua_tryget_cachedud(L, (int)val, AdFormat_EnumRef) == 1)
{
return;
}
IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, AdFormat_TypeID);
if (!CopyByValue.Pack(buff, 0, (int)val))
{
throw new Exception("pack fail fail for AdFormat ,value="+val);
}
LuaAPI.lua_getref(L, AdFormat_EnumRef);
LuaAPI.lua_pushvalue(L, -2);
LuaAPI.xlua_rawseti(L, -2, (int)val);
LuaAPI.lua_pop(L, 1);
}
public void Get(RealStatePtr L, int index, out AdFormat val)
{
LuaTypes type = LuaAPI.lua_type(L, index);
if (type == LuaTypes.LUA_TUSERDATA )
{
if (LuaAPI.xlua_gettypeid(L, index) != AdFormat_TypeID)
{
throw new Exception("invalid userdata for AdFormat");
}
IntPtr buff = LuaAPI.lua_touserdata(L, index);
int e;
if (!CopyByValue.UnPack(buff, 0, out e))
{
throw new Exception("unpack fail for AdFormat");
}
val = (AdFormat)e;
}
else
{
val = (AdFormat)objectCasters.GetCaster(typeof(AdFormat))(L, index, null);
}
}
public void UpdateAdFormat(RealStatePtr L, int index, AdFormat val)
{
if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
{
if (LuaAPI.xlua_gettypeid(L, index) != AdFormat_TypeID)
{
throw new Exception("invalid userdata for AdFormat");
}
IntPtr buff = LuaAPI.lua_touserdata(L, index);
if (!CopyByValue.Pack(buff, 0, (int)val))
{
throw new Exception("pack fail for AdFormat ,value="+val);
}
}
else
{
throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
}
}
int IronSourceBannerPosition_TypeID = -1; int IronSourceBannerPosition_TypeID = -1;
int IronSourceBannerPosition_EnumRef = -1; int IronSourceBannerPosition_EnumRef = -1;
@ -7684,6 +7769,12 @@ namespace XLua
translator.PushUnityEngineRay2D(L, array[index]); translator.PushUnityEngineRay2D(L, array[index]);
return true; return true;
} }
else if (type == typeof(AdFormat[]))
{
AdFormat[] array = obj as AdFormat[];
translator.PushAdFormat(L, array[index]);
return true;
}
else if (type == typeof(IronSourceBannerPosition[])) else if (type == typeof(IronSourceBannerPosition[]))
{ {
IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[]; IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[];
@ -8236,6 +8327,12 @@ namespace XLua
translator.Get(L, obj_idx, out array[array_idx]); translator.Get(L, obj_idx, out array[array_idx]);
return true; return true;
} }
else if (type == typeof(AdFormat[]))
{
AdFormat[] array = obj as AdFormat[];
translator.Get(L, obj_idx, out array[array_idx]);
return true;
}
else if (type == typeof(IronSourceBannerPosition[])) else if (type == typeof(IronSourceBannerPosition[]))
{ {
IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[]; IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[];

View File

@ -2325,6 +2325,12 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(IronSourceDemoScript), IronSourceDemoScriptWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceDemoScript), IronSourceDemoScriptWrap.__Register);
translator.DelayWrapLoader(typeof(AdFormat), AdFormatWrap.__Register);
translator.DelayWrapLoader(typeof(AndroidAgent), AndroidAgentWrap.__Register);
translator.DelayWrapLoader(typeof(IUnityBanner), IUnityBannerWrap.__Register); translator.DelayWrapLoader(typeof(IUnityBanner), IUnityBannerWrap.__Register);
@ -2366,17 +2372,23 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(IronSourceAdInfo), IronSourceAdInfoWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceAdInfo), IronSourceAdInfoWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceBannerEvents), IronSourceBannerEventsWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceConfig), IronSourceConfigWrap.__Register);
} }
static void wrapInit15(LuaEnv luaenv, ObjectTranslator translator) static void wrapInit15(LuaEnv luaenv, ObjectTranslator translator)
{ {
translator.DelayWrapLoader(typeof(IronSourceBannerAndroid), IronSourceBannerAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceBannerEvents), IronSourceBannerEventsWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceBannerLevelPlayAndroid), IronSourceBannerLevelPlayAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceConfig), IronSourceConfigWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceConstants), IronSourceConstantsWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceConstants), IronSourceConstantsWrap.__Register);
@ -2407,21 +2419,48 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(IronSourceImpressionData), IronSourceImpressionDataWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceImpressionData), IronSourceImpressionDataWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceImpressionDataAndroid), IronSourceImpressionDataAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceInitializationAndroid), IronSourceInitializationAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceInitilizer), IronSourceInitilizerWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceInitilizer), IronSourceInitilizerWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceInterstitialAndroid), IronSourceInterstitialAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceInterstitialEvents), IronSourceInterstitialEventsWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceInterstitialEvents), IronSourceInterstitialEventsWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceInterstitialLevelPlayAndroid), IronSourceInterstitialLevelPlayAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceMediationSettings), IronSourceMediationSettingsWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceMediationSettings), IronSourceMediationSettingsWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceOfferwallAndroid), IronSourceOfferwallAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourcePlacement), IronSourcePlacementWrap.__Register); translator.DelayWrapLoader(typeof(IronSourcePlacement), IronSourcePlacementWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceRewardedVideoAndroid), IronSourceRewardedVideoAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceRewardedVideoEvents), IronSourceRewardedVideoEventsWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceRewardedVideoEvents), IronSourceRewardedVideoEventsWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceRewardedVideoLevelPlayAndroid), IronSourceRewardedVideoLevelPlayAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceRewardedVideoLevelPlayManualAndroid), IronSourceRewardedVideoLevelPlayManualAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceRewardedVideoManualAndroid), IronSourceRewardedVideoManualAndroidWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceSegment), IronSourceSegmentWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceSegment), IronSourceSegmentWrap.__Register);
@ -2434,12 +2473,18 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UnsupportedPlatformAgent), UnsupportedPlatformAgentWrap.__Register); translator.DelayWrapLoader(typeof(UnsupportedPlatformAgent), UnsupportedPlatformAgentWrap.__Register);
translator.DelayWrapLoader(typeof(WaterfallConfiguration), WaterfallConfigurationWrap.__Register);
translator.DelayWrapLoader(typeof(ISAdQualityDeviceIdType), ISAdQualityDeviceIdTypeWrap.__Register); translator.DelayWrapLoader(typeof(ISAdQualityDeviceIdType), ISAdQualityDeviceIdTypeWrap.__Register);
translator.DelayWrapLoader(typeof(ISAdQualityAdType), ISAdQualityAdTypeWrap.__Register); translator.DelayWrapLoader(typeof(ISAdQualityAdType), ISAdQualityAdTypeWrap.__Register);
translator.DelayWrapLoader(typeof(ISAdQualityAndroidInitHandler), ISAdQualityAndroidInitHandlerWrap.__Register);
translator.DelayWrapLoader(typeof(ISAdQualityConfig), ISAdQualityConfigWrap.__Register); translator.DelayWrapLoader(typeof(ISAdQualityConfig), ISAdQualityConfigWrap.__Register);
@ -2484,6 +2529,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(BaseBehaviour), BaseBehaviourWrap.__Register); translator.DelayWrapLoader(typeof(BaseBehaviour), BaseBehaviourWrap.__Register);
}
static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(CodeGeneratedSingleton), CodeGeneratedSingletonWrap.__Register); translator.DelayWrapLoader(typeof(CodeGeneratedSingleton), CodeGeneratedSingletonWrap.__Register);
@ -2529,10 +2578,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper), ThinkingAnalyticsWrapperThinkingAnalyticsWrapperWrap.__Register); translator.DelayWrapLoader(typeof(ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper), ThinkingAnalyticsWrapperThinkingAnalyticsWrapperWrap.__Register);
}
static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_Log), ThinkingAnalyticsUtilsTD_LogWrap.__Register); translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_Log), ThinkingAnalyticsUtilsTD_LogWrap.__Register);
@ -2641,6 +2686,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(Facebook.MiniJSON.MiniJsonUtil), FacebookMiniJSONMiniJsonUtilWrap.__Register); translator.DelayWrapLoader(typeof(Facebook.MiniJSON.MiniJsonUtil), FacebookMiniJSONMiniJsonUtilWrap.__Register);
}
static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.AppsFlyerSdk), BFNativeCoreThirdPlatformAppsFlyerSdkWrap.__Register); translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.AppsFlyerSdk), BFNativeCoreThirdPlatformAppsFlyerSdkWrap.__Register);
@ -2660,6 +2709,9 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UIImageSheetAnimation.StartFrameType), UIImageSheetAnimationStartFrameTypeWrap.__Register); translator.DelayWrapLoader(typeof(UIImageSheetAnimation.StartFrameType), UIImageSheetAnimationStartFrameTypeWrap.__Register);
translator.DelayWrapLoader(typeof(WaterfallConfiguration.WaterfallConfigurationBuilder), WaterfallConfigurationWaterfallConfigurationBuilderWrap.__Register);
translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token), ThinkingAnalyticsThinkingAnalyticsAPITokenWrap.__Register); translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token), ThinkingAnalyticsThinkingAnalyticsAPITokenWrap.__Register);
@ -2686,10 +2738,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(System.IO.File), SystemIOFileWrap.__Register); translator.DelayWrapLoader(typeof(System.IO.File), SystemIOFileWrap.__Register);
}
static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(System.DBNull), SystemDBNullWrap.__Register); translator.DelayWrapLoader(typeof(System.DBNull), SystemDBNullWrap.__Register);
@ -2795,6 +2843,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UnityEngine.Playables.PlayableAsset), UnityEnginePlayablesPlayableAssetWrap.__Register); translator.DelayWrapLoader(typeof(UnityEngine.Playables.PlayableAsset), UnityEnginePlayablesPlayableAssetWrap.__Register);
}
static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(UnityEngine.Playables.Playable), UnityEnginePlayablesPlayableWrap.__Register); translator.DelayWrapLoader(typeof(UnityEngine.Playables.Playable), UnityEnginePlayablesPlayableWrap.__Register);
@ -2843,10 +2895,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), UnityEngineCameraMonoOrStereoscopicEyeWrap.__Register); translator.DelayWrapLoader(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), UnityEngineCameraMonoOrStereoscopicEyeWrap.__Register);
}
static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(UnityEngine.Texture2D.EXRFlags), UnityEngineTexture2DEXRFlagsWrap.__Register); translator.DelayWrapLoader(typeof(UnityEngine.Texture2D.EXRFlags), UnityEngineTexture2DEXRFlagsWrap.__Register);
@ -2952,6 +3000,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(Spine.AnimationState), SpineAnimationStateWrap.__Register); translator.DelayWrapLoader(typeof(Spine.AnimationState), SpineAnimationStateWrap.__Register);
}
static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(Spine.AnimationStateData), SpineAnimationStateDataWrap.__Register); translator.DelayWrapLoader(typeof(Spine.AnimationStateData), SpineAnimationStateDataWrap.__Register);
@ -3000,10 +3052,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.ContentType), TMProTMP_InputFieldContentTypeWrap.__Register); translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.ContentType), TMProTMP_InputFieldContentTypeWrap.__Register);
}
static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.InputType), TMProTMP_InputFieldInputTypeWrap.__Register); translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.InputType), TMProTMP_InputFieldInputTypeWrap.__Register);
@ -3109,6 +3157,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), BFScrollRectBaseOldScrollbarVisibilityWrap.__Register); translator.DelayWrapLoader(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), BFScrollRectBaseOldScrollbarVisibilityWrap.__Register);
}
static void wrapInit20(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(BF.NetServiceType), BFNetServiceTypeWrap.__Register); translator.DelayWrapLoader(typeof(BF.NetServiceType), BFNetServiceTypeWrap.__Register);
@ -3168,6 +3220,8 @@ namespace XLua.CSObjectWrap
wrapInit19(luaenv, translator); wrapInit19(luaenv, translator);
wrapInit20(luaenv, translator);
} }

View File

@ -31,7 +31,7 @@ namespace XLua.CSObjectWrap
Utils.EndObjectRegister(type, L, translator, null, null, Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null); null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 14, 37, 37); Utils.BeginClassRegister(type, L, __CreateInstance, 15, 37, 37);
Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertLogLevel", _m_ConvertLogLevel_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertLogLevel", _m_ConvertLogLevel_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertBool", _m_ConvertBool_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertBool", _m_ConvertBool_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertDouble", _m_ConvertDouble_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertDouble", _m_ConvertDouble_xlua_st_);
@ -45,6 +45,7 @@ namespace XLua.CSObjectWrap
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4ConversionValue", _m_GetSkad4ConversionValue_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4ConversionValue", _m_GetSkad4ConversionValue_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4CoarseValue", _m_GetSkad4CoarseValue_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4CoarseValue", _m_GetSkad4CoarseValue_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4LockWindow", _m_GetSkad4LockWindow_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4LockWindow", _m_GetSkad4LockWindow_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "TestOptionsMap2AndroidJavaObject", _m_TestOptionsMap2AndroidJavaObject_xlua_st_);
@ -505,6 +506,34 @@ namespace XLua.CSObjectWrap
} }
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_TestOptionsMap2AndroidJavaObject_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
System.Collections.Generic.Dictionary<string, string> _testOptionsMap = (System.Collections.Generic.Dictionary<string, string>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, string>));
UnityEngine.AndroidJavaObject _ajoCurrentActivity = (UnityEngine.AndroidJavaObject)translator.GetObject(L, 2, typeof(UnityEngine.AndroidJavaObject));
var gen_ret = com.adjust.sdk.AdjustUtils.TestOptionsMap2AndroidJavaObject( _testOptionsMap, _ajoCurrentActivity );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}

View File

@ -219,6 +219,8 @@
<type fullname="FBWindowsTournamentsManager" preserve="all"/> <type fullname="FBWindowsTournamentsManager" preserve="all"/>
<type fullname="FBWindowsVirtualGamepadManager" preserve="all"/> <type fullname="FBWindowsVirtualGamepadManager" preserve="all"/>
<type fullname="IronSourceDemoScript" preserve="all"/> <type fullname="IronSourceDemoScript" preserve="all"/>
<type fullname="AdFormat" preserve="all"/>
<type fullname="AndroidAgent" preserve="all"/>
<type fullname="IUnityBanner" preserve="all"/> <type fullname="IUnityBanner" preserve="all"/>
<type fullname="IUnityImpressionData" preserve="all"/> <type fullname="IUnityImpressionData" preserve="all"/>
<type fullname="IUnityInitialization" preserve="all"/> <type fullname="IUnityInitialization" preserve="all"/>
@ -233,7 +235,9 @@
<type fullname="IUnitySegment" preserve="all"/> <type fullname="IUnitySegment" preserve="all"/>
<type fullname="IronSource" preserve="all"/> <type fullname="IronSource" preserve="all"/>
<type fullname="IronSourceAdInfo" preserve="all"/> <type fullname="IronSourceAdInfo" preserve="all"/>
<type fullname="IronSourceBannerAndroid" preserve="all"/>
<type fullname="IronSourceBannerEvents" preserve="all"/> <type fullname="IronSourceBannerEvents" preserve="all"/>
<type fullname="IronSourceBannerLevelPlayAndroid" preserve="all"/>
<type fullname="IronSourceConfig" preserve="all"/> <type fullname="IronSourceConfig" preserve="all"/>
<type fullname="IronSourceConstants" preserve="all"/> <type fullname="IronSourceConstants" preserve="all"/>
<type fullname="IronSourceError" preserve="all"/> <type fullname="IronSourceError" preserve="all"/>
@ -245,17 +249,28 @@
<type fullname="IronSourceBannerSize" preserve="all"/> <type fullname="IronSourceBannerSize" preserve="all"/>
<type fullname="IronSourceBannerPosition" preserve="all"/> <type fullname="IronSourceBannerPosition" preserve="all"/>
<type fullname="IronSourceImpressionData" preserve="all"/> <type fullname="IronSourceImpressionData" preserve="all"/>
<type fullname="IronSourceImpressionDataAndroid" preserve="all"/>
<type fullname="IronSourceInitializationAndroid" preserve="all"/>
<type fullname="IronSourceInitilizer" preserve="all"/> <type fullname="IronSourceInitilizer" preserve="all"/>
<type fullname="IronSourceInterstitialAndroid" preserve="all"/>
<type fullname="IronSourceInterstitialEvents" preserve="all"/> <type fullname="IronSourceInterstitialEvents" preserve="all"/>
<type fullname="IronSourceInterstitialLevelPlayAndroid" preserve="all"/>
<type fullname="IronSourceMediationSettings" preserve="all"/> <type fullname="IronSourceMediationSettings" preserve="all"/>
<type fullname="IronSourceOfferwallAndroid" preserve="all"/>
<type fullname="IronSourcePlacement" preserve="all"/> <type fullname="IronSourcePlacement" preserve="all"/>
<type fullname="IronSourceRewardedVideoAndroid" preserve="all"/>
<type fullname="IronSourceRewardedVideoEvents" preserve="all"/> <type fullname="IronSourceRewardedVideoEvents" preserve="all"/>
<type fullname="IronSourceRewardedVideoLevelPlayAndroid" preserve="all"/>
<type fullname="IronSourceRewardedVideoLevelPlayManualAndroid" preserve="all"/>
<type fullname="IronSourceRewardedVideoManualAndroid" preserve="all"/>
<type fullname="IronSourceSegment" preserve="all"/> <type fullname="IronSourceSegment" preserve="all"/>
<type fullname="IronSourceSegmentAndroid" preserve="all"/> <type fullname="IronSourceSegmentAndroid" preserve="all"/>
<type fullname="IronSourceUtils" preserve="all"/> <type fullname="IronSourceUtils" preserve="all"/>
<type fullname="UnsupportedPlatformAgent" preserve="all"/> <type fullname="UnsupportedPlatformAgent" preserve="all"/>
<type fullname="WaterfallConfiguration" preserve="all"/>
<type fullname="ISAdQualityDeviceIdType" preserve="all"/> <type fullname="ISAdQualityDeviceIdType" preserve="all"/>
<type fullname="ISAdQualityAdType" preserve="all"/> <type fullname="ISAdQualityAdType" preserve="all"/>
<type fullname="ISAdQualityAndroidInitHandler" preserve="all"/>
<type fullname="ISAdQualityConfig" preserve="all"/> <type fullname="ISAdQualityConfig" preserve="all"/>
<type fullname="ISAdQualityCustomMediationRevenue" preserve="all"/> <type fullname="ISAdQualityCustomMediationRevenue" preserve="all"/>
<type fullname="ISAdQualityInitCallback" preserve="all"/> <type fullname="ISAdQualityInitCallback" preserve="all"/>
@ -328,6 +343,7 @@
<type fullname="UIImageSheetAnimation+AnimationType" preserve="all"/> <type fullname="UIImageSheetAnimation+AnimationType" preserve="all"/>
<type fullname="UIImageSheetAnimation+TimeType" preserve="all"/> <type fullname="UIImageSheetAnimation+TimeType" preserve="all"/>
<type fullname="UIImageSheetAnimation+StartFrameType" preserve="all"/> <type fullname="UIImageSheetAnimation+StartFrameType" preserve="all"/>
<type fullname="WaterfallConfiguration+WaterfallConfigurationBuilder" preserve="all"/>
<type fullname="ThinkingAnalytics.ThinkingAnalyticsAPI+Token" preserve="all"/> <type fullname="ThinkingAnalytics.ThinkingAnalyticsAPI+Token" preserve="all"/>
<type fullname="ThinkingAnalytics.ThinkingAnalyticsAPI+TATimeZone" preserve="all"/> <type fullname="ThinkingAnalytics.ThinkingAnalyticsAPI+TATimeZone" preserve="all"/>
<type fullname="ThinkingAnalytics.ThinkingAnalyticsAPI+TAMode" preserve="all"/> <type fullname="ThinkingAnalytics.ThinkingAnalyticsAPI+TAMode" preserve="all"/>

View File

@ -3,4 +3,4 @@ org.gradle.parallel=true
android.enableR8=false android.enableR8=false
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
unityStreamingAssets=.unity3d, .bytes, .ab unityStreamingAssets=.unity3d, .bytes, .ab, UnityServicesProjectConfiguration.json

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ironsource.unity">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application>
<!-- AdMob -->
<!--As Requiered By Admob please add your App ID-->
<!--<meta-data-->
<!--android:name="com.google.android.gms.ads.APPLICATION_ID"-->
<!--android:value="YOUR_ADMOB_APP_ID"/>-->
</application>
</manifest>

View File

@ -0,0 +1,28 @@
apply plugin: 'android-library'
dependencies {
implementation fileTree(dir: 'bin', include: ['*.jar'])
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
android {
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
//java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
}
compileSdkVersion 33
buildToolsVersion '30.0.2'
defaultConfig {
targetSdkVersion 33
}
lintOptions {
abortOnError false
}
}

View File

@ -0,0 +1,2 @@
target=android-9
android.library=true

View File

@ -11,23 +11,26 @@ apply plugin: 'com.android.library'
url "https://maven.google.com" url "https://maven.google.com"
} }
maven { maven {
url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:16, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:48, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8, Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:16, Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9, Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17
} }
maven { maven {
url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:40, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15
}
maven {
url "https://cboost.jfrog.io/artifactory/chartboost-ads/" // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15
} }
maven { maven {
url "https://repo.maven.apache.org/maven2/" // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 url "https://repo.maven.apache.org/maven2/" // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8
} }
maven {
url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/" // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:16, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:24, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:32
}
maven { maven {
url "https://artifact.bytedance.com/repository/pangle/" // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 url "https://artifact.bytedance.com/repository/pangle/" // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15
} }
maven { maven {
url "https://sdk.tapjoy.com/" // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 url "https://sdk.tapjoy.com/" // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15
} }
maven {
url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/" // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8
}
maven { maven {
url "https://jitpack.io/" // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 url "https://jitpack.io/" // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8
} }
@ -57,58 +60,60 @@ dependencies {
// adjust // adjust
implementation(name: 'adjust-android-signaturev2-v2.15.10-s2', ext:'aar') implementation(name: 'adjust-android-signaturev2-v2.15.10-s2', ext:'aar')
implementation project('IronSource.androidlib')
// Android Resolver Dependencies Start // Android Resolver Dependencies Start
implementation 'androidx.recyclerview:recyclerview:1.2.1' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:40
implementation 'com.adcolony:sdk:4.8.0' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8 implementation 'com.adcolony:sdk:4.8.0' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8
implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:10 implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:10
implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
implementation 'com.applovin:applovin-sdk:11.7.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15 implementation 'com.applovin:applovin-sdk:11.10.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15
implementation 'com.appsflyer:af-android-sdk:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:6 implementation 'com.appsflyer:af-android-sdk:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:6
implementation 'com.appsflyer:unity-wrapper:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:8 implementation 'com.appsflyer:unity-wrapper:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:8
implementation 'com.appsflyer:adrevenue:6.5.4' // Assets/ThirdParty/AppsFlyerAdrevenue/Editor/AppsFlyerAdRevenueDependencies.xml:4 implementation 'com.appsflyer:adrevenue:6.5.4' // Assets/ThirdParty/AppsFlyerAdrevenue/Editor/AppsFlyerAdRevenueDependencies.xml:4
implementation 'com.appsflyer:unity-adrevenue-generic-wrapper:6.5.4' // Assets/ThirdParty/AppsFlyerAdrevenue/Editor/AppsFlyerAdRevenueDependencies.xml:5 implementation 'com.appsflyer:unity-adrevenue-generic-wrapper:6.5.4' // Assets/ThirdParty/AppsFlyerAdrevenue/Editor/AppsFlyerAdRevenueDependencies.xml:5
implementation 'com.chartboost:chartboost-sdk:9.2.0' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15 implementation 'com.chartboost:chartboost-sdk:9.3.1' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15
implementation 'com.facebook.android:audience-network-sdk:6.12.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8 implementation 'com.facebook.android:audience-network-sdk:6.15.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8
implementation 'com.facebook.android:facebook-applinks:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:6 implementation 'com.facebook.android:facebook-applinks:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:6
implementation 'com.facebook.android:facebook-core:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:5 implementation 'com.facebook.android:facebook-core:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:5
implementation 'com.facebook.android:facebook-gamingservices:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:9 implementation 'com.facebook.android:facebook-gamingservices:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:9
implementation 'com.facebook.android:facebook-login:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:7 implementation 'com.facebook.android:facebook-login:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:7
implementation 'com.facebook.android:facebook-share:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:8 implementation 'com.facebook.android:facebook-share:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:8
implementation 'com.fyber:marketplace-sdk:8.2.2' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 implementation 'com.fyber:marketplace-sdk:8.2.3' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8
implementation 'com.google.android.gms:play-services-ads:21.5.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8 implementation 'com.google.android.gms:play-services-ads:22.2.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17 implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17
implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25 implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25
implementation 'com.ironsource.adapters:adcolonyadapter:4.3.14' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:adcolonyadapter:4.3.14' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16
implementation 'com.ironsource.adapters:admobadapter:4.3.35' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:admobadapter:4.3.39' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16
implementation 'com.ironsource.adapters:applovinadapter:4.3.37' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:applovinadapter:4.3.39' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8
implementation 'com.ironsource.adapters:chartboostadapter:4.3.11' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:chartboostadapter:4.3.12' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8
implementation 'com.ironsource.adapters:facebookadapter:4.3.39' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:facebookadapter:4.3.44' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16
implementation 'com.ironsource.adapters:fyberadapter:4.3.24' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16 implementation 'com.ironsource.adapters:fyberadapter:4.3.26' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16
implementation 'com.ironsource.adapters:pangleadapter:4.3.17' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:mintegraladapter:4.3.17' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:48
implementation 'com.ironsource.adapters:tapjoyadapter:4.1.24' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:pangleadapter:4.3.20' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8
implementation 'com.ironsource.adapters:unityadsadapter:4.3.27' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:tapjoyadapter:4.1.25' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8
implementation 'com.vungle:publisher-sdk-android:6.12.1' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:unityadsadapter:4.3.31' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8
implementation 'com.ironsource.adapters:vungleadapter:4.3.20' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 implementation 'com.ironsource.adapters:vungleadapter:4.3.21' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:16
implementation 'com.mbridge.msdk.oversea:newinterstitial:16.4.41' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:6 implementation 'com.ironsource.sdk:mediationsdk:7.3.1.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9
implementation 'com.mbridge.msdk.oversea:reward:16.4.41' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:12 implementation 'com.ironsource.unity:adqualitysdk:7.13.0' // Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17
implementation 'com.mbridge.msdk.oversea:mbbanner:16.4.41' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:20 implementation 'com.ironsource:adqualitysdk:7.13.0' // Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9
implementation 'com.mbridge.msdk.oversea:mbbid:16.4.41' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:28 implementation 'com.mbridge.msdk.oversea:mbbanner:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:24
implementation 'androidx.recyclerview:recyclerview:1.2.1' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:36 implementation 'com.mbridge.msdk.oversea:mbbid:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:32
implementation 'com.ironsource.adapters:mintegraladapter:4.3.16' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:44 implementation 'com.mbridge.msdk.oversea:newinterstitial:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8
implementation 'com.ironsource.sdk:mediationsdk:7.3.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9 implementation 'com.mbridge.msdk.oversea:reward:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:16
implementation 'com.pangle.global:ads-sdk:5.0.0.8' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 implementation 'com.pangle.global:ads-sdk:5.2.0.6' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15
implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:4 implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:4
implementation 'com.tapjoy:tapjoy-android-sdk:12.11.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 implementation 'com.tapjoy:tapjoy-android-sdk:13.0.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15
implementation 'com.unity3d.ads:unity-ads:4.6.1' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 implementation 'com.unity3d.ads:unity-ads:4.8.0' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15
implementation 'com.ironsource.unity:adqualitysdk:7.13.0' // Assets/ThirdParty/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17 implementation 'com.vungle:publisher-sdk-android:6.12.1' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8
implementation 'com.ironsource:adqualitysdk:7.13.0' // Assets/ThirdParty/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9
// Android Resolver Dependencies End // Android Resolver Dependencies End
} }
android { android {
compileSdkVersion 31 compileSdkVersion 33
buildToolsVersion '30.0.2' buildToolsVersion '30.0.2'
compileOptions { compileOptions {
@ -118,7 +123,7 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 31 targetSdkVersion 33
ndk { ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a' abiFilters 'armeabi-v7a', 'arm64-v8a'
} }

View File

@ -10,7 +10,7 @@ dependencies {
} }
android { android {
compileSdkVersion 31 compileSdkVersion 33
buildToolsVersion '30.0.2' buildToolsVersion '30.0.2'
compileOptions { compileOptions {
@ -20,7 +20,7 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 31 targetSdkVersion 33
applicationId 'REPLACE_APPLICATION_ID' applicationId 'REPLACE_APPLICATION_ID'
ndk { ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a' abiFilters 'armeabi-v7a', 'arm64-v8a'

View File

@ -7,50 +7,51 @@
<package>com.android.support:cardview-v7:25.3.1</package> <package>com.android.support:cardview-v7:25.3.1</package>
<package>com.android.support:customtabs:25.3.1</package> <package>com.android.support:customtabs:25.3.1</package>
<package>com.android.support:support-v4:25.3.1</package> <package>com.android.support:support-v4:25.3.1</package>
<package>com.applovin:applovin-sdk:11.7.1</package> <package>com.applovin:applovin-sdk:11.10.1</package>
<package>com.applovin:applovin-sdk:11.4.4</package>
<package>com.appsflyer:adrevenue:6.5.4</package> <package>com.appsflyer:adrevenue:6.5.4</package>
<package>com.appsflyer:af-android-sdk:6.4.1</package> <package>com.appsflyer:af-android-sdk:6.4.1</package>
<package>com.appsflyer:unity-adrevenue-generic-wrapper:6.5.4</package> <package>com.appsflyer:unity-adrevenue-generic-wrapper:6.5.4</package>
<package>com.appsflyer:unity-wrapper:6.4.1</package> <package>com.appsflyer:unity-wrapper:6.4.1</package>
<package>com.chartboost:chartboost-sdk:9.2.0</package> <package>com.chartboost:chartboost-sdk:9.3.1</package>
<package>com.facebook.android:audience-network-sdk:6.12.0</package> <package>com.facebook.android:audience-network-sdk:6.15.0</package>
<package>com.facebook.android:facebook-applinks:[15.1,16)</package> <package>com.facebook.android:facebook-applinks:[15.1,16)</package>
<package>com.facebook.android:facebook-core:[15.1,16)</package> <package>com.facebook.android:facebook-core:[15.1,16)</package>
<package>com.facebook.android:facebook-gamingservices:[15.1,16)</package> <package>com.facebook.android:facebook-gamingservices:[15.1,16)</package>
<package>com.facebook.android:facebook-login:[15.1,16)</package> <package>com.facebook.android:facebook-login:[15.1,16)</package>
<package>com.facebook.android:facebook-share:[15.1,16)</package> <package>com.facebook.android:facebook-share:[15.1,16)</package>
<package>com.fyber:marketplace-sdk:8.2.2</package> <package>com.fyber:marketplace-sdk:8.2.3</package>
<package>com.google.android.gms:play-services-ads:21.5.0</package> <package>com.google.android.gms:play-services-ads:22.2.0</package>
<package>com.google.android.gms:play-services-ads-identifier:18.0.1</package> <package>com.google.android.gms:play-services-ads-identifier:18.0.1</package>
<package>com.google.android.gms:play-services-basement:18.1.0</package> <package>com.google.android.gms:play-services-basement:18.1.0</package>
<package>com.ironsource.adapters:adcolonyadapter:4.3.14</package> <package>com.ironsource.adapters:adcolonyadapter:4.3.14</package>
<package>com.ironsource.adapters:admobadapter:4.3.35</package> <package>com.ironsource.adapters:admobadapter:4.3.39</package>
<package>com.ironsource.adapters:applovinadapter:4.3.37</package> <package>com.ironsource.adapters:applovinadapter:4.3.39</package>
<package>com.ironsource.adapters:chartboostadapter:4.3.11</package> <package>com.ironsource.adapters:chartboostadapter:4.3.12</package>
<package>com.ironsource.adapters:facebookadapter:4.3.39</package> <package>com.ironsource.adapters:facebookadapter:4.3.44</package>
<package>com.ironsource.adapters:fyberadapter:4.3.24</package> <package>com.ironsource.adapters:fyberadapter:4.3.26</package>
<package>com.ironsource.adapters:mintegraladapter:4.3.16</package> <package>com.ironsource.adapters:mintegraladapter:4.3.17</package>
<package>com.ironsource.adapters:pangleadapter:4.3.17</package> <package>com.ironsource.adapters:pangleadapter:4.3.20</package>
<package>com.ironsource.adapters:tapjoyadapter:4.1.24</package> <package>com.ironsource.adapters:tapjoyadapter:4.1.25</package>
<package>com.ironsource.adapters:unityadsadapter:4.3.27</package> <package>com.ironsource.adapters:unityadsadapter:4.3.31</package>
<package>com.ironsource.adapters:vungleadapter:4.3.20</package> <package>com.ironsource.adapters:vungleadapter:4.3.21</package>
<package>com.ironsource.sdk:mediationsdk:7.3.0.1</package> <package>com.ironsource.sdk:mediationsdk:7.3.1.1</package>
<package>com.ironsource.unity:adqualitysdk:7.13.0</package> <package>com.ironsource.unity:adqualitysdk:7.13.0</package>
<package>com.ironsource:adqualitysdk:7.13.0</package> <package>com.ironsource:adqualitysdk:7.13.0</package>
<package>com.mbridge.msdk.oversea:mbbanner:16.4.41</package> <package>com.mbridge.msdk.oversea:mbbanner:16.4.61</package>
<package>com.mbridge.msdk.oversea:mbbid:16.4.41</package> <package>com.mbridge.msdk.oversea:mbbid:16.4.61</package>
<package>com.mbridge.msdk.oversea:newinterstitial:16.4.41</package> <package>com.mbridge.msdk.oversea:newinterstitial:16.4.61</package>
<package>com.mbridge.msdk.oversea:reward:16.4.41</package> <package>com.mbridge.msdk.oversea:reward:16.4.61</package>
<package>com.pangle.global:ads-sdk:5.0.0.8</package> <package>com.pangle.global:ads-sdk:5.2.0.6</package>
<package>com.parse.bolts:bolts-android:1.4.0</package> <package>com.parse.bolts:bolts-android:1.4.0</package>
<package>com.tapjoy:tapjoy-android-sdk:12.11.1</package> <package>com.tapjoy:tapjoy-android-sdk:13.0.1</package>
<package>com.unity3d.ads:unity-ads:4.6.1</package> <package>com.unity3d.ads:unity-ads:4.8.0</package>
<package>com.vungle:publisher-sdk-android:6.12.1</package> <package>com.vungle:publisher-sdk-android:6.12.1</package>
</packages> </packages>
<files /> <files />
<settings> <settings>
<setting name="androidAbis" value="armeabi-v7a" /> <setting name="androidAbis" value="arm64-v8a,armeabi-v7a" />
<setting name="bundleId" value="com.idle.ko.io" /> <setting name="bundleId" value="com.combo.heroes.puzzle.rpg" />
<setting name="explodeAars" value="False" /> <setting name="explodeAars" value="False" />
<setting name="gradleBuildEnabled" value="True" /> <setting name="gradleBuildEnabled" value="True" />
<setting name="gradlePropertiesTemplateEnabled" value="True" /> <setting name="gradlePropertiesTemplateEnabled" value="True" />