Compare commits

...

2 Commits
1.1.0 ... 1.1.2

Author SHA1 Message Date
d09afc37b5 Fix in-app purchase 2020-06-13 11:05:06 +03:00
1c686402d0 Update purchase information 2020-06-11 11:47:07 +03:00
5 changed files with 18 additions and 8 deletions

View File

@ -1,6 +1,4 @@
org.gradle.jvmargs=-Xmx2g
org.gradle.daemon=true
org.gradle.caching=true
org.gradle.jvmargs=-Xmx512m
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true

View File

@ -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}");
}

View File

@ -63,7 +63,18 @@ class _PurchasePageState extends State<PurchasePage> {
}
List<Widget> _buildProducts() {
List<Widget> productWidgets = [];
List<Widget> productWidgets = [
Card(
child: Padding(
padding: EdgeInsets.all(15),
child: Text(
'This will not unlock any additional functionality. This is only a donation to the HA Client open source project.',
style: Theme.of(context).textTheme.headline5,
textAlign: TextAlign.center,
)
)
)
];
for (ProductDetails product in _products) {
productWidgets.add(
ProductPurchase(

View File

@ -15,7 +15,7 @@ class ProductPurchase extends StatelessWidget {
String buttonText = '';
String buttonTextInactive = '';
if (product.id.contains("year")) {
period += "/ year";
period += "once a year";
buttonText = "Subscribe";
buttonTextInactive = "Already";
priceColor = Colors.amber;

View File

@ -1,7 +1,7 @@
name: hass_client
description: Home Assistant Android Client
version: 1.1.0+1157
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