NekoX/TMessagesProj/build.gradle

255 lines
7.2 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
2013-10-25 17:19:00 +02:00
repositories {
mavenCentral()
2018-07-30 04:07:02 +02:00
google()
jcenter()
2013-10-25 17:19:00 +02:00
}
2016-10-11 13:57:01 +02:00
configurations {
compile.exclude module: 'support-v4'
}
2013-10-25 17:19:00 +02:00
dependencies {
2018-08-27 10:33:11 +02:00
compileOnly 'org.checkerframework:checker-qual:2.5.0'
compileOnly 'org.checkerframework:checker-compat-qual:2.5.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-messaging:17.3.0'
implementation 'com.google.firebase:firebase-config:16.0.0'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-vision:15.0.2'
implementation 'com.google.android.gms:play-services-wallet:16.0.0'
implementation 'com.google.android.gms:play-services-wearable:15.0.1'
implementation 'com.android.support:support-core-ui:28.0.0-rc01'
implementation 'com.android.support:support-compat:28.0.0-rc01'
implementation 'com.android.support:support-core-utils:28.0.0-rc01'
implementation 'com.android.support:support-v13:28.0.0-rc01'
implementation 'com.android.support:palette-v7:28.0.0-rc01'
implementation 'com.android.support:exifinterface:28.0.0-rc01'
implementation 'net.hockeyapp.android:HockeySDK:5.1.0'
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
implementation 'com.stripe:stripe-android:2.0.2'
2013-10-25 17:19:00 +02:00
}
android {
2018-08-27 10:33:11 +02:00
compileSdkVersion 28
buildToolsVersion '28.0.2'
2017-12-08 18:35:59 +01:00
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"
}
}
2018-07-30 04:07:02 +02:00
lintOptions {
disable 'MissingTranslation'
disable 'ExtraTranslation'
}
2017-03-31 01:58:05 +02:00
dexOptions {
jumboMode = true
}
2015-01-02 23:15:07 +01:00
compileOptions {
2018-08-27 10:33:11 +02:00
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
2015-01-02 23:15:07 +01:00
}
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"
2018-07-30 04:07:02 +02:00
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
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
2018-07-30 04:07:02 +02:00
minifyEnabled true
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
}
}
2018-08-27 10:33:11 +02:00
defaultConfig.versionCode = 1358
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 {
2018-07-30 04:07:02 +02:00
armv7 {
ndk {
abiFilters "armeabi-v7a"
}
ext {
abiVersionCode = 1
}
}
2016-03-16 13:26:32 +01:00
x86 {
ndk {
2018-07-30 04:07:02 +02:00
abiFilters "x86"
}
ext {
abiVersionCode = 2
2016-03-16 13:26:32 +01:00
}
}
2018-07-30 04:07:02 +02:00
armv7_SDK23 {
2016-03-16 13:26:32 +01:00
ndk {
2018-07-30 04:07:02 +02:00
abiFilters "armeabi-v7a"
}
sourceSets.debug {
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
}
sourceSets.release {
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
}
minSdkVersion 23
ext {
abiVersionCode = 3
2016-03-16 13:26:32 +01:00
}
}
2017-03-31 01:58:05 +02:00
x86_SDK23 {
ndk {
2018-07-30 04:07:02 +02:00
abiFilters "x86"
2017-03-31 01:58:05 +02:00
}
sourceSets.debug {
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
}
sourceSets.release {
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
}
minSdkVersion 23
2018-07-30 04:07:02 +02:00
ext {
abiVersionCode = 4
}
2017-03-31 01:58:05 +02:00
}
2018-07-30 04:07:02 +02:00
arm64 {
2017-03-31 01:58:05 +02:00
ndk {
2018-07-30 04:07:02 +02:00
abiFilters "arm64-v8a"
}
ext {
abiVersionCode = 5
}
}
x64 {
ndk {
abiFilters "x86_64"
}
ext {
abiVersionCode = 6
}
}
arm64_SDK23 {
ndk {
abiFilters "arm64-v8a"
}
sourceSets.debug {
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
}
sourceSets.release {
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
}
minSdkVersion 23
ext {
abiVersionCode = 7
}
}
x64_SDK23 {
ndk {
abiFilters "x86_64"
2017-03-31 01:58:05 +02:00
}
sourceSets.debug {
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
}
sourceSets.release {
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
}
minSdkVersion 23
2018-07-30 04:07:02 +02:00
ext {
abiVersionCode = 8
}
2016-03-16 13:26:32 +01:00
}
2018-07-30 04:07:02 +02:00
afat {
2017-03-31 01:58:05 +02:00
sourceSets.debug {
manifest.srcFile 'config/debug/AndroidManifest_SDK23.xml'
}
sourceSets.release {
manifest.srcFile 'config/release/AndroidManifest_SDK23.xml'
}
2018-07-30 04:07:02 +02:00
ext {
abiVersionCode = 0
}
2017-03-31 01:58:05 +02:00
}
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 {
2018-07-30 04:07:02 +02:00
def abiVersion = variant.productFlavors.get(0).abiVersionCode
2017-12-08 18:35:59 +01:00
String manifestPath = "$manifestOutputDirectory/AndroidManifest.xml"
def manifestContent = file(manifestPath).getText()
2018-07-30 04:07:02 +02:00
manifestContent = manifestContent.replace(String.format('android:versionCode="%d"', defaultConfig.versionCode), String.format('android:versionCode="%s"', defaultConfig.versionCode * 10 + abiVersion))
2017-12-08 18:35:59 +01:00
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
2018-07-30 04:07:02 +02:00
targetSdkVersion 27
2018-08-27 10:33:11 +02:00
versionName "4.9.1"
2018-07-30 04:07:02 +02:00
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
2016-10-11 13:57:01 +02:00
externalNativeBuild {
ndkBuild {
2018-07-30 04:07:02 +02:00
arguments "NDK_APPLICATION_MK:=jni/Application.mk", "APP_PLATFORM:=android-16", "-j8"
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
2016-10-11 13:57:01 +02:00
}
}
2013-10-25 17:19:00 +02:00
}
}
2016-04-22 15:49:00 +02:00
apply plugin: 'com.google.gms.google-services'