build.gradle 2.8 KB
Newer Older
1
buildscript {
2
    repositories {
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
3
        jcenter()
4
        google()
5 6
    }
    dependencies {
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
7
        classpath 'com.android.tools.build:gradle:3.2.1'
8 9
    }
}
10

11
apply plugin: 'com.android.application'
12 13

android {
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
14
    compileSdkVersion 28
15
    defaultConfig {
16
        minSdkVersion 14
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
17
        targetSdkVersion 28
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
18
        //multiDexEnabled true
19
        //testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner"
20
    }
Vineet Garg's avatar
Vineet Garg committed
21
    dexOptions {
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
22
        javaMaxHeapSize "2g"
Vineet Garg's avatar
Vineet Garg committed
23
    }
24
    compileOptions {
Nicolas Fella's avatar
Nicolas Fella committed
25 26
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
27
    }
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
28
    sourceSets {
29 30 31 32 33 34 35
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['resources']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }
36 37 38
        androidTest {
            java.srcDirs = ['tests']
        }
39
    }
40
    packagingOptions {
41 42 43
        pickFirst "META-INF/DEPENDENCIES"
        pickFirst "META-INF/LICENSE"
        pickFirst "META-INF/NOTICE"
44 45 46
        pickFirst "META-INF/BCKEY.SF"
        pickFirst "META-INF/BCKEY.DSA"
        pickFirst "META-INF/INDEX.LIST"
47
    }
48 49
    lintOptions {
        abortOnError false
50
        checkReleaseBuilds false
51
    }
52
    buildTypes {
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
53 54 55 56
        debug {
            minifyEnabled false
            useProguard false
        }
57
        release { //keep on 'release' for faster builds, set to 'all' when testing to make sure proguard is not deleting important stuff
58
            minifyEnabled true
59
            useProguard true
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
60
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
61
        }
62
    }
63
}
64 65

dependencies {
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
66

67
    repositories {
68
        jcenter()
69
        google()
70
    }
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
71

Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
72 73
    implementation 'com.android.support:support-media-compat:28.0.0'
    implementation 'com.android.support:appcompat-v7:28.0.0'
74
    implementation 'com.android.support:preference-v7:28.0.0'
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
75
    implementation 'com.android.support:design:28.0.0'
Matthijs Tijink's avatar
Matthijs Tijink committed
76
    implementation 'com.jakewharton:disklrucache:2.0.2' //For caching album art bitmaps
77

78 79
    implementation 'org.apache.sshd:sshd-core:0.14.0'
    implementation 'org.apache.mina:mina-core:2.0.19' //For some reason, makes sshd-core:0.14.0 work without NIO, which isn't available until Android 8+
80

Nicolas Fella's avatar
Nicolas Fella committed
81
    implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.58.0.0' //For SSL certificate generation
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
82

83 84 85
    implementation 'com.jakewharton:butterknife:9.0.0-rc2'
    annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc2'

Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
86
    // Testing
87 88 89 90
    androidTestImplementation 'org.mockito:mockito-core:1.10.19'
    androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.1'// Because mockito has some problems with dex environment
    androidTestImplementation 'org.skyscreamer:jsonassert:1.3.0'
    testImplementation 'junit:junit:4.12'
91

92
}