forked from nimrich/mopub-android-mediation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (78 loc) · 3.36 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.70'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.novoda:bintray-release:0.9.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
// Parts of the subproject build instructions that are totally generic go here.
// (Any parts that depend on values set in the subproject's build.gradle go in shared-build.gradle
// instead.)
subprojects {
project.group = 'com.mopub.mobileads'
repositories {
google()
jcenter()
// Some network SDKs are found in the following additional repositories:
maven { url "https://adcolony.bintray.com/AdColony" }
maven { url 'https://dl.bintray.com/ironsource-mobile/android-sdk'}
maven { url 'https://tapjoy.bintray.com/maven' }
maven { url "https://chartboostmobile.bintray.com/Chartboost" }
maven { url "https://jitpack.io" }
}
if (project.name == 'Testing')
apply plugin: 'com.android.application'
else
apply plugin: 'com.android.library'
android {
// Keep these SDK versions (compile, min, target) in sync with mopub-sdk/shared-build.gradle
compileSdkVersion 30
defaultConfig {
minSdkVersion 19
targetSdkVersion 30
}
buildTypes {
release { minifyEnabled false }
debug { minifyEnabled false }
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation ('com.mopub:mopub-sdk') {
transitive = true
// Do not include viewability code -- pub must opt in explicitly in their own .gradle file
exclude module: 'libAvid-mopub'
exclude module: 'moat-mobile-app-kit'
}
}
// Adapters only, please.
if (project.name != 'Testing') {
// Support for publishing to bintray.
// See https://github.com/novoda/bintray-release/wiki for documentation.
apply plugin: 'com.novoda.bintray-release'
publish {
repoName = 'mopub-android-mediation'
userOrg = 'mopub'
website = 'https://github.com/mopub/mopub-android-mediation'
// dryRun is enabled by default to prevent accidental publication. It can be overridden on
// the command line like this:
// ./gradlew AdColony:bintrayUpload -Pbintray.dryrun=false
dryRun = project.hasProperty('bintray.dryrun') ? project.getProperty('bintray.dryrun') : true
// Gradle chokes on an empty string if you actually try to execute the publish tasks, even in a dry
// run situation. So to enable dry runs, use "foo" and "bar" as fake values (when dryRun is true).
bintrayUser = project.hasProperty('bintray.user') ? project.getProperty('bintray.user') : dryRun ? 'foo' : ''
bintrayKey = project.hasProperty('bintray.apikey') ? project.getProperty('bintray.apikey') : dryRun ? 'bar' : ''
// The rest of the options are in shared-build.gradle.
}
}
}