Skip to content

Commit

Permalink
refactor: change plugin open_file with open_filex
Browse files Browse the repository at this point in the history
  • Loading branch information
everfgmolinas committed Sep 12, 2022
1 parent fc1c0b8 commit ed0b573
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions ios/Podfile.lock
Expand Up @@ -122,7 +122,7 @@ PODS:
- nanopb/encode (2.30908.0)
- native_device_orientation (0.0.1):
- Flutter
- open_file (0.0.1):
- open_filex (0.0.2):
- Flutter
- package_info_plus (0.4.5):
- Flutter
Expand Down Expand Up @@ -168,7 +168,7 @@ DEPENDENCIES:
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
- mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`)
- native_device_orientation (from `.symlinks/plugins/native_device_orientation/ios`)
- open_file (from `.symlinks/plugins/open_file/ios`)
- open_filex (from `.symlinks/plugins/open_filex/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
Expand Down Expand Up @@ -228,8 +228,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/mobile_scanner/ios"
native_device_orientation:
:path: ".symlinks/plugins/native_device_orientation/ios"
open_file:
:path: ".symlinks/plugins/open_file/ios"
open_filex:
:path: ".symlinks/plugins/open_filex/ios"
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
path_provider_ios:
Expand Down Expand Up @@ -275,7 +275,7 @@ SPEC CHECKSUMS:
mobile_scanner: 073e39c0c96360297389f4db68e4297a1fa58349
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
native_device_orientation: 3b4cfc9565a7b879cc4fde282b3e27745e852d0d
open_file: 02eb5cb6b21264bd3a696876f5afbfb7ca4f4b7d
open_filex: 6e26e659846ec990262224a12ef1c528bb4edbe4
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
path_provider_ios: 7d7ce634493af4477d156294792024ec3485acd5
permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
Expand Down
12 changes: 6 additions & 6 deletions ios/Runner.xcodeproj/project.pbxproj
Expand Up @@ -359,7 +359,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
CURRENT_PROJECT_VERSION = 25;
DEVELOPMENT_TEAM = 2U89U735PZ;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
Expand All @@ -377,7 +377,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.1;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = py.org.pti.boldo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -504,7 +504,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
CURRENT_PROJECT_VERSION = 25;
DEVELOPMENT_TEAM = 2U89U735PZ;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 armv7";
Expand All @@ -522,7 +522,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.1;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = py.org.pti.boldo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -543,7 +543,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
CURRENT_PROJECT_VERSION = 25;
DEVELOPMENT_TEAM = 2U89U735PZ;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -560,7 +560,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.1;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = py.org.pti.boldo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/my_studies/bloc/my_studies_bloc.dart
Expand Up @@ -5,8 +5,8 @@ import 'package:boldo/network/my_studies_repository.dart';
import 'package:boldo/network/repository_helper.dart';
import 'package:dartz/dartz.dart';
import 'package:meta/meta.dart';
import 'package:open_filex/open_filex.dart';
import 'package:path_provider/path_provider.dart';
import 'package:open_file/open_file.dart' as open;
import '../../../models/DiagnosticReport.dart';
import 'package:http/http.dart' as http;
part 'my_studies_event.dart';
Expand Down Expand Up @@ -119,7 +119,7 @@ class MyStudiesBloc extends Bloc<MyStudiesEvent, MyStudiesState> {
File file = File("${dir.path}/" + fileName + ".pdf");
print(dir.path);
File urlFile = await file.writeAsBytes(bytes);
open.OpenFile.open(urlFile.path);
OpenFilex.open(urlFile.path);
return const None();
} catch (e) {
throw Exception("Error opening url file");
Expand Down
6 changes: 3 additions & 3 deletions pubspec.lock
Expand Up @@ -518,13 +518,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
open_file:
open_filex:
dependency: "direct main"
description:
name: open_file
name: open_filex
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.1"
version: "3.4.0"
package_info_plus:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
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.1.9+63
version: 1.2.01+65

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down Expand Up @@ -66,7 +66,7 @@ dependencies:
wakelock: ^0.6.1+2
native_device_orientation: ^1.1.4
photo_view: ^0.14.0
open_file: ^3.2.1
open_filex: ^3.4.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.3
Expand Down

0 comments on commit ed0b573

Please sign in to comment.