Skip to content

Commit

Permalink
🔧 chore(UnityAds): added preprocessor if directive
Browse files Browse the repository at this point in the history
  • Loading branch information
revenkogrisha committed Oct 1, 2023
1 parent 96d7487 commit 99c2cbf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

8 changes: 6 additions & 2 deletions Assets/Scripts/Ad/UnityAdsStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ public class UnityAdsStartup : MonoBehaviour, IUnityAdsInitializationListener
{
private const string AndroidGameID = "5253776";
private const string IOSGameID = "5253777";
private const bool TestMode = false;

private bool _testMode = false;
private string gameID;

private void Awake()
{
#if UNITY_EDITOR
_testMode = true;
#endif

gameID = (Application.platform == RuntimePlatform.IPhonePlayer) ? IOSGameID : AndroidGameID;

Advertisement.Initialize(gameID, TestMode, this);
Advertisement.Initialize(gameID, _testMode, this);
}

public void OnInitializationComplete()
Expand Down
8 changes: 4 additions & 4 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 1.1.3
bundleVersion: 1.1.4
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down Expand Up @@ -162,8 +162,8 @@ PlayerSettings:
iPhone: 0
tvOS: 0
overrideDefaultApplicationIdentifier: 0
AndroidBundleVersionCode: 9
AndroidMinSdkVersion: 22
AndroidBundleVersionCode: 10
AndroidMinSdkVersion: 24
AndroidTargetSdkVersion: 34
AndroidPreferredInstallLocation: 1
aotOptions:
Expand Down Expand Up @@ -250,7 +250,7 @@ PlayerSettings:
AndroidTargetDevices: 0
AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0}
AndroidKeystoreName: '{inproject}: CapybaraAdventurePublishing.keystore'
AndroidKeystoreName: /Users/revenkogrisha/Documents/GameProjects/Capybara Adventure/Publishing/_PLAYMARKET/CapybaraAdventurePublishing.keystore
AndroidKeyaliasName: capybaraadventure
AndroidBuildApkPerCpuArchitecture: 0
AndroidTVCompatibility: 0
Expand Down

0 comments on commit 99c2cbf

Please sign in to comment.