Skip to content

Commit

Permalink
Merge pull request #1 from jimmywan/jw.change_output_dir
Browse files Browse the repository at this point in the history
jw.change_output_dir
  • Loading branch information
lramati authored Jan 25, 2021
2 parents cf98b5d + 4d01b73 commit 9e27a2f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,15 @@ android {
}
}

// Change output dir of artifacts to live under builds subdir of /app
android.applicationVariants.all { variant ->
def newDir = variant.baseName.replace("-", "/")
variant.outputs.all {
outputFileName = "GoIV-${variant.name}.${variant.versionName}.apk"
def name = variant.baseName
if (!variant.baseName.startsWith("playstore")) {
name = name.replace("-release", "")
}
outputFileName = "../../builds/${newDir}/GoIV-${name}.${variant.versionName}.apk"
}
}
}
Expand Down Expand Up @@ -205,7 +211,6 @@ dependencies {
implementation project(':openCVLibrary330')

/* for devMethods.thirdparty.pokebattler, temporally set for All Builds */
// implementation 'org.json:json:20160810' //used to generate moveset list
implementation 'com.squareup.okhttp3:okhttp:3.7.0'//used to generate moveset list

/**
Expand Down

0 comments on commit 9e27a2f

Please sign in to comment.