Fix in-app purchase
This commit is contained in:
		| @@ -1,6 +1,4 @@ | ||||
| org.gradle.jvmargs=-Xmx1g | ||||
| org.gradle.daemon=true | ||||
| org.gradle.caching=true | ||||
| org.gradle.jvmargs=-Xmx512m | ||||
| android.useAndroidX=true | ||||
| android.enableJetifier=true | ||||
| android.enableR8=true | ||||
|   | ||||
| @@ -160,7 +160,7 @@ EventBus eventBus = new EventBus(); | ||||
| //FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin(); | ||||
| const String appName = 'HA Client'; | ||||
| const String appVersion = String.fromEnvironment('versionName', defaultValue: '0.0.0'); | ||||
| const whatsNewUrl = 'http://ha-client.app/service/whats_new_1.1.0-b2.md'; | ||||
| const whatsNewUrl = 'http://ha-client.app/service/whats_new_1.1.2.md'; | ||||
|  | ||||
| Future<void> _reportError(dynamic error, dynamic stackTrace) async { | ||||
|     // Print the exception to the console. | ||||
| @@ -249,6 +249,7 @@ class _HAClientAppState extends State<HAClientApp> { | ||||
|             positiveText: "Ok" | ||||
|           ) | ||||
|         )); | ||||
|         InAppPurchaseConnection.instance.completePurchase(purchase[0]); | ||||
|       } else { | ||||
|         Logger.d("Purchase change handler: ${purchase[0].status}"); | ||||
|       } | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| name: hass_client | ||||
| description: Home Assistant Android Client | ||||
|  | ||||
| version: 1.1.1+1158 | ||||
| version: 1.1.2+1159 | ||||
|  | ||||
|  | ||||
| environment: | ||||
| @@ -19,7 +19,7 @@ dependencies: | ||||
|   date_format: ^1.0.8 | ||||
|   charts_flutter: ^0.8.1 | ||||
|   flutter_markdown: ^0.3.3 | ||||
|   in_app_purchase: ^0.3.0+3 | ||||
|   in_app_purchase: ^0.3.4 | ||||
|   flutter_custom_tabs: ^0.6.0 | ||||
|   flutter_webview_plugin: ^0.3.10+1 | ||||
|   webview_flutter: ^0.3.19+7 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user