-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
99 lines (85 loc) · 2.65 KB
/
build.gradle
File metadata and controls
99 lines (85 loc) · 2.65 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
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
97
98
99
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
delete fileTree('Assets/Plugins/Android/GooglePlay') {
include "**/*.aar"
}
delete 'Assets/Plugins/Android/GooglePlay/AndroidManifest.xml'
delete 'Assets/Plugins/Android/GooglePlay/project.properties'
println 'clean: done'
}
//noinspection GroovyAssignabilityCheck
task makeUnityPlugin(dependsOn: ':authservice:build') {
doLast {
println 'Building Unity plugin'
copy {
from 'play-services-auth-8.4.0/play-services-auth-8.4.0.aar'
into 'Assets/Plugins/Android'
}
copy {
from 'play-services-base-8.4.0/play-services-base-8.4.0.aar'
into 'Assets/Plugins/Android'
}
copy {
from 'play-services-basement-8.4.0/play-services-basement-8.4.0.aar'
into 'Assets/Plugins/Android'
}
copy {
from 'play-services-games-8.4.0/play-services-basement-8.4.0.aar'
into 'Assets/Plugins/Android'
}
copy {
from 'play-services-plus-8.4.0/play-services-plus-8.4.0.aar'
into 'Assets/Plugins/Android'
}
copy {
from 'appcompat-v7-23.2.1/appcompat-v7-23.2.1.aar'
into 'Assets/Plugins/Android'
}
copy {
from 'play-services-games-8.4.0/play-services-games-8.4.0.aar'
into 'Assets/Plugins/Android'
}
copy {
from('authservice/') {
include 'project.properties'
}
into 'Assets/Plugins/Android/GooglePlay'
}
copy {
from('authservice/src/main') {
include 'AndroidManifest.xml'
}
into 'Assets/Plugins/Android/GooglePlay'
}
copy {
from('authservice/build/intermediates/bundles/release') {
include 'classes.jar'
rename 'classes.jar', 'googleplayauth.jar'
}
into 'Assets/Plugins/Android/GooglePlay/libs'
}
copy {
from('android-support-v4') {
include '**/*.jar'
}
into 'Assets/Plugins/Android/GooglePlay/libs'
}
println 'Done'
}
}