Skip to content

Commit

Permalink
- Updated bundled native plugins to 3.2.0;
Browse files Browse the repository at this point in the history
- Refactored creative display logic; now supporting just image and playable ads and video endcards
- Event sending parameters are now configurable through BE
  • Loading branch information
TrevenNefta committed Feb 22, 2024
1 parent 4f11187 commit 5dac662
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 30 deletions.
Expand Up @@ -23,7 +23,7 @@ private static void PostProcessBuild(BuildTarget target, string buildPath)
{
if (target == BuildTarget.iOS)
{
const string dependency = "pod 'NeftaISAdapter', :git => 'https://github.com/Nefta-io/NeftaISAdapter.git', :tag => '1.1.12'";
const string dependency = "pod 'NeftaISAdapter', :git => 'https://github.com/Nefta-io/NeftaISAdapter.git', :tag => '1.2.0'";

var path = buildPath + "/Podfile";
var text = File.ReadAllText(path);
Expand Down
16 changes: 0 additions & 16 deletions Assets/NeftaCustomAdapter/NeftaAdapterEvents.cs
Expand Up @@ -24,9 +24,6 @@ public class NeftaAdapterEvents
[DllImport ("__Internal")]
private static extern void NeftaPlugin_Record(IntPtr instance, string recordedEvent);

[DllImport ("__Internal")]
private static extern IntPtr NeftaPlugin_SetCustomBatchSize(IntPtr instance, int newBatchSize);

private static IntPtr _plugin;
#elif UNITY_ANDROID
private static AndroidJavaObject _plugin;
Expand Down Expand Up @@ -65,12 +62,10 @@ private static void OnFocusChanged(bool hasFocus)
{
if (hasFocus)
{
Debug.Log("onresume");
_plugin.Call("OnResume");
}
else
{
Debug.Log("onpause");
_plugin.Call("OnPause");
}
}
Expand Down Expand Up @@ -111,17 +106,6 @@ public static void Record(GameEvent gameEvent)
#endif
}

public static void SetCustomBatchSize(int newBatchSize)
{
#if UNITY_EDITOR

#elif UNITY_IOS
NeftaPlugin_SetCustomBatchSize(_plugin, newBatchSize);
#elif UNITY_ANDROID
_plugin.Call("SetCustomBatchSize", newBatchSize);
#endif
}

#if UNITY_EDITOR
private static void OnPlayModeChange(UnityEditor.PlayModeStateChange playMode)
{
Expand Down
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions Assets/NeftaCustomAdapter/Plugins/iOS/NeftaAdapter.m
Expand Up @@ -15,7 +15,6 @@
void EnableLogging(bool enable);
void * NeftaPlugin_Init(const char *appId);
void NeftaPlugin_Record(void *instance, const char *event);
void NeftaPlugin_SetCustomBatchSize(void *instance, int newBatchSize);
#ifdef __cplusplus
}
#endif
Expand All @@ -35,9 +34,4 @@ void NeftaPlugin_EnableLogging(bool enable) {
void NeftaPlugin_Record(void *instance, const char *event)
{
[_plugin RecordWithEvent: [NSString stringWithUTF8String: event]];
}

void NeftaPlugin_SetCustomBatchSize(void *instance, int newBatchSize)
{
[_plugin SetCustomBatchSize: newBatchSize];
}
1 change: 0 additions & 1 deletion ProjectSettings/GvhProjectSettings.xml
@@ -1,5 +1,4 @@
<projectSettings>
<projectSetting name="Google.IOSResolver.VerboseLoggingEnabled" value="False" />
<projectSetting name="Google.VersionHandler.VerboseLoggingEnabled" value="False" />
<projectSetting name="GooglePlayServices.UseJetifier" value="True" />
</projectSettings>
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Expand Up @@ -134,7 +134,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 1.1.12
bundleVersion: 1.2.0
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit 5dac662

Please sign in to comment.