|
1 | 1 | apply plugin: 'com.android.application' |
| 2 | +apply plugin: 'com.neenbedankt.android-apt' |
| 3 | +apply plugin: 'realm-android' |
| 4 | +apply plugin: 'com.frogermcs.androiddevmetrics' |
2 | 5 |
|
3 | 6 | android { |
4 | | - compileSdkVersion 23 |
5 | | - buildToolsVersion "23.0.2" |
| 7 | + compileSdkVersion 25 |
| 8 | + buildToolsVersion "25.0.2" |
6 | 9 |
|
7 | 10 | defaultConfig { |
8 | | - minSdkVersion 14 |
9 | | - targetSdkVersion 23 |
10 | | - versionCode 247 |
11 | | - versionName '1.0.74' |
12 | | - } |
13 | | - |
14 | | - compileOptions { |
15 | | - sourceCompatibility JavaVersion.VERSION_1_7 |
16 | | - targetCompatibility JavaVersion.VERSION_1_7 |
| 11 | + minSdkVersion 15 |
| 12 | + targetSdkVersion 25 |
| 13 | + versionCode 340 |
| 14 | + versionName '1.0.168' |
17 | 15 | } |
18 | 16 |
|
19 | 17 | lintOptions { |
20 | 18 | // problems with generated "applicationId" string resource |
21 | 19 | disable 'MissingTranslation' |
| 20 | + disable 'InvalidPackage' |
| 21 | + |
| 22 | + abortOnError false |
22 | 23 | } |
23 | 24 |
|
24 | | - dexOptions { |
25 | | - incremental true |
| 25 | + subprojects { |
| 26 | + afterEvaluate { |
| 27 | + if (getPlugins().hasPlugin('android') || |
| 28 | + getPlugins().hasPlugin('android-library')) { |
| 29 | + |
| 30 | + configure(android.lintOptions) { |
| 31 | + abortOnError false |
| 32 | + |
| 33 | + } |
| 34 | + } |
| 35 | + } |
26 | 36 | } |
27 | 37 |
|
28 | 38 | productFlavors { |
29 | 39 |
|
30 | 40 | dev { |
31 | 41 | applicationId "com.xabber.androiddev" |
32 | 42 | resValue 'string', 'application_package', applicationId |
| 43 | + multiDexEnabled true |
33 | 44 | } |
34 | 45 |
|
35 | 46 | beta { |
36 | 47 | applicationId "com.xabber.android.beta" |
37 | 48 | resValue 'string', 'application_package', applicationId |
| 49 | + multiDexEnabled true |
38 | 50 | } |
39 | 51 |
|
40 | 52 | prod { |
41 | 53 | applicationId "com.xabber.android" |
42 | 54 | resValue 'string', 'application_package', applicationId |
| 55 | + multiDexEnabled true |
43 | 56 | } |
44 | 57 |
|
45 | 58 | vip { |
46 | 59 | applicationId "com.xabber.androidvip" |
47 | 60 | resValue 'string', 'application_package', applicationId |
| 61 | + multiDexEnabled true |
48 | 62 | } |
49 | 63 |
|
50 | 64 | } |
51 | 65 |
|
52 | 66 | buildTypes { |
53 | 67 | release { |
54 | | - minifyEnabled false |
| 68 | + minifyEnabled true |
| 69 | + shrinkResources true |
55 | 70 | proguardFiles getDefaultProguardFile('proguard-android.txt'), |
56 | 71 | 'proguard-rules.pro' |
57 | 72 | } |
58 | 73 | } |
| 74 | + |
| 75 | + splits { |
| 76 | + abi { |
| 77 | + enable true |
| 78 | + reset() |
| 79 | + include 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'mips', 'x86', 'x86_64' |
| 80 | + |
| 81 | + universalApk true |
| 82 | + } |
| 83 | + } |
59 | 84 | } |
60 | 85 |
|
61 | 86 | ext { |
62 | | - smackVersion = '4.1.5' |
| 87 | + smackVersion = '4.2.1-SNAPSHOT' |
| 88 | + supportVersion = '25.3.1' |
63 | 89 | } |
64 | 90 |
|
65 | 91 | dependencies { |
66 | | - compile 'com.android.support:design:23.1.1' |
67 | | - compile 'com.android.support:appcompat-v7:23.1.1' |
68 | | - compile 'com.android.support:support-v13:23.1.1' |
69 | | - compile 'de.hdodenhof:circleimageview:1.2.2' |
70 | | - compile 'com.melnykov:floatingactionbutton:1.2.0' |
71 | | - compile 'com.github.bumptech.glide:glide:3.6.1' |
72 | | - compile 'com.google.zxing:android-integration:3.1.0' |
73 | | - compile 'com.loopj.android:android-async-http:1.4.9' |
74 | | - compile 'com.soundcloud.android:android-crop:1.0.1@aar' |
75 | | - compile 'io.realm:realm-android:0.85.0' |
76 | | - |
77 | | - compile "org.igniterealtime.smack:smack-android-extensions:$smackVersion" |
78 | | - compile "org.igniterealtime.smack:smack-experimental:$smackVersion" |
79 | | - compile "org.igniterealtime.smack:smack-tcp:$smackVersion" |
80 | | - compile project('otr4j') |
81 | 92 | compile project('MemorizingTrustManager') |
82 | 93 | compile project('emojicon') |
| 94 | + |
| 95 | + compile "org.igniterealtime.smack:smack-android-extensions:4.2.1-20170404.010458-5" |
| 96 | + compile "org.igniterealtime.smack:smack-experimental:4.2.1-20170404.010520-5" |
| 97 | + compile "org.igniterealtime.smack:smack-tcp:4.2.1-20170404.010559-5" |
| 98 | + |
| 99 | + compile "com.android.support:design:$supportVersion" |
| 100 | + compile "com.android.support:support-v13:$supportVersion" |
| 101 | + |
| 102 | + compile 'org.jitsi:org.otr4j:0.22' |
| 103 | + compile 'com.google.zxing:android-integration:3.3.0' |
| 104 | + |
| 105 | + compile 'com.github.bumptech.glide:glide:3.7.0' |
| 106 | + compile 'com.squareup.okhttp3:okhttp:3.5.0' |
| 107 | + compile 'org.greenrobot:eventbus:3.0.0' |
| 108 | + |
| 109 | + compile 'com.soundcloud.android:android-crop:1.0.1@aar' |
| 110 | + compile 'de.hdodenhof:circleimageview:2.1.0' |
| 111 | + compile 'com.melnykov:floatingactionbutton:1.3.0' |
| 112 | +} |
| 113 | + |
| 114 | +configurations { |
| 115 | + all*.exclude group: 'xpp3', module: 'xpp3' |
83 | 116 | } |
0 commit comments