aws-amplify / amplify-android

The fastest and easiest way to use AWS from your Android app.
https://docs.amplify.aws/lib/q/platform/android/
Apache License 2.0
249 stars 117 forks source link

fix(apollo): Fix using Apollo to connect to AppSync in China #2947

Closed mattcreaser closed 6 days ago

mattcreaser commented 1 week ago

Issue #, if available: #2945

Description of changes: In China the AppSync URL has .cn as a TLD, and we weren't account for that in our standard URL regex. I updated the regex to match Amplify JS

How did you test these changes? Unit test

Documentation update required?

General Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.