Fedilab è un client Android multifunzionale per accedere al Fediverse distribuito, composto da microblogging, condivisione di foto e video hosting. Supporta: - Mastodon, Pleroma, Peertube, GNU Social, Friendica. https://devol.it/it/fediverso
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
5.8 KiB

  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.2"
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 29
  8. versionCode 343
  9. versionName "2.27.1"
  10. multiDexEnabled true
  11. renderscriptTargetApi 28 as int
  12. renderscriptSupportModeEnabled true
  13. }
  14. dexOptions {
  15. javaMaxHeapSize "4g"
  16. }
  17. flavorDimensions "default"
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. debug {
  24. pseudoLocalesEnabled true
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. lintOptions {
  32. checkReleaseBuilds false
  33. abortOnError false
  34. }
  35. productFlavors {
  36. fdroid {
  37. applicationId "fr.gouv.etalab.mastodon"
  38. buildConfigField "boolean", "DONATIONS", "true"
  39. }
  40. playstore {
  41. applicationId "app.fedilab.android"
  42. buildConfigField "boolean", "DONATIONS", "false"
  43. }
  44. }
  45. packagingOptions {
  46. exclude 'META-INF/proguard/androidx-annotations.pro'
  47. }
  48. }
  49. allprojects {
  50. repositories {
  51. maven { url "https://jitpack.io" }
  52. maven { url "https://maven.google.com"}
  53. maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
  54. }
  55. }
  56. task copyAllReleaseNotes(type: Copy) {
  57. from "$buildDir/../src/main/assets/changelogs/"
  58. include "*.txt"
  59. into "$buildDir/../../fastlane/metadata/android/en-US/changelogs/"
  60. }
  61. task gitPushReleaseNotes(type: Exec, dependsOn: 'copyAllReleaseNotes') {
  62. ['sh', '-c', "git add $buildDir/../../fastlane/metadata/android/en-US/changelogs/*"].execute().text.trim()
  63. ['sh', '-c', "git commit -m 'copy release notes'"].execute().text.trim()
  64. ['sh', '-c', "git push"].execute().text.trim()
  65. }
  66. ext.supportLibraryVersion = '29.0.2'
  67. ext.glideLibraryVersion = '4.9.0'
  68. ext.conscryptLibraryVersion = '2.2.1'
  69. ext.evernoteLibraryVersion = '1.4.2'
  70. ext.gsonLibraryVersion = '2.8.2'
  71. ext.guavaLibraryVersion = '24.1-android'
  72. ext.photoViewLibraryVersion = '2.3.0'
  73. ext.ratethisappLibraryVersion = '1.2.0'
  74. ext.uploadServiceVersion = "3.5.2"
  75. ext.torrentstreamVersion = "2.5.0"
  76. ext.netCipherVersion = "2.0.0-alpha1"
  77. ext.acraVersion = "5.4.0"
  78. dependencies {
  79. implementation 'com.android.support:appcompat-v7:29.0.2'
  80. implementation 'androidx.appcompat:appcompat:1.1.0'
  81. implementation 'com.google.android.material:material:1.0.0'
  82. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  83. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  84. implementation 'androidx.browser:browser:1.0.0'
  85. implementation 'androidx.exifinterface:exifinterface:1.1.0'
  86. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  87. implementation "com.github.bumptech.glide:glide:$glideLibraryVersion"
  88. annotationProcessor "com.github.bumptech.glide:compiler:$glideLibraryVersion"
  89. annotationProcessor 'com.android.support:support-annotations:28.0.0'
  90. implementation "org.conscrypt:conscrypt-android:$conscryptLibraryVersion"
  91. implementation "com.evernote:android-job:$evernoteLibraryVersion"
  92. implementation "com.google.code.gson:gson:$gsonLibraryVersion"
  93. implementation "com.google.guava:guava:$guavaLibraryVersion"
  94. implementation "com.github.chrisbanes:PhotoView:$photoViewLibraryVersion"
  95. implementation 'com.r0adkll:slidableactivity:2.1.0'
  96. implementation 'com.github.stom79:country-picker-android:1.2.0'
  97. implementation 'com.github.stom79:mytransl:2.0'
  98. implementation 'com.github.stom79:SparkButton:1.0.13'
  99. implementation "com.koushikdutta.async:androidasync:2.+"
  100. implementation 'com.vanniktech:emoji-one:0.6.0'
  101. implementation 'com.oguzdev:CircularFloatingActionMenu:1.0.2'
  102. implementation 'com.github.franmontiel:LocaleChanger:0.9.2'
  103. implementation 'com.github.GrenderG:Toasty:1.4.2'
  104. implementation 'com.elconfidencial.bubbleshowcase:bubbleshowcase:1.3.1'
  105. implementation 'androidx.multidex:multidex:2.0.1'
  106. implementation 'com.google.android.exoplayer:exoplayer:2.10.6'
  107. implementation 'org.apache.poi:poi:3.16'
  108. implementation 'com.github.mabbas007:TagsEditText:1.0.5'
  109. implementation "com.tonyodev.fetch2:fetch2:2.3.6"
  110. implementation 'com.github.stom79:horizontalbargraph:1.6'
  111. implementation 'jp.wasabeef:glide-transformations:4.0.0'
  112. playstoreImplementation "io.github.kobakei:ratethisapp:$ratethisappLibraryVersion"
  113. implementation 'ja.burhanrashid52:photoeditor:0.4.0'
  114. api 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
  115. implementation "net.gotev:uploadservice:$uploadServiceVersion"
  116. implementation "net.gotev:uploadservice-okhttp:$uploadServiceVersion"
  117. implementation "info.guardianproject.netcipher:netcipher:$netCipherVersion"
  118. implementation "info.guardianproject.netcipher:netcipher-okhttp3:$netCipherVersion"
  119. implementation 'com.github.adrielcafe:AndroidAudioRecorder:0.3.0'
  120. implementation 'yogesh.firzen:MukkiyaSevaigal:1.0.6'
  121. implementation 'com.iceteck.silicompressorr:silicompressor:2.2.2'
  122. implementation "ch.acra:acra-mail:$acraVersion"
  123. implementation "ch.acra:acra-limiter:$acraVersion"
  124. implementation "ch.acra:acra-notification:$acraVersion"
  125. implementation 'com.github.stom79:Android-WYSIWYG-Editor:3.2.1'
  126. implementation 'com.github.duanhong169:colorpicker:1.1.6'
  127. implementation 'com.github.penfeizhou.android.animation:apng:1.1.0'
  128. implementation 'com.github.penfeizhou.android.animation:gif:1.1.0'
  129. implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  130. implementation 'com.github.smarteist:autoimageslider:1.3.2'
  131. //debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-2'
  132. implementation 'com.jaredrummler:cyanea:1.0.2'
  133. }