2016-03-03 17:46:31 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2016-06-02 13:58:09 +02:00
|
|
|
apply plugin: 'android-apt'
|
2016-03-03 17:46:31 +01:00
|
|
|
|
|
|
|
android {
|
2016-07-04 14:12:45 +02:00
|
|
|
compileSdkVersion 24
|
2016-10-14 00:22:08 +02:00
|
|
|
buildToolsVersion "24.0.3"
|
2016-03-03 17:46:31 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
2016-03-29 19:38:50 +02:00
|
|
|
applicationId "com.github.dfa.diaspora_android"
|
2016-08-06 22:53:20 +02:00
|
|
|
minSdkVersion 17
|
2016-07-04 14:12:45 +02:00
|
|
|
targetSdkVersion 24
|
2016-09-20 21:26:23 +02:00
|
|
|
versionCode 8
|
2016-09-26 16:28:17 +02:00
|
|
|
versionName "0.1.6-next"
|
2016-10-31 07:15:29 +01:00
|
|
|
setProperty("archivesBaseName", "diasporaAndroid__${versionName}__")
|
2016-10-26 14:33:05 +02:00
|
|
|
|
|
|
|
vectorDrawables.useSupportLibrary=true
|
2016-03-03 17:46:31 +01:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2016-07-27 21:54:54 +02:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
2016-03-03 17:46:31 +01:00
|
|
|
}
|
|
|
|
|
2016-10-13 16:56:31 +02:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
//Color picker
|
|
|
|
url "http://dl.bintray.com/dasar/maven"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-03 17:46:31 +01:00
|
|
|
dependencies {
|
2016-05-05 17:42:29 +02:00
|
|
|
// Sub-Projects
|
|
|
|
//compile project(':subprojectFromRoot')
|
|
|
|
|
|
|
|
// Jars
|
2016-03-03 17:46:31 +01:00
|
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
testCompile 'junit:junit:4.12'
|
2016-05-05 17:42:29 +02:00
|
|
|
|
|
|
|
// Android standard libs
|
2016-10-10 18:13:41 +02:00
|
|
|
compile 'com.android.support:appcompat-v7:24.2.1'
|
Fixed coloring link in AboutFragment, Color buttons in AboutFragment, Added ChangeLogFragment, made updating logBoxText synchronized in DebugFragment, Color some textViews and buttons according to chosen background color, created methods for calculating text color from background color, caught possible nullpointer in applog, added workaround drawable ic_media_video_poster.xml to prevent webview crash (not clear, if this fixes the issue), made tablayout in aboutActivity scrollable, renamed some color names to lowercase
2016-11-02 19:57:30 +01:00
|
|
|
compile 'com.android.support:design:24.1.0' //Don't update. Broken up to 25.0.0
|
2016-10-10 18:13:41 +02:00
|
|
|
compile 'com.android.support:support-v4:24.2.1'
|
Fixed coloring link in AboutFragment, Color buttons in AboutFragment, Added ChangeLogFragment, made updating logBoxText synchronized in DebugFragment, Color some textViews and buttons according to chosen background color, created methods for calculating text color from background color, caught possible nullpointer in applog, added workaround drawable ic_media_video_poster.xml to prevent webview crash (not clear, if this fixes the issue), made tablayout in aboutActivity scrollable, renamed some color names to lowercase
2016-11-02 19:57:30 +01:00
|
|
|
compile 'com.android.support:customtabs:24.2.1'
|
2016-10-30 16:21:45 +01:00
|
|
|
compile 'com.android.support:cardview-v7:24.2.1'
|
|
|
|
|
2016-05-05 17:42:29 +02:00
|
|
|
|
|
|
|
// More libraries
|
2016-06-02 13:58:09 +02:00
|
|
|
compile 'com.jakewharton:butterknife:8.0.1'
|
2016-08-23 14:36:03 +02:00
|
|
|
compile 'info.guardianproject.netcipher:netcipher:2.0.0-alpha1'
|
|
|
|
compile 'info.guardianproject.netcipher:netcipher-webkit:2.0.0-alpha1'
|
2016-10-13 16:56:31 +02:00
|
|
|
compile(group: 'uz.shift', name: 'colorpicker', version: '0.5', ext: 'aar') //Color picker
|
2016-06-02 13:58:09 +02:00
|
|
|
apt 'com.jakewharton:butterknife-compiler:8.0.1'
|
2016-08-27 15:17:02 +02:00
|
|
|
}
|
|
|
|
|
2016-06-02 13:58:09 +02:00
|
|
|
|
2016-08-27 15:17:02 +02:00
|
|
|
task copyRepoFiles(type: Copy) {
|
2016-08-27 16:40:16 +02:00
|
|
|
String[] copyFiles = ["README.md", "LICENSE.md", "CHANGELOG.md"]
|
2016-08-27 15:17:02 +02:00
|
|
|
from rootProject.files(copyFiles)
|
|
|
|
into 'src/main/res/raw'
|
|
|
|
rename { String fileName ->
|
|
|
|
fileName.replace(fileName, fileName.toLowerCase())
|
|
|
|
}
|
2016-08-27 16:40:16 +02:00
|
|
|
|
|
|
|
// Filter Contributors file
|
2016-08-29 22:16:45 +02:00
|
|
|
from(rootProject.file("CONTRIBUTORS.txt")) {
|
2016-08-27 16:40:16 +02:00
|
|
|
into '.' // Target already changed to 'src/main/res/raw'
|
|
|
|
rename { String fileName ->
|
|
|
|
fileName.replace(fileName, fileName.toLowerCase())
|
|
|
|
}
|
|
|
|
filter { line ->
|
|
|
|
(line.toString().matches("..l>>.*") || line.toString().startsWith("## 99l CONTRIBUTORS")) ? null : line.toString().trim().replaceAll(" \\(.*\\)", "")
|
|
|
|
}
|
2016-08-27 15:17:02 +02:00
|
|
|
}
|
2016-08-27 16:40:16 +02:00
|
|
|
|
2016-03-03 17:46:31 +01:00
|
|
|
}
|
2016-08-29 22:16:45 +02:00
|
|
|
tasks.copyRepoFiles.execute()
|