Skip to content

Commit

Permalink
feat() add publis plugin
Browse files Browse the repository at this point in the history
#branch=main
  • Loading branch information
周俊佑 committed Jun 26, 2023
1 parent 0156a4d commit fdb90ba
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
.cxx
local.properties
.idea
gradle.properties
2 changes: 1 addition & 1 deletion wytrace/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/build
.cxx
.cxx
24 changes: 24 additions & 0 deletions wytrace/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -48,6 +49,29 @@ android {
}
}

publishing {
publications {
aar(MavenPublication) {
groupId 'com.wy.lib'
artifactId 'wytrace'
version '1.0.0'
// 打包 aar 文件
artifact("$buildDir/outputs/aar/wytrace-release.aar")
}
}
// repositories {
// maven {
// // 配置 Maven 仓库信息
// url mavenRepositoryUrl
// credentials {
// username mavenRepositoryUsername
// password mavenRepositoryPassword
// }
// }
// }
}


dependencies {
api 'com.bytedance.android:shadowhook:1.0.7'
}

0 comments on commit fdb90ba

Please sign in to comment.