Skip to content

Commit b63ae53

Browse files
committed
更新 demo gradle 配置
1 parent 351c40c commit b63ae53

File tree

9 files changed

+3496
-3492
lines changed

9 files changed

+3496
-3492
lines changed
136 Bytes
Loading
12 Bytes
Loading
8 Bytes
Loading

main/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ android {
5353
appIds.add(variant.applicationId)
5454
variant.packageApplicationProvider.get().outputDirectory = new File("${rootDir}/runtime")
5555
outputFileName = "${project.name}_${variant.flavorName}.apk"
56-
} else if (variant.flavorName == "plugin") {
56+
} else if (variant.flavorName == "plugin" && variant.buildType.name == "release") {
5757
outputFileName = "${applicationId}.png"
5858
outputPluginPath = output.outputFile
5959
}

module1/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ android {
4343
String outputPluginPath = null
4444
applicationVariants.all { variant ->
4545
variant.outputs.all { output ->
46-
outputFileName = "${applicationId}.png"
47-
outputPluginPath = output.outputFile
46+
if (variant.buildType.name == "release") {
47+
outputFileName = "${applicationId}.png"
48+
outputPluginPath = output.outputFile
49+
}
4850
}
4951
}
5052

module2/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ android {
3030
String outputPluginPath = null
3131
applicationVariants.all { variant ->
3232
variant.outputs.all { output ->
33-
outputFileName = "${applicationId}.png"
34-
outputPluginPath = output.outputFile
33+
if (variant.buildType.name == "release") {
34+
outputFileName = "${applicationId}.png"
35+
outputPluginPath = output.outputFile
36+
}
3537
}
3638
}
3739

runtime/main.id.txt

Lines changed: 1351 additions & 1351 deletions
Large diffs are not rendered by default.

runtime/org.xplugin.demo.module1.id.txt

Lines changed: 1068 additions & 1068 deletions
Large diffs are not rendered by default.

runtime/org.xplugin.demo.module2.id.txt

Lines changed: 1068 additions & 1068 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)