mirror of https://github.com/kurisufriend/Clover
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.6 KiB
102 lines
2.6 KiB
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 24
|
|
// update the travis config when changing this
|
|
buildToolsVersion '24.0.0'
|
|
|
|
defaultConfig {
|
|
applicationId "org.floens.chan"
|
|
minSdkVersion 15
|
|
targetSdkVersion 24
|
|
|
|
versionName "v2.1.3"
|
|
versionCode 55
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
// Needed for volley
|
|
useLibrary 'org.apache.http.legacy'
|
|
|
|
/*
|
|
If you want to sign releases, make a file in app/keys.properties with the following content:
|
|
keystoreFile=yourkey.store
|
|
keystorePass=pass
|
|
keyAlias=alias
|
|
keyPass=pass
|
|
*/
|
|
|
|
File f = file('keys.properties')
|
|
boolean doSign = f.exists();
|
|
|
|
if (doSign) {
|
|
Properties props = new Properties()
|
|
InputStream is = new FileInputStream(f)
|
|
props.load(is)
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file(props['keystoreFile'])
|
|
storePassword props['keystorePass']
|
|
keyAlias props['keyAlias']
|
|
keyPassword props['keyPass']
|
|
}
|
|
}
|
|
|
|
is.close()
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
if (doSign) {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
minifyEnabled true
|
|
proguardFiles 'proguard.cfg'
|
|
}
|
|
|
|
debug {
|
|
versionNameSuffix " Debug"
|
|
// minifyEnabled true
|
|
// proguardFiles 'proguard.cfg'
|
|
}
|
|
}
|
|
|
|
productFlavors {
|
|
normal {
|
|
applicationId = "org.floens.chan"
|
|
resValue "string", "app_name", "Clover"
|
|
resValue "string", "app_flavor_name", ""
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
beta.java.srcDirs = ['src/release/java']
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile 'com.android.support:support-v13:24.0.0'
|
|
compile 'com.android.support:appcompat-v7:24.0.0'
|
|
compile 'com.android.support:recyclerview-v7:24.0.0'
|
|
compile 'com.android.support:cardview-v7:24.0.0'
|
|
compile 'com.android.support:support-annotations:24.0.0'
|
|
compile 'com.android.support:design:24.0.0'
|
|
compile 'com.android.support:customtabs:24.0.0'
|
|
|
|
compile 'org.jsoup:jsoup:1.9.2'
|
|
compile 'com.j256.ormlite:ormlite-core:4.48'
|
|
compile 'com.j256.ormlite:ormlite-android:4.48'
|
|
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.16'
|
|
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
|
|
compile 'com.squareup.okhttp3:okhttp:3.4.1'
|
|
compile 'de.greenrobot:eventbus:2.4.0'
|
|
}
|
|
|