@@ -47,7 +47,7 @@ gradle.startParameter.taskNames.each { startTaskName ->
47
47
hostDependencies = hostBarRootDir + " debug" + " /" + hostDependencyFile
48
48
currentSelectedBar = hostBarRootDir + " debug" + " /" + hostBar
49
49
} else if (startTaskName. contains(" Release" )) {
50
- hostDependencies = hostBarRootDir + " debug " + " /" + hostDependencyFile
50
+ hostDependencies = hostBarRootDir + " release " + " /" + hostDependencyFile
51
51
currentSelectedBar = hostBarRootDir + " release" + " /" + hostBar
52
52
}
53
53
}
@@ -57,7 +57,10 @@ println ">>>" + hostBarRootDir
57
57
println " >>>" + currentSelectedBar
58
58
println " >>>" + hostDependencies
59
59
60
- apply from : hostDependencies
60
+ if (file(hostDependencies). exists()) {
61
+ println " >>>apply from: " + hostDependencies
62
+ apply from : hostDependencies
63
+ }
61
64
62
65
android. androidResources. additionalParameters(
63
66
' -I' , currentSelectedBar,
@@ -182,7 +185,7 @@ afterEvaluate {
182
185
}
183
186
}
184
187
File dependenciesTxt = new File (" ${ project.buildDir} /outputs/plugin_dependencies.txt" )
185
- dependenciesTxt. getParentFile(). mkdir ()
188
+ dependenciesTxt. getParentFile(). mkdirs ()
186
189
dependenciesTxt. write(" // This file is automatically generated by Plugin Script\n " )
187
190
dependenciesTxt. append(" // variant is ${ varName} \n " )
188
191
String hostTxt = new File (hostDependencies). text
0 commit comments