2
0
Fork 0
mirror of https://github.com/NiciDieNase/chaosflix synced 2025-03-01 05:37:10 +00:00

update build-config

This commit is contained in:
Felix 2018-12-23 19:23:05 +01:00
parent 7fcd6630ef
commit 0e8802c4aa
6 changed files with 32 additions and 11 deletions

View file

@ -54,6 +54,13 @@ android {
}
}
variantFilter { variant ->
if (variant.buildType.name == "mockRelease") {
setIgnore(true)
}
}
dataBinding {
enabled = true
}

View file

@ -19,3 +19,4 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-ignorewarnings

View file

@ -27,9 +27,8 @@ android {
useProguard false
}
release {
manifestPlaceholders = [label: appName]
minifyEnabled true
useProguard true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
// signingConfig signingConfigs.config
@ -41,6 +40,12 @@ android {
mock {}
}
variantFilter { variant ->
if (variant.buildType.name == "mockRelease") {
setIgnore(true)
}
}
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
@ -67,7 +72,6 @@ android {
configurations {
mockDebugCompile
prodDebugCompile
mockReleaseCompile
prodReleaseCompile
}

View file

@ -66,4 +66,5 @@
-keepclassmembers public class com.cypressworks.kotlinreflectionproguard.** {
public *;
}
}
-ignorewarnings

View file

@ -15,7 +15,7 @@ android {
manifestPlaceholders = [label: appName]
// odd for touch, even for leanback
versionCode 27
versionName "0.3.0"
versionName "0.4"
// multiDexEnabled true
}
buildTypes {
@ -27,9 +27,9 @@ android {
}
release {
shrinkResources true
minifyEnabled true
useProguard true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
@ -42,6 +42,12 @@ android {
mock {}
}
variantFilter { variant ->
if (variant.buildType.name == "mockRelease") {
setIgnore(true)
}
}
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
@ -49,26 +55,28 @@ android {
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
abortOnError false
}
dataBinding {
enabled = true
}
buildToolsVersion rootProject.ext.buildToolsVersion
}
configurations {
mockDebugCompile
prodDebugCompile
mockReleaseCompile
prodReleaseCompile
}
@ -90,7 +98,7 @@ dependencies {
implementation "com.android.support:mediarouter-v7:${rootProject.ext.supportLibraryVersion}"
implementation 'com.google.android.gms:play-services-cast-framework:16.1.0'
implementation("pl.droidsonroids:casty:1.0.8"){
implementation("pl.droidsonroids:casty:1.0.8") {
exclude group: 'com.android.support', module: 'appcompat-v7'
}

View file

@ -19,7 +19,7 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-ignorewarnings
-dontwarn com.squareup.okhttp.**
# Proguard configuration for Jackson 2.x (fasterxml package instead of codehaus package)