Skip to content

Commit

Permalink
Merge pull request #16 from wolf-org/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
VirtueSky authored Sep 16, 2024
2 parents c42a575 + 922b32d commit 9ad4aac
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 11 deletions.
3 changes: 0 additions & 3 deletions Module/Advertising/Editor/AdSettingsEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class AdSettingsEditor : Editor
private SerializedProperty _adNetwork;

private SerializedProperty _sdkKey;
private SerializedProperty _applovinEnableAgeRestrictedUser;
private SerializedProperty _maxBannerAdUnit;
private SerializedProperty _maxInterstitialAdUnit;
private SerializedProperty _maxRewardAdUnit;
Expand Down Expand Up @@ -47,7 +46,6 @@ void Initialize()
_adLoadingInterval = serializedObject.FindProperty("adLoadingInterval");
_adNetwork = serializedObject.FindProperty("adNetwork");
_sdkKey = serializedObject.FindProperty("sdkKey");
_applovinEnableAgeRestrictedUser = serializedObject.FindProperty("applovinEnableAgeRestrictedUser");
_maxBannerAdUnit = serializedObject.FindProperty("maxBannerAdUnit");
_maxInterstitialAdUnit = serializedObject.FindProperty("maxInterstitialAdUnit");
_maxRewardAdUnit = serializedObject.FindProperty("maxRewardAdUnit");
Expand Down Expand Up @@ -123,7 +121,6 @@ void DrawMax()
GUILayout.Space(5);
EditorGUILayout.PropertyField(_sdkKey);
GUILayout.Space(5);
EditorGUILayout.PropertyField(_applovinEnableAgeRestrictedUser);
EditorGUILayout.PropertyField(_maxBannerAdUnit);
EditorGUILayout.PropertyField(_maxInterstitialAdUnit);
EditorGUILayout.PropertyField(_maxRewardAdUnit);
Expand Down
3 changes: 1 addition & 2 deletions Module/Advertising/Runtime/General/AdSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ public class AdSettings : ScriptableSettings<AdSettings>
#region Max

[TextArea, SerializeField] private string sdkKey;
[SerializeField] private bool applovinEnableAgeRestrictedUser;
[SerializeField] private MaxBannerAdUnit maxBannerAdUnit;
[SerializeField] private MaxInterstitialAdUnit maxInterstitialAdUnit;
[SerializeField] private MaxRewardAdUnit maxRewardAdUnit;
[SerializeField] private MaxRewardedInterstitialAdUnit maxRewardedInterstitialAdUnit;
[SerializeField] private MaxAppOpenAdUnit maxAppOpenAdUnit;

public string SdkKey => Instance.sdkKey;
public bool ApplovinEnableAgeRestrictedUser => Instance.applovinEnableAgeRestrictedUser;

public MaxBannerAdUnit MaxBannerAdUnit => Instance.maxBannerAdUnit;
public MaxInterstitialAdUnit MaxInterstitialAdUnit => Instance.maxInterstitialAdUnit;
public MaxRewardAdUnit MaxRewardAdUnit => Instance.maxRewardAdUnit;
Expand Down
1 change: 0 additions & 1 deletion Module/Advertising/Runtime/Max/MaxAdClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public override void Initialize()
#if VIRTUESKY_ADS && VIRTUESKY_APPLOVIN
MaxSdk.SetSdkKey(adSettings.SdkKey);
MaxSdk.InitializeSdk();
MaxSdk.SetIsAgeRestrictedUser(adSettings.ApplovinEnableAgeRestrictedUser);
adSettings.MaxBannerAdUnit.Init();
adSettings.MaxInterstitialAdUnit.Init();
adSettings.MaxRewardAdUnit.Init();
Expand Down
2 changes: 1 addition & 1 deletion Module/ControlPanel/ConstantPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class ConstantPackage
{
public const string VersionUnityCommon = "1.3.5";
public const string VersionUnityCommon = "1.3.6";
public const string PackageNameInAppPurchase = "com.unity.purchasing";
public const string MaxVersionInAppPurchase = "4.12.2";
public const string PackageNameNewtonsoftJson = "com.unity.nuget.newtonsoft-json";
Expand Down
2 changes: 1 addition & 1 deletion Module/Utils/Editor/UnityPackage/Note_Package.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- Version Max Sdk: 6.6.3
- Version Max Sdk: 7.0.0
- Version Admob Sdk: v9.2.0
- Version IronSource Sdk: v8.1.0
- Version Google Game Play Service: v11.01
Binary file modified Module/Utils/Editor/UnityPackage/max-sdk.unitypackage
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
### 1: Download the repo and drop it into folder `Assets`
### 2: Add the line below to `Packages/manifest.json`

for version `1.3.5`
for version `1.3.6`
```csharp
"com.wolf-org.sunflower2":"https://github.com/wolf-org/sunflower_2.git#1.3.5",
"com.wolf-org.sunflower2":"https://github.com/wolf-org/sunflower_2.git#1.3.6",
```

## Includes modules
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.wolf-org.sunflower2",
"displayName": "Sunflower2",
"description": "Core singleton for building Unity games ",
"version": "1.3.5",
"version": "1.3.6",
"unity": "2022.3",
"category": "virtuesky",
"license": "MIT",
Expand Down

0 comments on commit 9ad4aac

Please sign in to comment.