2017-07-27 19:31:24 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2019-08-03 10:35:04 +02:00
|
|
|
compileSdkVersion 29
|
2019-08-13 18:41:37 +02:00
|
|
|
buildToolsVersion "29.0.2"
|
2017-07-27 19:31:24 +02:00
|
|
|
defaultConfig {
|
2019-10-12 12:50:01 +02:00
|
|
|
minSdkVersion 19
|
2019-08-03 10:35:04 +02:00
|
|
|
targetSdkVersion 29
|
2020-03-11 08:42:27 +01:00
|
|
|
versionCode 351
|
|
|
|
versionName "2.32.0-beta-1"
|
2018-12-11 19:17:14 +01:00
|
|
|
multiDexEnabled true
|
2019-05-05 19:01:07 +02:00
|
|
|
renderscriptTargetApi 28 as int
|
|
|
|
renderscriptSupportModeEnabled true
|
2019-11-08 18:53:57 +01:00
|
|
|
|
2017-07-27 19:31:24 +02:00
|
|
|
}
|
2018-12-11 19:27:21 +01:00
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "4g"
|
|
|
|
}
|
2017-10-26 16:19:56 +02:00
|
|
|
flavorDimensions "default"
|
2017-07-27 19:31:24 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
2018-01-03 15:25:35 +01:00
|
|
|
debug {
|
|
|
|
pseudoLocalesEnabled true
|
|
|
|
}
|
2017-07-27 19:31:24 +02:00
|
|
|
}
|
2018-03-17 18:28:07 +01:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2018-08-22 09:04:43 +02:00
|
|
|
lintOptions {
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
2017-08-26 17:53:13 +02:00
|
|
|
productFlavors {
|
2017-08-26 18:47:52 +02:00
|
|
|
fdroid {
|
2019-05-18 11:10:30 +02:00
|
|
|
applicationId "fr.gouv.etalab.mastodon"
|
2019-05-20 17:48:16 +02:00
|
|
|
buildConfigField "boolean", "DONATIONS", "true"
|
2017-08-26 17:53:13 +02:00
|
|
|
}
|
2017-12-09 18:16:20 +01:00
|
|
|
playstore {
|
2019-05-18 11:10:30 +02:00
|
|
|
applicationId "app.fedilab.android"
|
2019-05-20 17:48:16 +02:00
|
|
|
buildConfigField "boolean", "DONATIONS", "false"
|
2017-08-26 17:53:13 +02:00
|
|
|
}
|
|
|
|
}
|
2019-01-08 18:11:40 +01:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/proguard/androidx-annotations.pro'
|
|
|
|
}
|
2017-07-27 19:31:24 +02:00
|
|
|
}
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
maven { url "https://jitpack.io" }
|
|
|
|
maven { url "https://maven.google.com"}
|
2018-10-24 14:52:08 +02:00
|
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
|
2017-07-27 19:31:24 +02:00
|
|
|
}
|
|
|
|
}
|
2019-12-14 10:16:10 +01:00
|
|
|
|
2019-12-14 14:18:46 +01:00
|
|
|
|
2019-12-14 10:16:10 +01:00
|
|
|
task copyAllReleaseNotes(type: Copy) {
|
|
|
|
from "$buildDir/../src/main/assets/changelogs/"
|
|
|
|
include "*.txt"
|
|
|
|
into "$buildDir/../../fastlane/metadata/android/en-US/changelogs/"
|
2019-12-14 16:40:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
task gitPushReleaseNotes(type: Exec, dependsOn: 'copyAllReleaseNotes') {
|
2019-12-14 14:18:46 +01:00
|
|
|
['sh', '-c', "git add $buildDir/../../fastlane/metadata/android/en-US/changelogs/*"].execute().text.trim()
|
|
|
|
['sh', '-c', "git commit -m 'copy release notes'"].execute().text.trim()
|
|
|
|
['sh', '-c', "git push"].execute().text.trim()
|
|
|
|
}
|
|
|
|
|
2019-01-16 15:06:21 +01:00
|
|
|
|
2018-02-20 18:18:18 +01:00
|
|
|
|
2017-07-27 19:31:24 +02:00
|
|
|
dependencies {
|
2020-03-07 15:41:18 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
|
|
implementation 'com.google.android.material:material:1.0.0'
|
2019-06-11 19:38:26 +02:00
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
2020-03-07 15:41:18 +01:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
2020-01-19 15:33:40 +01:00
|
|
|
implementation 'androidx.browser:browser:1.2.0'
|
2019-11-27 18:25:42 +01:00
|
|
|
implementation 'androidx.exifinterface:exifinterface:1.1.0'
|
2020-03-07 12:24:04 +01:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.0.2'
|
2020-03-07 08:14:15 +01:00
|
|
|
implementation "com.github.bumptech.glide:glide:4.11.0"
|
|
|
|
implementation ("com.github.bumptech.glide:recyclerview-integration:4.11.0") {
|
2019-12-15 18:38:24 +01:00
|
|
|
// Excludes the support library because it's already included by Glide.
|
|
|
|
transitive = false
|
|
|
|
}
|
2020-03-07 08:14:15 +01:00
|
|
|
annotationProcessor "com.github.bumptech.glide:compiler:4.11.0"
|
2019-06-11 19:38:26 +02:00
|
|
|
annotationProcessor 'com.android.support:support-annotations:28.0.0'
|
2020-03-07 08:14:15 +01:00
|
|
|
implementation "org.conscrypt:conscrypt-android:2.2.1"
|
|
|
|
implementation "com.evernote:android-job:1.2.6"
|
|
|
|
implementation "com.google.code.gson:gson:2.8.5"
|
|
|
|
implementation "com.google.guava:guava:28.2-android"
|
|
|
|
implementation "com.github.chrisbanes:PhotoView:2.3.0"
|
2019-10-31 16:15:15 +01:00
|
|
|
implementation 'com.r0adkll:slidableactivity:2.1.0'
|
2018-06-08 20:45:47 +02:00
|
|
|
implementation 'com.github.stom79:country-picker-android:1.2.0'
|
2019-11-24 16:07:36 +01:00
|
|
|
implementation 'com.github.stom79:mytransl:2.0'
|
2019-11-06 17:24:38 +01:00
|
|
|
implementation 'com.github.stom79:SparkButton:1.0.13'
|
2018-10-13 15:59:15 +02:00
|
|
|
implementation "com.koushikdutta.async:androidasync:2.+"
|
2019-04-25 19:15:52 +02:00
|
|
|
implementation 'com.vanniktech:emoji-one:0.6.0'
|
2018-11-04 16:00:44 +01:00
|
|
|
implementation 'com.oguzdev:CircularFloatingActionMenu:1.0.2'
|
2018-11-24 18:56:12 +01:00
|
|
|
implementation 'com.github.franmontiel:LocaleChanger:0.9.2'
|
2019-08-20 09:55:39 +02:00
|
|
|
implementation 'com.github.GrenderG:Toasty:1.4.2'
|
2018-12-11 19:17:14 +01:00
|
|
|
implementation 'com.elconfidencial.bubbleshowcase:bubbleshowcase:1.3.1'
|
2019-06-11 19:38:26 +02:00
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
2019-10-31 16:15:15 +01:00
|
|
|
implementation 'com.google.android.exoplayer:exoplayer:2.10.6'
|
2019-01-25 11:41:39 +01:00
|
|
|
implementation 'org.apache.poi:poi:3.16'
|
2019-01-08 10:50:43 +01:00
|
|
|
implementation 'com.github.mabbas007:TagsEditText:1.0.5'
|
2019-02-14 17:46:38 +01:00
|
|
|
implementation "com.tonyodev.fetch2:fetch2:2.3.6"
|
2019-11-03 14:16:08 +01:00
|
|
|
implementation 'com.github.stom79:horizontalbargraph:1.6'
|
2019-05-05 19:01:07 +02:00
|
|
|
implementation 'jp.wasabeef:glide-transformations:4.0.0'
|
2020-03-07 08:14:15 +01:00
|
|
|
playstoreImplementation "io.github.kobakei:ratethisapp:1.2.0"
|
2019-08-04 11:22:49 +02:00
|
|
|
implementation 'ja.burhanrashid52:photoeditor:0.4.0'
|
2019-08-24 16:39:53 +02:00
|
|
|
api 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
|
2019-06-12 08:05:36 +02:00
|
|
|
|
2020-03-07 08:14:15 +01:00
|
|
|
implementation "net.gotev:uploadservice:3.5.2"
|
|
|
|
implementation "net.gotev:uploadservice-okhttp:3.5.2"
|
|
|
|
implementation "info.guardianproject.netcipher:netcipher:2.0.0-alpha1"
|
|
|
|
implementation "info.guardianproject.netcipher:netcipher-okhttp3:2.0.0-alpha1"
|
2019-06-26 11:00:59 +02:00
|
|
|
|
|
|
|
implementation 'com.github.adrielcafe:AndroidAudioRecorder:0.3.0'
|
2019-07-03 16:50:35 +02:00
|
|
|
implementation 'yogesh.firzen:MukkiyaSevaigal:1.0.6'
|
2019-09-21 10:45:17 +02:00
|
|
|
implementation 'com.iceteck.silicompressorr:silicompressor:2.2.2'
|
2020-03-07 08:14:15 +01:00
|
|
|
implementation "ch.acra:acra-mail:5.4.0"
|
|
|
|
implementation "ch.acra:acra-limiter:5.4.0"
|
|
|
|
implementation "ch.acra:acra-notification:5.4.0"
|
2019-07-23 11:15:35 +02:00
|
|
|
implementation 'com.github.stom79:Android-WYSIWYG-Editor:3.2.1'
|
2019-07-20 17:44:44 +02:00
|
|
|
implementation 'com.github.duanhong169:colorpicker:1.1.6'
|
2020-02-01 12:17:30 +01:00
|
|
|
implementation 'com.github.penfeizhou.android.animation:apng:1.1.0'
|
|
|
|
implementation 'com.github.penfeizhou.android.animation:gif:1.1.0'
|
2019-07-28 15:55:25 +02:00
|
|
|
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
|
2019-09-28 10:16:47 +02:00
|
|
|
implementation 'com.github.smarteist:autoimageslider:1.3.2'
|
2020-03-07 12:10:52 +01:00
|
|
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
|
2019-11-08 18:05:35 +01:00
|
|
|
implementation 'com.jaredrummler:cyanea:1.0.2'
|
2017-07-27 19:31:24 +02:00
|
|
|
}
|