MET-5021: Update Unity Plugin to support Android SDK 2.0 - #96
Merged
Conversation
…ment has started. Taking steps towards the new API design. - `Metica.Unity` is no more. - `Metica.SDK` now depends on `Metica.ADS` - `Metica.ADS` does NOT depend on `Metica.SDK` anymore. - `MeticaSdk` now initializes `MeticaAds` too. - `MaxSdk` still needs app-level initialization (aka up to the user).
…egistering) services at initialization phase.
…icaSdk static field)
{
// TODO: currently we force trial user group
_tcs.SetResult(
new MeticaInitializationResult(MeticaAdsAssignmentStatus.Normal)
);
/*
- Move `ILog` to `Metica.Core` - Substitute all calls to `UnityEngine.Debug.Log` (in `Metica.ADS` classes) with `MeticaAds.Log.LogDebug` (yes... not the nicest call)
antonurankar-moloco
changed the base branch from
develop
to
experimental/MET-4221
October 12, 2025 07:47
…alls that obviously crashed with segfault.
# Conflicts: # Runtime/ADS/Platform/Android/AndroidDelegate.cs # Runtime/ADS/Platform/Android/AndroidJavaObjectExtensions.cs # Runtime/ADS/Platform/Android/InitCallbackProxy.cs
antonurankar-moloco
changed the base branch from
experimental/MET-4221
to
develop
October 14, 2025 19:18
# Conflicts: # Assets/Plugins/Android/mainTemplate.gradle # Assets/StreamingAssets/Metica/sdkInfo.json Merge branch 'develop' into tomi-unity_bridge # Conflicts: # Editor/MeticaAdsDependencies.xml # Runtime/ADS/Metica.ADS.asmdef # Runtime/ADS/MeticaAds.cs # Runtime/ADS/Platform/Android/AndroidDelegate.cs # Runtime/ADS/Platform/Android/BannerCallbackProxy.cs # Runtime/ADS/Platform/Android/InitializeCallbackProxy.cs # Runtime/ADS/Platform/Android/LoadCallbackProxy.cs # Runtime/ADS/Platform/UnityPlayer/UnityPlayerDelegate.cs # Runtime/SDK/MeticaSdk.cs # Runtime/SDK/SdkConfig.cs # package.json
antonurankar-moloco
marked this pull request as ready for review
October 15, 2025 06:59
AKajt
approved these changes
Oct 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the Metica Unity Plugin to support the Android SDK 2.0 release, bringing the plugin version from 1.13.5 to 2.0.0-beta1.
Key Changes
SDK Architecture Refactoring
MeticaSdk.Offers,MeticaSdk.SmartConfig,MeticaSdk.Events,MeticaSdk.Ads)Metica.UnitytoMetica.SDK.Unityfor better consistencyAndroid Integration Updates
com.metica:metica-sdk:2.0.0-beta1MeticaAdsExternalTrackerclass references as this functionality has been internalizedConfiguration Changes
SdkConfigtoMeticaConfigurationwith simplified structureSdkConfigProviderwithMeticaConfigProviderCustomKeysfieldAPI Improvements
MeticaInitializationResultwith improved assignment status handlingMeticaUserGroupenum replacing the deprecatedMeticaAdsAssignmentStatusBreaking Changes
Note on Publisher-Facing API
The publisher-facing API improvements are minimal and will be addressed in a follow-up PR. This PR focuses on maintaining compatibility with the Android SDK 2.0 while keeping the existing Unity integration patterns largely intact.