-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (52 loc) · 1.64 KB
/
Copy pathbuild.gradle
File metadata and controls
62 lines (52 loc) · 1.64 KB
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
apply plugin: 'com.android.library'
android {
namespace 'com.google.unity.ads'
compileSdkVersion 31
defaultConfig {
minSdkVersion 23
targetSdkVersion 31
versionCode 1
versionName "1.0"
consumerProguardFiles 'proguard.pgcfg'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pgcfg'
}
}
lintOptions {
abortOnError false
}
sourceSets {
main {
java {
exclude '**/com/google/unity/ads/decagon/*.java'
}
}
}
}
configurations.all {
exclude group: 'com.google.android.gms', module: 'play-services-ads-api'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.annotation:annotation:1.7.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk:0.22.0-beta04'
implementation 'com.google.android.ump:user-messaging-platform:3.2.0'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.6.2'
implementation 'androidx.lifecycle:lifecycle-process:2.6.2'
implementation 'com.google.errorprone:error_prone_annotations:2.26.1'
}
task clearAar(type: Delete) {
delete 'build/libs/googlemobileads-unity.aar'
}
task makeAar(type: Copy) {
from('build/outputs/aar/')
into('build/libs/')
include('app.aar')
rename('app.aar', 'googlemobileads-unity.aar')
}
makeAar.dependsOn(clearAar, build)