1 // Top-level build file where you can add configuration options common to all
2 // sub-projects/modules.
8 classpath 'com.android.tools.build:gradle:2.3.3'
12 apply plugin: 'com.android.application'
18 url 'https://maven.google.com'
28 supportLibVersion = '27.0.2'
32 compile project(':libs:MemorizingTrustManager')
33 playstoreCompile 'com.google.android.gms:play-services-gcm:11.6.2'
34 compile 'org.sufficientlysecure:openpgp-api:10.0'
35 compile 'com.soundcloud.android:android-crop:1.0.1@aar'
36 compile "com.android.support:support-v13:$supportLibVersion"
37 compile "com.android.support:appcompat-v7:$supportLibVersion"
38 compile "com.android.support:support-emoji:$supportLibVersion"
39 freeCompile "com.android.support:support-emoji-bundled:$supportLibVersion"
40 compile 'org.bouncycastle:bcmail-jdk15on:1.52'
41 compile 'org.jitsi:org.otr4j:0.22'
42 compile 'org.gnu.inet:libidn:1.15'
43 compile 'com.google.zxing:core:3.2.1'
44 compile 'com.google.zxing:android-integration:3.2.1'
45 compile 'de.measite.minidns:minidns-hla:0.2.4'
46 compile 'de.timroes.android:EnhancedListView:0.3.4'
47 compile 'me.leolin:ShortcutBadger:1.1.19@aar'
48 compile 'com.kyleduo.switchbutton:library:1.2.8'
49 compile 'org.whispersystems:signal-protocol-java:2.6.2'
50 compile 'com.makeramen:roundedimageview:2.3.0'
51 compile "com.wefika:flowlayout:0.4.1"
52 compile 'net.ypresto.androidtranscoder:android-transcoder:0.2.0'
57 travisBuild = System.getenv("TRAVIS") == "true"
58 preDexEnabled = System.getProperty("pre-dex", "true")
63 buildToolsVersion "26.0.2"
70 archivesBaseName += "-$versionName"
71 applicationId "eu.siacs.conversations"
75 // Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
76 preDexLibraries = preDexEnabled && !travisBuild
81 sourceCompatibility JavaVersion.VERSION_1_7
82 targetCompatibility JavaVersion.VERSION_1_7
91 if(new File("signing.properties").exists()) {
92 Properties props = new Properties()
93 props.load(new FileInputStream(file("signing.properties")))
97 storeFile file(props['keystore'])
98 storePassword props['keystore.password']
99 keyAlias props['keystore.alias']
100 keyPassword props['keystore.password']
103 buildTypes.release.signingConfig = signingConfigs.release
107 disable 'MissingTranslation', 'InvalidPackage', 'MissingQuantity', 'AppCompatResource'
113 if (getPlugins().hasPlugin('android') ||
114 getPlugins().hasPlugin('android-library')) {
116 configure(android.lintOptions) {
117 disable 'AndroidGradlePluginVersion', 'MissingTranslation'
125 exclude 'META-INF/BCKEY.DSA'
126 exclude 'META-INF/BCKEY.SF'