UniPatcher/app/build.gradle
2017-01-12 21:32:55 +03:00

90 lines
2.8 KiB
Groovy

def versionMajor = 0
def versionMinor = 11
def versionPatch = 0
def versionBuild = 0
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
signingConfigs {
release
}
defaultConfig {
applicationId "org.emunix.unipatcher"
minSdkVersion 14
targetSdkVersion 25
versionCode versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
externalNativeBuild {
cmake {
cppFlags ""
arguments "-DANDROID_PLATFORM=android-14"
}
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFile './proguard-android.txt'
signingConfig signingConfigs.release
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
}
def Properties props = new Properties()
def propFile = file('../../signing.properties')
if (propFile.canRead()){
props.load(new FileInputStream(propFile))
if (props!=null && props.containsKey('STORE_FILE') && props.containsKey('STORE_PASSWORD') &&
props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {
println 'RELEASE BUILD SIGNING'
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
} else {
println 'RELEASE BUILD NOT FOUND SIGNING PROPERTIES'
android.buildTypes.release.signingConfig = null
}
} else {
println 'RELEASE BUILD NOT FOUND SIGNING FILE'
android.buildTypes.release.signingConfig = null
}
dependencies {
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.2.28'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:25.1.0'
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:cardview-v7:25.1.0'
compile 'com.android.support:preference-v14:25.1.0'
compile 'com.android.support:recyclerview-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
compile 'com.google.firebase:firebase-ads:10.0.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-crash:10.0.1'
compile 'com.anjlab.android.iab.v3:library:1.0.36'
compile 'commons-io:commons-io:2.5'
compile 'org.sufficientlysecure:html-textview:3.0'
compile 'org.commonjava.googlecode.markdown4j:markdown4j:2.2-cj-1.1'
compile 'com.afollestad.material-dialogs:core:0.9.1.0'
}
apply plugin: 'com.google.gms.google-services'