Showing
6 changed files
with
65 additions
and
16 deletions
| @@ -18,19 +18,19 @@ if (flutterRoot == null) { | @@ -18,19 +18,19 @@ if (flutterRoot == null) { | ||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | -def flutterVersionCode = "518" | 21 | +def flutterVersionCode = "519" |
| 22 | if (flutterVersionCode == null) { | 22 | if (flutterVersionCode == null) { |
| 23 | - flutterVersionCode = '518' | 23 | + flutterVersionCode = '519' |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | 29 | ||
| 30 | -def flutterVersionName = "5.1.8" | 30 | +def flutterVersionName = "5.1.9" |
| 31 | 31 | ||
| 32 | if (flutterVersionName == null) { | 32 | if (flutterVersionName == null) { |
| 33 | - flutterVersionName = '5.1.8' | 33 | + flutterVersionName = '5.1.9' |
| 34 | 34 | ||
| 35 | 35 | ||
| 36 | } | 36 | } |
| @@ -50,6 +50,40 @@ | @@ -50,6 +50,40 @@ | ||
| 50 | android:name="flutterEmbedding" | 50 | android:name="flutterEmbedding" |
| 51 | android:value="2" /> | 51 | android:value="2" /> |
| 52 | 52 | ||
| 53 | + <!-- <provider | ||
| 54 | + android:name="vn.hunghd.flutterdownloader.DownloadedFileProvider" | ||
| 55 | + android:authorities="${applicationId}.flutter_downloader.provider" | ||
| 56 | + android:exported="false" | ||
| 57 | + android:grantUriPermissions="true"> | ||
| 58 | + <meta-data | ||
| 59 | + android:name="android.support.FILE_PROVIDER_PATHS" | ||
| 60 | + android:resource="@xml/provider_paths"/> | ||
| 61 | + </provider> --> | ||
| 62 | + | ||
| 63 | + <!-- Begin FlutterDownloader customization --> | ||
| 64 | + <!-- disable default Initializer --> | ||
| 65 | + <!-- <provider | ||
| 66 | + android:name="androidx.startup.InitializationProvider" | ||
| 67 | + android:authorities="${applicationId}.androidx-startup" | ||
| 68 | + android:exported="false" | ||
| 69 | + tools:node="merge"> | ||
| 70 | + <meta-data | ||
| 71 | + android:name="androidx.work.WorkManagerInitializer" | ||
| 72 | + android:value="androidx.startup" | ||
| 73 | + tools:node="remove" /> | ||
| 74 | + </provider> --> | ||
| 75 | + | ||
| 76 | + <!-- declare customized Initializer --> | ||
| 77 | + <!-- <provider | ||
| 78 | + android:name="vn.hunghd.flutterdownloader.FlutterDownloaderInitializer" | ||
| 79 | + android:authorities="${applicationId}.flutter-downloader-init" | ||
| 80 | + android:exported="false"> | ||
| 81 | + <meta-data | ||
| 82 | + android:name="vn.hunghd.flutterdownloader.MAX_CONCURRENT_TASKS" | ||
| 83 | + android:value="5" /> | ||
| 84 | + </provider> --> | ||
| 85 | + <!-- End FlutterDownloader customization --> | ||
| 86 | + | ||
| 53 | <intent-filter> | 87 | <intent-filter> |
| 54 | <action android:name="android.intent.action.MAIN"/> | 88 | <action android:name="android.intent.action.MAIN"/> |
| 55 | <category android:name="android.intent.category.LAUNCHER"/> | 89 | <category android:name="android.intent.category.LAUNCHER"/> |
android/app/src/main/res/values/strings.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<resources> | ||
| 3 | + <string name="flutter_downloader_notification_started">started</string> | ||
| 4 | + <string name="flutter_downloader_notification_in_progress">in progress</string> | ||
| 5 | + <string name="flutter_downloader_notification_canceled">canceled</string> | ||
| 6 | + <string name="flutter_downloader_notification_failed">failed</string> | ||
| 7 | + <string name="flutter_downloader_notification_complete">complete</string> | ||
| 8 | + <string name="flutter_downloader_notification_paused">paused</string> | ||
| 9 | + <string name="flutter_downloader_notification_channel_name">Downloader</string> | ||
| 10 | + <string name="flutter_downloader_notification_channel_description">Display download progress</string> | ||
| 11 | +</resources> |
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | archiveVersion = 1; | 3 | archiveVersion = 1; |
| 4 | classes = { | 4 | classes = { |
| 5 | }; | 5 | }; |
| 6 | - objectVersion = 46; | 6 | + objectVersion = 50; |
| 7 | objects = { | 7 | objects = { |
| 8 | 8 | ||
| 9 | /* Begin PBXBuildFile section */ | 9 | /* Begin PBXBuildFile section */ |
| @@ -532,7 +532,7 @@ | @@ -532,7 +532,7 @@ | ||
| 532 | CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; | 532 | CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; |
| 533 | CODE_SIGN_IDENTITY = "Apple Development"; | 533 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 534 | CODE_SIGN_STYLE = Automatic; | 534 | CODE_SIGN_STYLE = Automatic; |
| 535 | - CURRENT_PROJECT_VERSION = 5182; | 535 | + CURRENT_PROJECT_VERSION = 519; |
| 536 | DEVELOPMENT_TEAM = 8J59HM8B82; | 536 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 537 | ENABLE_BITCODE = NO; | 537 | ENABLE_BITCODE = NO; |
| 538 | FLUTTER_BUILD_MODE = release; | 538 | FLUTTER_BUILD_MODE = release; |
| @@ -547,7 +547,7 @@ | @@ -547,7 +547,7 @@ | ||
| 547 | "$(inherited)", | 547 | "$(inherited)", |
| 548 | "$(PROJECT_DIR)/Flutter", | 548 | "$(PROJECT_DIR)/Flutter", |
| 549 | ); | 549 | ); |
| 550 | - MARKETING_VERSION = 5.1.8; | 550 | + MARKETING_VERSION = 5.1.9; |
| 551 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 551 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 552 | PRODUCT_NAME = Runner; | 552 | PRODUCT_NAME = Runner; |
| 553 | PROVISIONING_PROFILE_SPECIFIER = ""; | 553 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -678,7 +678,7 @@ | @@ -678,7 +678,7 @@ | ||
| 678 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; | 678 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; |
| 679 | CODE_SIGN_IDENTITY = "Apple Development"; | 679 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 680 | CODE_SIGN_STYLE = Automatic; | 680 | CODE_SIGN_STYLE = Automatic; |
| 681 | - CURRENT_PROJECT_VERSION = 5182; | 681 | + CURRENT_PROJECT_VERSION = 519; |
| 682 | DEVELOPMENT_TEAM = 8J59HM8B82; | 682 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 683 | ENABLE_BITCODE = NO; | 683 | ENABLE_BITCODE = NO; |
| 684 | FLUTTER_BUILD_MODE = release; | 684 | FLUTTER_BUILD_MODE = release; |
| @@ -693,7 +693,7 @@ | @@ -693,7 +693,7 @@ | ||
| 693 | "$(inherited)", | 693 | "$(inherited)", |
| 694 | "$(PROJECT_DIR)/Flutter", | 694 | "$(PROJECT_DIR)/Flutter", |
| 695 | ); | 695 | ); |
| 696 | - MARKETING_VERSION = 5.1.8; | 696 | + MARKETING_VERSION = 5.1.9; |
| 697 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 697 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 698 | PRODUCT_NAME = Runner; | 698 | PRODUCT_NAME = Runner; |
| 699 | PROVISIONING_PROFILE_SPECIFIER = ""; | 699 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -714,7 +714,7 @@ | @@ -714,7 +714,7 @@ | ||
| 714 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | 714 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; |
| 715 | CODE_SIGN_IDENTITY = "Apple Development"; | 715 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 716 | CODE_SIGN_STYLE = Automatic; | 716 | CODE_SIGN_STYLE = Automatic; |
| 717 | - CURRENT_PROJECT_VERSION = 5182; | 717 | + CURRENT_PROJECT_VERSION = 519; |
| 718 | DEVELOPMENT_TEAM = 8J59HM8B82; | 718 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 719 | ENABLE_BITCODE = NO; | 719 | ENABLE_BITCODE = NO; |
| 720 | FLUTTER_BUILD_MODE = release; | 720 | FLUTTER_BUILD_MODE = release; |
| @@ -729,7 +729,7 @@ | @@ -729,7 +729,7 @@ | ||
| 729 | "$(inherited)", | 729 | "$(inherited)", |
| 730 | "$(PROJECT_DIR)/Flutter", | 730 | "$(PROJECT_DIR)/Flutter", |
| 731 | ); | 731 | ); |
| 732 | - MARKETING_VERSION = 5.1.8; | 732 | + MARKETING_VERSION = 5.1.9; |
| 733 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 733 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 734 | PRODUCT_NAME = Runner; | 734 | PRODUCT_NAME = Runner; |
| 735 | PROVISIONING_PROFILE_SPECIFIER = ""; | 735 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -80,10 +80,14 @@ Future<PermissionStatus> contactPermissionStatus() async { | @@ -80,10 +80,14 @@ Future<PermissionStatus> contactPermissionStatus() async { | ||
| 80 | 80 | ||
| 81 | Future<bool> requestContactPermission() async { | 81 | Future<bool> requestContactPermission() async { |
| 82 | if (Platform.isAndroid) { | 82 | if (Platform.isAndroid) { |
| 83 | - //全局提示权限使用目的 | ||
| 84 | - BuildContext context = App.navigatorKey.currentState.overlay.context; | ||
| 85 | - DialogUtil.showAuthorityDestination( | ||
| 86 | - context, 'h_contant', '通讯录权限使用说明', '直接从通讯录获得客户电话号码,快速录入预订信息。'); | 83 | + PermissionStatus permissionStatus = await Permission.contacts.status; |
| 84 | + | ||
| 85 | + if (permissionStatus != PermissionStatus.permanentlyDenied) { | ||
| 86 | +//全局提示权限使用目的 | ||
| 87 | + BuildContext context = App.navigatorKey.currentState.overlay.context; | ||
| 88 | + DialogUtil.showAuthorityDestination( | ||
| 89 | + context, 'h_contant', '通讯录权限使用说明', '直接从通讯录获得客户电话号码,快速录入预订信息。'); | ||
| 90 | + } | ||
| 87 | } | 91 | } |
| 88 | final permissions = await [Permission.contacts].request(); | 92 | final permissions = await [Permission.contacts].request(); |
| 89 | if (permissions[Permission.contacts] == PermissionStatus.granted) { | 93 | if (permissions[Permission.contacts] == PermissionStatus.granted) { |
| @@ -182,7 +182,7 @@ dependencies: | @@ -182,7 +182,7 @@ dependencies: | ||
| 182 | # webview_flutter: ^2.0.13 | 182 | # webview_flutter: ^2.0.13 |
| 183 | # flutter_inappwebview: ^5.3.2 | 183 | # flutter_inappwebview: ^5.3.2 |
| 184 | flutter_inappwebview: ^5.7.2+3 | 184 | flutter_inappwebview: ^5.7.2+3 |
| 185 | - # flutter_downloader: ^1.7.1 | 185 | + # flutter_downloader: ^1.10.5 |
| 186 | # open_file: ^3.2.1 | 186 | # open_file: ^3.2.1 |
| 187 | 187 | ||
| 188 | webview_flutter: | 188 | webview_flutter: |
-
Please register or login to post a comment