Skip to content

Commit

Permalink
Moloco/2.1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Apr 5, 2024
1 parent 5fe68ff commit e25a8b3
Show file tree
Hide file tree
Showing 6 changed files with 997 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Moloco/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/build
5 changes: 5 additions & 0 deletions Moloco/CHANGELOG.md
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.
1 change: 1 addition & 0 deletions Moloco/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Moloco Adapter
65 changes: 65 additions & 0 deletions Moloco/build.gradle.kts
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")
}
}
}
}
}
}
17 changes: 17 additions & 0 deletions Moloco/proguard-rules.pro
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 *;
#}
Loading

0 comments on commit e25a8b3

Please sign in to comment.