Skip to content

Commit

Permalink
[skip ci] Bump 1.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Oct 23, 2022
1 parent 640fdfd commit cbae263
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ val releaseStorePassword: String? by rootProject
val releaseKeyAlias: String? by rootProject
val releaseKeyPassword: String? by rootProject

val appVerCode: String by rootProject
val appVerCode: Int by rootProject
val appVerName: String by rootProject

val kotlinVersion: String by rootProject
Expand All @@ -41,7 +41,7 @@ android {
applicationId = "me.iacn.biliroaming"
minSdk = 24
targetSdk = 33 // Target Android T
versionCode = appVerCode.toInt()
versionCode = appVerCode
versionName = appVerName

externalNativeBuild {
Expand Down
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import org.eclipse.jgit.api.Git
import org.eclipse.jgit.internal.storage.file.FileRepository

buildscript {
val kotlinVersion by extra("1.7.20")
Expand All @@ -11,12 +13,18 @@ buildscript {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.google.protobuf:protobuf-gradle-plugin:0.9.1")
classpath("org.eclipse.jgit:org.eclipse.jgit:6.3.0.202209071007-r")

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

val repo = FileRepository(rootProject.file(".git"))
val refId = repo.refDatabase.exactRef("refs/remotes/origin/master").objectId!!
val commitCount = Git(repo).log().add(refId).call().count()
val appVerCode by extra(commitCount)

allprojects {
repositories {
google()
Expand Down
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ android.enableR8.fullMode=true
android.experimental.enableNewResourceShrinker=true
android.experimental.enableNewResourceShrinker.preciseShrinking=true

appVerName=1.6.6
appVerCode=66
appVerName=1.6.7

0 comments on commit cbae263

Please sign in to comment.