-
Notifications
You must be signed in to change notification settings - Fork 183
/
Copy pathbuild.gradle
68 lines (54 loc) · 1.56 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
buildscript {
repositories {
mavenCentral()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
minSdkVersion 17
targetSdkVersion 26
versionCode 1
versionName "0.1"
}
buildTypes {
debug {
minifyEnabled false
useProguard false
}
release {
minifyEnabled false
useProguard false
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
destinationDir = file("docs/")
failOnError false
exclude '**/BuildConfig.java'
exclude '**/R.java'
}
def fabric_view_destination = ""
task copyAar(dependsOn: "assembleDebug") {
//Add this to your local.properties file:
//fabric_view_destination=/other/project/folder/libs
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
fabric_view_destination = properties.getProperty('fabric_view_destination')
println 'fabric_view_destination=' + fabric_view_destination
ant.copy(file: 'build/outputs/aar/' + project.name + '-debug.aar', todir: fabric_view_destination)
}