Skip to content

Commit

Permalink
尝试上传库到jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
caoyanglee committed Apr 13, 2022
1 parent b791c1c commit 0801baf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class KotlinDemoActivity : AppCompatActivity() {
private fun getLatestApk() {
//具体的网络请求步骤自己操作
MainScope().launch {
//http://file.market.xiaomi.com/download/AppStore/09867a8623a9f4d3f954993da6e33b06f74a7a51b/com.pmm.remember_0.7.3_patch8.apk
val to = CheckVersionResultPO(
apkUrl = "",
latestVersion = "1.1.2"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
maven { url 'https://maven.aliyun.com/repository/google' }//阿里云 google
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
Expand Down
11 changes: 10 additions & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}

//jitpack
project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}
}

dependencies {
Expand Down

0 comments on commit 0801baf

Please sign in to comment.