Telegram-Android/TMessagesProj/build.gradle

122 lines
2.9 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
2013-10-25 17:19:00 +02:00
repositories {
mavenCentral()
}
dependencies {
2016-04-22 15:49:00 +02:00
compile 'com.android.support:support-v4:23.3.0'
compile "com.google.android.gms:play-services-gcm:8.4.0"
compile "com.google.android.gms:play-services-maps:8.4.0"
2015-11-26 22:04:02 +01:00
compile 'net.hockeyapp.android:HockeySDK:3.6.+'
2014-07-11 15:54:17 +02:00
compile 'com.googlecode.mp4parser:isoparser:1.0.+'
2013-10-25 17:19:00 +02:00
}
android {
2015-10-29 18:10:07 +01:00
compileSdkVersion 23
2016-04-22 15:49:00 +02:00
buildToolsVersion '23.0.3'
2015-09-24 22:52:02 +02:00
2015-10-29 18:10:07 +01:00
useLibrary 'org.apache.http.legacy'
defaultConfig.applicationId = "org.telegram.messenger"
2015-10-29 18:10:07 +01:00
2015-01-02 23:15:07 +01:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
2013-12-20 20:25:49 +01:00
signingConfigs {
debug {
2015-11-26 22:04:02 +01:00
storeFile file("config/release.keystore")
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
2013-12-20 20:25:49 +01:00
}
release {
storeFile file("config/release.keystore")
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
2013-12-20 20:25:49 +01:00
}
}
buildTypes {
debug {
debuggable true
2014-11-10 12:05:22 +01:00
jniDebuggable true
2013-12-20 20:25:49 +01:00
signingConfig signingConfigs.debug
2015-11-26 22:04:02 +01:00
applicationIdSuffix ".beta"
2013-12-20 20:25:49 +01:00
}
release {
debuggable false
2014-11-10 12:05:22 +01:00
jniDebuggable false
2013-12-20 20:25:49 +01:00
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2013-12-20 20:25:49 +01:00
}
foss {
debuggable false
2014-11-10 12:05:22 +01:00
jniDebuggable false
signingConfig signingConfigs.release
}
}
2016-04-22 15:49:00 +02:00
defaultConfig.versionCode = 787
2016-03-16 13:26:32 +01:00
sourceSets.main {
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
}
2014-11-21 20:36:21 +01:00
sourceSets.debug {
manifest.srcFile 'config/debug/AndroidManifest.xml'
}
sourceSets.release {
manifest.srcFile 'config/release/AndroidManifest.xml'
}
sourceSets.foss {
manifest.srcFile 'config/foss/AndroidManifest.xml'
2013-12-20 20:25:49 +01:00
}
2013-10-25 17:19:00 +02:00
2016-03-16 13:26:32 +01:00
productFlavors {
x86 {
ndk {
abiFilter "x86"
}
versionCode = 2
}
arm {
ndk {
abiFilter "armeabi"
}
versionCode = 0
}
armv7 {
ndk {
abiFilter "armeabi-v7a"
}
versionCode = 1
}
fat {
versionCode = 3
}
}
applicationVariants.all { variant ->
def abiVersion = variant.productFlavors.get(0).versionCode
variant.mergedFlavor.versionCode = defaultConfig.versionCode * 10 + abiVersion;
}
2013-10-25 17:19:00 +02:00
defaultConfig {
minSdkVersion 9
2015-10-29 18:10:07 +01:00
targetSdkVersion 23
2016-04-22 15:49:00 +02:00
versionName "3.8.1"
2013-10-25 17:19:00 +02:00
}
}
2016-04-22 15:49:00 +02:00
apply plugin: 'com.google.gms.google-services'