aws-mobile-appsync-sdk-android icon indicating copy to clipboard operation
aws-mobile-appsync-sdk-android copied to clipboard

Support Apple Silicon

Open timfreiheit opened this issue 3 years ago • 6 comments

Currently it is not supported to use the AppSync gradle plugin on a device running Apple Silicon (M1)

Execution failed for task ':data:nodeSetup'.
> Could not resolve all files for configuration ':data:detachedConfiguration9'.
   > Could not find org.nodejs:node:6.7.0.
     Searched in the following locations:
       - https://nodejs.org/dist/v6.7.0/node-v6.7.0-darwin-arm64.tar.gz
     Required by:
         project :data

This is due to using node in version 6.7.0 which does not have support for darwin-arm64 Node.js does support Apple Silicon since version 16.0.0

Updating to a newer node version works by using

node {
  version = "16.2.0"
}

It would be great to have official support for this.

timfreiheit avatar Jul 07 '21 12:07 timfreiheit

These changes would be required here: https://github.com/awslabs/aws-mobile-appsync-sdk-android/blob/0435eb2b99d2233e5184d66c588e69596b104360/aws-android-sdk-appsync-gradle-plugin/src/main/groovy/com/apollographql/apollo/gradle/ApolloPlugin.groovy#L33

Currently Node.js v14.17.3 is LTS which does not support Apple Silicon. We should probably wait for v16 LTS release before making this change.

div5yesh avatar Jul 08 '21 18:07 div5yesh

Is there any work around for this to work with Apple Silicon?

danielulrik avatar Aug 25 '21 16:08 danielulrik

According to this v16 will hit LTS in about 3 weeks. Can we expect any changes this month?

msimic-dev avatar Oct 06 '21 14:10 msimic-dev

Node.js v16.13.0 has finally LTS. And with more new M1 Macs coming this should be taken care of.

msimic-dev avatar Oct 27 '21 15:10 msimic-dev

Any plans for a fix for this issue?

damian-lee-km avatar Jan 13 '22 23:01 damian-lee-km

Really need a fix for this as many more of my colleagues are upgrading to M1 Macs and no longer able to use this plugin.

DanOxlade avatar Apr 13 '22 09:04 DanOxlade

did this ever get fixed?

keco1249 avatar Dec 05 '23 16:12 keco1249

Thank you for reaching out. Will look to publish the plugin to use a newer version of node compatible with Apple Silicon chips.

tylerjroach avatar Dec 05 '23 16:12 tylerjroach

awesome, thank you!

keco1249 avatar Dec 05 '23 16:12 keco1249

version 3.4.1 has been released which should allow the gradle plugin to work with Apple Silicon devices!

tylerjroach avatar Dec 07 '23 20:12 tylerjroach

That worked, thanks for the quick turnaround!

keco1249 avatar Dec 07 '23 22:12 keco1249