File tree Expand file tree Collapse file tree 7 files changed +12
-8
lines changed Expand file tree Collapse file tree 7 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1111/macos /fastlane /4TV2PTBPVG.json filter =git-crypt diff =git-crypt
1212/macos /firebase_app_id_file.json filter =git-crypt diff =git-crypt
1313/macos /gc_keys.json filter =git-crypt diff =git-crypt
14- /windows /ca.crt filter =git-crypt diff =git-crypt
1514/windows /certificate.pfx filter =git-crypt diff =git-crypt
1615* .encrypted.dart filter =git-crypt diff =git-crypt
Original file line number Diff line number Diff line change @@ -269,10 +269,8 @@ jobs:
269269 fingerprint : <!-- ${{ github.sha }} -->
270270
271271 build_windows :
272- # disable Windows build until msix issue can be fixed
273- # if: ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'windows') }}
274- if : ${{ contains(github.ref, 'windows') }}
275- runs-on : windows-2019
272+ if : ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'windows') }}
273+ runs-on : windows-2022
276274 defaults :
277275 run :
278276 shell : bash
@@ -314,7 +312,6 @@ jobs:
314312 run : |
315313 set -e
316314
317- gsutil cp windows/ca.crt "${GCS_PATH}/windows/ca.crt"
318315 gsutil cp build/windows/runner/Release/the_app.msix "${GCS_PATH}/windows/the_app.msix"
319316
320317 - name : Prepare markdown
@@ -329,7 +326,7 @@ jobs:
329326 echo "PACKAGE_VERSION=${PACKAGE_VERSION}"; \
330327 echo '```'; \
331328 echo; \
332- printf '1. Install [ca.crt](%s) as a trusted root CA\n' "${GCS_URL}/windows/ca.crt" ; \
329+ printf '1. [Installing a test certificate directly from an MSIX package](https://www.advancedinstaller.com/install-test-certificate-from-msix.html)\n' ; \
333330 printf '1. Then run [the installer](%s)\n' "${GCS_URL}/windows/the_app.msix"; \
334331 )
335332
Original file line number Diff line number Diff line change 1+ import 'dart:io' ;
2+
13import 'package:flutter/foundation.dart' ;
24import 'package:flutter/material.dart' ;
35import 'package:flutter_facebook_auth/flutter_facebook_auth.dart' as lib;
46import 'package:the_app/src/intl.dart' ;
57
8+ final isSupported = Platform .isAndroid || Platform .isIOS || Platform .isMacOS;
9+
610Future <void > configureFacebookLogin () async {
711 if (defaultTargetPlatform == TargetPlatform .macOS) {
812 await lib.FacebookAuth .instance.webAndDesktopInitialize (
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ class _LoginFormState extends State<LoginForm> {
137137 onPressed: _loginApple,
138138 text: l (context).loginWithApple,
139139 ),
140- if (config.loginWithFacebook)
140+ if (config.loginWithFacebook && facebook_log_in.isSupported )
141141 SignInButton .facebook (
142142 onPressed: _loginFacebook,
143143 text: l (context).loginWithFacebook,
Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ flutter:
6363 uses-material-design : true
6464
6565msix_config :
66+ # New-SelfSignedCertificate -Type Custom -Subject "[email protected] , CN=Dao Hoang Son, OU=Developer, O=DAO HOANG SON, L=Vietnam, S=Ho Chi Minh City, C=VN" -KeyUsage DigitalSignature -FriendlyName "flutter_ttdemo msix certificate" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}") -NotAfter (Get-Date).AddYears(10) 6667 certificate_path : windows\certificate.pfx
68+ # $password = ConvertTo-SecureString -String release -Force -AsPlainText
69+ # Export-PfxCertificate -cert "Cert:\CurrentUser\My\<the 38 character thumbprint>" -FilePath certificate.pfx -Password $password
6770 certificate_password : release
6871 identity_name : com.daohoangson.flutterttdemo
6972 publisher :
[email protected] , CN=Dao Hoang Son, OU=Developer, O=DAO HOANG SON, L=Vietnam, S=Ho Chi Minh City, C=VN 73+ signtool_options : /debug
You can’t perform that action at this time.
0 commit comments