Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d09afc37b5 | |||
1c686402d0 |
@ -1,6 +1,4 @@
|
|||||||
org.gradle.jvmargs=-Xmx2g
|
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}");
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,18 @@ class _PurchasePageState extends State<PurchasePage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<Widget> _buildProducts() {
|
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) {
|
for (ProductDetails product in _products) {
|
||||||
productWidgets.add(
|
productWidgets.add(
|
||||||
ProductPurchase(
|
ProductPurchase(
|
||||||
|
@ -15,7 +15,7 @@ class ProductPurchase extends StatelessWidget {
|
|||||||
String buttonText = '';
|
String buttonText = '';
|
||||||
String buttonTextInactive = '';
|
String buttonTextInactive = '';
|
||||||
if (product.id.contains("year")) {
|
if (product.id.contains("year")) {
|
||||||
period += "/ year";
|
period += "once a year";
|
||||||
buttonText = "Subscribe";
|
buttonText = "Subscribe";
|
||||||
buttonTextInactive = "Already";
|
buttonTextInactive = "Already";
|
||||||
priceColor = Colors.amber;
|
priceColor = Colors.amber;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: hass_client
|
name: hass_client
|
||||||
description: Home Assistant Android Client
|
description: Home Assistant Android Client
|
||||||
|
|
||||||
version: 1.1.0+1157
|
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