Skip to content

Commit

Permalink
Merge pull request #4 from adjust/v4260
Browse files Browse the repository at this point in the history
Version 4.26.0
  • Loading branch information
uerceg authored Feb 6, 2021
2 parents 01f3895 + 8bcc846 commit b538f13
Show file tree
Hide file tree
Showing 37 changed files with 1,131 additions and 387 deletions.
52 changes: 26 additions & 26 deletions Adjust/Adjust.uplugin
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"FileVersion": 3,
"Version": 1,
"VersionName": "4.18.0",
"FriendlyName": "Adjust",
"Description": "Adjust GmbH",
"Category": "Mobile Analytics",
"CreatedBy": "Adjust",
"CreatedByURL": "https://adjust.com",
"DocsURL": "",
"MarketplaceURL": "",
"SupportURL": "https://adjust.com",
"CanContainContent": true,
"IsBetaVersion": false,
"Installed": false,
"Modules": [
{
"Name": "Adjust",
"Type": "Runtime",
"LoadingPhase": "Default",
"WhitelistPlatforms": [
"Win64",
"Android",
"IOS"
]
}
]
"FileVersion": 3,
"Version": 1,
"VersionName": "4.26.0",
"FriendlyName": "Adjust",
"Description": "Adjust GmbH",
"Category": "Mobile Analytics",
"CreatedBy": "Adjust",
"CreatedByURL": "https://adjust.com",
"DocsURL": "",
"MarketplaceURL": "",
"SupportURL": "https://adjust.com",
"CanContainContent": true,
"IsBetaVersion": false,
"Installed": false,
"Modules": [
{
"Name": "Adjust",
"Type": "Runtime",
"LoadingPhase": "Default",
"WhitelistPlatforms": [
"Win64",
"Android",
"IOS"
]
}
]
}
Binary file removed Adjust/Source/Adjust/.DS_Store
Binary file not shown.
47 changes: 32 additions & 15 deletions Adjust/Source/Adjust/Adjust.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
// Adjust SDK
//
// Created by Uglješa Erceg (@uerceg) on 27th September 2018.
// Copyright © 2018-2019 Adjust GmbH. All rights reserved.
// Copyright © 2018-2021 Adjust GmbH. All rights reserved.
//

using System.IO;
using UnrealBuildTool;

public class Adjust : ModuleRules {
public Adjust(ReadOnlyTargetRules Target) : base(Target) {
public class Adjust : ModuleRules
{
public Adjust(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

PublicIncludePaths.AddRange(new string[] {});
Expand All @@ -20,41 +22,52 @@ public Adjust(ReadOnlyTargetRules Target) : base(Target) {
PrivateDependencyModuleNames.AddRange(new string[] {});
DynamicallyLoadedModuleNames.AddRange(new string[] {});

if (Target.Platform == UnrealTargetPlatform.IOS) {
if (Target.Platform == UnrealTargetPlatform.IOS)
{
bool bHasAdjust = false;
string AdjustNFLDir = "";
try {
try
{
AdjustNFLDir = System.IO.Path.Combine(ModuleDirectory, "../ThirdParty/IOS");
bHasAdjust = System.IO.Directory.Exists(AdjustNFLDir);
} catch (System.Exception) {}
}
catch (System.Exception) {}

if (bHasAdjust) {
if (bHasAdjust)
{
string Err = string.Format("Adjust SDK found in {0}", AdjustNFLDir);
System.Console.WriteLine(Err);
PublicAdditionalLibraries.Add(Path.Combine(AdjustNFLDir, "AdjustSdk.a"));
PublicFrameworks.AddRange(new string[] { "AdSupport", "iAd", "CoreTelephony" });
PublicWeakFrameworks.AddRange(new string[] { "AdSupport", "iAd", "CoreTelephony", "StoreKit", "AdServices", "AppTrackingTransparency" });
PublicLibraryPaths.Add(AdjustNFLDir);
PublicDefinitions.Add("WITH_ADJUST=1");
PublicDefinitions.Add("UE4_ADJUST_VER=4.20.0");
PrivateIncludePaths.Add("Adjust/Private/IOS");
PublicAdditionalLibraries.Add("z");
PublicAdditionalLibraries.Add("sqlite3");
} else {
}
else
{
string Err = string.Format("Adjust SDK not found in {0}", AdjustNFLDir);
System.Console.WriteLine(Err);
PublicDefinitions.Add("WITH_ADJUST=0");
}
} else if (Target.Platform == UnrealTargetPlatform.Android) {
}
else if (Target.Platform == UnrealTargetPlatform.Android)
{
bool bHasAdjust = false;
string AdjustNFLDir = "";
try {
try
{
AdjustNFLDir = System.IO.Path.Combine(ModuleDirectory, "../ThirdParty/Android");
bHasAdjust = System.IO.Directory.Exists(AdjustNFLDir);
} catch (System.Exception) {}
}
catch (System.Exception) {}

PublicIncludePathModuleNames.Add("Launch");

if (bHasAdjust) {
if (bHasAdjust)
{
string Err = string.Format("Adjust SDK found in {0}", AdjustNFLDir);
System.Console.WriteLine(Err);
PublicLibraryPaths.Add(AdjustNFLDir);
Expand All @@ -65,12 +78,16 @@ public Adjust(ReadOnlyTargetRules Target) : base(Target) {

string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
AdditionalPropertiesForReceipt.Add("AndroidPlugin", Path.Combine(PluginPath, "Adjust_UPL_Android.xml"));
} else {
}
else
{
string Err = string.Format("Adjust SDK not found in {0}", AdjustNFLDir);
System.Console.WriteLine(Err);
PublicDefinitions.Add("WITH_ADJUST=0");
}
} else {
}
else
{
PublicDefinitions.Add("WITH_ADJUST=0");
}
}
Expand Down
2 changes: 1 addition & 1 deletion Adjust/Source/Adjust/Adjust_UPL_IOS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<!-- Adjust plugin additions -->
<root xmlns:android="http://schemas.ios.com/res/ios">
<init>
<log text="Adjust Init"/>
<log text="Adjust Init"/>
</init>
</root>
Binary file removed Adjust/Source/Adjust/Private/.DS_Store
Binary file not shown.
Loading

0 comments on commit b538f13

Please sign in to comment.