Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Android - Issue while create release apk with twitter_flutter #26

Open
mvitolo opened this issue Jan 1, 2020 · 3 comments
Open

Android - Issue while create release apk with twitter_flutter #26

mvitolo opened this issue Jan 1, 2020 · 3 comments

Comments

@mvitolo
Copy link

mvitolo commented Jan 1, 2020

* What went wrong:                                                      
Execution failed for task ':flutter_twitter:verifyReleaseResources'.    
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed                                    
     /Users/user/.gradle/caches/transforms-2/files-2.1/c1da7862c7abb8e426855a3f78caf221/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
                                                                        
     /Users/user/.gradle/caches/transforms-2/files-2.1/c1da7862c7abb8e426855a3f78caf221/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.

Also this is related to this
roughike/flutter_twitter_login#30

and there is an open question on SO
https://stackoverflow.com/questions/59496368/execution-failed-for-task-flutter-twitterverifyreleaseresources

@SoftWyer
Copy link

I think this might be because the Twitter project is compiling against SDK 27. I've seen some other project mention similar build errors when using v27 and not v28. I'll fork the Twitter project and see if I can integrate that forked version with my forked version of this project.

It's turtles all the way down :-D

@SoftWyer
Copy link

SoftWyer commented Jan 11, 2020

I've forked the twitter project that @Maliffic has here, tweaked it to be an AndroidX build and have managed to get a release APK working.

Some caveats:

  • The project here is flutter_twitter_login and not flutter_twitter. It appears @Maliffic has not made that one public although I think they are the same.
  • I renamed the forked branch to be flutter_twitter. If there are any bug fixes between 1.1.0 and 1.1.3 then we do not have them.
  • Whilst it builds on Android, I don't use Twitter so have no idea if it actually works.
  • Haven't tried it on iOS yet.

To get the forked version, you can modify your project to override the flutter_twitter dependency like this:

dependency_overrides:
  flutter_twitter:
    git:
      url: https://github.com/SoftWyer/flutter_twitter
      ref: 7380657aee796528bddfdbc2e5c9ff999034fbf0

The forked repo is open, so please check the changes (I'm trustworthy, but you should check anyway :-D )

And finally, @Maliffic has been very quiet here, hope they are OK.

@SoftWyer
Copy link

Hmm, the iOS version doesn't build and having tried other people's fork I can't get them to build either. Twitter deprecated the TwitterKit SDK over a year ago, so I think trying to include a legacy SDK is not something I want to continue. Since I don't use Twitter login, I'm going to park this and create a branch of firebase_ui that doesn't use Twitter authentication.

This fork looks like it is being maintained, but due to the naming switch mentioned above, it's not directly compatible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants