resolve qr code permssion issue
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -149,13 +149,13 @@ jobs:
|
||||
[IO.File]::WriteAllBytes("windows\sign.pfx", [Convert]::FromBase64String("${{ secrets.WINDOWS_SIGNING_KEY }}"))
|
||||
(Get-Content "windows\packaging\msix\make_config.yaml") -replace '^certificate_password:.*$', 'certificate_password: ${{ secrets.WINDOWS_SIGNING_PASSWORD }}' | Set-Content "windows\packaging\msix\make_config.yaml"
|
||||
|
||||
- name: Temporary disable Permission Handler for windows due to its issue in permission
|
||||
if: ${{ startsWith(matrix.platform,'windows') }}
|
||||
run: |
|
||||
(Get-Content -Path "pubspec.yaml") -notmatch "permission_handler" | Set-Content -Path "pubspec.yaml"
|
||||
(Get-Content -Path "lib\features\profile\add\add_profile_modal.dart") -notmatch "qr_code_scanner_screen" | Set-Content -Path "lib\features\profile\add\add_profile_modal.dart"
|
||||
(Get-Content -Path lib\features\profile\add\add_profile_modal.dart) -replace 'await QRCodeScannerScreen\(\).open\(context\);', 'null;' | Set-Content -Path lib\features\profile\add\add_profile_modal.dart
|
||||
Remove-Item -Path "lib\features\common\qr_code_scanner_screen.dart"
|
||||
# - name: Temporary disable Permission Handler for windows due to its issue in permission
|
||||
# if: ${{ startsWith(matrix.platform,'windows') }}
|
||||
# run: |
|
||||
# (Get-Content -Path "pubspec.yaml") -notmatch "permission_handler" | Set-Content -Path "pubspec.yaml"
|
||||
# (Get-Content -Path "lib\features\profile\add\add_profile_modal.dart") -notmatch "qr_code_scanner_screen" | Set-Content -Path "lib\features\profile\add\add_profile_modal.dart"
|
||||
# (Get-Content -Path lib\features\profile\add\add_profile_modal.dart) -replace 'await QRCodeScannerScreen\(\).open\(context\);', 'null;' | Set-Content -Path lib\features\profile\add\add_profile_modal.dart
|
||||
# Remove-Item -Path "lib\features\common\qr_code_scanner_screen.dart"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user