Skip to content

Commit

Permalink
v1.2.2 (#19)
Browse files Browse the repository at this point in the history
= 22.06.2024 =
* Minor bugfixes and improvements.
  • Loading branch information
mototeam authored Jun 22, 2024
1 parent 39528d9 commit a8382b6
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 14 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ _Note: You will need a WordPress website and the Hotel Booking plugin from MotoP
### Build and Release for iOS

1. Run `flutter build ipa` to produce a build archive.
1. Open `[project]/build/ios/archive/MyApp.xcarchive` in Xcode.
1. [Command PhaseScriptExecution failed with a nonzero exit code](https://stackoverflow.com/a/76190449) issue fix.
1. Open `[project]/build/ios/archive/Runner.xcarchive` in Xcode.
1. Distribute app to App Store.

[more](https://docs.flutter.dev/deployment/ios)
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ SPEC CHECKSUMS:
shared_preferences: 5033afbb22d372e15aff8ff766df9021b845f273
url_launcher: b6e016d912f04be9f5bf6e8e82dc599b7ba59649

PODFILE CHECKSUM: 9c777f85f6c89e1175d6bb20a1c5cf95455188a3
PODFILE CHECKSUM: 7f3058696676819c0a0b2776032327aec03da512

COCOAPODS: 1.11.3
8 changes: 4 additions & 4 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -358,7 +358,7 @@
DEVELOPMENT_TEAM = KPZYD43D2A;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -488,7 +488,7 @@
DEVELOPMENT_TEAM = KPZYD43D2A;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -512,7 +512,7 @@
DEVELOPMENT_TEAM = KPZYD43D2A;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
6 changes: 5 additions & 1 deletion lib/models/accommodation.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:html_unescape/html_unescape_small.dart';

class Accommodation {

final int id;
Expand All @@ -16,13 +18,15 @@ class Accommodation {

factory Accommodation.fromJson(Map<String, dynamic> json) {

var unescape = HtmlUnescape();

return Accommodation(

id: json.containsKey('id') ? json['id'] : 0,
status: json.containsKey('status') ? json['status'] : '',
accommodation_type_id: json.containsKey('accommodation_type_id') ?
json['accommodation_type_id'] : 0,
title: json.containsKey('title') ? json['title'] : '',
title: json.containsKey('title') ? unescape.convert( json['title'] ) : '',
excerpt: json.containsKey('excerpt') ? json['excerpt'] : '',
);
}
Expand Down
6 changes: 5 additions & 1 deletion lib/models/accommodation_type.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:html_unescape/html_unescape_small.dart';

class Accommodation_Type {

final int id;
Expand Down Expand Up @@ -41,10 +43,12 @@ class Accommodation_Type {

factory Accommodation_Type.fromJson(Map<String, dynamic> json) {

var unescape = HtmlUnescape();

return Accommodation_Type(

id: json['id'] ?? 0,
title: json['title'] ?? '',
title: unescape.convert( json['title'] ?? '' ),
description: json['description'] ?? '',
excerpt: json['excerpt'] ?? '',
adults: json['adults'] ?? 0,
Expand Down
4 changes: 2 additions & 2 deletions lib/models/booking_internal_note.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class BookingInternalNote {

final String note;
final String date_utc;
final String user;
final int user;

BookingInternalNote({
required this.note,
Expand All @@ -14,7 +14,7 @@ class BookingInternalNote {
return BookingInternalNote(
note: json['note'] as String,
date_utc: json['date_utc'] as String,
user: json['user'] as String,
user: json['user'] is int ? json['user'] : int.tryParse( json['user'] ),
);
}

Expand Down
7 changes: 6 additions & 1 deletion lib/models/rate.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:html_unescape/html_unescape_small.dart';

class Rate {

final int id;
Expand All @@ -15,9 +17,12 @@ class Rate {
});

factory Rate.fromJson(Map<String, dynamic> json) {

var unescape = HtmlUnescape();

return Rate(
id: json['id'] as int,
title: json['title'] as String,
title: unescape.convert( json['title'] ?? '' ),
description: json['description'] as String,
accommodation_type_id: json['accommodation_type_id'] as int,
season_prices: json['season_prices'] as List,
Expand Down
7 changes: 6 additions & 1 deletion lib/models/service.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:html_unescape/html_unescape_small.dart';

class Service {

final int id;
Expand All @@ -17,9 +19,12 @@ class Service {
});

factory Service.fromJson(Map<String, dynamic> json) {

var unescape = HtmlUnescape();

return Service(
id: json['id'],
title: json['title'],
title: unescape.convert( json['title'] ?? '' ),
description: json['description'],
price: json['price'],
periodicity: json['periodicity'],
Expand Down
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
html_unescape:
dependency: "direct main"
description:
name: html_unescape
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
http:
dependency: "direct main"
description:
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.2.1+10
version: 1.2.2+11

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down Expand Up @@ -48,6 +48,7 @@ dependencies:
table_calendar: ^3.0.7
lazy_load_indexed_stack: ^0.1.4
sprintf: ^7.0.0
html_unescape: ^2.0.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit a8382b6

Please sign in to comment.