Merge branch 'dev' of git.juzugame.com:b6-client/b6-unity into dev

# Conflicts:
#	Assets/proto/protocol.bytes
This commit is contained in:
chenxi 2023-06-14 15:41:50 +08:00
commit b51d130b3b
78 changed files with 646 additions and 2591 deletions

View File

@ -34,12 +34,12 @@ namespace BFEditor.Build
public bool IsGPChannel() public bool IsGPChannel()
{ {
return bundleName == "com.knight.connect.rpg"; return bundleName == "com.combo.heroes.puzzle.rpg";
} }
public bool IsGPOfficial() public bool IsGPOfficial()
{ {
return bundleName == "com.knight.connect.rpg"; return bundleName == "com.combo.heroes.puzzle.rpg";
} }
// dev包使用mono编译不会导出as工程 // dev包使用mono编译不会导出as工程

View File

@ -16,7 +16,7 @@ namespace BFEditor.Build
BFPlatformOptions platform = BFPlatformOptions.AndroidDev; BFPlatformOptions platform = BFPlatformOptions.AndroidDev;
const string ANDROID_DEV_PACKAGE_NAME = "com.juzu.b6.dev.android"; 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_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"; const string IOS_PACKAGE_NAME = "com.juzu.b6.dev.ios";
public BuildProjectWindow() public BuildProjectWindow()

View File

@ -131,7 +131,7 @@ namespace BFEditor.Build
// 应用名 // 应用名
if (buildInfo.IsPublish()) if (buildInfo.IsPublish())
{ {
PlayerSettings.productName = "Knight Connect"; PlayerSettings.productName = "Knight Combo";
} }
else else
{ {

View File

@ -50,7 +50,7 @@ public class JenkinsAdapter {
var buildInfo = new BuildInfo(); var buildInfo = new BuildInfo();
buildInfo.version = "0.1.0"; buildInfo.version = "0.1.0";
buildInfo.mode = "publish_release"; buildInfo.mode = "publish_release";
buildInfo.bundleName = "com.juzu.b6"; buildInfo.bundleName = "com.combo.heroes.puzzle.rpg";
buildInfo.skipVersion = false; buildInfo.skipVersion = false;
BuildProjectTools.BuildResources(buildInfo, Application.streamingAssetsPath, true); BuildProjectTools.BuildResources(buildInfo, Application.streamingAssetsPath, true);
@ -60,7 +60,7 @@ public class JenkinsAdapter {
// 设置版本号 // 设置版本号
PlayerSettings.bundleVersion = buildInfo.version; PlayerSettings.bundleVersion = buildInfo.version;
//Jenkins要求自动构建最低ios8.0 //Jenkins要求自动构建最低ios8.0
PlayerSettings.iOS.targetOSVersionString = "10.0"; PlayerSettings.iOS.targetOSVersionString = "12.0";
//设置Build为日期格式 //设置Build为日期格式
PlayerSettings.iOS.buildNumber = BuildVersion; PlayerSettings.iOS.buildNumber = BuildVersion;
@ -85,7 +85,7 @@ public class JenkinsAdapter {
} }
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, symbols); PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, symbols);
// 商品名称 // 商品名称
PlayerSettings.productName = "Lonely Survivor"; PlayerSettings.productName = "Knight Combo";
// BuildType设置dev/release // BuildType设置dev/release
EditorUserBuildSettings.iOSBuildConfigType = iOSBuildType.Release; EditorUserBuildSettings.iOSBuildConfigType = iOSBuildType.Release;
// 使用IL2CPP // 使用IL2CPP
@ -116,7 +116,7 @@ public class JenkinsAdapter {
return names.ToArray(); return names.ToArray();
} }
#region Get Build Path #region Get Build Path
private static string GetIosBuildPath() { private static string GetIosBuildPath() {
return "build/iOS"; return "build/iOS";
} }

View File

