proguard-project.txt is renamed ot proguard-rules.pro
This commit is contained in:
@@ -36,13 +36,18 @@ preBuild.dependsOn createVersionXML
|
||||
// Convert SVG images from art directory into PNG files.
|
||||
//
|
||||
task generateDrawablesFromArt {
|
||||
|
||||
doLast {
|
||||
def indir = "app/src/main/art"
|
||||
def outdir = "../res"
|
||||
|
||||
String backslash= System.getProperty("file.separator")
|
||||
def buildDir = (new File(project.buildDir,'art')).toString()
|
||||
buildDir = buildDir.replace(backslash,"/")
|
||||
println 'make -C app/src/main/art RES=../res TMP='+buildDir
|
||||
def p = ('make -C app/src/main/art RES=../res TMP='+buildDir).execute()
|
||||
p.consumeProcessOutput()
|
||||
def cmd = "make -C ${indir} RES=${outdir} TMP=${buildDir}"
|
||||
println cmd
|
||||
def p = cmd.execute()
|
||||
p.consumeProcessOutput(System.err,System.err)
|
||||
p.waitFor()
|
||||
if ( p.exitValue() )
|
||||
throw new GradleException("Generation of art failed.")
|
||||
@@ -63,7 +68,7 @@ android {
|
||||
buildTypes {
|
||||
release {
|
||||
runProguard true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
signingConfig signingConfigs.sokoban_release
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
# To enable ProGuard in your project, edit project.properties
|
||||
# to define the proguard.config property as described in that file.
|
||||
#
|
||||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the ProGuard
|
||||
# include property in project.properties.
|
||||
# in C:\Program Files (x86)\Android\android-sdk/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the proguardFiles
|
||||
# directive in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
Reference in New Issue
Block a user