Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.pamartineza:appodeal-sdk-wrapper:2.0.2-beta.0'
}
dependencies {
implementation("com.github.pamartineza:appodeal-sdk-wrapper:2.0.2-beta.0")
}
<dependency>
<groupId>com.github.pamartineza</groupId>
<artifactId>appodeal-sdk-wrapper</artifactId>
<version>2.0.2-beta.0</version>
</dependency>
libraryDependencies += "com.github.pamartineza" % "appodeal-sdk-wrapper" % "2.0.2-beta.0"
:dependencies [[com.github.pamartineza/appodeal-sdk-wrapper "2.0.2-beta.0"]]
Due to the increased fine grained configuration of Appodeal last SDK releases that requires manual edition of AndroidManifest this repo is no longer maitained.
Get Appodeal SDK adding just a Gradle dependency line :)
x.y.z.version -> x.y.z match official Appodeal release, "version" should be 0 or n if I have to make any release to add fixes
The aim of this repository is to simplify updating Appodeal SDK or switching among available versions, it includes all jar dependencies, manifest entries and proguard configuration.
####Please read carefully:
1- Aar's dependencies are NOT included (I haven't been capable of packaging successfully the .aar's' whithin an Android Library, let me know if you know how to do it) so you should manually download it from Appodeal website and import the .aar's' to your project. (Note: aars are also available in this repo in the folder aars)
compile project(':adcolony-sdk-3.1.2')
compile project(':facebook-audience-network-4.22.0')
2- Google Play Services are NOT included nor support libraries, you must add them in your app dependencies section and don't forget to add the manifest entries for ads:
compile 'com.android.support:recyclerview-v7:a.b.c'
compile 'com.google.android.gms:play-services-ads:r.s.t'
compile 'com.google.android.gms:play-services-location:r.s.t'
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
3- AndroidManifest permissions are NOT included to allow you to choose what fits best for your pourposes, check Appodeal docs for further references
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- Optional -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
##How to add to your project:
This project has been built using Jitpack.io
Releases available using this repo:
(Note: aars are available in this repo in the folder aars)
Add to your root build.gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add to your app build.gradle, check Jitpack badge to get current release numbers
dependencies {
compile 'com.github.pamartineza:appodeal-sdk-wrapper:x.y.z.version'
}
####Please star :star: this project if you find it useful :) ####Follow me on Twitter to get updates :+1: @pamartineza