Skip to content

Commit 5451066

Browse files
authored
Merge pull request #26 from Vacxe/release-045
feat(release): 0.4.5
2 parents 01dd5a8 + a7fea1e commit 5451066

9 files changed

+38
-40
lines changed

Diff for: github-action/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/vacxe/google-play-cli:0.4.4
1+
FROM ghcr.io/vacxe/google-play-cli:0.4.5
22

33
COPY entrypoint.sh /entrypoint.sh
44
COPY templates /templates

Diff for: src/main/kotlin/com/github/vacxe/googleplaycli/Commands.kt

+12-12
Original file line numberDiff line numberDiff line change
@@ -712,13 +712,13 @@ object Commands {
712712
}
713713
}
714714

715-
object Internalappsharingartifacts {
715+
object InternalAppSharingArtifacts {
716716
class UploadApk :
717717
BaseCommand(name = "upload-apk", actionDescription = "Uploads an APK to internal app sharing") {
718718
private val apk: File by option("--apk", "-a", help = "Apk file path").file().required()
719719

720-
override fun run(api: PlayStoreApi) = api.internalappsharingartifactsUploadapk(
721-
InternalappsharingartifactsUploadapkModel(
720+
override fun run(api: PlayStoreApi) = api.internalAppSharingArtifactsUploadApk(
721+
InternalAppSharingArtifactsUploadApkModel(
722722
packageName,
723723
apk,
724724
parameters
@@ -727,11 +727,11 @@ object Commands {
727727
}
728728

729729
class UploadBundle :
730-
BaseCommand(name = "upload-bunble", actionDescription = "Uploads an app bundle to internal app sharing") {
730+
BaseCommand(name = "upload-bundle", actionDescription = "Uploads an app bundle to internal app sharing") {
731731
private val bundle: File by option("--bundle", "-b", help = "Bundle file path").file().required()
732732

733-
override fun run(api: PlayStoreApi) = api.internalappsharingartifactsUploadbundle(
734-
InternalappsharingartifactsUploadbundleModel(
733+
override fun run(api: PlayStoreApi) = api.internalAppSharingArtifactsUploadBundle(
734+
InternalAppSharingArtifactsUploadBundleModel(
735735
packageName,
736736
bundle,
737737
parameters
@@ -769,7 +769,7 @@ object Commands {
769769
).required()
770770

771771
override fun run(api: PlayStoreApi) =
772-
api.inappproductsDelete(InappproductsDeleteModel(packageName, sku, parameters))
772+
api.inAppProductsDelete(InappproductsDeleteModel(packageName, sku, parameters))
773773
}
774774

775775
class Get :
@@ -781,7 +781,7 @@ object Commands {
781781
).required()
782782

783783
override fun run(api: PlayStoreApi) =
784-
api.inappproductsGet(InappproductsGetModel(packageName, sku, parameters))
784+
api.inAppProductsGet(InappproductsGetModel(packageName, sku, parameters))
785785
}
786786

787787
class Insert : BaseCommand(name = "insert", actionDescription = "Creates a new in-app product for an app") {
@@ -797,7 +797,7 @@ object Commands {
797797
""".trimIndent()
798798
).flag()
799799

800-
override fun run(api: PlayStoreApi) = api.inappproductsInsert(
800+
override fun run(api: PlayStoreApi) = api.inAppProductsInsert(
801801
InappproductsInsertModel(
802802
packageName,
803803
jsonPath,
@@ -811,7 +811,7 @@ object Commands {
811811
name = "list",
812812
actionDescription = "List all the in-app products for an Android app, both subscriptions and managed in-app products"
813813
) {
814-
override fun run(api: PlayStoreApi) = api.inappproductsList(DefaultModel(packageName, parameters))
814+
override fun run(api: PlayStoreApi) = api.inAppProductsList(DefaultModel(packageName, parameters))
815815
}
816816

817817
class Patch : BaseCommand(
@@ -835,7 +835,7 @@ object Commands {
835835
""".trimIndent()
836836
).flag()
837837

838-
override fun run(api: PlayStoreApi) = api.inappproductsPatch(
838+
override fun run(api: PlayStoreApi) = api.inAppProductsPatch(
839839
InappproductsPatchModel(
840840
packageName,
841841
sku,
@@ -864,7 +864,7 @@ object Commands {
864864
""".trimIndent()
865865
).flag()
866866

867-
override fun run(api: PlayStoreApi) = api.inappproductsUpdate(
867+
override fun run(api: PlayStoreApi) = api.inAppProductsUpdate(
868868
InappproductsUpdateModel(
869869
packageName,
870870
sku,

Diff for: src/main/kotlin/com/github/vacxe/googleplaycli/PlayStoreApi.kt

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.github.vacxe.googleplaycli
33
import com.github.vacxe.googleplaycli.actions.*
44
import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport
55
import com.google.api.client.http.HttpRequestInitializer
6-
import com.google.api.client.json.JsonFactory
76
import com.google.api.client.json.gson.GsonFactory
87
import com.google.api.services.androidpublisher.AndroidPublisher
98
import com.google.api.services.androidpublisher.AndroidPublisherScopes
@@ -15,14 +14,14 @@ import java.time.Duration
1514
class PlayStoreApi(serviceAccountInputStream: InputStream, appName: String) :
1615
Apks,
1716
Bundles,
18-
Deobfuscationfiles,
17+
DeobfuscationFiles,
1918
Details,
2019
DeviceTierConfigs,
2120
Edit,
2221
ExpansionFiles,
2322
Images,
24-
Inappproducts,
25-
Internalappsharingartifacts,
23+
InAppProducts,
24+
InternalAppSharingArtifacts,
2625
Listings,
2726
Orders,
2827
Reviews,

Diff for: src/main/kotlin/com/github/vacxe/googleplaycli/PlayStoreCli.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ fun main(args: Array<String>) {
6969
addCmd { Commands.Reviews.Reply() }
7070
}
7171
subcmd("internal-app-sharing-artifacts") {
72-
addCmd { Commands.Internalappsharingartifacts.UploadApk() }
73-
addCmd { Commands.Internalappsharingartifacts.UploadBundle() }
72+
addCmd { Commands.InternalAppSharingArtifacts.UploadApk() }
73+
addCmd { Commands.InternalAppSharingArtifacts.UploadBundle() }
7474
}
7575
subcmd("orders") {
7676
addCmd { Commands.Orders.Refund() }
7777
}
78-
subcmd("inappproducts") {
78+
subcmd("in-app-products") {
7979
addCmd { Commands.Inappproducts.Delete() }
8080
addCmd { Commands.Inappproducts.Get() }
8181
addCmd { Commands.Inappproducts.Insert() }
@@ -86,7 +86,7 @@ fun main(args: Array<String>) {
8686
addCmd {
8787
object : CliktCommand(name = "version", help = "Library version code") {
8888
override fun run() {
89-
println("0.4.4")
89+
println("0.4.5")
9090
}
9191
}
9292
}

Diff for: src/main/kotlin/com/github/vacxe/googleplaycli/actions/Deobfuscationfiles.kt renamed to src/main/kotlin/com/github/vacxe/googleplaycli/actions/DeobfuscationFiles.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package com.github.vacxe.googleplaycli.actions
22

33
import com.github.vacxe.googleplaycli.actions.model.DeobfuscationfilesUploadModel
4-
import com.github.vacxe.googleplaycli.core.constants.MediaType.MIME_TYPE_APK
54
import com.github.vacxe.googleplaycli.core.constants.MediaType.MIME_TYPE_STREAM
65
import com.google.api.client.http.AbstractInputStreamContent
76
import com.google.api.client.http.FileContent
87
import com.google.api.services.androidpublisher.AndroidPublisher
98
import com.google.api.services.androidpublisher.model.DeobfuscationFilesUploadResponse
109

11-
interface Deobfuscationfiles : BaseAction {
10+
interface DeobfuscationFiles : BaseAction {
1211
fun deobfuscationFilesUpload(model: DeobfuscationfilesUploadModel): DeobfuscationFilesUploadResponse {
1312
val edits: AndroidPublisher.Edits = androidPublisher.edits()
1413
val editId = model.editId ?: edits.insert(model.packageName, null).execute().id

Diff for: src/main/kotlin/com/github/vacxe/googleplaycli/actions/Inappproducts.kt renamed to src/main/kotlin/com/github/vacxe/googleplaycli/actions/InAppProducts.kt

+8-9
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import com.google.api.services.androidpublisher.model.InAppProduct
55
import com.google.api.services.androidpublisher.model.InappproductsListResponse
66
import java.nio.file.Files
77

8-
interface Inappproducts : BaseAction {
8+
interface InAppProducts : BaseAction {
99

10-
fun inappproductsDelete(model: InappproductsDeleteModel): Void {
10+
fun inAppProductsDelete(model: InappproductsDeleteModel): Void {
1111
return androidPublisher
1212
.inappproducts()
1313
.delete(model.packageName, model.sku)
@@ -17,7 +17,7 @@ interface Inappproducts : BaseAction {
1717
.execute()
1818
}
1919

20-
fun inappproductsGet(model: InappproductsGetModel): InAppProduct {
20+
fun inAppProductsGet(model: InappproductsGetModel): InAppProduct {
2121
return androidPublisher
2222
.inappproducts()
2323
.get(model.packageName, model.sku)
@@ -27,7 +27,7 @@ interface Inappproducts : BaseAction {
2727
.execute()
2828
}
2929

30-
fun inappproductsInsert(model: InappproductsInsertModel): InAppProduct {
30+
fun inAppProductsInsert(model: InappproductsInsertModel): InAppProduct {
3131
val product = Files.newInputStream(model.jsonPath).use {
3232
androidPublisher.jsonFactory.fromInputStream(it, InAppProduct::class.java)
3333
}
@@ -42,7 +42,7 @@ interface Inappproducts : BaseAction {
4242
.execute()
4343
}
4444

45-
fun inappproductsList(model: DefaultModel): InappproductsListResponse {
45+
fun inAppProductsList(model: DefaultModel): InappproductsListResponse {
4646
return androidPublisher.inappproducts()
4747
.list(model.packageName)
4848
.apply {
@@ -51,7 +51,7 @@ interface Inappproducts : BaseAction {
5151
.execute()
5252
}
5353

54-
fun inappproductsPatch(model: InappproductsPatchModel): InAppProduct {
54+
fun inAppProductsPatch(model: InappproductsPatchModel): InAppProduct {
5555
val product = Files.newInputStream(model.jsonPath).use {
5656
androidPublisher.jsonFactory.fromInputStream(it, InAppProduct::class.java)
5757
}
@@ -66,7 +66,7 @@ interface Inappproducts : BaseAction {
6666
.execute()
6767
}
6868

69-
fun inappproductsUpdate(model: InappproductsUpdateModel): InAppProduct {
69+
fun inAppProductsUpdate(model: InappproductsUpdateModel): InAppProduct {
7070
val product = Files.newInputStream(model.jsonPath).use {
7171
androidPublisher.jsonFactory.fromInputStream(it, InAppProduct::class.java)
7272
}
@@ -80,5 +80,4 @@ interface Inappproducts : BaseAction {
8080
}
8181
.execute()
8282
}
83-
84-
}
83+
}

Diff for: src/main/kotlin/com/github/vacxe/googleplaycli/actions/Internalappsharingartifacts.kt renamed to src/main/kotlin/com/github/vacxe/googleplaycli/actions/InternalAppSharingArtifacts.kt

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
package com.github.vacxe.googleplaycli.actions
22

3-
import com.github.vacxe.googleplaycli.actions.model.InternalappsharingartifactsUploadapkModel
4-
import com.github.vacxe.googleplaycli.actions.model.InternalappsharingartifactsUploadbundleModel
3+
import com.github.vacxe.googleplaycli.actions.model.InternalAppSharingArtifactsUploadApkModel
4+
import com.github.vacxe.googleplaycli.actions.model.InternalAppSharingArtifactsUploadBundleModel
55
import com.github.vacxe.googleplaycli.core.constants.MediaType
66
import com.google.api.client.http.AbstractInputStreamContent
77
import com.google.api.client.http.FileContent
88
import com.google.api.services.androidpublisher.model.InternalAppSharingArtifact
99

10-
interface Internalappsharingartifacts : BaseAction {
11-
fun internalappsharingartifactsUploadapk(model: InternalappsharingartifactsUploadapkModel): InternalAppSharingArtifact {
10+
interface InternalAppSharingArtifacts : BaseAction {
11+
fun internalAppSharingArtifactsUploadApk(model: InternalAppSharingArtifactsUploadApkModel): InternalAppSharingArtifact {
1212
val apk: AbstractInputStreamContent = FileContent(MediaType.MIME_TYPE_APK, model.apk)
1313
return androidPublisher
1414
.internalappsharingartifacts()
1515
.uploadapk(model.packageName, apk)
16+
1617
.apply {
1718
model.parameters.forEach { (key, value) -> set(key, value) }
1819
}
1920
.execute()
2021
}
2122

22-
fun internalappsharingartifactsUploadbundle(model: InternalappsharingartifactsUploadbundleModel): InternalAppSharingArtifact {
23-
val bundle: AbstractInputStreamContent = FileContent(MediaType.MIME_TYPE_APK, model.bundle)
23+
fun internalAppSharingArtifactsUploadBundle(model: InternalAppSharingArtifactsUploadBundleModel): InternalAppSharingArtifact {
24+
val bundle: AbstractInputStreamContent = FileContent(MediaType.MIME_TYPE_STREAM, model.bundle)
2425
return androidPublisher
2526
.internalappsharingartifacts()
2627
.uploadbundle(model.packageName, bundle)

Diff for: src/main/kotlin/com/github/vacxe/googleplaycli/actions/model/InternalappsharingartifactsUploadapkModel.kt renamed to src/main/kotlin/com/github/vacxe/googleplaycli/actions/model/InternalAppSharingArtifactsUploadApkModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.github.vacxe.googleplaycli.actions.model
22

33
import java.io.File
44

5-
class InternalappsharingartifactsUploadapkModel(
5+
class InternalAppSharingArtifactsUploadApkModel(
66
val packageName: String,
77
val apk: File,
88
requestParameters: String?

Diff for: src/main/kotlin/com/github/vacxe/googleplaycli/actions/model/InternalappsharingartifactsUploadbundleModel.kt renamed to src/main/kotlin/com/github/vacxe/googleplaycli/actions/model/InternalAppSharingArtifactsUploadBundleModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.github.vacxe.googleplaycli.actions.model
22

33
import java.io.File
44

5-
class InternalappsharingartifactsUploadbundleModel(
5+
class InternalAppSharingArtifactsUploadBundleModel(
66
val packageName: String,
77
val bundle: File,
88
requestParameters: String?

0 commit comments

Comments
 (0)