Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Fix versionCode is smaller than historical versionCode
Browse files Browse the repository at this point in the history
  • Loading branch information
liuran001 authored Jun 8, 2022
1 parent 82c31da commit e637460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/Common.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ object Common {
}
repo.close()
println("commit Count: $commitCount")
val targetVersionCode = commitCount + 1700000000 // 兼容性方案 整数好看点
val targetVersionCode = commitCount + 2100000000 // 兼容性方案 整数好看点
println("target versionCode: $targetVersionCode")
return targetVersionCode
} else {
println("WARN: .git/HEAD does NOT exist")
return 1700000000
return 2100000000
}
}

Expand All @@ -72,4 +72,4 @@ object Common {



}
}

0 comments on commit e637460

Please sign in to comment.