diff --git a/.github/workflows/deploy-landing.yml b/.github/workflows/deploy-landing.yml index 1c7f3aa..2738f9e 100644 --- a/.github/workflows/deploy-landing.yml +++ b/.github/workflows/deploy-landing.yml @@ -5,8 +5,15 @@ on: branches: ["main"] paths: - "landing/**" + pull_request: + paths: + - "landing/**" workflow_dispatch: +permissions: + contents: read + pull-requests: write + jobs: deploy: runs-on: ubuntu-latest @@ -32,9 +39,19 @@ jobs: run: npm run build - name: Deploy to Cloudflare Pages + id: deploy uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy dist --project-name=pocketgraph-app + command: pages deploy dist --project-name=pocketgraph-app --branch=${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'main' }} workingDirectory: landing + + - name: Comment preview URL on PR + if: github.event_name == 'pull_request' + uses: thollander/actions-comment-pull-request@v3 + with: + message: | + 🔍 **Preview deployment ready!** + ${{ steps.deploy.outputs.deployment-url }} + comment-tag: cloudflare-preview diff --git a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j.Android/Security/NativeTrustManager.cs b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j.Android/Security/NativeTrustManager.cs index d8a1d1e..5ac6cf5 100644 --- a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j.Android/Security/NativeTrustManager.cs +++ b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j.Android/Security/NativeTrustManager.cs @@ -9,6 +9,7 @@ using System.Linq; using System.Net.Security; using System.Security.Cryptography.X509Certificates; +using Android.Runtime; using Java.Security; using Java.Security.Cert; using Javax.Net.Ssl; @@ -25,8 +26,9 @@ public NativeTrustManager() var factory = TrustManagerFactory.GetInstance(TrustManagerFactory.DefaultAlgorithm); factory.Init((KeyStore)null); _androidTrustManager = factory.GetTrustManagers() - .OfType() - .First(); + .OfType() + .Select(m => m.JavaCast()) + .First(m => m != null); } public override bool ValidateServerCertificate(Uri uri, X509Certificate2 certificate, X509Chain chain, diff --git a/landing/src/components/Footer.astro b/landing/src/components/Footer.astro index b63e65d..deb7b17 100644 --- a/landing/src/components/Footer.astro +++ b/landing/src/components/Footer.astro @@ -1,5 +1,6 @@ --- const APP_STORE_URL = "https://apps.apple.com/nl/app/pocketgraph/id1604368926"; +const PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=nl.resoftware.pocketgraph"; ---