PlayerAndroid/app/build.gradle

168 lines
6.0 KiB
Groovy
Raw Normal View History

2018-07-27 13:07:33 +00:00
apply plugin: 'com.android.application'
2018-11-28 07:48:19 +00:00
apply plugin: 'kotlin-android'
2018-11-30 01:06:16 +00:00
apply plugin: 'kotlin-android-extensions'
2018-12-12 21:02:14 +00:00
apply plugin: 'kotlin-kapt'
2018-07-27 13:07:33 +00:00
2018-12-10 15:28:13 +00:00
static def gitBranch() {
def branch = 'GitHub'
try {
def gitcheck = 'command -v git >/dev/null 2>&1'.execute()
gitcheck.waitFor()
if (gitcheck.exitValue() == 0) {
def proc = 'git rev-parse --abbrev-ref HEAD'.execute()
proc.in.eachLine { line -> branch = line }
proc.err.eachLine { line -> println line }
proc.waitFor()
}
} catch (Exception e) {
// Do nothing
println e
}
branch
}
2018-07-27 13:07:33 +00:00
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
2018-12-26 17:31:39 +00:00
renderscriptTargetApi 28 //must match target sdk and build tools
2018-07-27 13:07:33 +00:00
vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic"
versionCode 326
versionName '3.1.800'
2018-07-27 13:07:33 +00:00
multiDexEnabled true
2018-12-09 06:38:34 +00:00
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
2018-07-27 13:07:33 +00:00
}
2018-08-30 09:29:30 +00:00
signingConfigs {
release {
Properties properties = getProperties('/Users/hemanths/Desktop/KeepSafe/retro.properties')
storeFile file(getProperty(properties, 'storeFile'))
keyAlias getProperty(properties, 'keyAlias')
storePassword getProperty(properties, 'storePassword')
keyPassword getProperty(properties, 'keyPassword')
}
}
2018-07-27 13:07:33 +00:00
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2018-08-30 09:29:30 +00:00
resValue "string", "cast_app_id", "BA9C3F5E"
signingConfig signingConfigs.release
2018-07-27 13:07:33 +00:00
}
debug {
applicationIdSuffix '.debug'
2018-12-10 15:28:13 +00:00
versionNameSuffix ' DEBUG (' + gitBranch() + ')'
2018-08-22 17:54:07 +00:00
resValue "string", "cast_app_id", "BA9C3F5E"
2018-08-30 09:29:30 +00:00
2018-07-27 13:07:33 +00:00
}
}
2018-08-30 09:29:30 +00:00
2018-07-27 13:07:33 +00:00
flavorDimensions "default"
2018-11-05 13:53:07 +00:00
2018-07-27 13:07:33 +00:00
productFlavors {
normal {
versionCode defaultConfig.versionCode + 10000
versionName defaultConfig.versionName + "_" + getDate()
dimension "default"
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/rxjava.properties'
}
lintOptions {
disable 'MissingTranslation'
disable 'InvalidPackage'
abortOnError false
}
compileOptions {
2019-03-25 12:43:43 +00:00
sourceCompatibility '1.8'
targetCompatibility '1.8'
2018-07-27 13:07:33 +00:00
}
2018-08-30 09:29:30 +00:00
2018-07-27 13:07:33 +00:00
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
2019-03-04 03:55:09 +00:00
androidExtensions {
experimental = true
}
2018-11-05 13:53:07 +00:00
2018-07-27 13:07:33 +00:00
}
def getProperties(String fileName) {
2018-07-29 17:17:52 +00:00
final Properties properties = new Properties()
2018-07-27 13:07:33 +00:00
def file = file(fileName)
if (file.exists()) {
file.withInputStream { stream -> properties.load(stream) }
}
return properties
}
static def getProperty(Properties properties, String name) {
return properties.getProperty(name) ?: "$name missing"
}
static def getDate() {
2018-08-08 08:03:38 +00:00
new Date().format('MMdd')
2018-07-27 13:07:33 +00:00
}
2018-09-09 19:44:46 +00:00
2018-07-27 13:07:33 +00:00
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.multidex:multidex:2.0.1'
2019-05-17 04:21:22 +00:00
implementation 'androidx.fragment:fragment:1.1.0-alpha09'
2019-05-08 08:41:23 +00:00
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
2019-05-16 08:02:15 +00:00
implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha05'
2019-03-25 12:43:43 +00:00
implementation "androidx.gridlayout:gridlayout:1.0.0"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.palette:palette:1.0.0"
2019-05-16 08:02:15 +00:00
implementation 'androidx.annotation:annotation:1.1.0-rc01'
2019-05-08 08:41:23 +00:00
implementation 'androidx.preference:preference:1.1.0-alpha05'
2019-03-25 12:43:43 +00:00
implementation "androidx.legacy:legacy-support-v13:1.0.0"
implementation "androidx.legacy:legacy-preference-v14:1.0.0"
2019-06-03 15:15:48 +00:00
implementation 'com.google.android.material:material:1.1.0-alpha07'
2019-03-04 03:55:09 +00:00
implementation 'androidx.palette:palette-ktx:1.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
2019-05-08 08:41:23 +00:00
implementation 'com.afollestad.material-dialogs:core:3.0.0-alpha1'
implementation 'com.afollestad.material-dialogs:input:3.0.0-alpha1'
implementation 'com.afollestad.material-dialogs:color:3.0.0-alpha1'
implementation 'com.afollestad.material-dialogs:bottomsheets:3.0.0-alpha1'
2018-07-27 13:07:33 +00:00
implementation 'com.afollestad:material-cab:0.1.12'
2018-12-12 21:02:14 +00:00
implementation 'com.github.bumptech.glide:glide:4.8.0'
2019-03-25 12:43:43 +00:00
kapt 'com.github.bumptech.glide:compiler:4.8.0'
2018-12-12 21:02:14 +00:00
implementation 'com.github.bumptech.glide:okhttp3-integration:4.8.0'
2019-03-04 03:55:09 +00:00
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
2019-04-10 10:31:47 +00:00
implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
2018-07-27 13:07:33 +00:00
implementation('com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.11.0@aar') {
transitive = true
}
implementation 'com.github.ksoichiro:android-observablescrollview:1.6.0'
2018-11-05 13:53:07 +00:00
implementation 'com.github.kabouzeid:RecyclerView-FastScroll:1.0.16-kmod'
2018-07-27 13:07:33 +00:00
implementation 'com.anjlab.android.iab.v3:library:1.0.44'
/*UI Library*/
2019-03-25 12:43:43 +00:00
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
2018-07-27 13:07:33 +00:00
implementation 'com.r0adkll:slidableactivity:2.0.6'
/*Backend all*/
2019-04-09 17:29:48 +00:00
implementation 'com.github.kabouzeid:AndroidSlidingUpPanel:3.3.0-kmod3'
2018-07-27 13:58:24 +00:00
implementation 'com.github.AdrienPoupa:jaudiotagger:2.2.3'
2018-08-22 17:54:07 +00:00
implementation 'org.nanohttpd:nanohttpd:2.3.1'
2019-03-04 03:55:09 +00:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
2019-03-25 12:43:43 +00:00
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:3.4.0.201406110918-r'
2018-12-09 06:38:34 +00:00
implementation 'com.github.jetradarmobile:android-snowfall:1.2.0'
2019-01-02 03:55:55 +00:00
implementation 'com.github.takahirom.downloadable.calligraphy:downloadable-calligraphy:0.1.3'
2019-03-25 12:43:43 +00:00
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
2019-03-04 03:55:09 +00:00
implementation project(':appthemehelper')
2018-07-27 13:07:33 +00:00
}