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