Merge branch 'dev' of git.juzugame.com:b6-client/b6-unity into dev
# Conflicts: # Assets/proto/protocol.bytes
This commit is contained in:
commit
b51d130b3b
@ -34,12 +34,12 @@ namespace BFEditor.Build
|
||||
|
||||
public bool IsGPChannel()
|
||||
{
|
||||
return bundleName == "com.knight.connect.rpg";
|
||||
return bundleName == "com.combo.heroes.puzzle.rpg";
|
||||
}
|
||||
|
||||
public bool IsGPOfficial()
|
||||
{
|
||||
return bundleName == "com.knight.connect.rpg";
|
||||
return bundleName == "com.combo.heroes.puzzle.rpg";
|
||||
}
|
||||
|
||||
// dev包使用mono编译,不会导出as工程
|
||||
|
||||
@ -16,7 +16,7 @@ namespace BFEditor.Build
|
||||
BFPlatformOptions platform = BFPlatformOptions.AndroidDev;
|
||||
const string ANDROID_DEV_PACKAGE_NAME = "com.juzu.b6.dev.android";
|
||||
const string ANDROID_RELEASE_PACKAGE_NAME = "com.juzu.b6.release.android";
|
||||
const string ANDROID_GP_PACKAGE_NAME = "com.knight.connect.rpg";
|
||||
const string ANDROID_GP_PACKAGE_NAME = "com.combo.heroes.puzzle.rpg";
|
||||
const string IOS_PACKAGE_NAME = "com.juzu.b6.dev.ios";
|
||||
|
||||
public BuildProjectWindow()
|
||||
|
||||
@ -131,7 +131,7 @@ namespace BFEditor.Build
|
||||
// 应用名
|
||||
if (buildInfo.IsPublish())
|
||||
{
|
||||
PlayerSettings.productName = "Knight Connect";
|
||||
PlayerSettings.productName = "Knight Combo";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -50,7 +50,7 @@ public class JenkinsAdapter {
|
||||
var buildInfo = new BuildInfo();
|
||||
buildInfo.version = "0.1.0";
|
||||
buildInfo.mode = "publish_release";
|
||||
buildInfo.bundleName = "com.juzu.b6";
|
||||
buildInfo.bundleName = "com.combo.heroes.puzzle.rpg";
|
||||
buildInfo.skipVersion = false;
|
||||
BuildProjectTools.BuildResources(buildInfo, Application.streamingAssetsPath, true);
|
||||
|
||||
@ -60,7 +60,7 @@ public class JenkinsAdapter {
|
||||
// 设置版本号
|
||||
PlayerSettings.bundleVersion = buildInfo.version;
|
||||
//Jenkins要求自动构建最低ios8.0
|
||||
PlayerSettings.iOS.targetOSVersionString = "10.0";
|
||||
PlayerSettings.iOS.targetOSVersionString = "12.0";
|
||||
//设置Build为日期格式
|
||||
PlayerSettings.iOS.buildNumber = BuildVersion;
|
||||
|
||||
@ -85,7 +85,7 @@ public class JenkinsAdapter {
|
||||
}
|
||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, symbols);
|
||||
// 商品名称
|
||||
PlayerSettings.productName = "Lonely Survivor";
|
||||
PlayerSettings.productName = "Knight Combo";
|
||||
// BuildType设置dev/release
|
||||
EditorUserBuildSettings.iOSBuildConfigType = iOSBuildType.Release;
|
||||
// 使用IL2CPP
|
||||
|
||||
@ -27,34 +27,34 @@ public class Package {
|
||||
project.AddBuildPropertyForConfig(release, "CODE_SIGN_RESOURCE_RULES_PATH", "$(SDKROOT)/ResourceRules.plist");
|
||||
|
||||
#region
|
||||
string projPath = Path.GetFullPath (pathToBuiltProject);
|
||||
string projPath = Path.GetFullPath(pathToBuiltProject);
|
||||
//添加推送和其他的有点不一样,需要添加一个文件。这个文件只能考进去。或者事先准备好了Base.entitlements 文件,文件类容 就是你手动添加进去的内容,你手动添加完成后生成的那个文件
|
||||
string entitlement = Application.dataPath + "/Editor/entitlement.entitlements";
|
||||
File.Copy (entitlement, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements");
|
||||
// string entitlement = Application.dataPath + "/Editor/entitlement.entitlements";
|
||||
// File.Copy (entitlement, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements");
|
||||
|
||||
//Max Ad Review service
|
||||
File.Copy (Application.dataPath + "/MaxSdk/AppLovin/Editor/AppLovinQualityServiceSetup-ios.rb", pathToBuiltProject + "/AppLovinQualityServiceSetup-ios.rb");
|
||||
File.Copy(Application.dataPath + "/ThirdParty/MaxSdk/AppLovin/Editor/AppLovinQualityServiceSetup-ios.rb", pathToBuiltProject + "/AppLovinQualityServiceSetup-ios.rb");
|
||||
|
||||
project.AddCapability (targetGuid, PBXCapabilityType.AssociatedDomains, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements", true);
|
||||
project.AddCapability(targetGuid, PBXCapabilityType.AssociatedDomains, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements", true);
|
||||
|
||||
// Enable Push Notifications
|
||||
project.AddFrameworkToProject (targetGuid_Framework, "UserNotifications.framework", false);
|
||||
// project.AddFrameworkToProject (targetGuid_Framework, "UserNotifications.framework", false);
|
||||
|
||||
// Enable background mode
|
||||
// project.AddCapability (targetGuid, PBXCapabilityType.BackgroundModes);
|
||||
|
||||
#region google service plist file
|
||||
// google service
|
||||
string googleServicePath = Application.dataPath + "/Plugins/iOS/GoogleService-Info.plist";
|
||||
File.Copy(googleServicePath, pathToBuiltProject + "/GoogleService-Info.plist");
|
||||
// string googleServicePath = Application.dataPath + "/Plugins/iOS/GoogleService-Info.plist";
|
||||
// File.Copy(googleServicePath, pathToBuiltProject + "/GoogleService-Info.plist");
|
||||
|
||||
project.AddFileToBuild(targetGuid, project.AddFile("GoogleService-Info.plist", "GoogleService-Info.plist", PBXSourceTree.Source));
|
||||
// project.AddFileToBuild(targetGuid, project.AddFile("GoogleService-Info.plist", "GoogleService-Info.plist", PBXSourceTree.Source));
|
||||
#endregion
|
||||
|
||||
// Add background modes
|
||||
string plistPath = pathToBuiltProject + "/Info.plist";
|
||||
PlistDocument plist = new PlistDocument ();
|
||||
plist.ReadFromString (File.ReadAllText (plistPath));
|
||||
PlistDocument plist = new PlistDocument();
|
||||
plist.ReadFromString(File.ReadAllText(plistPath));
|
||||
PlistElementDict rootDict = plist.root;
|
||||
//在playersetting里设置iosUseCustomAppBackgroundBehavior 和 iOSBackgroundModes
|
||||
// PlistElementArray arr = rootDict.CreateArray ("UIBackgroundModes");
|
||||
@ -63,11 +63,11 @@ public class Package {
|
||||
|
||||
//解决错误:ITMS-90339
|
||||
string exitsOnSuspendKey = "UIApplicationExitsOnSuspend";
|
||||
if (rootDict.values.ContainsKey (exitsOnSuspendKey)) {
|
||||
rootDict.values.Remove (exitsOnSuspendKey);
|
||||
if (rootDict.values.ContainsKey(exitsOnSuspendKey)) {
|
||||
rootDict.values.Remove(exitsOnSuspendKey);
|
||||
}
|
||||
|
||||
File.WriteAllText (plistPath, plist.WriteToString ());
|
||||
File.WriteAllText(plistPath, plist.WriteToString());
|
||||
#endregion
|
||||
|
||||
// 根据实际需要添加framework或者tbd
|
||||
@ -80,13 +80,16 @@ public class Package {
|
||||
|
||||
// project.AddFrameworkToProject(targetGuid_Framework, "CoreTelephony.framework", false);
|
||||
// AF
|
||||
// project.AddFrameworkToProject(targetGuid_Framework, "AdSupport.framework", false);
|
||||
// project.AddFrameworkToProject(targetGuid_Framework, "iAd.framework", false);
|
||||
project.AddFrameworkToProject(targetGuid_Framework, "AdSupport.framework", false);
|
||||
project.AddFrameworkToProject(targetGuid_Framework, "iAd.framework", false);
|
||||
// AF END */
|
||||
|
||||
// // ATT
|
||||
project.AddFrameworkToProject(targetGuid_Framework, "AppTrackingTransparency.framework", false);
|
||||
// // ATT END
|
||||
// adjust
|
||||
project.AddFrameworkToProject(targetGuid_Framework, "AdServices.framework", false);
|
||||
|
||||
// ATT
|
||||
project.AddFrameworkToProject(targetGuid_Framework, "AppTrackingTransparency.framework", false);
|
||||
// ATT END
|
||||
|
||||
// 苹果登录
|
||||
project.AddFrameworkToProject(targetGuid_Framework, "AuthenticationServices.framework", true);
|
||||
@ -715,12 +718,12 @@ public class Package {
|
||||
<dict>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>fb222326627097275</string>
|
||||
<string>fb277827051329111</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>FacebookAppID</key>
|
||||
<string>222326627097275</string>
|
||||
<string>277827051329111</string>
|
||||
<key>FacebookClientToken</key>
|
||||
<string>63ee45cf6edfede0ab7cd532592fb3f1</string>
|
||||
<key>FacebookDisplayName</key>
|
||||
|
||||
@ -25,11 +25,11 @@
|
||||
<activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
|
||||
<activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
|
||||
<activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" />
|
||||
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb222326627097275" />
|
||||
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="7ec364275c7766833d2ebace0c5a806e" />
|
||||
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb277827051329111" />
|
||||
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="cd6be8cc57dff789f3476ee1b25e2410" />
|
||||
<meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" />
|
||||
<meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="true" />
|
||||
<provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider222326627097275" android:exported="true" />
|
||||
<provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider277827051329111" android:exported="true" />
|
||||
<!-- <uses-permission android:name="com.google.android.gms.permission.AD_ID" /> -->
|
||||
<receiver android:name="com.adjust.sdk.AdjustReferrerReceiver" android:permission="android.permission.INSTALL_PACKAGES" android:exported="true">
|
||||
<intent-filter>
|
||||
|
||||
@ -12,9 +12,9 @@ IMPL_APP_CONTROLLER_SUBCLASS (CustomAppController)
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
[super application:application didFinishLaunchingWithOptions:launchOptions];
|
||||
|
||||
[[FirebaseSDK getInstance] initialize];
|
||||
// [[FirebaseSDK getInstance] initialize];
|
||||
// [START set_messaging_delegate]
|
||||
[FIRMessaging messaging].delegate = self;
|
||||
// [FIRMessaging messaging].delegate = self;
|
||||
// [END set_messaging_delegate]
|
||||
|
||||
if ([UNUserNotificationCenter class] != nil) {
|
||||
|
||||
@ -26,7 +26,7 @@ public partial class AdManager : BF.MonoSingleton<AdManager>
|
||||
private const string Key = "9uHgeBwag3NXva9MC23ToO3q11Ve59bF1uwg4qGltdGmCQ7OSByFZ_3b1ZF7krMlkHQo5gXzIokVDsvg1rwbr-";
|
||||
string bannerAdUnitId = "YOUR_BANNER_AD_UNIT_ID"; // Retrieve the ID from your account
|
||||
string adInterstitialUnitId = "YOUR_AD_UNIT_ID";
|
||||
string adRewardUnitId = "e0fc2e3efef362de";
|
||||
string adRewardUnitId = "e54f27e345da90df";
|
||||
|
||||
// Start is called before the first frame update
|
||||
public void Init(string init = "")
|
||||
|
||||
@ -77,6 +77,12 @@ public class IAPManager : /* MonoBehaviour, */ IStoreListener {
|
||||
IAPDebug($"init fail: {er}");
|
||||
initCallback?.Invoke(false, null, er);
|
||||
}
|
||||
|
||||
public void OnInitializeFailed(InitializationFailureReason error, string message) {
|
||||
string er = error.ToString("G");
|
||||
IAPDebug($"init fail2: {er}");
|
||||
initCallback?.Invoke(false, null, er);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ================================================== 购买 ==================================================
|
||||
|
||||
@ -64,7 +64,7 @@ namespace BF
|
||||
|
||||
public partial class BFPlatform
|
||||
{
|
||||
const String LoginCenterURL = "https://b6-entrance.bigfoot-studio.link";
|
||||
const String LoginCenterURL = "https://entrance.bigfoot-studio.link";
|
||||
static Dictionary<string, string> BFLoginCenterURLDict = new Dictionary<string, string>()
|
||||
{
|
||||
// dev
|
||||
@ -77,7 +77,7 @@ namespace BF
|
||||
{"com.juzu.b6.release.ios", "http://game.juzugame.com:3000"},
|
||||
|
||||
// gp
|
||||
{"com.knight.connect.rpg", "https://b6-entrance.bigfoot-studio.link"},
|
||||
{"com.combo.heroes.puzzle.rpg", "https://entrance.bigfoot-studio.link"},
|
||||
};
|
||||
|
||||
//combine url解析的数据
|
||||
|
||||
@ -48,7 +48,7 @@ namespace BF
|
||||
{"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})},
|
||||
{"com.juzu.b6.release.ios", new BFLanguageInfo(new List<string>{"en"})},
|
||||
// 这个是gp渠道
|
||||
{"com.knight.connect.rpg", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
||||
{"com.combo.heroes.puzzle.rpg", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
||||
{"com.juzu.b6.ios", new BFLanguageInfo(new List<string>{"en"})},
|
||||
};
|
||||
|
||||
|
||||
@ -14,11 +14,11 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
selectedAppIndex: 0
|
||||
clientTokens:
|
||||
- 7ec364275c7766833d2ebace0c5a806e
|
||||
- cd6be8cc57dff789f3476ee1b25e2410
|
||||
appIds:
|
||||
- 222326627097275
|
||||
- 277827051329111
|
||||
appLabels:
|
||||
- Knight Connect
|
||||
- Combo Hero
|
||||
cookie: 1
|
||||
logging: 1
|
||||
status: 1
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<dependencies>
|
||||
<iosPods>
|
||||
<iosPod name="FirebaseAnalytics"/>
|
||||
<iosPod name="FirebaseCrashlytics"/>
|
||||
<iosPod name="FirebaseMessaging"/>
|
||||
<iosPod name="FirebaseAnalytics" version="9.6.0"/>
|
||||
<iosPod name="FirebaseCrashlytics" version="9.6.0"/>
|
||||
<iosPod name="FirebaseMessaging" version="9.6.0"/>
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -16,11 +16,11 @@
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceAdColonyAdapter" version="4.3.16.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -16,11 +16,11 @@
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceAdMobAdapter" version="4.3.41.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -14,11 +14,11 @@
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceAppLovinAdapter" version="4.3.38.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -14,11 +14,11 @@
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceChartboostAdapter" version="4.3.13.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -16,11 +16,11 @@
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceFacebookAdapter" version="4.3.39.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -16,11 +16,11 @@
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceFyberAdapter" version="4.3.28.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -16,11 +16,11 @@
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceLiftoffAdapter" version="4.3.4.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -14,11 +14,11 @@
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourcePangleAdapter" version="4.3.19.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -14,11 +14,11 @@
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceTapjoyAdapter" version="4.1.24.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -15,11 +15,11 @@
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceUnityAdsAdapter" version="4.3.28.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -25,11 +25,11 @@
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<iosPods>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceSDK" version="7.3.0.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
</iosPods> -->
|
||||
</dependencies>
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 263e67daff704bc46a0bd6c79dc4e04b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce0759e93aacad942a240043d586ee5d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,33 +0,0 @@
|
||||
//
|
||||
// BannerLevelPlayCallbacksWrapper.h
|
||||
// iOSBridge
|
||||
//
|
||||
// Created by Moshe Aviv Aslanov on 02/05/2022.
|
||||
// Copyright © 2022 yossi mozgerashvily. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <IronSource/IronSource.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol BannerLevelPlayCallbacksWrapper <NSObject>
|
||||
|
||||
- (void)bannerLevelPlayDidLoad:(ISBannerView *)bannerView withAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)bannerLevelPlayDidFailToLoadWithError:(NSError *)error;
|
||||
- (void)bannerLevelPlayDidClickWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)bannerLevelPlayDidPresentScreenWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)bannerLevelPlayDidDismissScreenWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)bannerLevelPlayDidLeaveApplicationWithAdInfo:(ISAdInfo *)adInfo;
|
||||
|
||||
@end
|
||||
|
||||
@interface BannerLevelPlayCallbacksWrapper : NSObject<LevelPlayBannerDelegate>
|
||||
|
||||
@property (nonatomic, weak) id<BannerLevelPlayCallbacksWrapper> delegate;
|
||||
|
||||
- (instancetype) initWithDelegate:(id<BannerLevelPlayCallbacksWrapper>)delegate;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@ -1,27 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af7bfe9c27e814ff487a0a3cf8b0deaa
|
||||
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:
|
||||
@ -1,49 +0,0 @@
|
||||
//
|
||||
// BannerLevelPlayCallbacksWrapper.m
|
||||
// iOSBridge
|
||||
//
|
||||
// Created by Moshe Aviv Aslanov on 02/05/2022.
|
||||
// Copyright © 2022 yossi mozgerashvily. All rights reserved.
|
||||
//
|
||||
|
||||
#import "BannerLevelPlayCallbacksWrapper.h"
|
||||
|
||||
@implementation BannerLevelPlayCallbacksWrapper
|
||||
|
||||
-(instancetype)initWithDelegate:(id<BannerLevelPlayCallbacksWrapper>)delegate {
|
||||
self = [super init];
|
||||
|
||||
if (self) {
|
||||
_delegate = delegate;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
|
||||
- (void)didClickWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate bannerLevelPlayDidClickWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didDismissScreenWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate bannerLevelPlayDidDismissScreenWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didFailToLoadWithError:(NSError *)error {
|
||||
[_delegate bannerLevelPlayDidFailToLoadWithError:error];
|
||||
}
|
||||
|
||||
- (void)didLeaveApplicationWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate bannerLevelPlayDidLeaveApplicationWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didLoad:(ISBannerView *)bannerView withAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate bannerLevelPlayDidLoad:bannerView withAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didPresentScreenWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate bannerLevelPlayDidPresentScreenWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
@end
|
||||
@ -1,37 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 60fc38be92f4246c181eddba2bc88ce6
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
tvOS: tvOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,34 +0,0 @@
|
||||
//
|
||||
// InterstitialLevelPlayCallbacksWrapper.h
|
||||
// iOSBridge
|
||||
//
|
||||
// Created by Moshe Aviv Aslanov on 02/05/2022.
|
||||
// Copyright © 2022 yossi mozgerashvily. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <IronSource/IronSource.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol InterstitialLevelPlayCallbacksWrapper <NSObject>
|
||||
|
||||
- (void)interstitialLevelPlayDidLoadWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)interstitialLevelPlayDidFailToLoadWithError:(NSError *)error;
|
||||
- (void)interstitialLevelPlayDidOpenWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)interstitialLevelPlayDidCloseWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)interstitialLevelPlayDidShowWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)interstitialLevelPlayDidFailToShowWithError:(NSError *)error andAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)interstitialLevelPlayDidClickWithAdInfo:(ISAdInfo *)adInfo;
|
||||
|
||||
@end
|
||||
|
||||
@interface InterstitialLevelPlayCallbacksWrapper : NSObject <LevelPlayInterstitialDelegate>
|
||||
|
||||
@property (nonatomic, weak) id<InterstitialLevelPlayCallbacksWrapper> delegate;
|
||||
|
||||
- (instancetype) initWithDelegate:(id<InterstitialLevelPlayCallbacksWrapper>)delegate;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@ -1,27 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f2eff7284b2a4b50a8b939df611dd1e
|
||||
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:
|
||||
@ -1,51 +0,0 @@
|
||||
//
|
||||
// InterstitialLevelPlayCallbacksWrapper.m
|
||||
// iOSBridge
|
||||
//
|
||||
// Created by Moshe Aviv Aslanov on 02/05/2022.
|
||||
// Copyright © 2022 yossi mozgerashvily. All rights reserved.
|
||||
//
|
||||
|
||||
#import "InterstitialLevelPlayCallbacksWrapper.h"
|
||||
|
||||
@implementation InterstitialLevelPlayCallbacksWrapper
|
||||
|
||||
-(instancetype)initWithDelegate:(id<InterstitialLevelPlayCallbacksWrapper>)delegate {
|
||||
self = [super init];
|
||||
|
||||
if (self) {
|
||||
_delegate = delegate;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)didClickWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate interstitialLevelPlayDidClickWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didCloseWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate interstitialLevelPlayDidCloseWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didFailToLoadWithError:(NSError *)error {
|
||||
[_delegate interstitialLevelPlayDidFailToLoadWithError:error];
|
||||
}
|
||||
|
||||
- (void)didFailToShowWithError:(NSError *)error andAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate interstitialLevelPlayDidFailToShowWithError:error andAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didLoadWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate interstitialLevelPlayDidLoadWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didOpenWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate interstitialLevelPlayDidOpenWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didShowWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate interstitialLevelPlayDidShowWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
@end
|
||||
@ -1,37 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f25fb256f58c048c6a7226937ae353b8
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
tvOS: tvOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,78 +0,0 @@
|
||||
//
|
||||
// iOSBridge
|
||||
//
|
||||
// Created by Ori on 5/13/15.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <IronSource/ISSupersonicAdsConfiguration.h>
|
||||
#import <IronSource/ISConfigurations.h>
|
||||
|
||||
@interface IronSourceUnityConfig:NSObject
|
||||
//IronSource
|
||||
- (void) setClientSideCallbacks:(bool)useClientSideCallbacks;
|
||||
- (void) setLanguage:(NSString *)language;
|
||||
- (void) setRewardedVideoCustomParams:(NSString *)rvParams;
|
||||
- (void) setOfferwallCustomParams:(NSString *)owParams;
|
||||
|
||||
@end
|
||||
|
||||
@implementation IronSourceUnityConfig
|
||||
|
||||
//IronSource
|
||||
- (void) setClientSideCallbacks:(bool)useClientSideCallbacks {
|
||||
NSNumber *ucsc = @0;
|
||||
if (useClientSideCallbacks)
|
||||
ucsc = @1;
|
||||
|
||||
[ISSupersonicAdsConfiguration configurations].useClientSideCallbacks = ucsc;
|
||||
}
|
||||
|
||||
- (void) setLanguage:(NSString *)language {
|
||||
[ISSupersonicAdsConfiguration configurations].language = language;
|
||||
}
|
||||
|
||||
- (void) setRewardedVideoCustomParams:(NSString *)rvParams {
|
||||
NSError *jsonError;
|
||||
NSData *objectData = [rvParams dataUsingEncoding:NSUTF8StringEncoding];
|
||||
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:objectData options:NSJSONReadingMutableContainers error:&jsonError];
|
||||
if (!jsonError)
|
||||
[ISConfigurations configurations].rewardedVideoCustomParameters = json;
|
||||
}
|
||||
|
||||
- (void) setOfferwallCustomParams:(NSString *)owParams {
|
||||
NSError *jsonError;
|
||||
NSData *objectData = [owParams dataUsingEncoding:NSUTF8StringEncoding];
|
||||
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:objectData options:NSJSONReadingMutableContainers error:&jsonError];
|
||||
if (!jsonError)
|
||||
[ISConfigurations configurations].offerwallCustomParameters = json;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define ParseNSStringParam( _x_ ) ( _x_ != NULL ) ? [NSString stringWithUTF8String:_x_] : [NSString stringWithUTF8String:""]
|
||||
|
||||
//IronSource
|
||||
void CFSetClientSideCallbacks(bool useClientSideCallbacks){
|
||||
[[IronSourceUnityConfig new] setClientSideCallbacks:useClientSideCallbacks];
|
||||
}
|
||||
void CFSetLanguage(const char *language){
|
||||
[[IronSourceUnityConfig new] setLanguage:ParseNSStringParam(language)];
|
||||
}
|
||||
void CFSetRewardedVideoCustomParams(const char *rvParams){
|
||||
[[IronSourceUnityConfig new] setRewardedVideoCustomParams:ParseNSStringParam(rvParams)];
|
||||
}
|
||||
void CFSetOfferwallCustomParams(const char *owParam){
|
||||
[[IronSourceUnityConfig new] setOfferwallCustomParams:ParseNSStringParam(owParam)];
|
||||
}
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@end
|
||||
@ -1,37 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4e72efacda2c34ed89e61385b8d7a609
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
tvOS: tvOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,36 +0,0 @@
|
||||
//
|
||||
// RewardedVideoLevelPlayCallbacksWrapper.h
|
||||
// iOSBridge
|
||||
//
|
||||
// Created by Moshe Aviv Aslanov on 02/05/2022.
|
||||
// Copyright © 2022 yossi mozgerashvily. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <IronSource/IronSource.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol RewardedVideoLevelPlayCallbacksWrapper <NSObject>
|
||||
|
||||
- (void)rewardedVideoLevelPlayDidLoadWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)rewardedVideoLevelPlayDidFailToLoadWithError:(NSError *)error;
|
||||
- (void)hasAvailableAdWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)hasNoAvailableAd;
|
||||
- (void)rewardedVideoLevelPlayDidReceiveRewardForPlacement:(ISPlacementInfo *)placementInfo withAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)rewardedVideoLevelPlayDidFailToShowWithError:(NSError *)error andAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)rewardedVideoLevelPlayDidOpenWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)rewardedVideoLevelPlayDidCloseWithAdInfo:(ISAdInfo *)adInfo;
|
||||
- (void)rewardedVideoLevelPlayDidClick:(ISPlacementInfo *)placementInfo withAdInfo:(ISAdInfo *)adInfo;
|
||||
|
||||
@end
|
||||
|
||||
@interface RewardedVideoLevelPlayCallbacksWrapper : NSObject <LevelPlayRewardedVideoManualDelegate,LevelPlayRewardedVideoDelegate>
|
||||
|
||||
@property (nonatomic, weak) id<RewardedVideoLevelPlayCallbacksWrapper>delegate;
|
||||
|
||||
- (instancetype) initWithDelegate:(id<RewardedVideoLevelPlayCallbacksWrapper>)delegate;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@ -1,27 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1e5e0888f5ca14ec093b485ce7d79d57
|
||||
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:
|
||||
@ -1,59 +0,0 @@
|
||||
//
|
||||
// RewardedVideoLevelPlayCallbacksWrapper.m
|
||||
// iOSBridge
|
||||
//
|
||||
// Created by Moshe Aviv Aslanov on 02/05/2022.
|
||||
// Copyright © 2022 yossi mozgerashvily. All rights reserved.
|
||||
//
|
||||
|
||||
#import "RewardedVideoLevelPlayCallbacksWrapper.h"
|
||||
|
||||
@implementation RewardedVideoLevelPlayCallbacksWrapper
|
||||
-(instancetype)initWithDelegate:(id<RewardedVideoLevelPlayCallbacksWrapper>)delegate {
|
||||
self = [super init];
|
||||
|
||||
if (self) {
|
||||
_delegate = delegate;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
- (void)didClick:(ISPlacementInfo *)placementInfo withAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate rewardedVideoLevelPlayDidClick:placementInfo withAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didCloseWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate rewardedVideoLevelPlayDidCloseWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didFailToShowWithError:(NSError *)error andAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate rewardedVideoLevelPlayDidFailToShowWithError:error andAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didOpenWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate rewardedVideoLevelPlayDidOpenWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)didReceiveRewardForPlacement:(ISPlacementInfo *)placementInfo withAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate rewardedVideoLevelPlayDidReceiveRewardForPlacement:placementInfo withAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)hasAvailableAdWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate hasAvailableAdWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
- (void)hasNoAvailableAd {
|
||||
[_delegate hasNoAvailableAd];
|
||||
}
|
||||
|
||||
- (void)didFailToLoadWithError:(NSError *)error {
|
||||
[_delegate rewardedVideoLevelPlayDidFailToLoadWithError:error];
|
||||
}
|
||||
|
||||
- (void)didLoadWithAdInfo:(ISAdInfo *)adInfo {
|
||||
[_delegate rewardedVideoLevelPlayDidLoadWithAdInfo:adInfo];
|
||||
}
|
||||
|
||||
@end
|
||||
@ -1,37 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c7bb9ed2c15d149e1a78721153239089
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
tvOS: tvOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,33 +0,0 @@
|
||||
//
|
||||
// iOSBridge.h
|
||||
// iOSBridge
|
||||
//
|
||||
// Created by Supersonic.
|
||||
// Copyright (c) 2015 Supersonic. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <IronSource/IronSource.h>
|
||||
#import "RewardedVideoLevelPlayCallbacksWrapper.h"
|
||||
#import "InterstitialLevelPlayCallbacksWrapper.h"
|
||||
#import "BannerLevelPlayCallbacksWrapper.h"
|
||||
|
||||
static NSString * UnityGitHash = @"aebf03d";
|
||||
typedef void (*ISUnityBackgroundCallback)(const char* args);
|
||||
typedef void (*ISUnityPauseGame)(const bool gamePause);
|
||||
|
||||
@interface iOSBridge : NSObject<ISRewardedVideoDelegate,
|
||||
ISDemandOnlyRewardedVideoDelegate,
|
||||
ISInterstitialDelegate,
|
||||
ISDemandOnlyInterstitialDelegate,
|
||||
ISOfferwallDelegate,
|
||||
ISBannerDelegate,
|
||||
ISSegmentDelegate,
|
||||
ISImpressionDataDelegate,
|
||||
ISConsentViewDelegate,
|
||||
ISRewardedVideoManualDelegate,
|
||||
ISInitializationDelegate>
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6f61c9193b3484489a0c059a3aeed43c
|
||||
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:
|
||||
1292
Assets/ThirdParty/IronSource/Plugins/iOS/iOSBridge.m
vendored
1292
Assets/ThirdParty/IronSource/Plugins/iOS/iOSBridge.m
vendored
File diff suppressed because it is too large
Load Diff
@ -1,37 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c024270438f4d434cbc1a2a03d75c299
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
tvOS: tvOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -16,8 +16,8 @@ public class IronSource : IronSourceIAgent
|
||||
{
|
||||
#if UNITY_EDITOR || UNITY_STANDALONE
|
||||
_platformAgent = new UnsupportedPlatformAgent();
|
||||
#elif (UNITY_IPHONE || UNITY_IOS)
|
||||
_platformAgent = new iOSAgent();
|
||||
// #elif (UNITY_IPHONE || UNITY_IOS)
|
||||
// _platformAgent = new iOSAgent();
|
||||
#elif UNITY_ANDROID
|
||||
_platformAgent = new AndroidAgent ();
|
||||
#endif
|
||||
|
||||
@ -53,46 +53,46 @@ public class IronSourceConfig
|
||||
}
|
||||
|
||||
|
||||
#elif (UNITY_IPHONE || UNITY_IOS) && !UNITY_EDITOR
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetLanguage (string language);
|
||||
// #elif (UNITY_IPHONE || UNITY_IOS) && !UNITY_EDITOR
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetLanguage (string language);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetClientSideCallbacks (bool useClientSideCallbacks);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetClientSideCallbacks (bool useClientSideCallbacks);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetRewardedVideoCustomParams (string rewardedVideoCustomParams);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetRewardedVideoCustomParams (string rewardedVideoCustomParams);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetOfferwallCustomParams (string offerwallCustomParams);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetOfferwallCustomParams (string offerwallCustomParams);
|
||||
|
||||
|
||||
public void setLanguage (string language)
|
||||
{
|
||||
CFSetLanguage (language);
|
||||
}
|
||||
// public void setLanguage (string language)
|
||||
// {
|
||||
// CFSetLanguage (language);
|
||||
// }
|
||||
|
||||
public void setClientSideCallbacks (bool status)
|
||||
{
|
||||
CFSetClientSideCallbacks (status);
|
||||
}
|
||||
// public void setClientSideCallbacks (bool status)
|
||||
// {
|
||||
// CFSetClientSideCallbacks (status);
|
||||
// }
|
||||
|
||||
public void setRewardedVideoCustomParams (Dictionary<string,string> rewardedVideoCustomParams)
|
||||
{
|
||||
string json = IronSourceJSON.Json.Serialize (rewardedVideoCustomParams);
|
||||
CFSetRewardedVideoCustomParams (json);
|
||||
}
|
||||
// public void setRewardedVideoCustomParams (Dictionary<string,string> rewardedVideoCustomParams)
|
||||
// {
|
||||
// string json = IronSourceJSON.Json.Serialize (rewardedVideoCustomParams);
|
||||
// CFSetRewardedVideoCustomParams (json);
|
||||
// }
|
||||
|
||||
public void setOfferwallCustomParams (Dictionary<string,string> offerwallCustomParams)
|
||||
{
|
||||
string json = IronSourceJSON.Json.Serialize (offerwallCustomParams);
|
||||
CFSetOfferwallCustomParams (json);
|
||||
}
|
||||
// public void setOfferwallCustomParams (Dictionary<string,string> offerwallCustomParams)
|
||||
// {
|
||||
// string json = IronSourceJSON.Json.Serialize (offerwallCustomParams);
|
||||
// CFSetOfferwallCustomParams (json);
|
||||
// }
|
||||
|
||||
public IronSourceConfig ()
|
||||
{
|
||||
// public IronSourceConfig ()
|
||||
// {
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
#else
|
||||
|
||||
@ -7,12 +7,12 @@ using System.Runtime.InteropServices;
|
||||
|
||||
public class IronSourceEvents : MonoBehaviour
|
||||
{
|
||||
#if UNITY_IPHONE || UNITY_IOS
|
||||
delegate void ISUnityBackgroundCallback(string args);
|
||||
[DllImport("__Internal")]
|
||||
static extern void RegisterCallback(ISUnityBackgroundCallback func);
|
||||
// #if UNITY_IPHONE || UNITY_IOS
|
||||
// delegate void ISUnityBackgroundCallback(string args);
|
||||
// [DllImport("__Internal")]
|
||||
// static extern void RegisterCallback(ISUnityBackgroundCallback func);
|
||||
|
||||
#endif
|
||||
// #endif
|
||||
|
||||
#if UNITY_ANDROID
|
||||
#pragma warning disable CS0067
|
||||
@ -151,11 +151,11 @@ public class IronSourceEvents : MonoBehaviour
|
||||
|
||||
#endif
|
||||
|
||||
#if UNITY_IPHONE || UNITY_IOS
|
||||
#if !UNITY_EDITOR
|
||||
RegisterCallback(FireCallback);
|
||||
#endif
|
||||
#endif
|
||||
// #if UNITY_IPHONE || UNITY_IOS
|
||||
// #if !UNITY_EDITOR
|
||||
// RegisterCallback(FireCallback);
|
||||
// #endif
|
||||
// #endif
|
||||
gameObject.name = "IronSourceEvents"; //Change the GameObject name to IronSourceEvents.
|
||||
DontDestroyOnLoad(gameObject); //Makes the object not be destroyed automatically when loading a new scene.
|
||||
}
|
||||
@ -709,18 +709,18 @@ public class IronSourceEvents : MonoBehaviour
|
||||
|
||||
#if !UNITY_ANDROID
|
||||
|
||||
#if UNITY_IPHONE || UNITY_IOS
|
||||
// #if UNITY_IPHONE || UNITY_IOS
|
||||
|
||||
|
||||
[AOT.MonoPInvokeCallback(typeof(ISUnityBackgroundCallback))]
|
||||
public static void FireCallback(string args)
|
||||
{
|
||||
if (onImpressionDataReadyEvent != null)
|
||||
{
|
||||
InvokeEvent(onImpressionDataReadyEvent, args);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// [AOT.MonoPInvokeCallback(typeof(ISUnityBackgroundCallback))]
|
||||
// public static void FireCallback(string args)
|
||||
// {
|
||||
// if (onImpressionDataReadyEvent != null)
|
||||
// {
|
||||
// InvokeEvent(onImpressionDataReadyEvent, args);
|
||||
// }
|
||||
// }
|
||||
// #endif
|
||||
|
||||
// ******************************* Init Event *******************************
|
||||
|
||||
|
||||
848
Assets/ThirdParty/IronSource/Scripts/iOSAgent.cs
vendored
848
Assets/ThirdParty/IronSource/Scripts/iOSAgent.cs
vendored
@ -7,502 +7,502 @@ using System.Linq;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
public class iOSAgent : IronSourceIAgent
|
||||
{
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetPluginData(string pluginType, string pluginVersion, string pluginFrameworkVersion);
|
||||
// public class iOSAgent : IronSourceIAgent
|
||||
// {
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetPluginData(string pluginType, string pluginVersion, string pluginFrameworkVersion);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern string CFGetAdvertiserId();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetAdvertiserId();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFValidateIntegration();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFValidateIntegration();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShouldTrackNetworkState(bool track);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShouldTrackNetworkState(bool track);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFSetDynamicUserId(string dynamicUserId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFSetDynamicUserId(string dynamicUserId);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetAdaptersDebug(bool enabled);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetAdaptersDebug(bool enabled);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetMetaData(string key, string value);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetMetaData(string key, string value);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetMetaDataWithValues(string key, params string[] values);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetMetaDataWithValues(string key, params string[] values);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern string CFGetConversionValue();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetConversionValue();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetManualLoadRewardedVideo(bool isOn);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetManualLoadRewardedVideo(bool isOn);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetNetworkData(string networkKey, string networkData);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetNetworkData(string networkKey, string networkData);
|
||||
|
||||
delegate void ISUnityPauseGame(bool pause);
|
||||
[DllImport("__Internal")]
|
||||
private static extern void RegisterPauseGameFunction(bool pasue);
|
||||
// delegate void ISUnityPauseGame(bool pause);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void RegisterPauseGameFunction(bool pasue);
|
||||
|
||||
|
||||
//******************* SDK Init *******************//
|
||||
// //******************* SDK Init *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetUserId(string userId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetUserId(string userId);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFInit(string appKey);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInit(string appKey);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFInitWithAdUnits(string appKey, params string[] adUnits);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInitWithAdUnits(string appKey, params string[] adUnits);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFInitISDemandOnly(string appKey, params string[] adUnits);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInitISDemandOnly(string appKey, params string[] adUnits);
|
||||
|
||||
//******************* RewardedVideo API *******************//
|
||||
// //******************* RewardedVideo API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFLoadRewardedVideo();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadRewardedVideo();
|
||||
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowRewardedVideo();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowRewardedVideo();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowRewardedVideoWithPlacementName(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowRewardedVideoWithPlacementName(string placementName);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFIsRewardedVideoAvailable();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsRewardedVideoAvailable();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFIsRewardedVideoPlacementCapped(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsRewardedVideoPlacementCapped(string placementName);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern string CFGetPlacementInfo(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetPlacementInfo(string placementName);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetRewardedVideoServerParameters(string jsonString);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetRewardedVideoServerParameters(string jsonString);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFClearRewardedVideoServerParameters();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFClearRewardedVideoServerParameters();
|
||||
|
||||
//******************* RewardedVideo DemandOnly API *******************//
|
||||
// //******************* RewardedVideo DemandOnly API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowISDemandOnlyRewardedVideo(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowISDemandOnlyRewardedVideo(string instanceId);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFLoadISDemandOnlyRewardedVideo(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadISDemandOnlyRewardedVideo(string instanceId);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFIsDemandOnlyRewardedVideoAvailable(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsDemandOnlyRewardedVideoAvailable(string instanceId);
|
||||
|
||||
//******************* Interstitial API *******************//
|
||||
// //******************* Interstitial API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFLoadInterstitial();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadInterstitial();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowInterstitial();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowInterstitial();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowInterstitialWithPlacementName(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowInterstitialWithPlacementName(string placementName);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFIsInterstitialReady();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsInterstitialReady();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFIsInterstitialPlacementCapped(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsInterstitialPlacementCapped(string placementName);
|
||||
|
||||
//******************* Interstitial DemandOnly API *******************//
|
||||
// //******************* Interstitial DemandOnly API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFLoadISDemandOnlyInterstitial(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadISDemandOnlyInterstitial(string instanceId);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowISDemandOnlyInterstitial(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowISDemandOnlyInterstitial(string instanceId);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFIsDemandOnlyInterstitialReady(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsDemandOnlyInterstitialReady(string instanceId);
|
||||
|
||||
|
||||
//******************* Offerwall API *******************//
|
||||
// //******************* Offerwall API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowOfferwall();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowOfferwall();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowOfferwallWithPlacementName(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowOfferwallWithPlacementName(string placementName);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFGetOfferwallCredits();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFGetOfferwallCredits();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFIsOfferwallAvailable();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsOfferwallAvailable();
|
||||
|
||||
//******************* Banner API *******************//
|
||||
// //******************* Banner API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFLoadBanner(string description, int width, int height, int position, string placementName, bool isAdaptive);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadBanner(string description, int width, int height, int position, string placementName, bool isAdaptive);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFDestroyBanner();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFDestroyBanner();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFDisplayBanner();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFDisplayBanner();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFHideBanner();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFHideBanner();
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool CFIsBannerPlacementCapped(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsBannerPlacementCapped(string placementName);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetSegment(string json);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetSegment(string json);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetConsent(bool consent);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetConsent(bool consent);
|
||||
|
||||
//******************* ConsentView API *******************//
|
||||
// //******************* ConsentView API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFLoadConsentViewWithType(string consentViewType);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadConsentViewWithType(string consentViewType);
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFShowConsentViewWithType(string consentViewType);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowConsentViewWithType(string consentViewType);
|
||||
|
||||
//******************* ILRD API *******************//
|
||||
// //******************* ILRD API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFSetAdRevenueData(string dataSource, string impressionData);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetAdRevenueData(string dataSource, string impressionData);
|
||||
|
||||
//******************* TestSuite API *******************//
|
||||
// //******************* TestSuite API *******************//
|
||||
|
||||
[DllImport("__Internal")]
|
||||
private static extern void CFLaunchTestSuite();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLaunchTestSuite();
|
||||
|
||||
public iOSAgent()
|
||||
{
|
||||
}
|
||||
// public iOSAgent()
|
||||
// {
|
||||
// }
|
||||
|
||||
#region IronSourceIAgent implementation
|
||||
// #region IronSourceIAgent implementation
|
||||
|
||||
//******************* Base API *******************//
|
||||
// //******************* Base API *******************//
|
||||
|
||||
public void onApplicationPause(bool pause)
|
||||
{
|
||||
// public void onApplicationPause(bool pause)
|
||||
// {
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
public string getAdvertiserId()
|
||||
{
|
||||
return CFGetAdvertiserId();
|
||||
}
|
||||
// public string getAdvertiserId()
|
||||
// {
|
||||
// return CFGetAdvertiserId();
|
||||
// }
|
||||
|
||||
public void validateIntegration()
|
||||
{
|
||||
CFValidateIntegration();
|
||||
}
|
||||
// public void validateIntegration()
|
||||
// {
|
||||
// CFValidateIntegration();
|
||||
// }
|
||||
|
||||
public void shouldTrackNetworkState(bool track)
|
||||
{
|
||||
CFShouldTrackNetworkState(track);
|
||||
}
|
||||
// public void shouldTrackNetworkState(bool track)
|
||||
// {
|
||||
// CFShouldTrackNetworkState(track);
|
||||
// }
|
||||
|
||||
public bool setDynamicUserId(string dynamicUserId)
|
||||
{
|
||||
return CFSetDynamicUserId(dynamicUserId);
|
||||
}
|
||||
// public bool setDynamicUserId(string dynamicUserId)
|
||||
// {
|
||||
// return CFSetDynamicUserId(dynamicUserId);
|
||||
// }
|
||||
|
||||
public void setAdaptersDebug(bool enabled)
|
||||
{
|
||||
CFSetAdaptersDebug(enabled);
|
||||
}
|
||||
// public void setAdaptersDebug(bool enabled)
|
||||
// {
|
||||
// CFSetAdaptersDebug(enabled);
|
||||
// }
|
||||
|
||||
public void setMetaData(string key, params string[] values)
|
||||
{
|
||||
CFSetMetaDataWithValues(key, values);
|
||||
}
|
||||
// public void setMetaData(string key, params string[] values)
|
||||
// {
|
||||
// CFSetMetaDataWithValues(key, values);
|
||||
// }
|
||||
|
||||
public void setMetaData(string key, string value)
|
||||
{
|
||||
CFSetMetaData(key, value);
|
||||
}
|
||||
|
||||
public int? getConversionValue()
|
||||
{
|
||||
CultureInfo invCulture = CultureInfo.InvariantCulture;
|
||||
int parsedInt;
|
||||
if (int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt))
|
||||
{
|
||||
return parsedInt;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setManualLoadRewardedVideo(bool isOn)
|
||||
{
|
||||
CFSetManualLoadRewardedVideo(isOn);
|
||||
}
|
||||
|
||||
public void setNetworkData(string networkKey, string networkData)
|
||||
{
|
||||
CFSetNetworkData(networkKey, networkData);
|
||||
}
|
||||
|
||||
[AOT.MonoPInvokeCallback(typeof(ISUnityPauseGame))]
|
||||
public void SetPauseGame(bool pause)
|
||||
{
|
||||
RegisterPauseGameFunction(pause);
|
||||
if (pause)
|
||||
{
|
||||
setMetaData("IS_PAUSE_GAME_FLAG", "true");
|
||||
}
|
||||
else
|
||||
{
|
||||
setMetaData("IS_PAUSE_GAME_FLAG", "false");
|
||||
}
|
||||
}
|
||||
|
||||
//******************* SDK Init *******************//
|
||||
|
||||
public void setUserId(string userId)
|
||||
{
|
||||
CFSetUserId(userId);
|
||||
}
|
||||
|
||||
public void init(string appKey)
|
||||
{
|
||||
CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
CFInit(appKey);
|
||||
}
|
||||
|
||||
public void init(string appKey, params string[] adUnits)
|
||||
{
|
||||
CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
CFInitWithAdUnits(appKey, adUnits);
|
||||
}
|
||||
|
||||
public void initISDemandOnly(string appKey, params string[] adUnits)
|
||||
{
|
||||
CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
CFInitISDemandOnly(appKey, adUnits);
|
||||
}
|
||||
|
||||
//******************* RewardedVideo API *******************//
|
||||
|
||||
public void loadRewardedVideo()
|
||||
{
|
||||
CFLoadRewardedVideo();
|
||||
}
|
||||
|
||||
public void showRewardedVideo()
|
||||
{
|
||||
CFShowRewardedVideo();
|
||||
}
|
||||
|
||||
public void showRewardedVideo(string placementName)
|
||||
{
|
||||
CFShowRewardedVideoWithPlacementName(placementName);
|
||||
}
|
||||
|
||||
public bool isRewardedVideoAvailable()
|
||||
{
|
||||
return CFIsRewardedVideoAvailable();
|
||||
}
|
||||
|
||||
public bool isRewardedVideoPlacementCapped(string placementName)
|
||||
{
|
||||
return CFIsRewardedVideoPlacementCapped(placementName);
|
||||
}
|
||||
|
||||
public IronSourcePlacement getPlacementInfo(string placementName)
|
||||
{
|
||||
IronSourcePlacement sp = null;
|
||||
|
||||
string spString = CFGetPlacementInfo(placementName);
|
||||
if (spString != null)
|
||||
{
|
||||
Dictionary<string, object> spDic = IronSourceJSON.Json.Deserialize(spString) as Dictionary<string, object>;
|
||||
string pName = spDic["placement_name"].ToString();
|
||||
string rewardName = spDic["reward_name"].ToString();
|
||||
int rewardAmount = Convert.ToInt32(spDic["reward_amount"].ToString());
|
||||
sp = new IronSourcePlacement(pName, rewardName, rewardAmount);
|
||||
}
|
||||
|
||||
return sp;
|
||||
}
|
||||
|
||||
public void setRewardedVideoServerParams(Dictionary<string, string> parameters)
|
||||
{
|
||||
string json = IronSourceJSON.Json.Serialize(parameters);
|
||||
CFSetRewardedVideoServerParameters(json);
|
||||
}
|
||||
|
||||
public void clearRewardedVideoServerParams()
|
||||
{
|
||||
CFClearRewardedVideoServerParameters();
|
||||
}
|
||||
|
||||
//******************* RewardedVideo DemandOnly API *******************//
|
||||
|
||||
public void showISDemandOnlyRewardedVideo(string instanceId)
|
||||
{
|
||||
CFShowISDemandOnlyRewardedVideo(instanceId);
|
||||
}
|
||||
|
||||
public void loadISDemandOnlyRewardedVideo(string instanceId)
|
||||
{
|
||||
CFLoadISDemandOnlyRewardedVideo(instanceId);
|
||||
}
|
||||
|
||||
public bool isISDemandOnlyRewardedVideoAvailable(string instanceId)
|
||||
{
|
||||
return CFIsDemandOnlyRewardedVideoAvailable(instanceId);
|
||||
}
|
||||
|
||||
//******************* Interstitial API *******************//
|
||||
|
||||
public void loadInterstitial()
|
||||
{
|
||||
CFLoadInterstitial();
|
||||
}
|
||||
|
||||
public void showInterstitial()
|
||||
{
|
||||
CFShowInterstitial();
|
||||
}
|
||||
|
||||
public void showInterstitial(string placementName)
|
||||
{
|
||||
CFShowInterstitialWithPlacementName(placementName);
|
||||
}
|
||||
|
||||
public bool isInterstitialReady()
|
||||
{
|
||||
return CFIsInterstitialReady();
|
||||
}
|
||||
|
||||
public bool isInterstitialPlacementCapped(string placementName)
|
||||
{
|
||||
return CFIsInterstitialPlacementCapped(placementName);
|
||||
}
|
||||
|
||||
//******************* Interstitial DemandOnly API *******************//
|
||||
|
||||
public void loadISDemandOnlyInterstitial(string instanceId)
|
||||
{
|
||||
CFLoadISDemandOnlyInterstitial(instanceId);
|
||||
}
|
||||
|
||||
public void showISDemandOnlyInterstitial(string instanceId)
|
||||
{
|
||||
CFShowISDemandOnlyInterstitial(instanceId);
|
||||
}
|
||||
|
||||
public bool isISDemandOnlyInterstitialReady(string instanceId)
|
||||
{
|
||||
return CFIsDemandOnlyInterstitialReady(instanceId);
|
||||
}
|
||||
|
||||
//******************* Offerwall API *******************//
|
||||
|
||||
public void showOfferwall()
|
||||
{
|
||||
CFShowOfferwall();
|
||||
}
|
||||
|
||||
public void showOfferwall(string placementName)
|
||||
{
|
||||
CFShowOfferwallWithPlacementName(placementName);
|
||||
}
|
||||
|
||||
public void getOfferwallCredits()
|
||||
{
|
||||
CFGetOfferwallCredits();
|
||||
}
|
||||
|
||||
public bool isOfferwallAvailable()
|
||||
{
|
||||
return CFIsOfferwallAvailable();
|
||||
}
|
||||
|
||||
//******************* Banner API *******************//
|
||||
|
||||
public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position)
|
||||
{
|
||||
loadBanner(size, position, "");
|
||||
}
|
||||
|
||||
public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position, string placementName)
|
||||
{
|
||||
CFLoadBanner(size.Description, (int)size.Width, (int)size.Height, (int)position, placementName, (bool)size.IsAdaptiveEnabled());
|
||||
}
|
||||
|
||||
public void destroyBanner()
|
||||
{
|
||||
CFDestroyBanner();
|
||||
}
|
||||
|
||||
public void displayBanner()
|
||||
{
|
||||
CFDisplayBanner();
|
||||
}
|
||||
|
||||
public void hideBanner()
|
||||
{
|
||||
CFHideBanner();
|
||||
}
|
||||
|
||||
public bool isBannerPlacementCapped(string placementName)
|
||||
{
|
||||
return CFIsBannerPlacementCapped(placementName);
|
||||
}
|
||||
|
||||
public void setSegment(IronSourceSegment segment)
|
||||
{
|
||||
Dictionary<string, string> dict = segment.getSegmentAsDict();
|
||||
string json = IronSourceJSON.Json.Serialize(dict);
|
||||
CFSetSegment(json);
|
||||
}
|
||||
|
||||
public void setConsent(bool consent)
|
||||
{
|
||||
CFSetConsent(consent);
|
||||
}
|
||||
|
||||
public void loadConsentViewWithType(string consentViewType)
|
||||
{
|
||||
CFLoadConsentViewWithType(consentViewType);
|
||||
}
|
||||
|
||||
public void showConsentViewWithType(string consentViewType)
|
||||
{
|
||||
CFShowConsentViewWithType(consentViewType);
|
||||
}
|
||||
|
||||
//******************* ILRD API *******************//
|
||||
|
||||
public void setAdRevenueData(string dataSource, Dictionary<string, string> impressionData)
|
||||
{
|
||||
string json = IronSourceJSON.Json.Serialize(impressionData);
|
||||
CFSetAdRevenueData(dataSource, json);
|
||||
}
|
||||
|
||||
//******************* TestSuite API *******************//
|
||||
|
||||
public void launchTestSuite()
|
||||
{
|
||||
Debug.Log("iOSAgent: launching TestSuite");
|
||||
CFLaunchTestSuite();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
// public void setMetaData(string key, string value)
|
||||
// {
|
||||
// CFSetMetaData(key, value);
|
||||
// }
|
||||
|
||||
// public int? getConversionValue()
|
||||
// {
|
||||
// CultureInfo invCulture = CultureInfo.InvariantCulture;
|
||||
// int parsedInt;
|
||||
// if (int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt))
|
||||
// {
|
||||
// return parsedInt;
|
||||
// }
|
||||
|
||||
// return null;
|
||||
// }
|
||||
|
||||
// public void setManualLoadRewardedVideo(bool isOn)
|
||||
// {
|
||||
// CFSetManualLoadRewardedVideo(isOn);
|
||||
// }
|
||||
|
||||
// public void setNetworkData(string networkKey, string networkData)
|
||||
// {
|
||||
// CFSetNetworkData(networkKey, networkData);
|
||||
// }
|
||||
|
||||
// [AOT.MonoPInvokeCallback(typeof(ISUnityPauseGame))]
|
||||
// public void SetPauseGame(bool pause)
|
||||
// {
|
||||
// RegisterPauseGameFunction(pause);
|
||||
// if (pause)
|
||||
// {
|
||||
// setMetaData("IS_PAUSE_GAME_FLAG", "true");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// setMetaData("IS_PAUSE_GAME_FLAG", "false");
|
||||
// }
|
||||
// }
|
||||
|
||||
// //******************* SDK Init *******************//
|
||||
|
||||
// public void setUserId(string userId)
|
||||
// {
|
||||
// CFSetUserId(userId);
|
||||
// }
|
||||
|
||||
// public void init(string appKey)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInit(appKey);
|
||||
// }
|
||||
|
||||
// public void init(string appKey, params string[] adUnits)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInitWithAdUnits(appKey, adUnits);
|
||||
// }
|
||||
|
||||
// public void initISDemandOnly(string appKey, params string[] adUnits)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInitISDemandOnly(appKey, adUnits);
|
||||
// }
|
||||
|
||||
// //******************* RewardedVideo API *******************//
|
||||
|
||||
// public void loadRewardedVideo()
|
||||
// {
|
||||
// CFLoadRewardedVideo();
|
||||
// }
|
||||
|
||||
// public void showRewardedVideo()
|
||||
// {
|
||||
// CFShowRewardedVideo();
|
||||
// }
|
||||
|
||||
// public void showRewardedVideo(string placementName)
|
||||
// {
|
||||
// CFShowRewardedVideoWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public bool isRewardedVideoAvailable()
|
||||
// {
|
||||
// return CFIsRewardedVideoAvailable();
|
||||
// }
|
||||
|
||||
// public bool isRewardedVideoPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsRewardedVideoPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// public IronSourcePlacement getPlacementInfo(string placementName)
|
||||
// {
|
||||
// IronSourcePlacement sp = null;
|
||||
|
||||
// string spString = CFGetPlacementInfo(placementName);
|
||||
// if (spString != null)
|
||||
// {
|
||||
// Dictionary<string, object> spDic = IronSourceJSON.Json.Deserialize(spString) as Dictionary<string, object>;
|
||||
// string pName = spDic["placement_name"].ToString();
|
||||
// string rewardName = spDic["reward_name"].ToString();
|
||||
// int rewardAmount = Convert.ToInt32(spDic["reward_amount"].ToString());
|
||||
// sp = new IronSourcePlacement(pName, rewardName, rewardAmount);
|
||||
// }
|
||||
|
||||
// return sp;
|
||||
// }
|
||||
|
||||
// public void setRewardedVideoServerParams(Dictionary<string, string> parameters)
|
||||
// {
|
||||
// string json = IronSourceJSON.Json.Serialize(parameters);
|
||||
// CFSetRewardedVideoServerParameters(json);
|
||||
// }
|
||||
|
||||
// public void clearRewardedVideoServerParams()
|
||||
// {
|
||||
// CFClearRewardedVideoServerParameters();
|
||||
// }
|
||||
|
||||
// //******************* RewardedVideo DemandOnly API *******************//
|
||||
|
||||
// public void showISDemandOnlyRewardedVideo(string instanceId)
|
||||
// {
|
||||
// CFShowISDemandOnlyRewardedVideo(instanceId);
|
||||
// }
|
||||
|
||||
// public void loadISDemandOnlyRewardedVideo(string instanceId)
|
||||
// {
|
||||
// CFLoadISDemandOnlyRewardedVideo(instanceId);
|
||||
// }
|
||||
|
||||
// public bool isISDemandOnlyRewardedVideoAvailable(string instanceId)
|
||||
// {
|
||||
// return CFIsDemandOnlyRewardedVideoAvailable(instanceId);
|
||||
// }
|
||||
|
||||
// //******************* Interstitial API *******************//
|
||||
|
||||
// public void loadInterstitial()
|
||||
// {
|
||||
// CFLoadInterstitial();
|
||||
// }
|
||||
|
||||
// public void showInterstitial()
|
||||
// {
|
||||
// CFShowInterstitial();
|
||||
// }
|
||||
|
||||
// public void showInterstitial(string placementName)
|
||||
// {
|
||||
// CFShowInterstitialWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public bool isInterstitialReady()
|
||||
// {
|
||||
// return CFIsInterstitialReady();
|
||||
// }
|
||||
|
||||
// public bool isInterstitialPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsInterstitialPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// //******************* Interstitial DemandOnly API *******************//
|
||||
|
||||
// public void loadISDemandOnlyInterstitial(string instanceId)
|
||||
// {
|
||||
// CFLoadISDemandOnlyInterstitial(instanceId);
|
||||
// }
|
||||
|
||||
// public void showISDemandOnlyInterstitial(string instanceId)
|
||||
// {
|
||||
// CFShowISDemandOnlyInterstitial(instanceId);
|
||||
// }
|
||||
|
||||
// public bool isISDemandOnlyInterstitialReady(string instanceId)
|
||||
// {
|
||||
// return CFIsDemandOnlyInterstitialReady(instanceId);
|
||||
// }
|
||||
|
||||
// //******************* Offerwall API *******************//
|
||||
|
||||
// public void showOfferwall()
|
||||
// {
|
||||
// CFShowOfferwall();
|
||||
// }
|
||||
|
||||
// public void showOfferwall(string placementName)
|
||||
// {
|
||||
// CFShowOfferwallWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public void getOfferwallCredits()
|
||||
// {
|
||||
// CFGetOfferwallCredits();
|
||||
// }
|
||||
|
||||
// public bool isOfferwallAvailable()
|
||||
// {
|
||||
// return CFIsOfferwallAvailable();
|
||||
// }
|
||||
|
||||
// //******************* Banner API *******************//
|
||||
|
||||
// public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position)
|
||||
// {
|
||||
// loadBanner(size, position, "");
|
||||
// }
|
||||
|
||||
// public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position, string placementName)
|
||||
// {
|
||||
// CFLoadBanner(size.Description, (int)size.Width, (int)size.Height, (int)position, placementName, (bool)size.IsAdaptiveEnabled());
|
||||
// }
|
||||
|
||||
// public void destroyBanner()
|
||||
// {
|
||||
// CFDestroyBanner();
|
||||
// }
|
||||
|
||||
// public void displayBanner()
|
||||
// {
|
||||
// CFDisplayBanner();
|
||||
// }
|
||||
|
||||
// public void hideBanner()
|
||||
// {
|
||||
// CFHideBanner();
|
||||
// }
|
||||
|
||||
// public bool isBannerPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsBannerPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// public void setSegment(IronSourceSegment segment)
|
||||
// {
|
||||
// Dictionary<string, string> dict = segment.getSegmentAsDict();
|
||||
// string json = IronSourceJSON.Json.Serialize(dict);
|
||||
// CFSetSegment(json);
|
||||
// }
|
||||
|
||||
// public void setConsent(bool consent)
|
||||
// {
|
||||
// CFSetConsent(consent);
|
||||
// }
|
||||
|
||||
// public void loadConsentViewWithType(string consentViewType)
|
||||
// {
|
||||
// CFLoadConsentViewWithType(consentViewType);
|
||||
// }
|
||||
|
||||
// public void showConsentViewWithType(string consentViewType)
|
||||
// {
|
||||
// CFShowConsentViewWithType(consentViewType);
|
||||
// }
|
||||
|
||||
// //******************* ILRD API *******************//
|
||||
|
||||
// public void setAdRevenueData(string dataSource, Dictionary<string, string> impressionData)
|
||||
// {
|
||||
// string json = IronSourceJSON.Json.Serialize(impressionData);
|
||||
// CFSetAdRevenueData(dataSource, json);
|
||||
// }
|
||||
|
||||
// //******************* TestSuite API *******************//
|
||||
|
||||
// public void launchTestSuite()
|
||||
// {
|
||||
// Debug.Log("iOSAgent: launching TestSuite");
|
||||
// CFLaunchTestSuite();
|
||||
// }
|
||||
|
||||
// #endregion
|
||||
// }
|
||||
#endif
|
||||
|
||||
@ -28,5 +28,5 @@ MonoBehaviour:
|
||||
userTrackingUsageDescriptionZhHans:
|
||||
userTrackingUsageDescriptionZhHant:
|
||||
adMobAndroidAppId:
|
||||
adMobIosAppId: ca-app-pub-8252390069143459~9766550824
|
||||
adMobIosAppId: ca-app-pub-8252390069143459~7358844489
|
||||
snapAppStoreAppId: 0
|
||||
|
||||
@ -160,7 +160,9 @@ namespace XLua.CSObjectWrap
|
||||
IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Purchasing.InitializationFailureReason>(L, 2))
|
||||
{
|
||||
UnityEngine.Purchasing.InitializationFailureReason _error;translator.Get(L, 2, out _error);
|
||||
|
||||
@ -168,6 +170,17 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Purchasing.InitializationFailureReason>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
|
||||
{
|
||||
UnityEngine.Purchasing.InitializationFailureReason _error;translator.Get(L, 2, out _error);
|
||||
string _message = LuaAPI.lua_tostring(L, 3);
|
||||
|
||||
gen_to_be_invoked.OnInitializeFailed( _error, _message );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -175,6 +188,8 @@ namespace XLua.CSObjectWrap
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to IAPManager.OnInitializeFailed!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
|
||||
@ -65,6 +65,15 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<UnityEngine.Purchasing.ProductMetadata>(L, 2))
|
||||
{
|
||||
UnityEngine.Purchasing.ProductMetadata _productMetadata = (UnityEngine.Purchasing.ProductMetadata)translator.GetObject(L, 2, typeof(UnityEngine.Purchasing.ProductMetadata));
|
||||
|
||||
var gen_ret = new UnityEngine.Purchasing.ProductMetadata(_productMetadata);
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(LuaAPI.lua_gettop(L) == 1)
|
||||
{
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ namespace XLua.CSObjectWrap
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(UnityEngine.Purchasing.Product);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 2, 6, 0);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 2, 8, 0);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
|
||||
@ -31,6 +31,8 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "metadata", _g_get_metadata);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "availableToPurchase", _g_get_availableToPurchase);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "transactionID", _g_get_transactionID);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "appleOriginalTransactionID", _g_get_appleOriginalTransactionID);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "appleProductIsRestored", _g_get_appleProductIsRestored);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasReceipt", _g_get_hasReceipt);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "receipt", _g_get_receipt);
|
||||
|
||||
@ -178,6 +180,34 @@ namespace XLua.CSObjectWrap
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_appleOriginalTransactionID(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.appleOriginalTransactionID);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_appleProductIsRestored(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.appleProductIsRestored);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_hasReceipt(RealStatePtr L)
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
|
||||
þ¦
|
||||
œœ
|
||||
pb/proto/protocol.protocspb"ž
|
||||
Gift
|
||||
act_type (RactType
|
||||
@ -210,14 +210,12 @@ skill_cast (R skillCast
|
||||
rewards (2.cspb.RewardRrewards"
|
||||
ChapterDailyChallengeResetReq"e
|
||||
ChapterDailyChallengeResetRspD
|
||||
daily_challenge (2.cspb.ChapterDailyChallengeRdailyChallenge"â
|
||||
daily_challenge (2.cspb.ChapterDailyChallengeRdailyChallenge"®
|
||||
ChapterGoldChallenge2
|
||||
today_challenge_count (RtodayChallengeCount2
|
||||
total_challenge_count (RtotalChallengeCount-
|
||||
max_chapter_gold_id (RmaxChapterGoldId3
|
||||
latest_chapter_gold_id (RlatestChapterGoldId"F
|
||||
ChapterGoldChallengeStartReq&
|
||||
chapter_gold_id (R
chapterGoldId"l
|
||||
today_challenge_count (RtodayChallengeCount-
|
||||
max_chapter_gold_id (RmaxChapterGoldId3
|
||||
latest_chapter_gold_id (RlatestChapterGoldId"
|
||||
ChapterGoldChallengeStartReq"l
|
||||
ChapterGoldChallengeStartRsp(
|
||||
err_code (2
.cspb.ErrCodeRerrCode"
|
||||
costs (2.cspb.RewardRcosts"Ð
|
||||
@ -236,31 +234,6 @@ skill_cast (R skillCast
|
||||
ChapterGoldChallengeFarmRsp(
|
||||
err_code (2
.cspb.ErrCodeRerrCode"
|
||||
costs (2.cspb.RewardRcosts&
|
||||
rewards (2.cspb.RewardRrewards"ì
|
||||
ChapterShardsChallenge2
|
||||
today_challenge_count (RtodayChallengeCount2
|
||||
total_challenge_count (RtotalChallengeCount1
|
||||
max_chapter_shards_id (RmaxChapterShardsId7
|
||||
latest_chapter_shards_id (RlatestChapterShardsId"L
|
||||
ChapterShardsChallengeStartReq*
|
||||
chapter_shards_id (RchapterShardsId"n
|
||||
ChapterShardsChallengeStartRsp(
|
||||
err_code (2
.cspb.ErrCodeRerrCode"
|
||||
costs (2.cspb.RewardRcosts"³
|
||||
#ChapterShardsChallengeSettlementReq
|
||||
win (Rwin!
|
||||
total_damage (RtotalDamage*
|
||||
chapter_shards_id (RchapterShardsId+
|
||||
task_stat (2.cspb.TaskStatRtaskStat"À
|
||||
#ChapterShardsChallengeSettlementRsp(
|
||||
err_code (2
.cspb.ErrCodeRerrCode&
|
||||
rewards (2.cspb.RewardRrewardsG
|
||||
shards_challenge (2.cspb.ChapterShardsChallengeRshardsChallenge"K
|
||||
ChapterShardsChallengeFarmReq*
|
||||
chapter_shards_id (RchapterShardsId"•
|
||||
ChapterShardsChallengeFarmRsp(
|
||||
err_code (2
.cspb.ErrCodeRerrCode"
|
||||
costs (2.cspb.RewardRcosts&
|
||||
rewards (2.cspb.RewardRrewards"ˆ
|
||||
Reward
|
||||
type (Rtype
|
||||
@ -281,12 +254,7 @@ skill_cast (R skillCast
|
||||
level (Rlevel"*
|
||||
Recovery
|
||||
id (Rid
|
||||
ts (Rts"
|
||||
CDKeyUseReq
|
||||
key ( Rkey"_
|
||||
CDKeyUseRsp(
|
||||
err_code (2
.cspb.ErrCodeRerrCode&
|
||||
rewards (2.cspb.RewardRrewards"M
|
||||
ts (Rts"M
|
||||
EnergyLimit#
|
||||
diamond_count (RdiamondCount
|
||||
ad_count (RadCount"
|
||||
@ -551,7 +519,7 @@ facebookId"C
|
||||
client_info (2.cspb.ClientInfoR
|
||||
clientInfo
|
||||
|
||||
skip_guide (R skipGuide"Ü
|
||||
skip_guide (R skipGuide"„
|
||||
LoginRsp(
|
||||
err_code (2
.cspb.ErrCodeRerrCode*
|
||||
today_first_login (RtodayFirstLogin
|
||||
@ -586,8 +554,7 @@ task_daily (2.cspb.TaskDailyR taskDaily+
|
||||
mall_daily (2.cspb.MallDailyR mallDaily+
|
||||
mall_idle (2.cspb.MallIdleRmallIdleS
|
||||
chapter_daily_challenge (2.cspb.ChapterDailyChallengeRchapterDailyChallengeP
|
||||
chapter_gold_challenge (2.cspb.ChapterGoldChallengeRchapterGoldChallengeV
|
||||
chapter_shards_challenge (2.cspb.ChapterShardsChallengeRchapterShardsChallenge"U
|
||||
chapter_gold_challenge (2.cspb.ChapterGoldChallengeRchapterGoldChallenge"U
|
||||
PipedReq
|
||||
id (
Rid
|
||||
ts (Rts
|
||||
@ -717,7 +684,7 @@ clear10Hit
|
||||
skill_cast (R skillCast
|
||||
skill_box (RskillBox&
|
||||
kills_boss_turn
|
||||
(R
killsBossTurn*˜
|
||||
(R
killsBossTurn*÷
|
||||
ErrCode
|
||||
SUCCESS | ||||