-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jenkins
committed
Apr 5, 2024
1 parent
5fe68ff
commit e25a8b3
Showing
6 changed files
with
997 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/target | ||
/build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## 2.1.1.0 | ||
* Initial commit. | ||
* Minimum AppLovin MAX SDK version 12.3.0. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Moloco Adapter |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
plugins { | ||
id("signing") | ||
id("maven-publish") | ||
} | ||
|
||
private val versionMajor = 2 | ||
private val versionMinor = 1 | ||
private val versionPatch = 1 | ||
private val versionAdapterPatch = 0 | ||
|
||
val libraryVersionName by extra("${versionMajor}.${versionMinor}.${versionPatch}.${versionAdapterPatch}") | ||
val libraryVersionCode by extra((versionMajor * 1000000) + (versionMinor * 10000) + (versionPatch * 100) + versionAdapterPatch) | ||
|
||
val libraryArtifactId by extra("moloco-adapter") | ||
val libraryGroupId by extra("com.applovin.mediation") | ||
|
||
var libraryVersions = rootProject.extra["versions"] as Map<*, *> | ||
|
||
android.namespace = "com.applovin.mediation.adapters.moloco" | ||
android.defaultConfig.versionCode = libraryVersionCode | ||
android.defaultConfig.versionName = libraryVersionName | ||
android.defaultConfig.minSdk = 21 | ||
|
||
dependencies { | ||
implementation("com.moloco.sdk:moloco-sdk:${libraryVersions["moloco"]}") | ||
compileOnly("androidx.annotation:annotation:${libraryVersions["annotation"]}") | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>(extra["publicationName"] as String) { | ||
// The publication doesn't know about our dependencies, so we have to manually add them to the pom | ||
pom.withXml { | ||
asNode().apply { | ||
appendNode("name", libraryArtifactId) | ||
appendNode("description", "Moloco adapter for AppLovin MAX mediation") | ||
appendNode("url", "https://www.applovin.com/") | ||
appendNode("licenses") | ||
.appendNode("license").apply { | ||
appendNode("name", "AppLovin Corporation Mediation Adapter EULA") | ||
appendNode("url", "https://www.applovin.com/eula") | ||
} | ||
appendNode("scm").apply { | ||
appendNode("connection", "scm:git:github.com/AppLovin/AppLovin-MAX-SDK-Android.git") | ||
appendNode("developerConnection", "scm:git:ssh://github.com/AppLovin/AppLovin-MAX-SDK-Android.git") | ||
appendNode("url", "https://github.com/AppLovin/AppLovin-MAX-SDK-Android") | ||
} | ||
appendNode("developers") | ||
.appendNode("developer").apply { | ||
appendNode("name", "AppLovin") | ||
appendNode("url", "https://www.applovin.com") | ||
} | ||
// Add Moloco network to list of dependencies. | ||
appendNode("dependencies") | ||
.appendNode("dependency").apply { | ||
appendNode("groupId", "com.moloco.sdk") | ||
appendNode("artifactId", "moloco-sdk") | ||
appendNode("version", libraryVersions["moloco"]) | ||
appendNode("scope", "compile") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/basil/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
Oops, something went wrong.