Pix-Art Messenger basiert auf Conversations und ist ein Open Source XMPP/Jabber Messenger für Android 4.1+ https://jabber.pix-art.de
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.
 
 
 

218 lines
7.8 KiB

  1. // Top-level build file where you can add configuration options common to all
  2. // sub-projects/modules.
  3. buildscript {
  4. repositories {
  5. google()
  6. jcenter()
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:4.0.1'
  10. }
  11. }
  12. apply plugin: 'com.android.application'
  13. allprojects {
  14. repositories {
  15. google()
  16. jcenter()
  17. mavenCentral()
  18. maven { url "https://jitpack.io" }
  19. maven { url "https://raw.github.com/abdularis/libwebrtc-android/repo/" }
  20. }
  21. }
  22. repositories {
  23. google()
  24. jcenter()
  25. mavenCentral()
  26. maven { url "https://jitpack.io" }
  27. maven { url "https://raw.github.com/abdularis/libwebrtc-android/repo/" }
  28. }
  29. configurations {
  30. playstoreImplementation
  31. gitImplementation
  32. compile.exclude group: 'org.jetbrains' , module:'annotations'
  33. }
  34. dependencies {
  35. implementation project(':libs:android-transcoder')
  36. playstoreImplementation('com.google.firebase:firebase-messaging:20.1.3') { ///higher versions are causing crashes due to missing project IDs
  37. exclude group: 'com.google.firebase', module: 'firebase-core'
  38. exclude group: 'com.google.firebase', module: 'firebase-analytics'
  39. exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
  40. }
  41. playstoreImplementation 'com.android.installreferrer:installreferrer:2.1'
  42. implementation 'org.sufficientlysecure:openpgp-api:10.0'
  43. implementation('com.theartofdev.edmodo:android-image-cropper:2.8.0') {
  44. exclude group: 'com.android.support', module: 'appcompat-v7'
  45. exclude group: 'com.android.support', module: 'exifinterface'
  46. }
  47. implementation 'org.bouncycastle:bcmail-jdk15on:1.64'
  48. implementation 'org.gnu.inet:libidn:1.15'
  49. implementation 'com.google.zxing:core:3.3.3' // > 3.3.x not working below SDK 24
  50. implementation 'de.measite.minidns:minidns-hla:0.2.4'
  51. implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
  52. implementation 'org.whispersystems:signal-protocol-java:2.6.2'
  53. implementation 'com.makeramen:roundedimageview:2.3.0'
  54. implementation 'jetty:javax.servlet:5.1.12'
  55. implementation 'com.google.code.gson:gson:2.8.6'
  56. implementation 'androidx.multidex:multidex:2.0.1'
  57. implementation 'androidx.legacy:legacy-support-v13:1.0.0'
  58. implementation 'androidx.appcompat:appcompat:1.1.0'
  59. implementation 'androidx.exifinterface:exifinterface:1.2.0'
  60. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  61. implementation 'androidx.emoji:emoji:1.1.0'
  62. gitImplementation 'androidx.emoji:emoji-appcompat:1.1.0'
  63. gitImplementation 'androidx.emoji:emoji-bundled:1.1.0'
  64. implementation 'com.google.android.material:material:1.0.0' // higher versions cause strange fab design
  65. implementation 'androidx.cardview:cardview:1.0.0' // for compatibility
  66. implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'
  67. implementation 'com.google.android.exoplayer:exoplayer-core:2.11.7'
  68. implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.7'
  69. implementation 'pub.devrel:easypermissions:3.0.0' // version >= 3.0.0 needs android X libraries
  70. implementation 'com.wefika:flowlayout:0.4.1'
  71. implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
  72. implementation 'org.jxmpp:jxmpp-jid:0.6.4'
  73. implementation 'org.hsluv:hsluv:0.2'
  74. implementation 'org.conscrypt:conscrypt-android:2.2.1'
  75. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15' // 1.2.15 is last working version for minSDK 16
  76. implementation 'me.drakeet.support:toastcompat:1.1.0'
  77. implementation 'org.osmdroid:osmdroid-android:6.1.5'
  78. implementation 'com.leinardi.android:speed-dial:3.1.1' // version >= 3.0.0 needs android X libraries
  79. implementation 'com.squareup.picasso:picasso:2.71828'
  80. implementation 'com.squareup.okhttp3:okhttp:3.12.11' // versions > 3.12.x don't support API level < 21 anymore
  81. implementation 'com.squareup.retrofit2:retrofit:2.6.4' //retrofit needs to stick with 2.6.x (https://github.com/square/retrofit/blob/master/CHANGELOG.md)
  82. implementation 'com.squareup.retrofit2:converter-gson:2.6.4'
  83. implementation 'com.google.guava:guava:28.2-android'
  84. implementation 'com.github.AppIntro:AppIntro:6.0.0'
  85. implementation fileTree(include: ['libwebrtc-m85.aar'], dir: 'libs')
  86. }
  87. ext {
  88. travisBuild = System.getenv("TRAVIS") == "true"
  89. preDexEnabled = System.getProperty("pre-dex", "true")
  90. }
  91. android {
  92. compileSdkVersion 29
  93. defaultConfig {
  94. minSdkVersion 16
  95. targetSdkVersion 29
  96. versionCode 306
  97. versionName "2.5.2"
  98. //versionNameSuffix " beta_(2020-07-15)" // " beta_(XXXX-XX-XX)" // activate for beta versions
  99. //resConfigs "en"
  100. archivesBaseName += "-$versionName"
  101. //archivesBaseName += "$versionNameSuffix" // activate for beta versions
  102. applicationId "de.pixart.messenger"
  103. multiDexEnabled true
  104. buildConfigField("String", "LOGTAG", '"Pix-Art_Messenger"')
  105. buildConfigField("String", "DOMAIN_LOCK", 'null')
  106. buildConfigField("String", "MAGIC_CREATE_DOMAIN", '"blabber.im"')
  107. buildConfigField("boolean", "SHOW_INTRO", 'true')
  108. buildConfigField("String", "UPDATE_URL", '"https://xmpp.pix-art.de/Pix-Art_Messenger/update/"')
  109. resValue "string", "applicationId", applicationId
  110. resValue "string", "app_name", "Pix-Art Messenger"
  111. }
  112. dataBinding {
  113. enabled true
  114. }
  115. packagingOptions {
  116. //X86
  117. exclude "lib/x86/**"
  118. //X86_64
  119. exclude "lib/x86_64/**"
  120. //armeabi
  121. //exclude "lib/armeabi/**"
  122. }
  123. dexOptions {
  124. // Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
  125. preDexLibraries = preDexEnabled && !travisBuild
  126. javaMaxHeapSize "4g"
  127. jumboMode true
  128. }
  129. compileOptions {
  130. sourceCompatibility JavaVersion.VERSION_1_8
  131. targetCompatibility JavaVersion.VERSION_1_8
  132. }
  133. flavorDimensions("distribution")
  134. productFlavors {
  135. playstore {
  136. dimension "distribution"
  137. versionNameSuffix "-playstore"
  138. }
  139. git {
  140. dimension "distribution"
  141. }
  142. }
  143. if (project.hasProperty('mStoreFile') &&
  144. project.hasProperty('mStorePassword') &&
  145. project.hasProperty('mKeyAlias') &&
  146. project.hasProperty('mKeyPassword')) {
  147. signingConfigs {
  148. release {
  149. storeFile file(mStoreFile)
  150. storePassword mStorePassword
  151. keyAlias mKeyAlias
  152. keyPassword mKeyPassword
  153. }
  154. }
  155. buildTypes {
  156. release {
  157. debuggable false
  158. signingConfig = signingConfigs.release
  159. minifyEnabled true
  160. shrinkResources true
  161. runProguard true
  162. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  163. }
  164. debug {
  165. debuggable true
  166. buildTypes.release.signingConfig = null
  167. minifyEnabled true
  168. shrinkResources true
  169. runProguard true
  170. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  171. }
  172. }
  173. }
  174. lintOptions {
  175. disable 'ExtraTranslation', 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource', 'RestrictedApi'
  176. //abortOnError false
  177. }
  178. subprojects {
  179. afterEvaluate {
  180. if (getPlugins().hasPlugin('android') ||
  181. getPlugins().hasPlugin('android-library')) {
  182. configure(android.lintOptions) {
  183. disable 'AndroidGradlePluginVersion', 'MissingTranslation'
  184. }
  185. }
  186. }
  187. }
  188. packagingOptions {
  189. exclude 'META-INF/BCKEY.DSA'
  190. exclude 'META-INF/BCKEY.SF'
  191. }
  192. }