Sitelet https://github.com/SkyEric/RePlugin/commit/f24878682c66d045ac98024f827b54ca81cee00d
Skip to content

Commit f248786

Browse files
committed
replugin-plugin-gradle support the latest gradle plugin
1 parent 340e4e5 commit f248786

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎replugin-plugin-gradle/src/main/groovy/com/qihoo360/replugin/gradle/plugin/debugger/PluginDebugger.groovy‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class PluginDebugger {
4343
String archivesBaseName = globalScope.getArchivesBaseName();
4444
String apkBaseName = archivesBaseName + "-" + variantConfiguration.getBaseName()
4545

46-
File apkDir = new File(globalScope.getBuildDir(), "outputs/apk")
46+
File apkDir = new File(globalScope.getBuildDir(), "outputs" + File.separator + "apk")
4747

4848
String unsigned = (variantConfiguration.getSigningConfig() == null
4949
? "-unsigned.apk"
@@ -52,6 +52,10 @@ class PluginDebugger {
5252

5353
apkFile = new File(apkDir, apkName)
5454

55+
if (!apkFile.exists() || apkFile.length() == 0) {
56+
apkFile = new File(apkDir, variantConfiguration.getBaseName() + File.separator + apkName)
57+
}
58+
5559
adbFile = globalScope.androidBuilder.sdkInfo.adb;
5660

5761
}

0 commit comments

Comments
 (0)