Skip to content

Commit b236d83

Browse files
authored
[in_app_purchase_android] Add missing response code to BillingResponse enum (flutter#5120)
This response code was missing. Fixes flutter#135540
1 parent 374da10 commit b236d83

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.0+15
2+
3+
* Adds missing network error response code to BillingResponse enum.
4+
15
## 0.3.0+14
26

37
* Updates annotations lib to 1.7.0.

packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/billing_client_wrapper.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ enum BillingResponse {
414414
/// Failure to consume since item is not owned.
415415
@JsonValue(8)
416416
itemNotOwned,
417+
418+
/// Network connection failure between the device and Play systems.
419+
@JsonValue(12)
420+
networkError,
417421
}
418422

419423
/// Serializer for [BillingResponse].

packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/billing_client_wrapper.g.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/in_app_purchase/in_app_purchase_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: in_app_purchase_android
22
description: An implementation for the Android platform of the Flutter `in_app_purchase` plugin. This uses the Android BillingClient APIs.
33
repository: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
5-
version: 0.3.0+14
5+
version: 0.3.0+15
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"

packages/in_app_purchase/in_app_purchase_android/test/billing_client_wrappers/billing_client_wrapper_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ void main() {
5454
converter.fromJson(6);
5555
converter.fromJson(7);
5656
converter.fromJson(8);
57+
converter.fromJson(12);
5758
});
5859

5960
group('startConnection', () {

0 commit comments

Comments
 (0)