Skip to content

Commit

Permalink
fix iOS builder adds export build argument check error
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Jan 14, 2023
1 parent f711fad commit df5ae20
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/hello_world/distribute_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ releases:
target: ipa
build_args:
export-options-plist: ios/ExportOptions.plist
# export-method: ad-hoc
dart-define:
APP_ENV: dev
- name: linux-appimage
Expand Down
4 changes: 4 additions & 0 deletions packages/flutter_app_builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.8

* fix iOS builder adds export build argument check error

## 0.2.7

* iOS builder adds export build argument check
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_app_builder/lib/src/app_builder_ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AppBuilderIos extends AppBuilder {
String? target,
required Map<String, dynamic> buildArguments,
}) {
if (!buildArguments.containsKey('export-options-plist') ||
if (!buildArguments.containsKey('export-options-plist') &&
!buildArguments.containsKey('export-method')) {
throw BuildError(
'Missing `export-options-plist` or `export-method` build argument.',
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_app_builder/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_app_builder
description: Build your Flutter app via Dart.
version: 0.2.7
version: 0.2.8
homepage: https://github.com/leanflutter/flutter_distributor

environment:
Expand Down
4 changes: 4 additions & 0 deletions packages/flutter_distributor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.8

* fix iOS builder adds export build argument check error

## 0.2.7

* Feat: Linux RPM packaging support (#101)
Expand Down
9 changes: 7 additions & 2 deletions packages/flutter_distributor/lib/src/flutter_distributor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ class FlutterDistributor {
} on UnsupportedError catch (error) {
logger.warning('Warning: ${error.message}'.yellow());
continue;
} catch (error) {
rethrow;
}
}

Expand All @@ -187,9 +189,12 @@ class FlutterDistributor {
makeResultList.add(makeResult);
}
}
} on Error catch (error) {
} catch (error) {
logger.severe(error.toString().red());
logger.severe(error.stackTrace.toString().red());
if (error is Error) {
logger.severe(error.stackTrace.toString().red());
}
rethrow;
}

return makeResultList;
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_distributor/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ packages:
path: "../flutter_app_builder"
relative: true
source: path
version: "0.2.7"
version: "0.2.8"
flutter_app_packager:
dependency: "direct main"
description:
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter_distributor/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_distributor
description: A complete tool for packaging and publishing your Flutter apps.
version: 0.2.7
version: 0.2.8
homepage: https://github.com/leanflutter/flutter_distributor

platforms:
Expand All @@ -18,7 +18,7 @@ dependencies:
app_package_publisher: ^0.2.5
args: ^2.2.0
dio: ^4.0.4
flutter_app_builder: ^0.2.7
flutter_app_builder: ^0.2.8
flutter_app_packager: ^0.2.7
flutter_app_publisher: ^0.2.5
logging: ^1.0.2
Expand Down

0 comments on commit df5ae20

Please sign in to comment.