152 lines
5.2 KiB
Groovy
152 lines
5.2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url 'https://maven.fabric.io/public' }
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
//noinspection GradleDynamicVersion
|
|
classpath 'io.fabric.tools:gradle:1.+'
|
|
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'io.fabric'
|
|
apply plugin: 'com.jakewharton.hugo'
|
|
apply plugin: 'com.github.triplet.play'
|
|
apply plugin: 'android-apt'
|
|
|
|
repositories {
|
|
maven { url 'https://maven.fabric.io/public' }
|
|
maven { url "https://jitpack.io" }
|
|
}
|
|
|
|
// For pushing APKs directly to Google Play. Won't work without the .p12 key.
|
|
play {
|
|
serviceAccountEmail = '992499570703-v2bp8sl246qm0tblmfv4s45v6njhdfr2@developer.gserviceaccount.com'
|
|
pk12File = file('../privatekeys/play-developer-key.p12')
|
|
track = 'beta'
|
|
}
|
|
|
|
android {
|
|
signingConfigs {
|
|
debug {
|
|
keyAlias 'phonograph-debug'
|
|
keyPassword 'debugkey'
|
|
storeFile file('../phonograph.keystore')
|
|
storePassword 'kabouzeid'
|
|
}
|
|
release {
|
|
keyAlias 'phonograph'
|
|
storeFile file('../phonograph.keystore')
|
|
storePassword 'kabouzeid'
|
|
|
|
// "keystore.properties" file containing the release keys password is needed in order to sign the apk for release
|
|
File propFile = project.rootProject.file('privatekeys/keystore.properties')
|
|
if (propFile.exists()) {
|
|
Properties properties = new Properties()
|
|
properties.load(propFile.newDataInputStream())
|
|
|
|
keyPassword properties.getProperty('keyPassword')
|
|
} else {
|
|
println 'keystore.properties not found'
|
|
keyPassword null
|
|
}
|
|
}
|
|
}
|
|
compileSdkVersion 24
|
|
buildToolsVersion '24.0.2'
|
|
defaultConfig {
|
|
minSdkVersion 16
|
|
targetSdkVersion 24
|
|
|
|
renderscriptTargetApi 24
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
applicationId "com.kabouzeid.gramophone"
|
|
versionCode 121
|
|
versionName "0.13.3-2"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
}
|
|
debug {
|
|
applicationIdSuffix '.debug'
|
|
versionNameSuffix ' DEBUG'
|
|
|
|
ext.enableCrashlytics = false // Disable fabric build ID generation for debug builds
|
|
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/NOTICE'
|
|
}
|
|
lintOptions {
|
|
disable 'MissingTranslation'
|
|
disable 'InvalidPackage'
|
|
abortOnError false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
|
|
transitive = true
|
|
}
|
|
|
|
compile('com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.9.3@aar') {
|
|
transitive = true
|
|
}
|
|
|
|
compile('com.github.kabouzeid:app-theme-helper:1.3.1@aar') {
|
|
transitive = true
|
|
}
|
|
|
|
compile 'com.android.support:support-compat:24.2.1'
|
|
compile 'com.android.support:support-core-utils:24.2.1'
|
|
compile 'com.android.support:support-core-ui:24.2.1'
|
|
compile 'com.android.support:support-media-compat:24.2.1'
|
|
compile 'com.android.support:support-fragment:24.2.1'
|
|
compile 'com.android.support:support-v13:24.2.1'
|
|
compile 'com.android.support:appcompat-v7:24.2.1'
|
|
compile 'com.android.support:recyclerview-v7:24.2.1'
|
|
compile 'com.android.support:gridlayout-v7:24.2.1'
|
|
compile 'com.android.support:cardview-v7:24.2.1'
|
|
compile 'com.android.support:palette-v7:24.2.1'
|
|
compile 'com.android.support:design:24.2.1'
|
|
compile 'com.android.support:support-annotations:24.2.1'
|
|
compile 'com.android.support:percent:24.2.1'
|
|
compile 'com.android.support:preference-v7:24.2.1'
|
|
compile 'com.android.support:preference-v14:24.2.1'
|
|
|
|
compile 'com.afollestad.material-dialogs:core:0.9.0.1@aar'
|
|
compile 'com.afollestad.material-dialogs:commons:0.9.0.1@aar'
|
|
compile 'com.afollestad:material-cab:0.1.12@aar'
|
|
|
|
compile 'com.github.ksoichiro:android-observablescrollview:1.6.0'
|
|
compile 'com.github.kabouzeid:SeekArc:1.2-kmod'
|
|
compile 'com.github.kabouzeid:AndroidSlidingUpPanel:3.3.0-kmod3'
|
|
compile 'com.squareup.retrofit2:retrofit:2.1.0'
|
|
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
|
|
//noinspection GradleDynamicVersion
|
|
compile 'com.anjlab.android.iab.v3:library:1.0.+'
|
|
compile 'de.psdev.licensesdialog:licensesdialog:1.8.1'
|
|
compile 'com.github.bumptech.glide:glide:3.7.0'
|
|
compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'
|
|
compile 'com.github.kabouzeid:RecyclerView-FastScroll:1.9-kmod'
|
|
compile 'com.heinrichreimersoftware:material-intro:1.5.7'
|
|
compile 'me.zhanghai.android.materialprogressbar:library:1.1.7'
|
|
compile 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
|
|
|
|
compile 'com.jakewharton:butterknife:8.2.1'
|
|
apt 'com.jakewharton:butterknife-compiler:8.2.1'
|
|
}
|