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