plus-messenger/TMessagesProj/build.gradle

131 lines
3.2 KiB
Groovy
Raw Permalink Normal View History

apply plugin: 'com.android.application'
2013-10-25 11:19:00 -04:00
repositories {
mavenCentral()
}
dependencies {
2016-05-26 05:52:53 -04: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"
2016-05-26 05:52:53 -04:00
compile 'net.hockeyapp.android:HockeySDK:4.0.0-beta.1'
2014-07-11 09:54:17 -04:00
compile 'com.googlecode.mp4parser:isoparser:1.0.+'
2013-10-25 11:19:00 -04:00
}
android {
compileSdkVersion 23
2016-05-26 05:52:53 -04:00
buildToolsVersion '23.0.3'
useLibrary 'org.apache.http.legacy'
//defaultConfig.applicationId = "org.telegram.messenger"
defaultConfig.applicationId = "org.telegram.plus"
2015-01-02 17:15:07 -05:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
2013-12-20 14:25:49 -05:00
signingConfigs {
debug {
storeFile file("config/debug.keystore")
//storeFile file("config/release.keystore")
//storePassword RELEASE_STORE_PASSWORD
//keyAlias RELEASE_KEY_ALIAS
//keyPassword RELEASE_KEY_PASSWORD
2013-12-20 14:25:49 -05:00
}
release {
storeFile file("config/release.keystore")
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
2013-12-20 14:25:49 -05:00
}
}
buildTypes {
debug {
debuggable true
2014-11-10 06:05:22 -05:00
jniDebuggable true
2013-12-20 14:25:49 -05:00
signingConfig signingConfigs.debug
applicationIdSuffix ".beta"
2013-12-20 14:25:49 -05:00
}
release {
debuggable false
2014-11-10 06:05:22 -05:00
jniDebuggable false
2015-03-02 15:03:14 -05:00
//signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2013-12-20 14:25:49 -05:00
}
foss {
debuggable false
2014-11-10 06:05:22 -05:00
jniDebuggable false
signingConfig signingConfigs.release
}
}
2016-05-26 05:52:53 -04:00
defaultConfig.versionCode = 798
defaultConfig.manifestPlaceholders = [HOCKEYAPP_APP_ID: ""]
sourceSets.main {
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
}
2014-11-21 14:36:21 -05: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 14:25:49 -05:00
}
2013-10-25 11:19:00 -04:00
2015-03-02 15:03:14 -05:00
lintOptions {
checkReleaseBuilds false
abortOnError false
}
2016-05-26 05:52:53 -04:00
productFlavors {
arm {
ndk {
abiFilter "armeabi"
}
versionCode = 0
}
armv7 {
ndk {
abiFilter "armeabi-v7a"
}
versionCode = 1
}
x86 {
ndk {
abiFilter "x86"
}
versionCode = 2
}
fat {
versionCode = 3
}
}
applicationVariants.all { variant ->
def abiVersion = variant.productFlavors.get(0).versionCode
variant.mergedFlavor.versionCode = defaultConfig.versionCode * 10 + abiVersion;
}
2013-10-25 11:19:00 -04:00
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
2016-05-26 05:52:53 -04:00
versionName "3.8.1.2"
2013-10-25 11:19:00 -04:00
}
2016-05-26 05:52:53 -04:00
}
apply plugin: 'com.google.gms.google-services'