Skip to content

Commit

Permalink
upload app's version code
Browse files Browse the repository at this point in the history
  • Loading branch information
fbzli committed Oct 14, 2024
1 parent f6d352c commit a2c01b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class AlpakaPlugin : Plugin<Project> {
buildConfigField("String", "BRANCH", "\"$buildBranch\"")
}

//specify extra properties per flavor and defaultConfig for groovy dsl
// Specify extra properties per flavor and defaultConfig for groovy dsl
(androidExtension.defaultConfig as ExtensionAware).apply {
extraProperties.set("launcherIconLabel", null)
extraProperties.set("alpakaUploadKey", null)
Expand Down Expand Up @@ -198,6 +198,7 @@ abstract class AlpakaPlugin : Plugin<Project> {
changelog = "", // Will be set inside the task
signature = "", // Will be set inside the task
version = versionName,
versionCode = variant.versionCode.toLong()
)
uploadTask.uploadRequest = uploadRequest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data class UploadRequest(
val changelog: String,
val signature: String,
val version: String,
val versionCode: Long,
) {

fun toUploadDataJson(uploadKey: String) = UploadDataDto(
Expand All @@ -25,6 +26,7 @@ data class UploadRequest(
packageName = packageName,
flavor = flavor,
version = version,
versionCode = versionCode,
signature = signature,
minSdk = minSdk,
targetSdk = targetSdk,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ data class UploadDataDto(
val packageName: String,
val flavor: String,
val version: String,
val versionCode: Long,
val signature: String,
val minSdk: Int,
val targetSdk: Int,
Expand Down

0 comments on commit a2c01b1

Please sign in to comment.