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.
78 lines
1.8 KiB
78 lines
1.8 KiB
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 19
|
|
buildToolsVersion "21.0.2"
|
|
|
|
defaultConfig {
|
|
minSdkVersion 14
|
|
targetSdkVersion 19
|
|
|
|
versionName "v1.2.3"
|
|
versionCode 40
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
/*
|
|
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()
|
|
props.load(new FileInputStream(f))
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file(props['keystoreFile'])
|
|
storePassword props['keystorePass']
|
|
keyAlias props['keyAlias']
|
|
keyPassword props['keyPass']
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
if (doSign) {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
runProguard true
|
|
proguardFiles 'proguard.cfg'
|
|
}
|
|
|
|
beta.initWith(buildTypes.release)
|
|
beta {
|
|
versionNameSuffix " Beta"
|
|
}
|
|
|
|
debug {
|
|
versionNameSuffix " Debug"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
beta.java.srcDirs = ['src/release/java']
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile 'org.jsoup:jsoup:1.7.3'
|
|
compile 'com.j256.ormlite:ormlite-core:4.48'
|
|
compile 'com.j256.ormlite:ormlite-android:4.48'
|
|
compile 'com.android.support:support-v13:18.0.+'
|
|
compile 'com.koushikdutta.ion:ion:1.+'
|
|
compile 'pl.droidsonroids.gif:android-gif-drawable:1.0.+'
|
|
|
|
compile files('libs/httpclientandroidlib-1.2.1.jar')
|
|
}
|
|
|