@ -27,34 +27,34 @@ public class Package {
project.AddBuildPropertyForConfig(release, "CODE_SIGN_RESOURCE_RULES_PATH", "$(SDKROOT)/ResourceRules.plist"); project.AddBuildPropertyForConfig(release, "CODE_SIGN_RESOURCE_RULES_PATH", "$(SDKROOT)/ResourceRules.plist");
#region #region
string projPath = Path.GetFullPath (pathToBuiltProject); string projPath = Path.GetFullPath(pathToBuiltProject);
//添加推送和其他的有点不一样需要添加一个文件。这个文件只能考进去。或者事先准备好了Base.entitlements 文件,文件类容 就是你手动添加进去的内容,你手动添加完成后生成的那个文件 //添加推送和其他的有点不一样需要添加一个文件。这个文件只能考进去。或者事先准备好了Base.entitlements 文件,文件类容 就是你手动添加进去的内容,你手动添加完成后生成的那个文件
string entitlement = Application.dataPath + "/Editor/entitlement.entitlements"; // string entitlement = Application.dataPath + "/Editor/entitlement.entitlements";
File.Copy (entitlement, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements"); // File.Copy (entitlement, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements");
//Max Ad Review service //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 // Enable Push Notifications
project.AddFrameworkToProject (targetGuid_Framework, "UserNotifications.framework", false); // project.AddFrameworkToProject (targetGuid_Framework, "UserNotifications.framework", false);
// Enable background mode // Enable background mode
// project.AddCapability (targetGuid, PBXCapabilityType.BackgroundModes); // project.AddCapability (targetGuid, PBXCapabilityType.BackgroundModes);
#region google service plist file #region google service plist file
// google service // google service
string googleServicePath = Application.dataPath + "/Plugins/iOS/GoogleService-Info.plist"; // string googleServicePath = Application.dataPath + "/Plugins/iOS/GoogleService-Info.plist";
File.Copy(googleServicePath, pathToBuiltProject + "/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 #endregion
// Add background modes // Add background modes
string plistPath = pathToBuiltProject + "/Info.plist"; string plistPath = pathToBuiltProject + "/Info.plist";
PlistDocument plist = new PlistDocument (); PlistDocument plist = new PlistDocument();
plist.ReadFromString (File.ReadAllText (plistPath)); plist.ReadFromString(File.ReadAllText(plistPath));
PlistElementDict rootDict = plist.root; PlistElementDict rootDict = plist.root;
//在playersetting里设置iosUseCustomAppBackgroundBehavior 和 iOSBackgroundModes //在playersetting里设置iosUseCustomAppBackgroundBehavior 和 iOSBackgroundModes
// PlistElementArray arr = rootDict.CreateArray ("UIBackgroundModes"); // PlistElementArray arr = rootDict.CreateArray ("UIBackgroundModes");
@ -63,11 +63,11 @@ public class Package {
//解决错误ITMS-90339 //解决错误ITMS-90339
string exitsOnSuspendKey = "UIApplicationExitsOnSuspend"; string exitsOnSuspendKey = "UIApplicationExitsOnSuspend";
if (rootDict.values.ContainsKey (exitsOnSuspendKey)) { if (rootDict.values.ContainsKey(exitsOnSuspendKey)) {
rootDict.values.Remove (exitsOnSuspendKey); rootDict.values.Remove(exitsOnSuspendKey);
} }
File.WriteAllText (plistPath, plist.WriteToString ()); File.WriteAllText(plistPath, plist.WriteToString());
#endregion #endregion
// 根据实际需要添加framework或者tbd // 根据实际需要添加framework或者tbd
@ -80,13 +80,16 @@ public class Package {
// project.AddFrameworkToProject(targetGuid_Framework, "CoreTelephony.framework", false); // project.AddFrameworkToProject(targetGuid_Framework, "CoreTelephony.framework", false);
// AF // AF
// project.AddFrameworkToProject(targetGuid_Framework, "AdSupport.framework", false); project.AddFrameworkToProject(targetGuid_Framework, "AdSupport.framework", false);
// project.AddFrameworkToProject(targetGuid_Framework, "iAd.framework", false); project.AddFrameworkToProject(targetGuid_Framework, "iAd.framework", false);
// AF END */ // AF END */
// // ATT // adjust
project.AddFrameworkToProject(targetGuid_Framework, "AppTrackingTransparency.framework", false); project.AddFrameworkToProject(targetGuid_Framework, "AdServices.framework", false);
// // ATT END
// ATT
project.AddFrameworkToProject(targetGuid_Framework, "AppTrackingTransparency.framework", false);
// ATT END
// 苹果登录 // 苹果登录
project.AddFrameworkToProject(targetGuid_Framework, "AuthenticationServices.framework", true); project.AddFrameworkToProject(targetGuid_Framework, "AuthenticationServices.framework", true);
@ -715,12 +718,12 @@ public class Package {
<dict> <dict>
<key>CFBundleURLSchemes</key> <key>CFBundleURLSchemes</key>
<array> <array>
<string>fb222326627097275</string> <string>fb277827051329111</string>
</array> </array>
</dict> </dict>
</array> </array>
<key>FacebookAppID</key> <key>FacebookAppID</key>
<string>222326627097275</string> <string>277827051329111</string>
<key>FacebookClientToken</key> <key>FacebookClientToken</key>
<string>63ee45cf6edfede0ab7cd532592fb3f1</string> <string>63ee45cf6edfede0ab7cd532592fb3f1</string>
<key>FacebookDisplayName</key> <key>FacebookDisplayName</key>

View File

@ -25,11 +25,11 @@
<activity android:name="com.facebook.unity.FBUnityGameRequestActivity" /> <activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
<activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" /> <activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
<activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" /> <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.ApplicationId" android:value="fb277827051329111" />
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="7ec364275c7766833d2ebace0c5a806e" /> <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.AutoLogAppEventsEnabled" android:value="true" />
<meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" 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" /> --> <!-- <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"> <receiver android:name="com.adjust.sdk.AdjustReferrerReceiver" android:permission="android.permission.INSTALL_PACKAGES" android:exported="true">
<intent-filter> <intent-filter>

View File

@ -12,11 +12,11 @@ IMPL_APP_CONTROLLER_SUBCLASS (CustomAppController)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[super application:application didFinishLaunchingWithOptions:launchOptions]; [super application:application didFinishLaunchingWithOptions:launchOptions];
[[FirebaseSDK getInstance] initialize]; // [[FirebaseSDK getInstance] initialize];
// [START set_messaging_delegate] // [START set_messaging_delegate]
[FIRMessaging messaging].delegate = self; // [FIRMessaging messaging].delegate = self;
// [END set_messaging_delegate] // [END set_messaging_delegate]
if ([UNUserNotificationCenter class] != nil) { if ([UNUserNotificationCenter class] != nil) {
// iOS 10 or later // iOS 10 or later
// For iOS 10 display notification (sent via APNS) // For iOS 10 display notification (sent via APNS)

View File

@ -26,7 +26,7 @@ public partial class AdManager : BF.MonoSingleton<AdManager>
private const string Key = "9uHgeBwag3NXva9MC23ToO3q11Ve59bF1uwg4qGltdGmCQ7OSByFZ_3b1ZF7krMlkHQo5gXzIokVDsvg1rwbr-"; private const string Key = "9uHgeBwag3NXva9MC23ToO3q11Ve59bF1uwg4qGltdGmCQ7OSByFZ_3b1ZF7krMlkHQo5gXzIokVDsvg1rwbr-";
string bannerAdUnitId = "YOUR_BANNER_AD_UNIT_ID"; // Retrieve the ID from your account string bannerAdUnitId = "YOUR_BANNER_AD_UNIT_ID"; // Retrieve the ID from your account
string adInterstitialUnitId = "YOUR_AD_UNIT_ID"; string adInterstitialUnitId = "YOUR_AD_UNIT_ID";
string adRewardUnitId = "e0fc2e3efef362de"; string adRewardUnitId = "e54f27e345da90df";
// Start is called before the first frame update // Start is called before the first frame update
public void Init(string init = "") public void Init(string init = "")

View File

@ -77,6 +77,12 @@ public class IAPManager : /* MonoBehaviour, */ IStoreListener {
IAPDebug($"init fail: {er}"); IAPDebug($"init fail: {er}");
initCallback?.Invoke(false, null, 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 #endregion
#region ================================================== ================================================== #region ================================================== ==================================================

View File

@ -64,7 +64,7 @@ namespace BF
public partial class BFPlatform 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>() static Dictionary<string, string> BFLoginCenterURLDict = new Dictionary<string, string>()
{ {
// dev // dev
@ -77,7 +77,7 @@ namespace BF
{"com.juzu.b6.release.ios", "http://game.juzugame.com:3000"}, {"com.juzu.b6.release.ios", "http://game.juzugame.com:3000"},
// gp // gp
{"com.knight.connect.rpg", "https://b6-entrance.bigfoot-studio.link"}, {"com.combo.heroes.puzzle.rpg", "https://entrance.bigfoot-studio.link"},
}; };
//combine url解析的数据 //combine url解析的数据

View File

@ -48,7 +48,7 @@ namespace BF
{"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})}, {"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})},
{"com.juzu.b6.release.ios", new BFLanguageInfo(new List<string>{"en"})}, {"com.juzu.b6.release.ios", new BFLanguageInfo(new List<string>{"en"})},
// 这个是gp渠道 // 这个是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"})}, {"com.juzu.b6.ios", new BFLanguageInfo(new List<string>{"en"})},
}; };

View File

@ -14,11 +14,11 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
selectedAppIndex: 0 selectedAppIndex: 0
clientTokens: clientTokens:
- 7ec364275c7766833d2ebace0c5a806e - cd6be8cc57dff789f3476ee1b25e2410
appIds: appIds:
- 222326627097275 - 277827051329111
appLabels: appLabels:
- Knight Connect - Combo Hero
cookie: 1 cookie: 1
logging: 1 logging: 1
status: 1 status: 1

View File

@ -1,7 +1,7 @@
<dependencies> <dependencies>
<iosPods> <iosPods>
<iosPod name="FirebaseAnalytics"/> <iosPod name="FirebaseAnalytics" version="9.6.0"/>
<iosPod name="FirebaseCrashlytics"/> <iosPod name="FirebaseCrashlytics" version="9.6.0"/>
<iosPod name="FirebaseMessaging"/> <iosPod name="FirebaseMessaging" version="9.6.0"/>
</iosPods> </iosPods>
</dependencies> </dependencies>

View File

@ -16,11 +16,11 @@
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceAdColonyAdapter" version="4.3.16.0"> <iosPod name="IronSourceAdColonyAdapter" version="4.3.16.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -16,11 +16,11 @@
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceAdMobAdapter" version="4.3.41.0"> <iosPod name="IronSourceAdMobAdapter" version="4.3.41.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -14,11 +14,11 @@
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceAppLovinAdapter" version="4.3.38.0"> <iosPod name="IronSourceAppLovinAdapter" version="4.3.38.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -14,11 +14,11 @@
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceChartboostAdapter" version="4.3.13.0"> <iosPod name="IronSourceChartboostAdapter" version="4.3.13.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -16,11 +16,11 @@
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceFacebookAdapter" version="4.3.39.0"> <iosPod name="IronSourceFacebookAdapter" version="4.3.39.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -16,11 +16,11 @@
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceFyberAdapter" version="4.3.28.0"> <iosPod name="IronSourceFyberAdapter" version="4.3.28.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -16,11 +16,11 @@
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceLiftoffAdapter" version="4.3.4.0"> <iosPod name="IronSourceLiftoffAdapter" version="4.3.4.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -14,11 +14,11 @@
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourcePangleAdapter" version="4.3.19.0"> <iosPod name="IronSourcePangleAdapter" version="4.3.19.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -14,11 +14,11 @@
</repositories> </repositories>
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceTapjoyAdapter" version="4.1.24.0"> <iosPod name="IronSourceTapjoyAdapter" version="4.1.24.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -15,11 +15,11 @@
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceUnityAdsAdapter" version="4.3.28.0"> <iosPod name="IronSourceUnityAdsAdapter" version="4.3.28.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

@ -25,11 +25,11 @@
</androidPackage> </androidPackage>
</androidPackages> </androidPackages>
<iosPods> <!-- <iosPods>
<iosPod name="IronSourceSDK" version="7.3.0.0"> <iosPod name="IronSourceSDK" version="7.3.0.0">
<sources> <sources>
<source>https://github.com/CocoaPods/Specs</source> <source>https://github.com/CocoaPods/Specs</source>
</sources> </sources>
</iosPod> </iosPod>
</iosPods> </iosPods> -->
</dependencies> </dependencies>

View File

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

View File

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

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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:

File diff suppressed because it is too large Load Diff

View File

@ -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:

View File

@ -16,8 +16,8 @@ public class IronSource : IronSourceIAgent
{ {
#if UNITY_EDITOR || UNITY_STANDALONE #if UNITY_EDITOR || UNITY_STANDALONE
_platformAgent = new UnsupportedPlatformAgent(); _platformAgent = new UnsupportedPlatformAgent();
#elif (UNITY_IPHONE || UNITY_IOS) // #elif (UNITY_IPHONE || UNITY_IOS)
_platformAgent = new iOSAgent(); // _platformAgent = new iOSAgent();
#elif UNITY_ANDROID #elif UNITY_ANDROID
_platformAgent = new AndroidAgent (); _platformAgent = new AndroidAgent ();
#endif #endif

View File

@ -53,46 +53,46 @@ public class IronSourceConfig
} }
#elif (UNITY_IPHONE || UNITY_IOS) && !UNITY_EDITOR // #elif (UNITY_IPHONE || UNITY_IOS) && !UNITY_EDITOR
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetLanguage (string language); // private static extern void CFSetLanguage (string language);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetClientSideCallbacks (bool useClientSideCallbacks); // private static extern void CFSetClientSideCallbacks (bool useClientSideCallbacks);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetRewardedVideoCustomParams (string rewardedVideoCustomParams); // private static extern void CFSetRewardedVideoCustomParams (string rewardedVideoCustomParams);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetOfferwallCustomParams (string offerwallCustomParams); // private static extern void CFSetOfferwallCustomParams (string offerwallCustomParams);
public void setLanguage (string language) // public void setLanguage (string language)
{ // {
CFSetLanguage (language); // CFSetLanguage (language);
} // }
public void setClientSideCallbacks (bool status) // public void setClientSideCallbacks (bool status)
{ // {
CFSetClientSideCallbacks (status); // CFSetClientSideCallbacks (status);
} // }
public void setRewardedVideoCustomParams (Dictionary<string,string> rewardedVideoCustomParams) // public void setRewardedVideoCustomParams (Dictionary<string,string> rewardedVideoCustomParams)
{ // {
string json = IronSourceJSON.Json.Serialize (rewardedVideoCustomParams); // string json = IronSourceJSON.Json.Serialize (rewardedVideoCustomParams);
CFSetRewardedVideoCustomParams (json); // CFSetRewardedVideoCustomParams (json);
} // }
public void setOfferwallCustomParams (Dictionary<string,string> offerwallCustomParams) // public void setOfferwallCustomParams (Dictionary<string,string> offerwallCustomParams)
{ // {
string json = IronSourceJSON.Json.Serialize (offerwallCustomParams); // string json = IronSourceJSON.Json.Serialize (offerwallCustomParams);
CFSetOfferwallCustomParams (json); // CFSetOfferwallCustomParams (json);
} // }
public IronSourceConfig () // public IronSourceConfig ()
{ // {
} // }
#else #else

View File

@ -7,12 +7,12 @@ using System.Runtime.InteropServices;
public class IronSourceEvents : MonoBehaviour public class IronSourceEvents : MonoBehaviour
{ {
#if UNITY_IPHONE || UNITY_IOS // #if UNITY_IPHONE || UNITY_IOS
delegate void ISUnityBackgroundCallback(string args); // delegate void ISUnityBackgroundCallback(string args);
[DllImport("__Internal")] // [DllImport("__Internal")]
static extern void RegisterCallback(ISUnityBackgroundCallback func); // static extern void RegisterCallback(ISUnityBackgroundCallback func);
#endif // #endif
#if UNITY_ANDROID #if UNITY_ANDROID
#pragma warning disable CS0067 #pragma warning disable CS0067
@ -151,11 +151,11 @@ public class IronSourceEvents : MonoBehaviour
#endif #endif
#if UNITY_IPHONE || UNITY_IOS // #if UNITY_IPHONE || UNITY_IOS
#if !UNITY_EDITOR // #if !UNITY_EDITOR
RegisterCallback(FireCallback); // RegisterCallback(FireCallback);
#endif // #endif
#endif // #endif
gameObject.name = "IronSourceEvents"; //Change the GameObject name to IronSourceEvents. gameObject.name = "IronSourceEvents"; //Change the GameObject name to IronSourceEvents.
DontDestroyOnLoad(gameObject); //Makes the object not be destroyed automatically when loading a new scene. 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_ANDROID
#if UNITY_IPHONE || UNITY_IOS // #if UNITY_IPHONE || UNITY_IOS
[AOT.MonoPInvokeCallback(typeof(ISUnityBackgroundCallback))] // [AOT.MonoPInvokeCallback(typeof(ISUnityBackgroundCallback))]
public static void FireCallback(string args) // public static void FireCallback(string args)
{ // {
if (onImpressionDataReadyEvent != null) // if (onImpressionDataReadyEvent != null)
{ // {
InvokeEvent(onImpressionDataReadyEvent, args); // InvokeEvent(onImpressionDataReadyEvent, args);
} // }
} // }
#endif // #endif
// ******************************* Init Event ******************************* // ******************************* Init Event *******************************

View File

@ -7,502 +7,502 @@ using System.Linq;
using System; using System;
using System.Globalization; using System.Globalization;
public class iOSAgent : IronSourceIAgent // public class iOSAgent : IronSourceIAgent
{ // {
[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);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern string CFGetAdvertiserId(); // private static extern string CFGetAdvertiserId();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFValidateIntegration(); // private static extern void CFValidateIntegration();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShouldTrackNetworkState(bool track); // private static extern void CFShouldTrackNetworkState(bool track);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFSetDynamicUserId(string dynamicUserId); // private static extern bool CFSetDynamicUserId(string dynamicUserId);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetAdaptersDebug(bool enabled); // private static extern void CFSetAdaptersDebug(bool enabled);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetMetaData(string key, string value); // private static extern void CFSetMetaData(string key, string value);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetMetaDataWithValues(string key, params string[] values); // private static extern void CFSetMetaDataWithValues(string key, params string[] values);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern string CFGetConversionValue(); // private static extern string CFGetConversionValue();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetManualLoadRewardedVideo(bool isOn); // private static extern void CFSetManualLoadRewardedVideo(bool isOn);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetNetworkData(string networkKey, string networkData); // private static extern void CFSetNetworkData(string networkKey, string networkData);
delegate void ISUnityPauseGame(bool pause); // delegate void ISUnityPauseGame(bool pause);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void RegisterPauseGameFunction(bool pasue); // private static extern void RegisterPauseGameFunction(bool pasue);
//******************* SDK Init *******************// // //******************* SDK Init *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetUserId(string userId); // private static extern void CFSetUserId(string userId);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFInit(string appKey); // private static extern void CFInit(string appKey);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFInitWithAdUnits(string appKey, params string[] adUnits); // private static extern void CFInitWithAdUnits(string appKey, params string[] adUnits);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFInitISDemandOnly(string appKey, params string[] adUnits); // private static extern void CFInitISDemandOnly(string appKey, params string[] adUnits);
//******************* RewardedVideo API *******************// // //******************* RewardedVideo API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFLoadRewardedVideo(); // private static extern void CFLoadRewardedVideo();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowRewardedVideo(); // private static extern void CFShowRewardedVideo();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowRewardedVideoWithPlacementName(string placementName); // private static extern void CFShowRewardedVideoWithPlacementName(string placementName);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFIsRewardedVideoAvailable(); // private static extern bool CFIsRewardedVideoAvailable();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFIsRewardedVideoPlacementCapped(string placementName); // private static extern bool CFIsRewardedVideoPlacementCapped(string placementName);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern string CFGetPlacementInfo(string placementName); // private static extern string CFGetPlacementInfo(string placementName);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetRewardedVideoServerParameters(string jsonString); // private static extern void CFSetRewardedVideoServerParameters(string jsonString);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFClearRewardedVideoServerParameters(); // private static extern void CFClearRewardedVideoServerParameters();
//******************* RewardedVideo DemandOnly API *******************// // //******************* RewardedVideo DemandOnly API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowISDemandOnlyRewardedVideo(string instanceId); // private static extern void CFShowISDemandOnlyRewardedVideo(string instanceId);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFLoadISDemandOnlyRewardedVideo(string instanceId); // private static extern void CFLoadISDemandOnlyRewardedVideo(string instanceId);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFIsDemandOnlyRewardedVideoAvailable(string instanceId); // private static extern bool CFIsDemandOnlyRewardedVideoAvailable(string instanceId);
//******************* Interstitial API *******************// // //******************* Interstitial API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFLoadInterstitial(); // private static extern void CFLoadInterstitial();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowInterstitial(); // private static extern void CFShowInterstitial();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowInterstitialWithPlacementName(string placementName); // private static extern void CFShowInterstitialWithPlacementName(string placementName);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFIsInterstitialReady(); // private static extern bool CFIsInterstitialReady();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFIsInterstitialPlacementCapped(string placementName); // private static extern bool CFIsInterstitialPlacementCapped(string placementName);
//******************* Interstitial DemandOnly API *******************// // //******************* Interstitial DemandOnly API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFLoadISDemandOnlyInterstitial(string instanceId); // private static extern void CFLoadISDemandOnlyInterstitial(string instanceId);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowISDemandOnlyInterstitial(string instanceId); // private static extern void CFShowISDemandOnlyInterstitial(string instanceId);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFIsDemandOnlyInterstitialReady(string instanceId); // private static extern bool CFIsDemandOnlyInterstitialReady(string instanceId);
//******************* Offerwall API *******************// // //******************* Offerwall API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowOfferwall(); // private static extern void CFShowOfferwall();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowOfferwallWithPlacementName(string placementName); // private static extern void CFShowOfferwallWithPlacementName(string placementName);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFGetOfferwallCredits(); // private static extern void CFGetOfferwallCredits();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFIsOfferwallAvailable(); // private static extern bool CFIsOfferwallAvailable();
//******************* Banner API *******************// // //******************* Banner API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFLoadBanner(string description, int width, int height, int position, string placementName, bool isAdaptive); // private static extern void CFLoadBanner(string description, int width, int height, int position, string placementName, bool isAdaptive);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFDestroyBanner(); // private static extern void CFDestroyBanner();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFDisplayBanner(); // private static extern void CFDisplayBanner();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFHideBanner(); // private static extern void CFHideBanner();
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern bool CFIsBannerPlacementCapped(string placementName); // private static extern bool CFIsBannerPlacementCapped(string placementName);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetSegment(string json); // private static extern void CFSetSegment(string json);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetConsent(bool consent); // private static extern void CFSetConsent(bool consent);
//******************* ConsentView API *******************// // //******************* ConsentView API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFLoadConsentViewWithType(string consentViewType); // private static extern void CFLoadConsentViewWithType(string consentViewType);
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFShowConsentViewWithType(string consentViewType); // private static extern void CFShowConsentViewWithType(string consentViewType);
//******************* ILRD API *******************// // //******************* ILRD API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFSetAdRevenueData(string dataSource, string impressionData); // private static extern void CFSetAdRevenueData(string dataSource, string impressionData);
//******************* TestSuite API *******************// // //******************* TestSuite API *******************//
[DllImport("__Internal")] // [DllImport("__Internal")]
private static extern void CFLaunchTestSuite(); // 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() // public string getAdvertiserId()
{ // {
return CFGetAdvertiserId(); // return CFGetAdvertiserId();
} // }
public void validateIntegration() // public void validateIntegration()
{ // {
CFValidateIntegration(); // CFValidateIntegration();
} // }
public void shouldTrackNetworkState(bool track) // public void shouldTrackNetworkState(bool track)
{ // {
CFShouldTrackNetworkState(track); // CFShouldTrackNetworkState(track);
} // }
public bool setDynamicUserId(string dynamicUserId) // public bool setDynamicUserId(string dynamicUserId)
{ // {
return CFSetDynamicUserId(dynamicUserId); // return CFSetDynamicUserId(dynamicUserId);
} // }
public void setAdaptersDebug(bool enabled) // public void setAdaptersDebug(bool enabled)
{ // {
CFSetAdaptersDebug(enabled); // CFSetAdaptersDebug(enabled);
} // }
public void setMetaData(string key, params string[] values) // public void setMetaData(string key, params string[] values)
{ // {
CFSetMetaDataWithValues(key, values); // CFSetMetaDataWithValues(key, values);
} // }
public void setMetaData(string key, string value) // public void setMetaData(string key, string value)
{ // {
CFSetMetaData(key, value); // CFSetMetaData(key, value);
} // }
public int? getConversionValue() // public int? getConversionValue()
{ // {
CultureInfo invCulture = CultureInfo.InvariantCulture; // CultureInfo invCulture = CultureInfo.InvariantCulture;
int parsedInt; // int parsedInt;
if (int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt)) // if (int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt))
{ // {
return parsedInt; // return parsedInt;
} // }
return null; // return null;
} // }
public void setManualLoadRewardedVideo(bool isOn) // public void setManualLoadRewardedVideo(bool isOn)
{ // {
CFSetManualLoadRewardedVideo(isOn); // CFSetManualLoadRewardedVideo(isOn);
} // }
public void setNetworkData(string networkKey, string networkData) // public void setNetworkData(string networkKey, string networkData)
{ // {
CFSetNetworkData(networkKey, networkData); // CFSetNetworkData(networkKey, networkData);
} // }
[AOT.MonoPInvokeCallback(typeof(ISUnityPauseGame))] // [AOT.MonoPInvokeCallback(typeof(ISUnityPauseGame))]
public void SetPauseGame(bool pause) // public void SetPauseGame(bool pause)
{ // {
RegisterPauseGameFunction(pause); // RegisterPauseGameFunction(pause);
if (pause) // if (pause)
{ // {
setMetaData("IS_PAUSE_GAME_FLAG", "true"); // setMetaData("IS_PAUSE_GAME_FLAG", "true");
} // }
else // else
{ // {
setMetaData("IS_PAUSE_GAME_FLAG", "false"); // setMetaData("IS_PAUSE_GAME_FLAG", "false");
} // }
} // }
//******************* SDK Init *******************// // //******************* SDK Init *******************//
public void setUserId(string userId) // public void setUserId(string userId)
{ // {
CFSetUserId(userId); // CFSetUserId(userId);
} // }
public void init(string appKey) // public void init(string appKey)
{ // {
CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); // CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); // Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
CFInit(appKey); // CFInit(appKey);
} // }
public void init(string appKey, params string[] adUnits) // public void init(string appKey, params string[] adUnits)
{ // {
CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); // CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); // Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
CFInitWithAdUnits(appKey, adUnits); // CFInitWithAdUnits(appKey, adUnits);
} // }
public void initISDemandOnly(string appKey, params string[] adUnits) // public void initISDemandOnly(string appKey, params string[] adUnits)
{ // {
CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); // CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); // Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
CFInitISDemandOnly(appKey, adUnits); // CFInitISDemandOnly(appKey, adUnits);
} // }
//******************* RewardedVideo API *******************// // //******************* RewardedVideo API *******************//
public void loadRewardedVideo() // public void loadRewardedVideo()
{ // {
CFLoadRewardedVideo(); // CFLoadRewardedVideo();
} // }
public void showRewardedVideo() // public void showRewardedVideo()
{ // {
CFShowRewardedVideo(); // CFShowRewardedVideo();
} // }
public void showRewardedVideo(string placementName) // public void showRewardedVideo(string placementName)
{ // {
CFShowRewardedVideoWithPlacementName(placementName); // CFShowRewardedVideoWithPlacementName(placementName);
} // }
public bool isRewardedVideoAvailable() // public bool isRewardedVideoAvailable()
{ // {
return CFIsRewardedVideoAvailable(); // return CFIsRewardedVideoAvailable();
} // }
public bool isRewardedVideoPlacementCapped(string placementName) // public bool isRewardedVideoPlacementCapped(string placementName)
{ // {
return CFIsRewardedVideoPlacementCapped(placementName); // return CFIsRewardedVideoPlacementCapped(placementName);
} // }
public IronSourcePlacement getPlacementInfo(string placementName) // public IronSourcePlacement getPlacementInfo(string placementName)
{ // {
IronSourcePlacement sp = null; // IronSourcePlacement sp = null;
string spString = CFGetPlacementInfo(placementName); // string spString = CFGetPlacementInfo(placementName);
if (spString != null) // if (spString != null)
{ // {
Dictionary<string, object> spDic = IronSourceJSON.Json.Deserialize(spString) as Dictionary<string, object>; // Dictionary<string, object> spDic = IronSourceJSON.Json.Deserialize(spString) as Dictionary<string, object>;
string pName = spDic["placement_name"].ToString(); // string pName = spDic["placement_name"].ToString();
string rewardName = spDic["reward_name"].ToString(); // string rewardName = spDic["reward_name"].ToString();
int rewardAmount = Convert.ToInt32(spDic["reward_amount"].ToString()); // int rewardAmount = Convert.ToInt32(spDic["reward_amount"].ToString());
sp = new IronSourcePlacement(pName, rewardName, rewardAmount); // sp = new IronSourcePlacement(pName, rewardName, rewardAmount);
} // }
return sp; // return sp;
} // }
public void setRewardedVideoServerParams(Dictionary<string, string> parameters) // public void setRewardedVideoServerParams(Dictionary<string, string> parameters)
{ // {
string json = IronSourceJSON.Json.Serialize(parameters); // string json = IronSourceJSON.Json.Serialize(parameters);
CFSetRewardedVideoServerParameters(json); // CFSetRewardedVideoServerParameters(json);
} // }
public void clearRewardedVideoServerParams() // public void clearRewardedVideoServerParams()
{ // {
CFClearRewardedVideoServerParameters(); // CFClearRewardedVideoServerParameters();
} // }
//******************* RewardedVideo DemandOnly API *******************// // //******************* RewardedVideo DemandOnly API *******************//
public void showISDemandOnlyRewardedVideo(string instanceId) // public void showISDemandOnlyRewardedVideo(string instanceId)
{ // {
CFShowISDemandOnlyRewardedVideo(instanceId); // CFShowISDemandOnlyRewardedVideo(instanceId);
} // }
public void loadISDemandOnlyRewardedVideo(string instanceId) // public void loadISDemandOnlyRewardedVideo(string instanceId)
{ // {
CFLoadISDemandOnlyRewardedVideo(instanceId); // CFLoadISDemandOnlyRewardedVideo(instanceId);
} // }
public bool isISDemandOnlyRewardedVideoAvailable(string instanceId) // public bool isISDemandOnlyRewardedVideoAvailable(string instanceId)
{ // {
return CFIsDemandOnlyRewardedVideoAvailable(instanceId); // return CFIsDemandOnlyRewardedVideoAvailable(instanceId);
} // }
//******************* Interstitial API *******************// // //******************* Interstitial API *******************//
public void loadInterstitial() // public void loadInterstitial()
{ // {
CFLoadInterstitial(); // CFLoadInterstitial();
} // }
public void showInterstitial() // public void showInterstitial()
{ // {
CFShowInterstitial(); // CFShowInterstitial();
} // }
public void showInterstitial(string placementName) // public void showInterstitial(string placementName)
{ // {
CFShowInterstitialWithPlacementName(placementName); // CFShowInterstitialWithPlacementName(placementName);
} // }
public bool isInterstitialReady() // public bool isInterstitialReady()
{ // {
return CFIsInterstitialReady(); // return CFIsInterstitialReady();
} // }
public bool isInterstitialPlacementCapped(string placementName) // public bool isInterstitialPlacementCapped(string placementName)
{ // {
return CFIsInterstitialPlacementCapped(placementName); // return CFIsInterstitialPlacementCapped(placementName);
} // }
//******************* Interstitial DemandOnly API *******************// // //******************* Interstitial DemandOnly API *******************//
public void loadISDemandOnlyInterstitial(string instanceId) // public void loadISDemandOnlyInterstitial(string instanceId)
{ // {
CFLoadISDemandOnlyInterstitial(instanceId); // CFLoadISDemandOnlyInterstitial(instanceId);
} // }
public void showISDemandOnlyInterstitial(string instanceId) // public void showISDemandOnlyInterstitial(string instanceId)
{ // {
CFShowISDemandOnlyInterstitial(instanceId); // CFShowISDemandOnlyInterstitial(instanceId);
} // }
public bool isISDemandOnlyInterstitialReady(string instanceId) // public bool isISDemandOnlyInterstitialReady(string instanceId)
{ // {
return CFIsDemandOnlyInterstitialReady(instanceId); // return CFIsDemandOnlyInterstitialReady(instanceId);
} // }
//******************* Offerwall API *******************// // //******************* Offerwall API *******************//
public void showOfferwall() // public void showOfferwall()
{ // {
CFShowOfferwall(); // CFShowOfferwall();
} // }
public void showOfferwall(string placementName) // public void showOfferwall(string placementName)
{ // {
CFShowOfferwallWithPlacementName(placementName); // CFShowOfferwallWithPlacementName(placementName);
} // }
public void getOfferwallCredits() // public void getOfferwallCredits()
{ // {
CFGetOfferwallCredits(); // CFGetOfferwallCredits();
} // }
public bool isOfferwallAvailable() // public bool isOfferwallAvailable()
{ // {
return CFIsOfferwallAvailable(); // return CFIsOfferwallAvailable();
} // }
//******************* Banner API *******************// // //******************* Banner API *******************//
public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position) // public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position)
{ // {
loadBanner(size, position, ""); // loadBanner(size, position, "");
} // }
public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position, string placementName) // public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position, string placementName)
{ // {
CFLoadBanner(size.Description, (int)size.Width, (int)size.Height, (int)position, placementName, (bool)size.IsAdaptiveEnabled()); // CFLoadBanner(size.Description, (int)size.Width, (int)size.Height, (int)position, placementName, (bool)size.IsAdaptiveEnabled());
} // }
public void destroyBanner() // public void destroyBanner()
{ // {
CFDestroyBanner(); // CFDestroyBanner();
} // }
public void displayBanner() // public void displayBanner()
{ // {
CFDisplayBanner(); // CFDisplayBanner();
} // }
public void hideBanner() // public void hideBanner()
{ // {
CFHideBanner(); // CFHideBanner();
} // }
public bool isBannerPlacementCapped(string placementName) // public bool isBannerPlacementCapped(string placementName)
{ // {
return CFIsBannerPlacementCapped(placementName); // return CFIsBannerPlacementCapped(placementName);
} // }
public void setSegment(IronSourceSegment segment) // public void setSegment(IronSourceSegment segment)
{ // {
Dictionary<string, string> dict = segment.getSegmentAsDict(); // Dictionary<string, string> dict = segment.getSegmentAsDict();
string json = IronSourceJSON.Json.Serialize(dict); // string json = IronSourceJSON.Json.Serialize(dict);
CFSetSegment(json); // CFSetSegment(json);
} // }
public void setConsent(bool consent) // public void setConsent(bool consent)
{ // {
CFSetConsent(consent); // CFSetConsent(consent);
} // }
public void loadConsentViewWithType(string consentViewType) // public void loadConsentViewWithType(string consentViewType)
{ // {
CFLoadConsentViewWithType(consentViewType); // CFLoadConsentViewWithType(consentViewType);
} // }
public void showConsentViewWithType(string consentViewType) // public void showConsentViewWithType(string consentViewType)
{ // {
CFShowConsentViewWithType(consentViewType); // CFShowConsentViewWithType(consentViewType);
} // }
//******************* ILRD API *******************// // //******************* ILRD API *******************//
public void setAdRevenueData(string dataSource, Dictionary<string, string> impressionData) // public void setAdRevenueData(string dataSource, Dictionary<string, string> impressionData)
{ // {
string json = IronSourceJSON.Json.Serialize(impressionData); // string json = IronSourceJSON.Json.Serialize(impressionData);
CFSetAdRevenueData(dataSource, json); // CFSetAdRevenueData(dataSource, json);
} // }
//******************* TestSuite API *******************// // //******************* TestSuite API *******************//
public void launchTestSuite() // public void launchTestSuite()
{ // {
Debug.Log("iOSAgent: launching TestSuite"); // Debug.Log("iOSAgent: launching TestSuite");
CFLaunchTestSuite(); // CFLaunchTestSuite();
} // }
#endregion // #endregion
} // }
#endif #endif

View File

@ -28,5 +28,5 @@ MonoBehaviour:
userTrackingUsageDescriptionZhHans: userTrackingUsageDescriptionZhHans:
userTrackingUsageDescriptionZhHant: userTrackingUsageDescriptionZhHant:
adMobAndroidAppId: adMobAndroidAppId:
adMobIosAppId: ca-app-pub-8252390069143459~9766550824 adMobIosAppId: ca-app-pub-8252390069143459~7358844489
snapAppStoreAppId: 0 snapAppStoreAppId: 0

View File

@ -160,7 +160,9 @@ namespace XLua.CSObjectWrap
IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); 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); 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; return 0;
} }
@ -175,6 +188,8 @@ namespace XLua.CSObjectWrap
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 IAPManager.OnInitializeFailed!");
} }
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]

