Skip to content

Commit 276d287

Browse files
committed
修复空指针问题
1 parent abc90e7 commit 276d287

File tree

1 file changed

+2
-2
lines changed
  • module-communication-plugin/src/main/kotlin/com/flyjingfish/module_communication_plugin

1 file changed

+2
-2
lines changed

module-communication-plugin/src/main/kotlin/com/flyjingfish/module_communication_plugin/ExportTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ abstract class ExportTask : DefaultTask() {
5252
TmpUtils.exportTmp()
5353
}
5454

55-
fun searchAssetsFileAndCopy(curProject: Project){
55+
private fun searchAssetsFileAndCopy(curProject: Project){
5656
val codePath = "/${LibVersion.buildDir}/${variant.name}/${LibVersion.assetsName}"
5757
val libraryExtension = project.extensions.getByName("android") as LibraryExtension
5858
val variantNames = libraryExtension.sourceSets.names
@@ -108,7 +108,7 @@ abstract class ExportTask : DefaultTask() {
108108
IncrementalRecordUtils.recordExposeAssets(communicationConfig.exposeAssets)
109109
}
110110

111-
fun searchResFileAndCopy(curProject: Project){
111+
private fun searchResFileAndCopy(curProject: Project){
112112
val codePath = "/${LibVersion.buildDir}/${variant.name}/${LibVersion.resName}"
113113
val libraryExtension = project.extensions.getByName("android") as LibraryExtension
114114
val variantNames = libraryExtension.sourceSets.names

0 commit comments

Comments
 (0)