Commit 4ccad1e8 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update app/build.gradle

Sets up the debug and release buildType.
parent 98f165b0
...@@ -62,7 +62,16 @@ android { ...@@ -62,7 +62,16 @@ android {
} }
buildTypes { buildTypes {
debug {
debuggable true
versionNameSuffix '-DEBUG'
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
release { release {
debuggable false
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release signingConfig signingConfigs.release
...@@ -84,11 +93,15 @@ android { ...@@ -84,11 +93,15 @@ android {
//avoiding okio error: https://github.com/square/okhttp/issues/896 //avoiding okio error: https://github.com/square/okhttp/issues/896
lintConfig file("lint.xml") lintConfig file("lint.xml")
} }
sourceSets { sourceSets {
debug { debug {
manifest.srcFile 'src/debug/AndroidManifest.xml' manifest.srcFile 'src/debug/AndroidManifest.xml'
} }
release {
manifest.srcFile 'src/release/AndroidManifest.xml'
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment