Skip to content

Commit 343fd56

Browse files
committed
feat: 适配Android15
1 parent 9e213ce commit 343fd56

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

FlowHttp/build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77
//ext.GROUP = "com.lute.network"
88
//ext.POM_ARTIFACT_ID = "NetCore-Flow"
9-
//ext.VERSION_NAME = "1.7.0"
9+
//ext.VERSION_NAME = "1.7.1"
1010
////引用gradle_upload.gradle
1111
//apply from: "${project.rootDir}/maven_upload.gradle"
1212

@@ -19,13 +19,19 @@ afterEvaluate {
1919
// 这里头是artifacts的配置信息,不填会采用默认的
2020
groupId = 'com.github.buhuiming'
2121
artifactId = 'NetCore-Flow'
22-
version = '1.7.0'
22+
version = '1.7.1'
2323

2424
from components.release
25-
artifact androidSourcesJar //打包源码,去除这行打的包将看不到源码
25+
if (!project.plugins.hasPlugin('kotlin-android')) {
26+
artifact tasks.named("androidSourcesJar").get()
27+
}
2628
}
2729
}
2830
}
31+
// 显式声明任务依赖关系
32+
tasks.matching { it.name.startsWith("generateMetadataFileFor") }.configureEach {
33+
dependsOn tasks.named("androidSourcesJar")
34+
}
2935
}
3036
// 用于打包源代码的任务
3137
tasks.register('androidSourcesJar', Jar) {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
dependencies {
13-
implementation 'com.github.buhuiming:NetCore-Flow:1.7.0'
13+
implementation 'com.github.buhuiming:NetCore-Flow:1.7.1'
1414
}
1515

1616
#### 1、Application配置默认的全局配置项(可选)

0 commit comments

Comments
 (0)