View File

@ -65,6 +65,15 @@ namespace XLua.CSObjectWrap
return 1; 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) if(LuaAPI.lua_gettop(L) == 1)
{ {

View File

@ -21,7 +21,7 @@ namespace XLua.CSObjectWrap
{ {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnityEngine.Purchasing.Product); 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, "Equals", _m_Equals);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); 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, "metadata", _g_get_metadata);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "availableToPurchase", _g_get_availableToPurchase); 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, "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, "hasReceipt", _g_get_hasReceipt);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "receipt", _g_get_receipt); Utils.RegisterFunc(L, Utils.GETTER_IDX, "receipt", _g_get_receipt);
@ -178,6 +180,34 @@ namespace XLua.CSObjectWrap
return 1; 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))] [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_hasReceipt(RealStatePtr L) static int _g_get_hasReceipt(RealStatePtr L)
{ {

View File

@ -1,5 +1,5 @@
þ¦ œœ
pb/proto/protocol.protocspb"ž pb/proto/protocol.protocspb"ž
Gift Gift
act_type (RactType act_type (RactType
@ -210,14 +210,12 @@ skill_cast (R skillCast
rewards ( 2 .cspb.RewardRrewards" rewards ( 2 .cspb.RewardRrewards"
ChapterDailyChallengeResetReq"e ChapterDailyChallengeResetReq"e
ChapterDailyChallengeResetRspD ChapterDailyChallengeResetRspD
daily_challenge ( 2.cspb.ChapterDailyChallengeRdailyChallenge"â daily_challenge ( 2.cspb.ChapterDailyChallengeRdailyChallenge"®
ChapterGoldChallenge2 ChapterGoldChallenge2
today_challenge_count (RtodayChallengeCount2 today_challenge_count (RtodayChallengeCount-
total_challenge_count (RtotalChallengeCount- max_chapter_gold_id (RmaxChapterGoldId3
max_chapter_gold_id (RmaxChapterGoldId3 latest_chapter_gold_id (RlatestChapterGoldId"
latest_chapter_gold_id (RlatestChapterGoldId"F ChapterGoldChallengeStartReq"l
ChapterGoldChallengeStartReq&
chapter_gold_id (R chapterGoldId"l
ChapterGoldChallengeStartRsp( ChapterGoldChallengeStartRsp(
err_code (2 .cspb.ErrCodeRerrCode" err_code (2 .cspb.ErrCodeRerrCode"
costs ( 2 .cspb.RewardRcosts"Ð costs ( 2 .cspb.RewardRcosts"Ð
@ -236,31 +234,6 @@ skill_cast (R skillCast
ChapterGoldChallengeFarmRsp( ChapterGoldChallengeFarmRsp(
err_code (2 .cspb.ErrCodeRerrCode" err_code (2 .cspb.ErrCodeRerrCode"
costs ( 2 .cspb.RewardRcosts& 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 (R totalDamage*
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"ˆ rewards ( 2 .cspb.RewardRrewards"ˆ
Reward Reward
type (Rtype type (Rtype
@ -281,12 +254,7 @@ skill_cast (R skillCast
level (Rlevel"* level (Rlevel"*
Recovery Recovery
id (Rid id (Rid
ts (Rts" ts (Rts"M
CDKeyUseReq
key ( Rkey"_
CDKeyUseRsp(
err_code (2 .cspb.ErrCodeRerrCode&
rewards ( 2 .cspb.RewardRrewards"M
EnergyLimit# EnergyLimit#
diamond_count (R diamondCount diamond_count (R diamondCount
ad_count (RadCount" ad_count (RadCount"
@ -551,7 +519,7 @@ facebookId"C
client_info ( 2.cspb.ClientInfoR client_info ( 2.cspb.ClientInfoR
clientInfo clientInfo
skip_guide (R skipGuide"Ü skip_guide (R skipGuide"
LoginRsp( LoginRsp(
err_code (2 .cspb.ErrCodeRerrCode* err_code (2 .cspb.ErrCodeRerrCode*
today_first_login (RtodayFirstLogin today_first_login (RtodayFirstLogin
@ -586,8 +554,7 @@ task_daily ( 2.cspb.TaskDailyR taskDaily+
mall_daily ( 2.cspb.MallDailyR mallDaily+ mall_daily ( 2.cspb.MallDailyR mallDaily+
mall_idle ( 2.cspb.MallIdleRmallIdleS mall_idle ( 2.cspb.MallIdleRmallIdleS
chapter_daily_challenge ( 2.cspb.ChapterDailyChallengeRchapterDailyChallengeP chapter_daily_challenge ( 2.cspb.ChapterDailyChallengeRchapterDailyChallengeP
chapter_gold_challenge ( 2.cspb.ChapterGoldChallengeRchapterGoldChallengeV chapter_gold_challenge ( 2.cspb.ChapterGoldChallengeRchapterGoldChallenge"U
chapter_shards_challenge ( 2.cspb.ChapterShardsChallengeRchapterShardsChallenge"U
PipedReq PipedReq
id ( Rid id ( Rid
ts (Rts ts (Rts
@ -717,7 +684,7 @@ clear10Hit
skill_cast (R skillCast skill_cast (R skillCast
skill_box (RskillBox& skill_box (RskillBox&
kills_boss_turn kills_boss_turn
(R killsBossTurn*˜ (R killsBossTurn*÷
ErrCode ErrCode
SUCCESS SUCCESS
@ -741,8 +708,11 @@ skill_cast (R skillCast
TIME_OUTn TIME_OUTn
FUNC_NOT_OPENo FUNC_NOT_OPENo
SIGN_IS_FINISHEDÈ SIGN_IS_FINISHEDÈ
ACCELERATION_TIME_ERROR¬# ACCELERATION_TIME_ERROR¬
DUNGEON_FARM_EXCEED_MAX_FAILED<10>" DUNGEON_COUNT_NOT_ENOUGH<10>
DUNGEON_TYPE_INVALID
DUNGEON_DIFF_INVALID
DUNGEON_AD_ADD_LIMIT"
MASTERY_PREV_LEVEL_NOT_ENOUGHØ MASTERY_PREV_LEVEL_NOT_ENOUGHØ
RUNE_LEVEL_MAXÙ RUNE_LEVEL_MAXÙ
RUNE_NO_NEXTÚ RUNE_NO_NEXTÚ
@ -799,12 +769,7 @@ skill_cast (R skillCast
BOUNTY_LEVEL_NOT_REACHEDÞ  BOUNTY_LEVEL_NOT_REACHEDÞ 
BOUNTY_LEVEL_CLAIMEDß  BOUNTY_LEVEL_CLAIMEDß 
ENERGY_BY_DIAMOND_LIMITÀ  ENERGY_BY_DIAMOND_LIMITÀ 
ENERGY_BY_AD_LIMITÁ  ENERGY_BY_AD_LIMITÁ *L
CDKEY_NOT_EXISTS¤ 
CDKEY_ALREADY_USED¥ 
CDKEY_INVALID¦ 
CDKEY_EXPIRED§ 
CDKEY_LIMITED¨ *L
KickOutReason KickOutReason
MAINTAIN MAINTAIN
FLOW_CTRL FLOW_CTRL

View File

@ -210,7 +210,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
startManually: 0 startManually: 0
appToken: vrk2qnizxc00 appToken: asezin7bs3r4
environment: 1 environment: 1
logLevel: 3 logLevel: 3
eventBuffering: 0 eventBuffering: 0
@ -280,7 +280,7 @@ MonoBehaviour:
enableLog: 0 enableLog: 0
networkType: 1 networkType: 1
tokens: tokens:
- appid: 4bd4464b39394188a6708fee41f352f7 - appid: e6758afddf584e73b9b647da025bf7db
serverUrl: https://ta.perfeggsgame.com serverUrl: https://ta.perfeggsgame.com
mode: 0 mode: 0
timeZone: 1 timeZone: 1
@ -462,8 +462,8 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
devKey: XHsvoUhhNvMamKMSEvrew3 devKey: XHsvoUhhNvMamKMSEvrew3
iosDevKey: iosDevKey: R4qWrbCEhSQRBgeQVvGHQ9
appID: appID: 6450101181
UWPAppID: UWPAppID:
isDebug: 0 isDebug: 0
getConversionData: 0 getConversionData: 0

View File

@ -21,10 +21,10 @@
<activity android:name="com.facebook.unity.FBUnityGameRequestActivity" /> <activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
<activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" /> <activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
<activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" /> <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.ApplicationId" android:value="fb277827051329111" />
<meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" /> <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" />
<meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" 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" /> --> <!-- <uses-permission android:name="com.google.android.gms.permission.AD_ID" /> -->
<meta-data android:name="unity.splash-mode" android:value="0" /> <meta-data android:name="unity.splash-mode" android:value="0" />
<meta-data android:name="unity.splash-enable" android:value="True" /> <meta-data android:name="unity.splash-enable" android:value="True" />

View File

@ -33,11 +33,11 @@
<activity android:name="com.facebook.unity.FBUnityGameRequestActivity" /> <activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
<activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" /> <activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
<activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" /> <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.ApplicationId" android:value="fb277827051329111" />
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="11811b9447848f6700c871aa7d739dc7"/> <meta-data android:name="com.facebook.sdk.ClientToken" android:value="11811b9447848f6700c871aa7d739dc7"/>
<meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" /> <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" />
<meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" 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" />
<meta-data android:name="unity.splash-mode" android:value="0" /> <meta-data android:name="unity.splash-mode" android:value="0" />
<meta-data android:name="unity.splash-enable" android:value="True" /> <meta-data android:name="unity.splash-enable" android:value="True" />
<meta-data android:name="unity.allow-resizable-window" android:value="False" /> <meta-data android:name="unity.allow-resizable-window" android:value="False" />

View File

@ -8,7 +8,7 @@
"com.unity.ide.vscode": "1.2.5", "com.unity.ide.vscode": "1.2.5",
"com.unity.nuget.newtonsoft-json": "3.0.2", "com.unity.nuget.newtonsoft-json": "3.0.2",
"com.unity.postprocessing": "3.2.2", "com.unity.postprocessing": "3.2.2",
"com.unity.purchasing": "4.1.5", "com.unity.purchasing": "4.9.2",
"com.unity.quicksearch": "2.0.2", "com.unity.quicksearch": "2.0.2",
"com.unity.recorder": "2.5.7", "com.unity.recorder": "2.5.7",
"com.unity.test-framework": "1.1.31", "com.unity.test-framework": "1.1.31",

View File

@ -71,7 +71,7 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.purchasing": { "com.unity.purchasing": {
"version": "4.1.5", "version": "4.9.2",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
@ -80,7 +80,7 @@
"com.unity.modules.unitywebrequest": "1.0.0", "com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0", "com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.androidjni": "1.0.0", "com.unity.modules.androidjni": "1.0.0",
"com.unity.services.core": "1.0.1" "com.unity.services.core": "1.8.1"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
@ -101,11 +101,13 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.services.core": { "com.unity.services.core": {
"version": "1.0.1", "version": "1.8.1",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0" "com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.nuget.newtonsoft-json": "3.0.2",
"com.unity.modules.androidjni": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },

View File

@ -150,7 +150,6 @@ PlayerSettings:
m_ColorGamuts: 0000000003000000 m_ColorGamuts: 0000000003000000
targetPixelDensity: 30 targetPixelDensity: 30
resolutionScalingMode: 0 resolutionScalingMode: 0
resetResolutionOnWindowResize: 0
androidSupportedAspectRatio: 1 androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1 androidMaxAspectRatio: 2.1
applicationIdentifier: applicationIdentifier:
@ -946,11 +945,11 @@ PlayerSettings:
m_VersionName: m_VersionName:
apiCompatibilityLevel: 6 apiCompatibilityLevel: 6
activeInputHandler: 0 activeInputHandler: 0
cloudProjectId: cloudProjectId: 8771655b-cf6c-4071-b910-87d862578d67
framebufferDepthMemorylessMode: 0 framebufferDepthMemorylessMode: 0
qualitySettingsNames: [] qualitySettingsNames: []
projectName: projectName: Combo Hero
organizationId: organizationId: juzugame
cloudEnabled: 0 cloudEnabled: 0
legacyClampBlendShapeWeights: 0 legacyClampBlendShapeWeights: 0
virtualTexturingSupportEnabled: 0 virtualTexturingSupportEnabled: 0

View File

@ -17,10 +17,10 @@ UnityConnectSettings:
m_LogBufferSize: 10 m_LogBufferSize: 10
m_CaptureEditorExceptions: 1 m_CaptureEditorExceptions: 1
UnityPurchasingSettings: UnityPurchasingSettings:
m_Enabled: 0 m_Enabled: 1
m_TestMode: 0 m_TestMode: 0
UnityAnalyticsSettings: UnityAnalyticsSettings:
m_Enabled: 0 m_Enabled: 1
m_TestMode: 0 m_TestMode: 0
m_InitializeOnStartup: 1 m_InitializeOnStartup: 1
UnityAdsSettings: UnityAdsSettings: