2013-10-14 16:10:58 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2014-09-23 16:39:28 +02:00
|
|
|
jcenter()
|
2013-10-14 16:10:58 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2016-06-10 15:47:18 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:2.1.2'
|
2013-10-14 16:10:58 +02:00
|
|
|
}
|
|
|
|
}
|
2013-07-24 18:42:33 +02:00
|
|
|
|
2014-07-04 21:14:14 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2013-10-14 16:10:58 +02:00
|
|
|
|
|
|
|
android {
|
2016-01-10 08:22:56 -08:00
|
|
|
buildToolsVersion '23.0.2'
|
2016-05-19 09:38:24 -07:00
|
|
|
compileSdkVersion 23
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 9
|
|
|
|
targetSdkVersion 22 //Bumping to 23 means we have to support the new permissions model
|
|
|
|
multiDexEnabled true
|
2016-03-03 11:16:26 -08:00
|
|
|
}
|
2015-07-18 18:57:09 +05:30
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "4g"
|
|
|
|
}
|
2016-05-19 09:38:24 -07:00
|
|
|
compileOptions {
|
|
|
|
// Use Java 1.7, requires minSdk 8
|
|
|
|
//SSHD requires mina when running on JDK < 7
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
2014-11-22 17:04:37 -08:00
|
|
|
}
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
|
|
|
resources.srcDirs = ['resources']
|
|
|
|
res.srcDirs = ['res']
|
|
|
|
assets.srcDirs = ['assets']
|
|
|
|
}
|
2015-06-10 12:29:53 +05:30
|
|
|
androidTest {
|
|
|
|
java.srcDirs = ['tests']
|
|
|
|
}
|
2013-10-14 16:10:58 +02:00
|
|
|
}
|
2014-01-10 23:26:32 +01:00
|
|
|
packagingOptions {
|
2015-06-13 21:01:39 -07:00
|
|
|
pickFirst "META-INF/DEPENDENCIES"
|
|
|
|
pickFirst "META-INF/LICENSE"
|
|
|
|
pickFirst "META-INF/NOTICE"
|
2015-08-23 00:11:36 +05:30
|
|
|
pickFirst "META-INF/BCKEY.SF"
|
|
|
|
pickFirst "META-INF/BCKEY.DSA"
|
|
|
|
pickFirst "META-INF/INDEX.LIST"
|
2016-01-10 08:22:56 -08:00
|
|
|
pickFirst "META-INF/io.netty.versions.properties"
|
2014-01-10 23:26:32 +01:00
|
|
|
}
|
2014-03-29 01:47:15 +01:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
2015-01-31 00:49:39 -08:00
|
|
|
checkReleaseBuilds false
|
2014-03-29 01:47:15 +01:00
|
|
|
}
|
2014-07-04 21:14:14 +02:00
|
|
|
buildTypes {
|
2016-05-19 09:38:24 -07:00
|
|
|
release { //keep on 'releae', set to 'all' when testing to make sure proguard is not deleting important stuff
|
2015-06-13 20:58:59 -07:00
|
|
|
minifyEnabled true
|
2016-06-04 15:26:13 +02:00
|
|
|
useProguard true
|
2015-06-13 20:58:59 -07:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
|
|
|
|
}
|
2014-07-04 21:14:14 +02:00
|
|
|
}
|
2013-10-14 16:10:58 +02:00
|
|
|
}
|
2013-10-29 16:17:18 +01:00
|
|
|
|
|
|
|
dependencies {
|
2013-11-02 17:46:20 +01:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
2016-06-04 13:30:04 +02:00
|
|
|
compile 'com.android.support:support-v4:23.4.0'
|
|
|
|
compile 'com.android.support:appcompat-v7:23.4.0'
|
|
|
|
compile 'com.android.support:design:23.4.0'
|
2015-08-10 00:26:58 -07:00
|
|
|
|
2016-05-19 09:38:24 -07:00
|
|
|
compile 'org.apache.sshd:sshd-core:0.8.0' //0.9 seems to fail on Android 6 and 1.+ requires java.nio.file, which doesn't exist in Android
|
2016-01-10 08:22:56 -08:00
|
|
|
|
2016-03-03 11:11:39 -08:00
|
|
|
compile 'com.madgag.spongycastle:pkix:1.54.0.0'
|
2016-06-09 15:59:05 +02:00
|
|
|
compile 'io.netty:netty-handler:4.1.0.Final'
|
2015-08-23 00:11:36 +05:30
|
|
|
|
2015-06-10 12:29:53 +05:30
|
|
|
androidTestCompile 'org.mockito:mockito-core:1.10.19'
|
|
|
|
// Because mockito has some problems with dex environment
|
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker:1.1'
|
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.1'
|
2016-01-10 08:22:56 -08:00
|
|
|
|
|
|
|
//compile fileTree(include: '*.jar', dir: 'libs')
|
2013-10-29 16:17:18 +01:00
|
|
|
}
|