Skip to content

Commit

Permalink
fix/multiple_aabs (#10)
Browse files Browse the repository at this point in the history
* Change to repository AAR import

* Remove abandoned comment
  • Loading branch information
ritamsarmah authored Nov 2, 2022
1 parent d11c2d2 commit c1f36a7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public AppLovinMAX(ReadOnlyTargetRules Target) : base(Target)
}
else if ( Target.Platform == UnrealTargetPlatform.Android )
{
string AppLovinAndroidPath = Path.Combine( ModuleDirectory, "..", "ThirdParty", "Android" );
string AppLovinPluginPath = Path.Combine( AppLovinAndroidPath, "applovin-max-unreal-plugin.aar" );
string AppLovinAndroidPath = Path.Combine( ModuleDirectory, "..", "ThirdParty", "Android", "repository", "com", "applovin", "applovin-max-unreal-plugin", "release" );
string AppLovinPluginPath = Path.Combine( AppLovinAndroidPath, "applovin-max-unreal-plugin-release.aar" );
if ( File.Exists( AppLovinPluginPath ) )
{
System.Console.WriteLine( "AppLovin Android Plugin found" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
<dumpvars/>
</init>

<!-- optional files or directories to copy or delete from Intermediate/Android/APK after ndk-build -->
<resourceCopies>
<copyFile src="$S(PluginDir)/../ThirdParty/Android/applovin-max-unreal-plugin.aar" dst="$S(BuildDir)/libs/applovin-max-unreal-plugin.aar" />
</resourceCopies>

<!-- optional updates applied to AndroidManifest.xml -->
<androidManifestUpdates>
<if condition="bEnabled">
Expand Down Expand Up @@ -55,6 +50,10 @@
<true>
<insertValue value="com.applovin,applovin-sdk,10.3.2@aar" />
<insertNewline/>
<insertValue value="repository $S(PluginDir)/../ThirdParty/Android/repository" />
<insertNewline/>
<insertValue value="com.applovin,applovin-max-unreal-plugin,release" />
<insertNewline/>
</true>
</if>
</AARImports>
Expand All @@ -73,21 +72,9 @@
<insert>
allprojects {
repositories {
flatDir {
</insert>
<insertValue value="dirs '$S(BuildDir)/libs'"/>
<insertNewline/>
<insert>
}
</insert>
<insert>
// You may add any additional repositories for other ad networks here
</insert>
<insert>
// You may add any additional repositories for other ad networks here
}
}

dependencies.implementation(name: 'applovin-max-unreal-plugin', ext: 'aar')
</insert>
</true>
</if>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.applovin</groupId>
<artifactId>applovin-max-unreal-plugin</artifactId>
<version>release</version>
<packaging>aar</packaging>
</project>

0 comments on commit c1f36a7

Please sign in to comment.