NekoX/TMessagesProj/build.gradle

187 lines
5.2 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
2013-10-25 17:19:00 +02:00
repositories {
mavenCentral()
}
2016-10-11 13:57:01 +02:00
configurations {
compile.exclude module: 'support-v4'
}
2013-10-25 17:19:00 +02:00
dependencies {
2017-12-08 18:35:59 +01:00
compile 'com.google.android.gms:play-services-gcm:11.0.4'
compile 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.google.android.gms:play-services-vision:11.0.4'
compile 'com.google.android.gms:play-services-wallet:11.0.4'
compile 'com.google.android.gms:play-services-wearable:11.0.4'
2017-07-08 18:32:04 +02: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'
compile 'com.googlecode.mp4parser:isoparser:1.0.6'
2017-03-31 01:58:05 +02:00
compile 'com.stripe:stripe-android:2.0.2'
2013-10-25 17:19:00 +02:00
}
android {
2017-12-08 18:35:59 +01:00
compileSdkVersion 26
buildToolsVersion '26.0.2'
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
2016-10-11 13:57:01 +02:00
sourceSets.main.jniLibs.srcDirs = ['./jni/']
externalNativeBuild {
ndkBuild {
path "jni/Android.mk"
}
}
2017-03-31 01:58:05 +02:00
dexOptions {
jumboMode = true
}
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
2016-10-11 13:57:01 +02:00
v2SigningEnabled false
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
2016-10-11 13:57:01 +02:00
v2SigningEnabled false
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
2017-03-31 01:58:05 +02:00
shrinkResources 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
}
}
2017-12-09 01:45:38 +01:00
defaultConfig.versionCode = 1155
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
2017-12-08 18:35:59 +01:00
flavorDimensions "minApi"
2016-03-16 13:26:32 +01:00
productFlavors {
x86 {
ndk {
abiFilter "x86"
}
versionCode = 2
}
armv7 {
ndk {
abiFilter "armeabi-v7a"
}
versionCode = 1
}
2017-03-31 01:58:05 +02: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 13:26:32 +01:00
versionCode = 3
}
2017-03-31 01:58:05 +02: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 13:26:32 +01:00
}
applicationVariants.all { variant ->
2017-12-08 18:35:59 +01:00
variant.outputs.all { output ->
output.processManifest.doLast {
def abiVersion = variant.productFlavors.get(0).versionCode
String manifestPath = "$manifestOutputDirectory/AndroidManifest.xml"
def manifestContent = file(manifestPath).getText()
manifestContent = manifestContent.replace(String.format('android:versionCode="%d"', abiVersion), String.format('android:versionCode="%s"', defaultConfig.versionCode * 10 + abiVersion))
file(manifestPath).write(manifestContent)
}
}
2016-03-16 13:26:32 +01:00
}
2013-10-25 17:19:00 +02:00
defaultConfig {
2017-07-23 15:43:02 +02:00
minSdkVersion 16
2017-03-31 01:58:05 +02:00
targetSdkVersion 25
2017-12-08 18:35:59 +01:00
versionName "4.6.0"
2016-10-11 13:57:01 +02:00
externalNativeBuild {
ndkBuild {
arguments "NDK_APPLICATION_MK:=jni/Application.mk", "APP_PLATFORM:=android-14"
abiFilters "armeabi-v7a", "x86"
}
}
2013-10-25 17:19:00 +02:00
}
}
2016-04-22 15:49:00 +02:00
apply plugin: 'com.google.gms.google-services'