summaryrefslogtreecommitdiffstats
path: root/external/owncloud-android-lib/build.gradle
blob: 9203dc45a549a5c1f29c9a9001e350481f824844 (plain)
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
apply plugin: 'com.android.library'
buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
    }
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}

android {
    useLibrary 'org.apache.http.legacy'

    compileOptions {
        encoding 'ISO8859-1'
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

    compileSdkVersion 26
    buildToolsVersion "27.0.3"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 26
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java {
                srcDirs = [
                    'libs/commons-codec-1.9/src/main/java',
                    'libs/commons-httpclient-3.1/src/java',
                    'libs/jackrabbit-webdav-2.7.2/src/main/java',
                    'libs/slf4j-1.7.12/src/java',
                    'libs/tomcat-7.0.40/java',
                    'src'
                ]
            }
            resources {
                srcDirs = [
                    'libs/tomcat-7.0.40/java',
                    'libs/jackrabbit-webdav-2.7.2/src/main/java'
                ]
            }
        }
    }
}