116 lines
3.4 KiB
Groovy
116 lines
3.4 KiB
Groovy
plugins {
|
|
id 'com.android.library' // 替换 application 插件
|
|
id 'maven-publish' // 添加发布插件
|
|
}
|
|
|
|
//apply plugin: 'com.kezong.fat-aar'
|
|
|
|
android {
|
|
namespace 'com.tfq.libraryad'
|
|
compileSdkVersion 34
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 34
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
// assets.srcDirs += ['../android_data/csj_config']
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// implementation fileTree(include: ['*.aar', '*.jar'], dir: 'libs')
|
|
compileOnly fileTree(include: ['*.aar', '*.jar'], dir: 'libs')
|
|
|
|
|
|
// implementation name: 'GDTSDK.unionNormal.4.610.1480', ext: 'aar'
|
|
// implementation name: 'mediation_gdt_adapter_4.610.1480.0', ext: 'aar'
|
|
// implementation name: 'open_ad_sdk_6.6.0.7', ext: 'aar'
|
|
|
|
//
|
|
// implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
// implementation 'com.google.android.material:material:1.5.0'
|
|
// testImplementation 'junit:junit:4.13.2'
|
|
// androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
//沉浸式
|
|
// api 'com.gyf.immersionbar:immersionbar:3.0.0-beta05'
|
|
//权限请求
|
|
// api 'com.github.getActivity:XXPermissions:18.63'
|
|
// api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.28'
|
|
// api 'androidx.activity:activity:1.3.0'
|
|
|
|
api project(':BaseLibrary')
|
|
// implementation project(':LocalAarModules:AdCSJSdk')
|
|
// implementation project(':LocalAarModules:AdGDTSdk')
|
|
// implementation project(':LocalAarModules:AdGDTSdk_Adapter')
|
|
|
|
//noinspection Aligned16KB
|
|
// implementation 'com.pangle.cn:mediation-sdk:6.6.0.7' //穿山甲融合SDK
|
|
// implementation 'com.pangle.cn:GDTSDK-unionNormal:4.610.1480' //GDT 优量汇
|
|
// implementation 'com.pangle.cn:mediation-gdt-adapter:4.610.1480.0' //GDT 优量汇 adapter
|
|
|
|
}
|
|
|
|
|
|
afterEvaluate {
|
|
publishing {
|
|
publications {
|
|
release(MavenPublication) {
|
|
groupId = 'com.jiangke.group' // 自定义组织标识
|
|
artifactId = 'JKBaseLib' // 库名称
|
|
version = '1.0.0'
|
|
artifact("$buildDir/outputs/aar/${project.name}-release.aar")// 指定 AAR 文件路径
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
// url = "file://${projectDir.parent}/maven-repo" // 指向本地目录
|
|
url = "file://${projectDir.parent}/maven" // 指向本地目录
|
|
}
|
|
/*maven {
|
|
url = "https://gitee.com/jiangke/JKBaseLib/raw/master/maven/"
|
|
credentials {
|
|
username = project.findProperty("gitee.user") ?: ""
|
|
password = project.findProperty("gitee.token") ?: ""
|
|
}
|
|
}*/
|
|
}
|
|
}
|
|
}
|
|
|
|
/*publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
groupId = 'com.jiangke.group' // 自定义组织标识
|
|
artifactId = 'lib-name' // 库名称
|
|
version = '1.0.0' // 版本号
|
|
// 指定 AAR 文件路径
|
|
artifact("$buildDir/outputs/aar/${project.name}-release.aar")
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url "file://D:/Android/Code/tfq/JKBaseLib" // 本地临时目录
|
|
}
|
|
}
|
|
}*/
|