2014-07-02 22:39:05 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2013-10-25 15:19:00 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2016-10-11 11:57:01 +00:00
|
|
|
configurations {
|
|
|
|
compile.exclude module: 'support-v4'
|
|
|
|
}
|
|
|
|
|
2013-10-25 15:19:00 +00:00
|
|
|
dependencies {
|
2017-07-23 13:43:02 +00:00
|
|
|
compile 'com.google.android.gms:play-services-gcm:11.0.2'
|
|
|
|
compile 'com.google.android.gms:play-services-maps:11.0.2'
|
|
|
|
compile 'com.google.android.gms:play-services-vision:11.0.2'
|
|
|
|
compile 'com.google.android.gms:play-services-wallet:11.0.2'
|
|
|
|
compile 'com.google.android.gms:play-services-wearable:11.0.2'
|
2017-07-08 16:32:04 +00:00
|
|
|
compile 'com.android.support:support-core-ui:25.3.1'
|
|
|
|
compile 'com.android.support:support-compat:25.3.1'
|
|
|
|
compile 'com.android.support:support-core-utils:25.3.1'
|
|
|
|
compile 'com.android.support:support-v13:25.3.1'
|
|
|
|
compile 'com.android.support:palette-v7:25.3.1'
|
|
|
|
compile 'net.hockeyapp.android:HockeySDK:4.1.3'
|
2016-06-24 10:27:15 +00:00
|
|
|
compile 'com.googlecode.mp4parser:isoparser:1.0.6'
|
2017-03-30 23:58:05 +00:00
|
|
|
compile 'com.stripe:stripe-android:2.0.2'
|
2013-10-25 15:19:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2017-03-30 23:58:05 +00:00
|
|
|
compileSdkVersion 25
|
|
|
|
buildToolsVersion '25.0.2'
|
2015-09-24 20:52:02 +00:00
|
|
|
|
2015-10-29 17:10:07 +00:00
|
|
|
useLibrary 'org.apache.http.legacy'
|
2016-01-11 17:19:48 +00:00
|
|
|
defaultConfig.applicationId = "org.telegram.messenger"
|
2015-10-29 17:10:07 +00:00
|
|
|
|
2016-10-11 11:57:01 +00:00
|
|
|
sourceSets.main.jniLibs.srcDirs = ['./jni/']
|
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
ndkBuild {
|
|
|
|
path "jni/Android.mk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-30 23:58:05 +00:00
|
|
|
dexOptions {
|
|
|
|
jumboMode = true
|
|
|
|
}
|
|
|
|
|
2015-01-02 22:15:07 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
2014-03-22 22:31:55 +00:00
|
|
|
|
2013-12-20 19:25:49 +00:00
|
|
|
signingConfigs {
|
|
|
|
debug {
|
2015-11-26 21:04:02 +00:00
|
|
|
storeFile file("config/release.keystore")
|
|
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
|
|
keyPassword RELEASE_KEY_PASSWORD
|
2016-10-11 11:57:01 +00:00
|
|
|
v2SigningEnabled false
|
2013-12-20 19:25:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
2014-03-22 22:31:55 +00:00
|
|
|
storeFile file("config/release.keystore")
|
|
|
|
storePassword RELEASE_STORE_PASSWORD
|
|
|
|
keyAlias RELEASE_KEY_ALIAS
|
|
|
|
keyPassword RELEASE_KEY_PASSWORD
|
2016-10-11 11:57:01 +00:00
|
|
|
v2SigningEnabled false
|
2013-12-20 19:25:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
debuggable true
|
2014-11-10 11:05:22 +00:00
|
|
|
jniDebuggable true
|
2013-12-20 19:25:49 +00:00
|
|
|
signingConfig signingConfigs.debug
|
2015-11-26 21:04:02 +00:00
|
|
|
applicationIdSuffix ".beta"
|
2013-12-20 19:25:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
|
|
|
debuggable false
|
2014-11-10 11:05:22 +00:00
|
|
|
jniDebuggable false
|
2013-12-20 19:25:49 +00:00
|
|
|
signingConfig signingConfigs.release
|
2016-01-11 17:19:48 +00:00
|
|
|
minifyEnabled false
|
2017-03-30 23:58:05 +00:00
|
|
|
shrinkResources false
|
2016-01-11 17:19:48 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2013-12-20 19:25:49 +00:00
|
|
|
}
|
2014-03-22 22:31:55 +00:00
|
|
|
|
|
|
|
foss {
|
|
|
|
debuggable false
|
2014-11-10 11:05:22 +00:00
|
|
|
jniDebuggable false
|
2014-03-22 22:31:55 +00:00
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-23 21:06:13 +00:00
|
|
|
defaultConfig.versionCode = 1043
|
2014-03-22 22:31:55 +00:00
|
|
|
|
2014-11-21 19:36:21 +00: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 19:25:49 +00:00
|
|
|
}
|
2013-10-25 15:19:00 +00:00
|
|
|
|
2016-03-16 12:26:32 +00:00
|
|
|
productFlavors {
|
|
|
|
x86 {
|
|
|
|
ndk {
|
|
|
|
abiFilter "x86"
|
|
|
|
}
|
|
|
|
versionCode = 2
|
|
|
|
}
|
|
|
|
armv7 {
|
|
|
|
ndk {
|
|
|
|
abiFilter "armeabi-v7a"
|
|
|
|
}
|
|
|
|
versionCode = 1
|
|
|
|
}
|
2017-03-30 23:58:05 +00:00
|
|
|
x86_SDK23 {
|
|
|
|
ndk {
|
|
|
|
abiFilter "x86"
|
|
|
|
}
|
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
minSdkVersion 23
|
|
|
|
versionCode = 4
|
|
|
|
}
|
|
|
|
armv7_SDK23 {
|
|
|
|
ndk {
|
|
|
|
abiFilter "armeabi-v7a"
|
|
|
|
}
|
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
minSdkVersion 23
|
2016-03-16 12:26:32 +00:00
|
|
|
versionCode = 3
|
|
|
|
}
|
2017-03-30 23:58:05 +00:00
|
|
|
fat {
|
|
|
|
sourceSets.debug {
|
|
|
|
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
sourceSets.release {
|
|
|
|
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
|
|
|
|
}
|
|
|
|
versionCode = 5
|
|
|
|
}
|
2016-03-16 12:26:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
applicationVariants.all { variant ->
|
|
|
|
def abiVersion = variant.productFlavors.get(0).versionCode
|
2017-03-30 23:58:05 +00:00
|
|
|
variant.mergedFlavor.versionCode = defaultConfig.versionCode * 10 + abiVersion
|
2016-03-16 12:26:32 +00:00
|
|
|
}
|
|
|
|
|
2013-10-25 15:19:00 +00:00
|
|
|
defaultConfig {
|
2017-07-23 13:43:02 +00:00
|
|
|
minSdkVersion 16
|
2017-03-30 23:58:05 +00:00
|
|
|
targetSdkVersion 25
|
2017-07-24 08:38:35 +00:00
|
|
|
versionName "4.2.1"
|
2016-10-11 11:57:01 +00:00
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
ndkBuild {
|
|
|
|
arguments "NDK_APPLICATION_MK:=jni/Application.mk", "APP_PLATFORM:=android-14"
|
|
|
|
abiFilters "armeabi-v7a", "x86"
|
|
|
|
}
|
|
|
|
}
|
2013-10-25 15:19:00 +00:00
|
|
|
}
|
|
|
|
}
|
2016-04-22 13:49:00 +00:00
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|