代码拉取完成,页面将自动刷新
apply plugin: 'com.android.library'
description = 'the kernel of SmartRefreshLayout'
android {
compileSdkVersion 30
defaultConfig {
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testImplementation 'junit:junit:4.12'
compileOnly 'com.android.support:design:28.0.0'
}
//apply plugin: 'maven-publish'
//apply plugin: 'signing'
//
//task androidSourcesJar(type: Jar) {
// archiveClassifier.set("sources")
// from android.sourceSets.main.java.source
// exclude "**/R.class"
// exclude "**/BuildConfig.class"
//}
//
//def projectName = name
//def projectDescription = description
//publishing {
// publications {
// mavenJava(MavenPublication) {
// // group id,发布后引用的依赖的 group id
// groupId SMART_GROUP_MVN
// // 发布后引用的依赖的 artifact id
// artifactId projectName
// // 发布的版本
// version SMART_VERSION
// // 发布的 arr 的文件和源码文件
// artifact("$buildDir/outputs/aar/${projectName}-release.aar")
// artifact androidSourcesJar
// pom {
// // 构件名称,可以自定义
// name = projectName
// // 构件描述
// description = projectDescription
// // 构件主页
// url = "https://github.com/scwang90/${rootProject.name}"
// // 许可证名称和地址
// licenses {
// license {
// name = 'The Apache License, Version 2.0'
// url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
// }
// }
// // 开发者信息
// developers {
// developer {
// name = SMART_USER
// email = SMART_EMAIL
// }
// }
// // 版本控制仓库地址
// scm {
// url = "https://github.com/scwang90/${rootProject.name}"
// connection = "scm:git:github.com/scwang90/${rootProject.name}.git"
// developerConnection = "scm:git:ssh://git@github.com/scwang90/${rootProject.name}.git"
// }
// }
// }
// }
// repositories {
// maven {
// // 发布的位置,这里根据发布的版本区分了 SNAPSHOT 和最终版本两种情况
// def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
// def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
// credentials {
// // 这里就是之前在 issues.sonatype.org 注册的账号
// username "${properties["sonatype.username"]}"
// password new String(Base64.mimeDecoder.decode("${properties["sonatype.password"]}"), "UTF-8")
// }
// }
// }
//}
//signing {
// sign publishing.publications
//}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。