build.gradle
960 Bytes
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
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'io.github.yumimobi:antiaddiction:1.1.9'
}
task clearJar(type: Delete) {
delete 'build/libs/zplayads-unity-plugin-library.jar'
}
task makeJar(type: Copy) {
from('build/intermediates/intermediate-jars/release/')
into('build/libs/')
include('classes.jar')
rename('classes.jar', 'zplayads-unity-plugin-library.jar')
}
makeJar.dependsOn(clearJar, build)